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

:root {
  --ink: #0E0F1A;
  --ink-deep: #080910;
  --amber: #E8B15C;
  --bone: #F4F1EA;
  --line: rgba(232, 177, 92, 0.22);
  --hair: rgba(244, 241, 234, 0.1);
  --veil: rgba(244, 241, 234, 0.07);
  --rail-w: 272px;
  --tick-h: 44px;
  --radius: 28px;
  --font-head: "Space Grotesk", "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58vw 58vw at 88% -12%, rgba(232, 177, 92, 0.18), transparent 62%),
    radial-gradient(52vw 52vw at 4% 106%, rgba(232, 177, 92, 0.1), transparent 60%),
    linear-gradient(178deg, #0E0F1A 0%, #0B0C15 52%, #0E0F1A 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(244, 241, 234, 0.11) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--bone); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.35em; }
img { max-width: 100%; height: auto; }

/* 顶部细条 */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tick-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.1rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(10, 11, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.ticker-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 62vw;
}

.ticker-jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.4rem;
  color: var(--bone);
  letter-spacing: 0.14em;
  border-bottom: 1px solid transparent;
}
.ticker-jump:hover { border-bottom-color: var(--amber); }

.frame { padding-top: var(--tick-h); }

/* 左侧竖排导航 */
.rail {
  position: fixed;
  top: var(--tick-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.3rem 1.5rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 15, 26, 0.94), rgba(14, 15, 26, 0.66));
  backdrop-filter: blur(14px);
  overflow-y: auto;
}

.rail-head { display: flex; flex-direction: column; gap: 0.4rem; }

.rail-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: var(--amber);
  opacity: 0.85;
}

.rail-brand {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.rail-brand a { color: var(--bone); }
.rail-brand a:hover { color: var(--amber); }

.rail-nav { counter-reset: rail; }

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

.rail-nav li { margin: 0; }

.rail-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.15rem;
  color: rgba(244, 241, 234, 0.86);
  font-size: 1rem;
  border-bottom: 1px solid var(--hair);
  transition: color 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease;
}

.rail-nav li a::before {
  counter-increment: rail;
  content: counter(rail, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  opacity: 0.62;
}

.rail-nav li a i { font-style: normal; }

.rail-nav li a:hover,
.rail-nav li a:focus-visible {
  color: var(--bone);
  padding-left: 0.5rem;
  border-bottom-color: var(--amber);
}

/* 正文 */
.stage { margin-left: var(--rail-w); }

.chapter-flow {
  display: block;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(1.6rem, 6vw, 4rem) clamp(1.1rem, 4vw, 2.8rem) 4.5rem;
}

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  gap: 0.85rem;
  padding: 2.4rem 0 3rem;
}

.hero-title {
  font-size: clamp(2.05rem, 5.2vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
  max-width: 18ch;
  background: linear-gradient(150deg, var(--bone) 30%, rgba(232, 177, 92, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 36ch;
  color: rgba(244, 241, 234, 0.76);
  font-size: 1.02rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.05rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 177, 92, 0.11);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.hero-art {
  margin: 1.6rem 0 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.hero-art-img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

/* 内容分章 */
.chapter-flow > div {
  position: relative;
  margin: 0 0 clamp(1.7rem, 5vw, 3.2rem);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background:
    linear-gradient(156deg, rgba(244, 241, 234, 0.075), rgba(14, 15, 26, 0.52) 56%),
    rgba(14, 15, 26, 0.32);
  backdrop-filter: blur(13px) saturate(115%);
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(244, 241, 234, 0.08);
  scroll-margin-top: calc(var(--tick-h) + 2.6rem);
}

.chapter-flow > div:nth-of-type(even) { margin-left: clamp(0px, 3vw, 44px); }
.chapter-flow > div:nth-of-type(odd) { margin-right: clamp(0px, 3vw, 44px); }

.chapter-flow > div::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 3px;
  height: 2.1rem;
  border-radius: 3px;
  background: var(--amber);
  opacity: 0.7;
}

.chapter-flow > div h2 {
  font-size: clamp(1.42rem, 3.1vw, 2rem);
  margin-bottom: 0.75em;
}

.chapter-flow > div h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.34rem);
  color: var(--amber);
  margin-top: 1.6em;
}

.chapter-flow > div p,
.chapter-flow > div li { color: rgba(244, 241, 234, 0.86); }

.chapter-flow > div strong { color: var(--bone); }

.chapter-flow > div a {
  border-bottom: 1px solid rgba(232, 177, 92, 0.45);
}

.chapter-flow > div ul,
.chapter-flow > div ol { padding-left: 1.25em; }

.chapter-flow > div li::marker { color: var(--amber); }

.chapter-flow > div blockquote {
  margin: 1.4em 0;
  padding: 0.4em 0 0.4em 1.1em;
  border-left: 2px solid var(--amber);
  color: rgba(244, 241, 234, 0.94);
  font-style: normal;
}

/* 页脚 */
.colophon {
  margin-left: var(--rail-w);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 15, 26, 0.5), #080910);
}

.colophon > .cta,
.colophon > .foot-grid,
.colophon > .foot-base {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.1rem, 4vw, 2.8rem);
  padding-right: clamp(1.1rem, 4vw, 2.8rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: clamp(2rem, 6vw, 3.6rem);
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(232, 177, 92, 0.22), transparent 62%),
    rgba(232, 177, 92, 0.05);
}

.cta-word {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease;
}
.cta-link:hover { background: var(--amber); color: var(--ink); }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-top: clamp(1.8rem, 5vw, 2.8rem);
  padding-bottom: 1.6rem;
}

.foot-card {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: start;
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--hair);
  background: rgba(244, 241, 234, 0.04);
  color: rgba(244, 241, 234, 0.7);
  font-size: 0.94rem;
}

.foot-card strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--bone);
  letter-spacing: 0.01em;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.2rem;
  align-content: start;
}

.foot-links li { margin: 0; }

.foot-links li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: 0.96rem;
  border-bottom: 1px solid var(--hair);
}
.foot-links li a:hover { color: var(--amber); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.1rem;
  padding-bottom: 2.2rem;
  border-top: 1px solid var(--hair);
  color: rgba(244, 241, 234, 0.55);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(244, 241, 234, 0.78);
}
.foot-base a:hover { color: var(--amber); }

/* 滚动揭示 */
.js-on .hero,
.js-on .chapter-flow > div,
.js-on .cta {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.72s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform, opacity;
}

.js-on .is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on .hero,
  .js-on .chapter-flow > div,
  .js-on .cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-art-img { transform: none !important; }
}

@media (max-width: 900px) {
  :root { --tick-h: 40px; }

  .rail {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }

  .rail-head { flex: 0 0 auto; gap: 0.15rem; }
  .rail-eyebrow { font-size: 0.62rem; letter-spacing: 0.3em; }
  .rail-brand { font-size: 0.95rem; }

  .rail-nav { flex: 1 1 0; min-width: 0; overflow-x: auto; }
  .rail-nav ul { display: flex; gap: 0.15rem; }
  .rail-nav li a {
    border-bottom: 0;
    white-space: nowrap;
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
    border-radius: 999px;
  }
  .rail-nav li a:hover,
  .rail-nav li a:focus-visible { padding-left: 0.7rem; background: rgba(232, 177, 92, 0.13); }

  .stage, .colophon { margin-left: 0; }

  .chapter-flow { padding: 1.4rem 1rem 3rem; }

  .hero {
    min-height: 45vh;
    align-items: flex-start;
    text-align: left;
    padding: 1.4rem 0 2.2rem;
  }

  .chapter-flow > div:nth-of-type(even) { margin-left: 0; }
  .chapter-flow > div:nth-of-type(odd) { margin-right: 0; }
  .chapter-flow > div { scroll-margin-top: calc(var(--tick-h) + 4.2rem); }

  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1400px) {
  .chapter-flow { max-width: 1000px; }
}

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