:root {
  --ink: #14142B;
  --ink-2: #1C1C38;
  --ink-3: #262649;
  --rose: #F45B69;
  --sun: #F7D46A;
  --paper: #F3F1F8;
  --mute: #A6A6C2;
  --line: #37375F;
  --r: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Manrope', system-ui, -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: 'Syne', 'Manrope', system-ui, 'Noto Sans SC', sans-serif;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
img, svg, video, canvas, iframe { max-width: 100%; }
p { margin: 0 0 14px; overflow-wrap: break-word; }

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 95;
  max-width: 100%;
  background: var(--ink);
  border-bottom: 2px solid var(--ink-3);
}

.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 18px;
  border-bottom: 2px solid var(--ink-3);
}

.ticker-home {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--sun);
}

.ticker-home:hover { color: var(--rose); }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  background: transparent;
  color: var(--sun);
  border: 2px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.burger:hover { border-color: var(--sun); }

.burger-bars { display: flex; flex-direction: column; gap: 4px; }
.burger-bars i { display: block; width: 18px; height: 2px; background: currentColor; }

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.mini a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
  color: var(--mute);
  border-radius: 4px;
  transition: color 0.16s ease, background 0.16s ease;
}

.mini a:hover { color: var(--ink); background: var(--sun); }

.brand {
  margin: 0;
  max-width: 100%;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.brand a { color: var(--paper); }
.brand a:hover { color: var(--rose); }

.chips {
  max-width: 100%;
  background: var(--ink-2);
  border-top: 2px solid var(--ink-3);
}

.chips ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 6px 14px;
  list-style: none;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.chips ul::-webkit-scrollbar { display: none; }

.chips a {
  display: block;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 14px;
  color: var(--mute);
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.16s ease, background 0.16s ease;
}

.chips a:hover { color: var(--paper); background: var(--ink-3); }
.chips a.is-on { color: var(--ink); background: var(--sun); }

/* ---------- 全屏菜单 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(150px, 22vh, 210px) 24px 30px;
  background: var(--rose);
  color: var(--ink);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-102%);
  transition: transform 0.28s ease;
}

body.menu-open .veil { transform: none; }
body.menu-open { overflow: hidden; }

.veil-nav { min-width: 0; }

.veil-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
}

.veil li { border-bottom: 2px solid rgba(20, 20, 43, 0.22); }

.veil a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  min-height: 48px;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: clamp(18px, 4.2vw, 34px);
  font-weight: 700;
  color: var(--ink);
  transition: padding-left 0.18s ease, background 0.18s ease;
}

.veil a:hover { padding-left: 12px; background: rgba(247, 212, 106, 0.5); }

.veil-num {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(20, 20, 43, 0.6);
}

.veil-txt { min-width: 0; overflow-wrap: break-word; }

.veil-mark {
  margin: 26px auto 0;
  max-width: 720px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(20, 20, 43, 0.72);
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 70vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 32px clamp(48px, 8vh, 76px);
}

.hero-txt { text-align: center; min-width: 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--rose);
  overflow-wrap: break-word;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.lead {
  margin: 18px auto 0;
  max-width: 42ch;
  font-size: 17px;
  color: var(--mute);
  overflow-wrap: break-word;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--sun);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover { background: var(--rose); border-color: var(--rose); }

.btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn.ghost:hover { background: transparent; color: var(--sun); border-color: var(--sun); }

.hero-art {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  overflow: hidden;
  border-radius: var(--r);
  border-bottom: 6px solid var(--sun);
  background: var(--ink-3);
  will-change: transform;
}

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

.art-geo {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, var(--rose) 0 26px, transparent 26px 52px),
    var(--ink-3);
}

.hero-art::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sun);
  mix-blend-mode: normal;
}

/* ---------- 正文区 ---------- */
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.rail {
  position: sticky;
  top: 196px;
  min-width: 0;
  padding: 20px 18px;
  background: var(--ink-2);
  border-top: 4px solid var(--rose);
  border-radius: 4px;
}

.rail-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--sun);
}

.rail-list { list-style: none; margin: 10px 0 0; padding: 0; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { color: var(--sun); padding-left: 6px; }

.prose {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prose div {
  margin: 0 0 26px;
  max-width: 100%;
  padding: 34px 34px 38px;
  background: var(--ink-2);
  border-radius: var(--r);
  border-bottom: 6px solid var(--ink-3);
  scroll-margin-top: 190px;
}

.prose div:nth-child(3n + 1) { border-bottom-color: var(--rose); }
.prose div:nth-child(3n + 2) { border-bottom-color: var(--sun); }

.prose h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0 0 16px;
}

.prose h2 span {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 5px;
  border-bottom: 4px solid var(--sun);
  overflow-wrap: break-word;
}

.prose h3 {
  font-size: 19px;
  margin: 26px 0 10px;
  color: var(--sun);
}

.prose h3 span { display: inline-block; max-width: 100%; }

.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; overflow-wrap: break-word; }

.prose a {
  color: var(--sun);
  border-bottom: 1px solid rgba(247, 212, 106, 0.55);
  overflow-wrap: break-word;
}

.prose a:hover { color: var(--rose); border-bottom-color: var(--rose); }

.prose strong { color: var(--sun); }

.prose figure { margin: 0 0 18px; max-width: 100%; }

.prose img { border-radius: 4px; height: auto; max-width: 100%; }

.prose blockquote {
  margin: 0 0 18px;
  max-width: 100%;
  padding: 14px 18px;
  background: var(--ink-3);
  border-left: 5px solid var(--rose);
  border-radius: 4px;
  color: var(--paper);
  overflow-wrap: break-word;
}

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

.prose code {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  background: var(--ink-3);
  padding: 2px 6px;
  border-radius: 3px;
  overflow-wrap: break-word;
}

.prose pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 12px 14px;
  background: var(--ink-3);
  border-radius: 4px;
}

.prose pre code { background: none; padding: 0; }

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th, .prose td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
  overflow-wrap: break-word;
}

.prose hr {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 26px 0;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 100%;
  background: var(--ink-3);
  border-top: 3px solid var(--rose);
  padding: 0 32px 26px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 0 40px;
  border-bottom: 2px solid var(--line);
}

.cta-h {
  font-size: clamp(26px, 4.6vw, 50px);
  color: var(--sun);
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 0;
}

.fdl { margin: 0; min-width: 0; }

.fdl dt {
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--mute);
  margin-bottom: 8px;
}

.fdl dd { margin: 0; }

.fdl dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: var(--paper);
  overflow-wrap: break-word;
}

.fdl dd a:hover { color: var(--sun); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  font-size: 14px;
  color: var(--mute);
}

.copy { margin: 0; overflow-wrap: break-word; }

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.foot-links a:hover { color: var(--sun); }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .bar { grid-template-columns: minmax(0, 1fr); padding: 10px 18px; }
  .mini { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 30px 20px 44px; }
  .hero-art { order: 2; max-height: none; aspect-ratio: 16 / 11; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 20px 64px; }
  .rail { position: static; border-top-width: 4px; padding: 14px 16px; }
  .rail-list { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list li { flex: 0 0 auto; }
  .rail-list a { border-bottom: 0; border: 2px solid var(--line); border-radius: 4px; padding: 8px 12px; white-space: nowrap; }
  .rail-list a:hover { padding-left: 12px; border-color: var(--sun); }
  .prose div { padding: 26px 20px 30px; scroll-margin-top: 160px; }
  .foot { padding: 0 20px 22px; }
  .cta { padding: 38px 0 30px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .ticker { padding: 6px 14px; }
  .bar { padding: 10px 14px; }
  .brand { white-space: normal; }
  .chips ul { padding: 6px 12px; }
  .hero { padding: 26px 16px 40px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero-acts { gap: 10px; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .shell { padding: 0 16px 56px; }
  .prose div { padding: 22px 16px 26px; }
  .prose h2 { font-size: 22px; }
  .prose ul, .prose ol { padding-left: 18px; }
  .prose blockquote { padding: 12px 14px; }
  .foot { padding: 0 16px 20px; }
  .cta { padding: 32px 0 26px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 0; }
  .fdl dd a { min-height: 44px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .veil { padding-left: 16px; padding-right: 16px; padding-top: clamp(130px, 20vh, 190px); }
  .veil a { font-size: 20px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

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