@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --paper: #f5f5f5;
  --ink: #1f1f1f;
  --ink-2: #4b4b4b;
  --ink-3: #6f6f6f;
  --line: #e6e6e6;
  --r: 18px;
  --head: 104px;
  --e1: 0 1px 2px rgba(31, 31, 31, .05), 0 3px 10px rgba(31, 31, 31, .05);
  --e2: 0 6px 16px rgba(31, 31, 31, .08), 0 14px 34px rgba(31, 31, 31, .07);
  --e3: 0 12px 30px rgba(31, 31, 31, .10), 0 28px 64px rgba(31, 31, 31, .09);
  --e4: 0 22px 50px rgba(31, 31, 31, .16), 0 44px 96px rgba(31, 31, 31, .12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 'Quicksand', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 14px; }
img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 99;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: top .25s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶部两层 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: var(--e1);
  transition: box-shadow .3s ease;
}
.topbar.is-stuck { box-shadow: var(--e2); }

.brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--e1);
}
.brand:hover .brand-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.menubar {
  padding: 0 10px 8px;
  position: relative;
  z-index: 2;
}

.menu { max-width: 100%; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-list::-webkit-scrollbar { display: none; }
.menu-list li { flex: 0 0 auto; }
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.menu-list a:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
.menu-list a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--e2);
}

/* ---------- 首屏 ---------- */
.main { display: block; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--head));
  display: flex;
  align-items: flex-end;
  padding: clamp(26px, 6vw, 60px) clamp(20px, 5vw, 64px) clamp(70px, 11vw, 120px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  background: linear-gradient(140deg, #2a2a2a, #141414 60%, #262626);
}
.hero-figure--empty {
  background:
    radial-gradient(70% 60% at 78% 22%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(140deg, #2c2c2c, #131313 62%, #242424);
}
.hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(12, 12, 12, .88), rgba(12, 12, 12, .5) 58%, rgba(12, 12, 12, .22)),
    linear-gradient(0deg, rgba(12, 12, 12, .55), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--e1);
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 6.6vw, 58px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  word-break: break-word;
}

.hero-ghost {
  position: absolute;
  right: clamp(8px, 3vw, 34px);
  top: clamp(4px, 2vw, 18px);
  z-index: 2;
  font-family: 'Caveat', 'Quicksand', cursive;
  font-size: clamp(90px, 24vw, 210px);
  line-height: 1;
  color: rgba(255, 255, 255, .16);
  pointer-events: none;
  user-select: none;
}

/* ---------- 主区：左栏 + 正文 ---------- */
.band {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: -56px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 42px);
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--head) + 16px);
  z-index: 6;
  background: var(--white);
  border-radius: var(--r);
  padding: 22px 18px;
  box-shadow: var(--e2);
}

.rail-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .01em;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  font-family: 'Caveat', 'Quicksand', cursive;
  font-size: 18px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.rail-list a:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(3px);
}

.body {
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-bottom: clamp(30px, 5vw, 56px);
}

.body > div {
  position: relative;
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(22px, 3.6vw, 42px);
  box-shadow: var(--e1);
  scroll-margin-top: calc(var(--head) + 22px);
  transition: box-shadow .35s ease, transform .35s ease;
}
.body > div:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  box-shadow: var(--e2);
}
.body > div + div { margin-top: -10px; }
.body > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--e3);
}

.body h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
  scroll-margin-top: calc(var(--head) + 26px);
}
.body h2 + p {
  margin-top: -4px;
  color: var(--ink-2);
}
.body h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  scroll-margin-top: calc(var(--head) + 26px);
}
.body h4 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.body p { color: #333333; }
.body p:last-child { margin-bottom: 0; }

.body ul,
.body ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
.body li { margin: 0 0 8px; }

.body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 31, 31, .34);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.body a:hover { text-decoration-color: var(--ink); }

.body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 14px;
  box-shadow: var(--e2);
}

.body figure {
  margin: 18px 0;
}
.body figure img { margin: 0; }
.body figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-3);
}

.body blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  background: var(--paper);
  border-radius: 14px;
  color: #333333;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .04);
}
.body blockquote p:last-child { margin-bottom: 0; }

.body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}
.body th,
.body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.body th { background: var(--paper); font-weight: 700; }

.body code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 15px;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 8px;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  margin-top: clamp(46px, 7vw, 88px);
  padding: clamp(34px, 6vw, 68px) clamp(18px, 5vw, 48px) 26px;
  background: var(--ink);
  color: #f2f2f2;
  border-radius: 34px 34px 0 0;
  box-shadow: var(--e4);
  overflow: hidden;
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.6vw, 40px);
  border-radius: var(--r);
  background: linear-gradient(135deg, #2e2e2e, #191919);
  box-shadow: var(--e3);
}

.cta-line {
  margin: 0;
  font-size: clamp(22px, 3.8vw, 34px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .01em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--e2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--e4);
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(26px, 4vw, 44px);
}

.foot-addr {
  font-style: normal;
  display: grid;
  gap: 6px;
  align-content: start;
}
.foot-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}

.foot-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
  color: #dcdcdc;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.foot-links a:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 16px;
  color: #c9c9c9;
}
.foot-copy { margin: 0; }
.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  color: #ececec;
  text-decoration: none;
  transition: background .2s ease;
}
.to-top:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  :root { --head: 96px; }

  .band {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -34px;
    gap: 18px;
  }
  .rail {
    position: static;
    padding: 16px;
  }
  .rail-title { font-size: 18px; margin-bottom: 2px; }
  .subtitle { margin-bottom: 12px; }
  .rail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list li { flex: 0 0 auto; }
  .rail-list a {
    white-space: nowrap;
    background: var(--paper);
    padding: 9px 14px;
  }
  .rail-list a:hover { transform: none; }

  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot { border-radius: 26px 26px 0 0; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 74px; }
  .body > div { padding: 20px 18px; }
  .body > div + div { margin-top: -6px; }
  .hero-ghost { font-size: 84px; }
  .cta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-pic { transform: none !important; }
  .body > div:hover,
  .menu-list a:hover,
  .cta-btn:hover,
  .rail-list a:hover { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
