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

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --line: #e8e8e8;
  --mute: #6a6a6a;
  --r: 18px;
  --sans: 'IBM Plex Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

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

body {
  margin: 0;
  padding-bottom: 112px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--mist);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -0.02em; }

/* ---- 底部固定条 ---- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.05);
}

.dock-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 152px;
}

.dock-side { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; }
.dock-left { justify-content: flex-start; }
.dock-right { justify-content: flex-end; }

.dock-side a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}
.dock-side a:hover { background: var(--mist); }
.dock-side a[aria-current] { background: var(--ink); color: #fff; }

.dock-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.dock-search {
  position: absolute;
  right: max(14px, 2vw);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}
.dock-search input {
  width: 134px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.dock-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
.dock-search button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
}

/* ---- 首屏 ---- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 90px clamp(18px, 5vw, 72px) calc(150px + 3vh);
  background: var(--paper);
  border-radius: 0 0 50% 50% / 0 0 96px 96px;
}

.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-on { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5) 46%, rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 31, 31, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 72%);
  mask-image: linear-gradient(160deg, #000, transparent 72%);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 2; max-width: min(680px, 100%); text-align: right; }
.hero-copy h1 { font-size: clamp(2.1rem, 6.5vw, 4.3rem); font-weight: 700; letter-spacing: -0.035em; }
.hero-copy p { max-width: 42ch; margin: 16px 0 0 auto; font-size: 17px; color: #383838; }

/* ---- 主体网格 ---- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.tile-figure {
  position: relative;
  grid-column: 1;
  margin: 0;
  min-height: 136px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.tile-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 31, 31, 0.13) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.75;
}
.tile-figure img { position: relative; width: 100%; max-height: 240px; object-fit: cover; }

.stage-body { grid-column: 1; }

.stage-body > div {
  margin: 0 0 16px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 24px;
  transition: box-shadow 0.3s ease;
}
.stage-body > div:last-child { margin-bottom: 0; }
.stage-body > div.flash { box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.28); }

.stage-body h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 700; }
.stage-body h3 { margin-top: 26px; font-size: 1.16rem; font-weight: 600; }
.stage-body hr { width: 56px; height: 2px; margin: 14px 0 20px; border: 0; background: var(--ink); }
.stage-body p { margin: 0 0 14px; }
.stage-body ul, .stage-body ol { margin: 0 0 14px; padding-left: 22px; }
.stage-body li { margin-bottom: 6px; }
.stage-body li::marker { color: #9a9a9a; }
.stage-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.stage-body a:hover { background: var(--mist); }
.stage-body strong { font-weight: 600; }
.stage-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: var(--mist);
  border-left: 3px solid var(--ink);
  border-radius: 0 12px 12px 0;
}
.stage-body figure { margin: 16px 0; }
.stage-body img { border-radius: 12px; margin: 14px 0; }

/* ---- 右侧栏 ---- */
.rail {
  position: sticky;
  top: 24px;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.rail h2 { font-family: var(--mono); font-size: 15px; letter-spacing: 0.16em; }
.rail hr { width: 40px; height: 2px; margin: 12px 0 14px; border: 0; background: var(--ink); }
.rail ul { margin: 0; padding: 0; list-style: none; }
.rail li { margin-bottom: 2px; }
.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 16px;
  transition: background 0.2s ease;
}
.rail a:hover { background: var(--mist); }

/* ---- 页脚 ---- */
.foot {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 8px clamp(16px, 3vw, 32px) 44px;
  text-align: center;
}
.foot p { margin: 0; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
}
.foot a:hover { transform: translateY(-2px); }
.foot small { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; color: var(--mute); }

/* ---- 进场动画 ---- */
.reveal-ready .stage-body > div,
.reveal-ready .rail,
.reveal-ready .tile-figure {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}
.reveal-ready .in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .stage-body > div,
  .reveal-ready .rail,
  .reveal-ready .tile-figure { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
}

/* ---- 断点 ---- */
@media (max-width: 980px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage-body, .tile-figure { grid-column: 1; }
  .rail { grid-column: 1; grid-row: auto; position: static; }
}

@media (max-width: 900px) {
  body { padding-bottom: 162px; }
  .dock-search { display: none; }
  .dock-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "left right";
    gap: 2px 8px;
    min-height: 0;
    padding: 6px 12px 10px;
  }
  .dock-brand { grid-area: brand; justify-self: center; padding: 8px; font-size: 16px; }
  .dock-left { grid-area: left; justify-self: start; }
  .dock-right { grid-area: right; justify-self: end; }
  .dock-side { gap: 0; }
  .dock-side a { min-height: 44px; padding: 9px 9px; font-size: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 68px 18px 200px; border-radius: 0 0 50% 50% / 0 0 64px 64px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .foot { padding-bottom: 36px; }
}

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