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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.14);
  --faint: rgba(0, 0, 0, 0.06);
  --muted: rgba(0, 0, 0, 0.56);
  --u: 8px;
  --r: 18px;
  --sans: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: 'Cormorant Infant', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --script: 'Great Vibes', 'Songti SC', Georgia, serif;
  --wrap: 1360px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

a { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 页头 ---------- */
.site-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 1.5) calc(var(--u) * 3);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand .mark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 6ch;
}

.main-nav p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--u) * 0.25) calc(var(--u) * 0.35);
  margin: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.cta:hover { background: #1a1a1a; }

/* ---------- 二级锚点条 ---------- */
.anchorbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
}

.anchor-track {
  display: flex;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 calc(var(--u) * 1.5);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-track::-webkit-scrollbar { display: none; }

.anchor-track a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.anchor-track a i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.anchor-track a:hover,
.anchor-track a.is-on {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--u);
  align-items: end;
  min-height: 70vh;
  padding-top: calc(var(--u) * 7);
  padding-bottom: calc(var(--u) * 9);
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  border-bottom: 1px solid var(--ink);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5rem));
}

.hero-copy {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: center;
  max-width: 34ch;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

.hero-figure {
  position: relative;
  grid-column: 7 / 13;
  grid-row: 1;
  align-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: #eeeeee;
}

.hero-figure .shot {
  display: block;
  width: 100%;
  height: min(52vh, 520px);
  object-fit: cover;
  will-change: transform;
}

.hero-figure .blank {
  background: repeating-linear-gradient(45deg, #ffffff 0 10px, #ececec 10px 20px);
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0.4rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* ---------- 主体 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: calc(var(--u) * 5);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--u) * 7) calc(var(--u) * 3) calc(var(--u) * 4);
}

.side {
  position: sticky;
  top: 4.75rem;
  border-top: 2px solid var(--ink);
  padding-top: calc(var(--u) * 1.5);
}

.side h2 {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.side .subtitle {
  margin: 0 0 calc(var(--u) * 2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid var(--line);
}

.side-list a span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.side-list a:hover,
.side-list a.is-on {
  border-left-color: var(--ink);
  background: var(--faint);
}

.prose {
  min-width: 0;
  max-width: 72ch;
}

.prose section {
  margin: 0 0 calc(var(--u) * 7);
  padding: calc(var(--u) * 3.5);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 12px 30px -26px rgba(0, 0, 0, 0.5);
  scroll-margin-top: 4.75rem;
}

.prose section:last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  scroll-margin-top: 4.75rem;
}

.prose h3 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.prose h4 {
  margin: 1.5rem 0 0.4rem;
  font-size: 17px;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.prose a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose strong { font-weight: 700; }

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li { margin: 0.35rem 0; line-height: 1.75; }

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

.prose figure { margin: 1.6rem 0; }

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 16px;
  color: var(--muted);
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 1rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
  line-height: 1.6;
}

.prose th { background: var(--faint); }

.prose code,
.prose pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 15px;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--r);
  background: #f4f4f4;
}

.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 700; margin-top: 0.6rem; }
.prose dd { margin: 0.2rem 0 0 0; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: calc(var(--u) * 9);
  background: var(--ink);
  color: var(--paper);
}

.foot-top,
.foot-cols,
.foot-base {
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: calc(var(--u) * 3);
  align-items: center;
  padding: calc(var(--u) * 5) calc(var(--u) * 3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.foot-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
}

.sub { display: flex; gap: 0.5rem; }

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r);
}

.sub input::placeholder { color: rgba(255, 255, 255, 0.6); }

.sub button {
  min-height: 46px;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: var(--r);
  cursor: pointer;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 5) calc(var(--u) * 3);
}

.foot-cols dl { margin: 0; }

.foot-cols dt {
  margin-bottom: 0.7rem;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.62);
}

.foot-cols dd {
  margin: 0 0 0.3rem;
  font-size: 16px;
  line-height: 1.6;
}

.foot-cols dd.tiny { color: rgba(255, 255, 255, 0.6); }

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-cols a:hover { border-bottom-color: var(--paper); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--u) * 3);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
}

.foot-base p { margin: 0; }

.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
}

.foot-links a:hover { text-decoration: underline; }

/* ---------- 窄屏 ---------- */
@media (max-width: 1100px) {
  .main-nav p { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .site-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: calc(var(--u) * 1.25) calc(var(--u) * 2);
  }

  .brand { justify-content: flex-start; }

  .cta { justify-self: end; min-height: 42px; padding: 0.4rem 1rem; }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .main-nav p {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 62vh;
    padding-top: calc(var(--u) * 5);
    padding-bottom: calc(var(--u) * 8);
    padding-inline: calc(var(--u) * 2.5);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2rem));
  }

  .hero-copy { grid-column: 1; grid-row: 1; max-width: none; }
  .hero-figure { grid-column: 1; grid-row: 2; margin-top: calc(var(--u) * 3); }
  .hero-figure .shot { height: 38vh; min-height: 220px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--u) * 4);
    padding: calc(var(--u) * 5) calc(var(--u) * 2.5) 0;
  }

  .side {
    position: static;
    order: -1;
    padding-top: calc(var(--u) * 1.25);
  }

  .side .subtitle { margin-bottom: calc(var(--u) * 1.5); }

  .side-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .side-list::-webkit-scrollbar { display: none; }

  .side-list a {
    border-left: 0;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
    min-height: 44px;
  }

  .side-list a:hover,
  .side-list a.is-on { border-bottom-color: var(--ink); }

  .prose section {
    padding: calc(var(--u) * 2.25);
    margin-bottom: calc(var(--u) * 5);
  }

  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: calc(var(--u) * 3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-figure .shot { transform: none !important; }
}

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