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

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --ink: #1f1f1f;
  --mute: #6f6f6f;
  --line: #e6e6e6;
  --r: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 104px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- 底部固定导航 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px max(12px, calc((100vw - 1160px) / 2 + 16px)) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 6px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.dock-name {
  white-space: nowrap;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.dock-nav::-webkit-scrollbar {
  display: none;
}

.dock-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--mute);
  transition: color 0.2s ease, background 0.2s ease;
}

.dock-nav a:hover,
.dock-nav a[aria-current] {
  color: var(--ink);
  background: var(--bg);
}

.dock-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dock-cta:hover {
  background: #000;
  transform: scale(1.03);
}

/* ---------- 网格主区 ---------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 16px 8px;
}

.board > div[id] {
  grid-column: 1;
  background: var(--card);
  border-radius: var(--r);
  padding: 26px 28px;
  scroll-margin-top: 16px;
}

.board > div[id] > *:first-child {
  margin-top: 0;
}

.board > div[id] h2 {
  margin: 0.1em 0 0.55em;
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.board > div[id] h3 {
  margin: 1.5em 0 0.4em;
  font-size: 18px;
  line-height: 1.45;
}

.board > div[id] p {
  margin: 0 0 1em;
}

.board > div[id] ul,
.board > div[id] ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.board > div[id] li {
  margin: 0.3em 0;
}

.board > div[id] > small {
  display: block;
  margin-bottom: 2px;
  color: var(--mute);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.board > div[id] a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.board > div[id] figure {
  margin: 0 0 1em;
}

.board > div[id] img {
  display: block;
  border-radius: 8px;
  height: auto;
}

.board > div[id] blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--ink);
  color: #3a3a3a;
}

.board > div[id] table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 16px;
}

.board > div[id] th,
.board > div[id] td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 首屏 ---------- */

.board > .hero {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: calc(100svh - 132px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--card);
  border-radius: var(--r);
}

.board > .hero .hero-ghost {
  position: absolute;
  z-index: 0;
  left: -2%;
  bottom: -0.28em;
  margin: 0;
  font-size: clamp(64px, 15vw, 190px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: #f0f0f0;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.board > .hero .hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  height: 100%;
  min-height: 260px;
  max-height: 66vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg);
}

.board > .hero .hero-figure img,
.board > .hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
}

.board > .hero .hero-mark {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 700;
  color: #dcdcdc;
  line-height: 1;
}

.board > .hero .hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.board > .hero h1 {
  margin: 0 0 0.5em;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-desc {
  max-width: 34ch;
  margin: 0 auto 1.7em;
  color: var(--mute);
  font-size: 17px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-cta:hover {
  background: #000;
  transform: scale(1.03);
}

/* ---------- 右侧栏 ---------- */

.rail {
  grid-column: 2;
  grid-row: 2 / span 8;
  position: sticky;
  top: 16px;
  padding: 20px;
  background: var(--card);
  border-radius: var(--r);
}

.rail-eyebrow {
  display: block;
  color: var(--mute);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.rail-title {
  margin: 0.1em 0 0.7em;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list li {
  counter-increment: rail;
  border-top: 1px solid var(--line);
}

.rail-list li:first-child {
  border-top: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  color: #c6c6c6;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rail-list a:hover,
.rail-list a[aria-current] {
  color: #000;
  transform: translateX(3px);
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 8px 18px;
  max-width: 1160px;
  margin: 8px auto 0;
  padding: 34px 16px 40px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
}

.f-brand strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.f-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-col a:hover {
  color: var(--ink);
}

.f-copy {
  grid-column: 1 / -1;
  margin-top: 10px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--mute);
}

.f-copy small {
  font-size: 16px;
}

/* ---------- 动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .board > div[id] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .js-reveal .board > div[id].in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .board > .hero .hero-ghost {
    will-change: auto;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 12px 8px;
  }

  .board > div[id],
  .rail {
    grid-column: 1;
  }

  .rail {
    grid-row: auto;
    position: static;
  }

  .board > div[id] {
    padding: 20px 18px;
  }

  .board > .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 132px);
    gap: 16px;
    padding: 20px;
  }

  .board > .hero .hero-copy {
    order: -1;
  }

  .board > .hero .hero-figure {
    min-height: 170px;
    max-height: 34vh;
  }

  .hero-desc {
    font-size: 16px;
    margin-bottom: 1.2em;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    padding: 28px 12px 32px;
  }
}

@media (max-width: 640px) {
  .dock-name {
    display: none;
  }

  .dock-cta {
    padding: 0 14px;
  }

  .board > .hero .hero-ghost {
    font-size: clamp(56px, 22vw, 120px);
    bottom: -0.2em;
  }
}

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