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

:root {
  --rose: #eb879c;
  --rose-soft: #ffb6c1;
  --rose-ink: #bd5468;
  --ink: #26171a;
  --ink-mid: #5f4a50;
  --paper: #fff7f8;
  --card: #fffdfd;
  --line: #ecc9d2;
  --line-soft: #f6e2e7;
  --wash: #ffeef1;
  --r: 4px;
  --tap: 44px;
  --face: "Fredoka", "Nu ri to", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 168px;
  background-image: radial-gradient(circle at 100% 0%, #ffe9ee 0, rgba(255, 233, 238, 0) 46%);
  background-repeat: no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--face);
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  letter-spacing: .01em;
}
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--rose-ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 8px;
  flex: 0 0 auto;
  opacity: .65;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-block;
  margin-right: 9px;
  flex: 0 0 auto;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 22px 132px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(158deg, #26171a 0%, #4d2b34 52%, #8d5563 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

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

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(92deg, rgba(38, 23, 26, .90) 0%, rgba(38, 23, 26, .56) 52%, rgba(38, 23, 26, .12) 100%),
    linear-gradient(0deg, rgba(38, 23, 26, .82) 0%, rgba(38, 23, 26, 0) 58%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  text-align: left;
  padding-left: 18px;
  border-left: 3px solid var(--rose-soft);
}

.hero-title {
  font-size: clamp(2rem, 7.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: .45em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 44ch;
  font-size: 1rem;
  color: #f7e3e8;
  margin-bottom: 1.4em;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  font-family: var(--face);
  font-size: .98rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 182, 193, .85);
  border-radius: var(--r);
  transition: background-color .24s ease, color .24s ease;
}

.hero-go:hover,
.hero-go:focus-visible {
  background: var(--rose-soft);
  color: var(--ink);
}

/* ---------- 主体骨架 ---------- */
.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

.stage {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 44px 0 8px;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 16px 16px 12px;
}

.side-title {
  font-size: 1.06rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 8px;
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink-mid);
  border-radius: var(--r);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}

.side-list li:last-child a { border-bottom: 0; }

.side-list a:hover,
.side-list a:focus-visible {
  background: var(--wash);
  color: var(--rose-ink);
  padding-left: 14px;
}

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--rose-ink);
  margin-bottom: 6px;
}

/* ---------- 正文列 ---------- */
.column { min-width: 0; }

.column div[id] { scroll-margin-top: 26px; }

.column > div {
  padding: 30px 0;
  border-top: 1px solid var(--line-soft);
}

.column > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.column small {
  display: block;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--rose-ink);
  margin-bottom: 7px;
}

.column h2 {
  font-size: clamp(1.42rem, 3.6vw, 1.86rem);
  margin-bottom: .6em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink);
  display: inline-block;
}

.column h3 {
  font-size: 1.16rem;
  margin: 1.5em 0 .5em;
  color: var(--rose-ink);
}

.column h2 + h3 { margin-top: .8em; }

.column a {
  color: var(--rose-ink);
  text-decoration-color: var(--rose-soft);
  text-underline-offset: 3px;
}

.column a:hover { text-decoration-color: var(--rose-ink); }

.column ul li,
.column ol li { margin-bottom: .4em; }

.column figure {
  margin: 1.3em 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
}

.column figure img { border-radius: 0; }

.column figcaption {
  font-size: .88rem;
  color: var(--ink-mid);
  padding: 9px 13px;
  border-top: 1px solid var(--line-soft);
}

.column blockquote {
  margin: 1.3em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--rose);
  background: var(--wash);
  border-radius: 0 var(--r) var(--r) 0;
  color: #4a3034;
}

.column blockquote p:last-child { margin-bottom: 0; }

.column table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin: 1.2em 0;
}

.column th,
.column td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

.column th { background: var(--wash); font-family: var(--face); }

.column code {
  font-size: .93em;
  background: var(--wash);
  border-radius: var(--r);
  padding: 1px 5px;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 247, 248, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.dock-list {
  list-style: none;
  margin: 0 auto;
  max-width: 1160px;
  padding: 7px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.dock-list dt,
.dock-list dd { margin: 0; }

.dock-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  font-size: .93rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--r);
  transition: background-color .22s ease, color .22s ease;
}

.dock-list a:hover,
.dock-list a:focus-visible,
.dock-list a[aria-current] {
  background: var(--wash);
  color: var(--rose-ink);
}

.dock-brand a {
  font-family: var(--face);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--rose-ink);
  letter-spacing: .03em;
  padding: 0 14px;
  background: linear-gradient(180deg, #fff 0%, var(--wash) 100%);
  border: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: #fffdfe;
}

.cta {
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 22px 40px;
  background-image: radial-gradient(circle at 8% 10%, var(--wash) 0, rgba(255, 238, 241, 0) 52%);
  background-repeat: no-repeat;
}

.cta-title {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  margin-bottom: .35em;
}

.cta-note {
  color: var(--ink-mid);
  font-size: .98rem;
  margin-bottom: 1.25em;
}

.cta-go {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--face);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--rose-soft);
  border: 1px solid var(--rose);
  border-radius: var(--r);
  transition: background-color .24s ease, transform .24s ease;
}

.cta-go:hover,
.cta-go:focus-visible {
  background: var(--rose);
  color: #fff;
}

.foot-meta {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 22px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: .9rem;
  color: var(--ink-mid);
}

.copy { margin: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  text-decoration: none;
  border-radius: var(--r);
  color: var(--ink-mid);
}

.foot-links a:hover,
.foot-links a:focus-visible {
  background: var(--wash);
  color: var(--rose-ink);
}

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .26s ease, transform .26s ease;
}

.js .reveal.on {
  opacity: 1;
  transform: none;
}

/* ---------- 自适应 ---------- */
@media (max-width: 860px) {
  body { padding-bottom: 190px; }

  .stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 30px;
  }

  .side {
    position: static;
    padding: 12px 14px 6px;
  }

  .side-title {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 6px;
  }

  .side-list a { border-bottom: 0; }

  .dock-brand {
    order: -1;
    flex: 1 0 100%;
    text-align: center;
  }

  .dock-brand a {
    width: 100%;
    justify-content: center;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 0;
  }

  .dock-list { padding: 5px 8px 7px; gap: 0; }

  .dock-list a {
    padding: 0 9px;
    font-size: .86rem;
  }

  .dock .dot { display: none; }

  .hero { padding-bottom: 210px; }

  .hero-copy { padding-left: 14px; }

  .cta { padding: 36px 18px 30px; }

  .page, .foot-meta { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 400px) {
  body { font-size: 16.5px; }
  .dock-list a { padding: 0 7px; font-size: .82rem; }
  .hero { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

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