@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

:root {
  --ink: #1f1f1f;
  --ink-soft: #3d3d3d;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --mute: #6d6d6d;
  --hair: #e4e4e4;
  --serif: 'Bodoni Moda', 'Songti SC', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --dock: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.72 var(--sans);
  letter-spacing: .008em;
  padding-bottom: calc(var(--dock) + 22px);
}

img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .005em;
}

/* ===== hero ===== */
.top { display: block; }

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: -40px 0 0 0;
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center top;
  will-change: transform;
  z-index: -2;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, rgba(31,31,31,.10) 0%, rgba(31,31,31,.55) 52%, rgba(31,31,31,.88) 100%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 54px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  text-align: right;
  max-width: 720px;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 72px) calc(var(--dock) + 40px) clamp(20px, 5vw, 72px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .34em;
  opacity: .82;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  line-height: 1.06;
}

.hero-desc {
  margin: 0 0 0 auto;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #e8e8e8;
}

/* ===== 底部固定条导航 ===== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  padding: 12px clamp(12px, 3vw, 34px) calc(12px + env(safe-area-inset-bottom));
}

.dock-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
  margin: 0;
}

.dock-right { justify-content: flex-end; }

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 11px;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s ease, background-color .22s ease, opacity .22s ease;
}

.dock-side a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border: 1px solid currentColor;
  opacity: .7;
}

.dock a:hover { color: #c9c9c9; }

.dock .nav-cta {
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  padding: 10px 18px;
  margin-left: 6px;
}

.dock .nav-cta:hover { background: #dedede; color: var(--ink); }
.dock .nav-cta::before { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .2em;
  white-space: nowrap;
}

.mark { display: block; width: 26px; height: 26px; }

/* ===== 正文网格 ===== */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: clamp(16px, 2.4vw, 36px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px) clamp(16px, 4vw, 40px) 0;
}

.sheet { min-width: 0; }

.prose > article {
  background: var(--soft);
  padding: clamp(20px, 3vw, 42px);
  margin: 0 0 14px;
  scroll-margin-top: 20px;
}

.prose > article:nth-child(even) { background: var(--paper); }

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.9vw, 2.1rem);
  line-height: 1.18;
}

.prose h3 {
  margin: 26px 0 12px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
}

.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

.prose li { margin: 0 0 .5em; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prose a:hover { color: var(--mute); }

.prose img, .prose figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.2em;
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.08em;
}

.prose strong { font-weight: 600; }

/* ===== 右侧边栏 ===== */
.rail {
  align-self: start;
  position: sticky;
  top: 26px;
  background: var(--soft);
  padding: 24px 22px 20px;
}

.kicker {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--mute);
}

.rail-title {
  margin: 8px 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.rail-list {
  display: grid;
  margin: 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .2s ease, color .2s ease;
}

.rail-list a::before {
  content: '';
  width: 6px;
  height: 1px;
  background: var(--ink);
  margin-right: 10px;
  transition: width .2s ease;
}

.rail-list a:hover { padding-left: 4px; color: var(--mute); }
.rail-list a:hover::before { width: 12px; }

/* ===== 页脚 ===== */
.base {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px clamp(20px, 4vw, 56px);
  margin-top: clamp(34px, 6vw, 72px);
  background: var(--ink);
  color: #fff;
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 44px) 22px;
}

.base article { min-width: 0; }

.base-brand p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6.6vw, 4.4rem);
  line-height: .96;
  letter-spacing: .01em;
}

.base-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
}

.base-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: #fff;
  font-size: .94rem;
  opacity: .85;
  text-decoration: none;
}

.base-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.base-meta p {
  margin: 0 0 8px;
  font-size: .88rem;
  line-height: 1.6;
  opacity: .62;
}

.base-bottom {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .84rem;
  letter-spacing: .08em;
  opacity: .6;
  padding-top: 16px;
}

/* ===== 出现动效 ===== */
.js [data-reveal],
.js .prose > article,
.js .base > article {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .58s ease, transform .58s ease;
}

.js .is-in {
  opacity: 1;
  transform: none;
}

/* ===== 断点 ===== */
@media (max-width: 900px) {
  :root { --dock: 152px; }

  .dock {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .brand {
    order: -1;
    justify-content: center;
    min-height: 38px;
    padding: 4px 8px;
    font-size: 1rem;
    letter-spacing: .18em;
  }

  .dock-side {
    justify-content: center;
    gap: 0 4px;
  }

  .dock a { padding: 9px 9px; font-size: .88rem; }
  .dock .nav-cta { padding: 9px 14px; margin-left: 2px; }

  .hero { min-height: 62vh; }

  .hero-copy {
    text-align: left;
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-desc { margin: 0; max-width: none; }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.6rem); }

  .stage {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .rail { position: static; order: 2; }

  .base { grid-template-columns: 1fr; gap: 22px; }
  .base-brand p { font-size: clamp(1.9rem, 11vw, 2.8rem); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .prose > article { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js .prose > article,
  .js .base > article,
  .js .is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-img { transform: scale(1.02); }
}

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