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

:root {
  --ink: #26171a;
  --ink-2: #4a3136;
  --rose: #eb879c;
  --pink: #ffb6c1;
  --soft: #ffd7df;
  --deep: #b24a64;
  --bg: #fdf3f5;
  --tint: #f9e3e8;
  --tint-2: #f3cfd7;
  --sh-a: 0 2px 4px rgba(38, 23, 26, 0.08);
  --sh-b: 0 10px 26px rgba(38, 23, 26, 0.10);
  --font: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  padding-bottom: 134px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.24; margin: 0; }

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column-reverse;
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  background: rgba(38, 23, 26, 0.96);
  box-shadow: 0 -2px 4px rgba(38, 23, 26, 0.20), 0 -14px 34px rgba(38, 23, 26, 0.14);
}

.dock nav { min-width: 0; }

.nav-line {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-line::-webkit-scrollbar { display: none; }

.nav-line a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 12px 11px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--soft);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 220ms ease, color 220ms ease;
}

.nav-line a .ico {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  transition: transform 220ms ease, background-color 220ms ease;
}

.nav-line a:hover,
.nav-line a:focus-visible {
  color: #fff;
  background: rgba(255, 182, 193, 0.16);
}
.nav-line a:hover .ico { transform: scale(1.7); background: var(--pink); }

.dock-brand {
  align-self: center;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: #fff;
  text-decoration: none;
  transition: color 220ms ease;
}
.dock-brand:hover { color: var(--pink); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: center;
  padding: 52px 20px 44px;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--tint);
  background-image: radial-gradient(rgba(38, 23, 26, 0.18) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: -10px -10px;
}

.hero-shot {
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--tint-2);
  box-shadow: var(--sh-a), var(--sh-b);
  animation: rise 300ms ease both;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy {
  text-align: right;
  animation: rise 300ms 80ms ease both;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--deep);
}

.hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 6.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.lede {
  max-width: 40ch;
  margin: 0 0 0 auto;
  color: var(--ink-2);
  font-size: 17px;
}

/* ---------- 正文与侧栏 ---------- */
.paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
}

.paper-main {
  min-width: 0;
  padding: 44px 20px 20px;
}

.paper-main article {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 110px;
  padding: 30px 0 10px;
  border-top: 1px solid var(--tint-2);
}
.paper-main article:first-child { border-top: 0; padding-top: 0; }

.paper-main h2 {
  margin: 34px 0 12px;
  font-size: clamp(23px, 4.4vw, 32px);
  letter-spacing: -0.005em;
}
.paper-main h2:first-child { margin-top: 0; }
.paper-main h3 { margin: 26px 0 8px; font-size: 21px; }

.paper-main small {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.20em;
  color: var(--deep);
  margin-bottom: 4px;
}

.paper-main p { margin: 0 0 1.1em; }
.paper-main ul, .paper-main ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.paper-main li { margin-bottom: 0.4em; }
.paper-main strong { color: var(--ink); font-weight: 600; }

.paper-main figure {
  margin: 26px 0;
  padding: 0;
  background: var(--tint);
  box-shadow: var(--sh-a), var(--sh-b);
}
.paper-main figcaption {
  padding: 10px 14px;
  font-size: 16px;
  color: var(--ink-2);
}

.paper-main blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  background: var(--tint);
  color: var(--ink-2);
  box-shadow: var(--sh-a);
}
.paper-main blockquote p:last-child { margin-bottom: 0; }

.paper-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
}
.paper-main th, .paper-main td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--tint-2);
}

/* 侧栏 */
.rail {
  order: 2;
  margin: 0 20px 40px;
  padding: 22px 20px 24px;
  background: var(--tint);
  box-shadow: var(--sh-a);
  animation: rise 300ms 120ms ease both;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--deep);
}

.rail-h {
  margin: 4px 0 12px;
  font-size: 21px;
  letter-spacing: 0.06em;
}

.rail-list { margin: 0 0 18px; }

.rail-list a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--tint-2);
  transition: color 220ms ease, transform 220ms ease;
}
.rail-list a:hover {
  color: var(--deep);
  transform: translateY(-1px);
}

.to-top {
  display: block;
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--soft);
  background: var(--ink);
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease;
}
.to-top:hover { background: var(--deep); color: #fff; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 20px;
  padding: 46px 20px 34px;
  color: var(--soft);
  background: var(--ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.foot-brand {
  margin: 0;
  font-size: clamp(38px, 10vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
}

.foot-addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
}
.foot-addr span { display: block; }
.foot-addr span:first-child { color: #fff; font-weight: 500; }

.foot-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  color: var(--soft);
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}
.foot-nav a:hover { color: #fff; transform: translateY(-1px); }

.foot-copy {
  margin: 30px 0 0;
  padding-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--pink);
  border-top: 1px solid rgba(255, 182, 193, 0.28);
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.paper-main > * { animation: rise 280ms ease both; }
.paper-main > *:nth-child(2) { animation-delay: 40ms; }
.paper-main > *:nth-child(3) { animation-delay: 80ms; }
.paper-main > *:nth-child(4) { animation-delay: 120ms; }
.paper-main > *:nth-child(5) { animation-delay: 160ms; }
.paper-main > *:nth-child(6) { animation-delay: 200ms; }
.paper-main > *:nth-child(7) { animation-delay: 240ms; }
.paper-main > *:nth-child(n + 8) { animation-delay: 280ms; }

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 104px; }
  .dock {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
  }
  .dock nav { display: contents; }
  .nav-line { display: contents; }
  .nav-line a { order: 1; padding: 12px 13px; }
  .dock .nav-line a:nth-child(-n + 3) { order: -1; }
  .dock-brand { order: 0; margin: 0 22px; font-size: 17px; }

  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
  .foot { padding: 56px 40px 30px; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    padding: 64px 48px;
    align-items: center;
  }
  .hero-shot { aspect-ratio: 4 / 5; }
  .paper { grid-template-columns: minmax(0, 1fr) 274px; gap: 44px; padding: 0 40px 10px; }
  .paper-main { padding: 56px 0 40px; }
  .rail { position: sticky; top: 28px; margin: 56px 0 0; }
  .foot { margin-top: 40px; }
}

@media (min-width: 1180px) {
  .paper {
    grid-template-columns: minmax(0, 1fr) 300px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 10px;
  }
  .hero { padding: 72px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

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