/* =========================================================
   金马城CN · 共享样式表 /assets/site.css
   01 重置  02 令牌  03 基础排版  04 跳转链接
   05 时间条  06 左侧框架导航  07 右下工具组  08 页脚
   09 通用组件  10 图片容器  11 工具类  12 动效  13 响应式
   ========================================================= */

/* ---- 01 重置 ---- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

img,
picture,
svg { max-width: 100%; display: block; }

button { font: inherit; color: inherit; background: none; border: 0; }

ul,
ol { list-style: none; }

/* ---- 02 令牌 ---- */
:root {
  --ink: #111214;
  --ink-2: #1A1C20;
  --ink-3: #23262B;
  --gold: #D4A017;
  --gold-hi: #F5D76E;
  --gold-deep: #8A6610;
  --cream: #F2EDE4;
  --steel: #9AA0A6;
  --cinnabar: #C0392B;
  --jade: #2E8B7A;
  --indigo: #2A1E3F;
  --teal: #10333A;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-line-strong: rgba(255, 255, 255, 0.26);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "SimSun", serif;
  --font-body: Inter, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-1: clamp(2.5rem, 6.4vw, 4.7rem);
  --fs-2: clamp(1.85rem, 4vw, 2.85rem);
  --fs-3: clamp(1.3rem, 2.1vw, 1.7rem);
  --fs-4: clamp(1.05rem, 1.35vw, 1.2rem);
  --fs-5: 1rem;
  --fs-6: 0.76rem;

  --ticker-h: 44px;
  --railbar-h: 56px;
  --rail-w: 268px;
  --wrap-max: 1180px;

  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 0.72, 0.28, 1);
  --shadow-lift: 0 20px 46px -24px rgba(0, 0, 0, 0.9);
}

/* ---- 03 基础排版 ---- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 118% 0%, rgba(212, 160, 23, 0.09), transparent 58%),
    radial-gradient(90% 60% at -10% 100%, rgba(46, 139, 122, 0.1), transparent 62%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--fs-5);
  line-height: 1.85;
  padding-top: var(--ticker-h);
  padding-left: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(212, 160, 23, 0.4); color: #fff; }

/* ---- 04 跳转链接 ---- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(-130%);
  background: linear-gradient(120deg, var(--gold-hi), var(--gold));
  color: #1A1400;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: transform 0.22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---- 05 时间条 ---- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--ticker-h);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 clamp(0.7rem, 2vw, 1.4rem);
  font-size: 0.8rem;
  color: var(--steel);
  background: linear-gradient(90deg, #0B0C0E 0%, #17130B 48%, #0B0C0E 100%);
  border-bottom: 1px solid rgba(212, 160, 23, 0.34);
  overflow: hidden;
}

.ticker__badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 999px;
  padding: 0.14rem 0.62rem;
  white-space: nowrap;
}

.ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerRun 56s linear infinite;
  will-change: transform;
}

.ticker__item {
  flex: 0 0 auto;
  padding-right: 3.4rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ticker__item b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-hi);
  margin-right: 0.55rem;
}

.ticker__more {
  flex: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(245, 215, 110, 0.42);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ticker__more:hover {
  color: #fff;
  border-color: #fff;
}

@keyframes tickerRun {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---- 06 左侧框架导航 ---- */
.rail {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(130% 55% at 0% 0%, rgba(212, 160, 23, 0.14), transparent 62%),
    linear-gradient(180deg, #16181D 0%, #101114 100%);
  border-right: 1px solid var(--glass-line);
  transition: transform 0.38s var(--ease);
}

.rail__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--glass-line);
}

.rail__brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rail__mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #22190A;
  background: linear-gradient(150deg, var(--gold-hi) 0%, var(--gold) 54%, var(--gold-deep) 100%);
  border-radius: 10px;
  box-shadow: 0 8px 20px -10px rgba(212, 160, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rail__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail__name b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

.rail__name em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-hi);
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.44);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rail__toggle i {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.rail__toggle:hover { background: rgba(212, 160, 23, 0.2); border-color: var(--gold-hi); }

.rail__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__nav { display: block; }

.navlist {
  counter-reset: navitem;
  display: flex;
  flex-direction: column;
}

.navlist li { counter-increment: navitem; }

.navlist__link {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.53rem 0.7rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: rgba(242, 237, 228, 0.78);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.navlist__link::before {
  content: counter(navitem, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(212, 160, 23, 0.5);
  transition: color 0.2s ease;
}

.navlist__link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(212, 160, 23, 0.7);
  padding-left: 0.95rem;
}

.navlist__link:hover::before { color: var(--gold-hi); }

.navlist__link[aria-current="page"] {
  color: var(--gold-hi);
  font-weight: 700;
  border-left-color: var(--gold-hi);
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0));
}

.navlist__link[aria-current="page"]::before { color: var(--gold-hi); }

.rail__sub {
  margin: 1.5rem 0 0.55rem;
  padding-left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.quicklist { display: flex; flex-direction: column; gap: 0.18rem; }

.quicklist a {
  display: block;
  padding: 0.42rem 0.7rem;
  font-size: 0.85rem;
  color: rgba(242, 237, 228, 0.64);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quicklist a:hover {
  color: var(--gold-hi);
  background: rgba(212, 160, 23, 0.06);
  border-color: rgba(212, 160, 23, 0.4);
}

.rail__note {
  margin-top: 1.6rem;
  padding: 0.85rem 0.7rem 0;
  border-top: 1px solid var(--glass-line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  line-height: 1.7;
}

.rail__progress {
  flex: 0 0 auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.rail__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi));
}

/* ---- 07 右下工具组 ---- */
.rail-tools {
  position: fixed;
  right: clamp(0.75rem, 1.8vw, 1.35rem);
  bottom: clamp(0.75rem, 1.8vw, 1.35rem);
  z-index: 88;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.rail-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: rgba(17, 18, 20, 0.85);
  border: 1px solid var(--glass-line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
}

.rail-tool:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.rail-tool[aria-expanded="false"] {
  color: var(--gold-hi);
  border-color: rgba(212, 160, 23, 0.65);
  background: rgba(212, 160, 23, 0.12);
}

.rail-tool[data-to-top] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rail-tool[data-to-top].is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---- 08 页脚 ---- */
.site-foot {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(212, 160, 23, 0.15), transparent 58%),
    radial-gradient(85% 130% at 98% 100%, rgba(46, 139, 122, 0.2), transparent 62%),
    linear-gradient(160deg, #1C1231 0%, #0E1620 54%, #101114 100%);
  border-top: 1px solid rgba(212, 160, 23, 0.34);
  overflow: hidden;
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-hi), var(--gold), transparent);
  opacity: 0.85;
}

.foot__inner {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.1rem, 4vw, 3rem) clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.5fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.foot__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.foot__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: #22190A;
  background: linear-gradient(150deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  border-radius: 12px;
}

.foot__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
}

.foot__tag {
  margin-top: 1.05rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--gold-hi);
}

.foot__meta {
  margin-top: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.foot__cta { margin-top: 1.25rem; }

.foot__cols {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.6fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.foot__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-line);
}

.foot__list { display: flex; flex-direction: column; gap: 0.08rem; }

.foot__list a {
  display: inline-block;
  padding: 0.26rem 0;
  font-size: 0.9rem;
  color: rgba(242, 237, 228, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
}

.foot__list a:hover { color: var(--gold-hi); transform: translateX(4px); }

.foot__contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.865rem;
  color: rgba(242, 237, 228, 0.72);
}

.foot__contact li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.7;
}

.foot__contact li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--gold);
}

.foot__base {
  border-top: 1px solid var(--glass-line);
  background: rgba(0, 0, 0, 0.3);
  padding: 1.05rem clamp(1.1rem, 4vw, 3rem) 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* ---- 09 通用组件 ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: clamp(1.1rem, 4vw, 3rem);
  padding-right: clamp(1.1rem, 4vw, 3rem);
}

.page-head {
  position: relative;
  padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(1.5rem, 3vw, 2.3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.page-title {
  margin-top: 0.7rem;
  font-size: var(--fs-1);
  line-height: 1.06;
}

.page-title--metal {
  background: linear-gradient(178deg, #FBEBAE 0%, var(--gold-hi) 26%, var(--gold) 62%, #7A5808 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: var(--fs-4);
  line-height: 1.75;
  color: rgba(242, 237, 228, 0.82);
}

.sect-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.sect-title { font-size: var(--fs-2); line-height: 1.12; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.crumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: rgba(212, 160, 23, 0.6);
}

.crumbs a { color: rgba(242, 237, 228, 0.75); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--gold-hi); }

.band {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.band--indigo {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(212, 160, 23, 0.12), transparent 60%),
    linear-gradient(140deg, rgba(42, 30, 63, 0.94), rgba(17, 18, 20, 0.97));
}

.band--teal {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(46, 139, 122, 0.16), transparent 62%),
    linear-gradient(140deg, rgba(16, 51, 58, 0.94), rgba(17, 18, 20, 0.97));
}

.band--ink-2 { background: var(--ink-2); }

.band--cream {
  background: linear-gradient(140deg, #F2EDE4, #E4DCCD);
  color: #1B1C1F;
}

.band--cream h2,
.band--cream h3,
.band--cream h4 { color: #12130F; }

.band--cream p { color: #3A3B3E; }

.band--cream a { color: #7A5A0A; }

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--editorial { grid-template-columns: minmax(0, 7fr) minmax(210px, 4fr); }

.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: clamp(1.05rem, 2.4vw, 1.7rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel--solid {
  background: var(--ink-2);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel--gold {
  background: rgba(212, 160, 23, 0.07);
  border-color: rgba(212, 160, 23, 0.42);
}

.annot {
  border-left: 2px solid rgba(212, 160, 23, 0.55);
  padding: 0.15rem 0 0.15rem 1rem;
  font-size: 0.84rem;
  line-height: 1.78;
  color: var(--steel);
}

.annot dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.annot dd { margin: 0.15rem 0 1rem; }

.annot dd:last-child { margin-bottom: 0; }

.timeline { position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.6), rgba(212, 160, 23, 0.06));
}

.timeline__item {
  position: relative;
  padding: 0 0 1.7rem 2.1rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ink);
}

.timeline__when {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.timeline__what { margin-top: 0.28rem; font-size: 0.95rem; }

.fold {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  overflow: hidden;
}

.fold + .fold { margin-top: 0.6rem; }

.fold__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.fold__btn:hover { color: var(--gold-hi); background: rgba(212, 160, 23, 0.05); }

.fold__btn::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.28s var(--ease);
}

.fold__btn[aria-expanded="true"]::after { transform: rotate(45deg); }

.fold__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.fold__body[data-open] { grid-template-rows: 1fr; }

.fold__inner {
  overflow: hidden;
  padding: 0 1.1rem;
}

.fold__body[data-open] .fold__inner { padding-bottom: 1.15rem; }

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chain a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line-strong);
  font-size: 0.82rem;
  color: rgba(242, 237, 228, 0.8);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chain a:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
}

.chain a .mono { color: var(--gold); }

.stat { display: flex; flex-direction: column; gap: 0.15rem; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--gold {
  color: #1A1400;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 58%, var(--gold-deep));
  box-shadow: 0 12px 26px -16px rgba(212, 160, 23, 0.95);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(212, 160, 23, 1);
}

.btn--ghost {
  color: var(--gold-hi);
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.07);
}

.btn--ghost:hover {
  color: #fff;
  border-color: var(--gold-hi);
  background: rgba(212, 160, 23, 0.16);
  transform: translateY(-2px);
}

.btn--jade {
  color: #05130F;
  background: linear-gradient(120deg, #4CC4AA, var(--jade));
}

.btn--cinnabar {
  color: #fff;
  background: var(--cinnabar);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line-strong);
  color: var(--steel);
  white-space: nowrap;
}

.tag--gold {
  color: var(--gold-hi);
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.1);
}

.tag--jade {
  color: #6FDFC6;
  border-color: rgba(46, 139, 122, 0.55);
  background: rgba(46, 139, 122, 0.14);
}

.tag--cinnabar {
  color: #FF9C90;
  border-color: rgba(192, 57, 43, 0.55);
  background: rgba(192, 57, 43, 0.16);
}

.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.15em; }

.prose p { color: rgba(242, 237, 228, 0.88); }

.prose h2 {
  font-size: var(--fs-3);
  margin-top: 2.4em;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.9em;
  color: var(--gold-hi);
}

.prose ul,
.prose ol { padding-left: 1.25rem; }

.prose ul li { list-style: none; position: relative; padding-left: 1rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.prose ol li { list-style: decimal; }
.prose ol li::marker { color: var(--gold); font-family: var(--font-mono); }

/* ---- 10 图片容器 ---- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid var(--glass-line);
  background: linear-gradient(140deg, #1C1F24, #101114);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media:hover > img,
.media:hover > picture > img { transform: scale(1.04); }

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--banner { aspect-ratio: 21 / 9; }

.media__glass {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.95rem 1.1rem;
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0), rgba(17, 18, 20, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media__glass b {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.media__ph {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(242, 237, 228, 0.34);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px),
    radial-gradient(80% 80% at 30% 20%, rgba(212, 160, 23, 0.16), transparent 62%);
}

/* ---- 11 工具类 ---- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.6), rgba(212, 160, 23, 0));
  margin: 2rem 0;
}

.vtext {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 12 动效 ---- */
.will-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s var(--ease);
}

.will-reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* ---- 13 响应式 ---- */
@media (min-width: 1025px) {
  body {
    padding-left: var(--rail-w);
    transition: padding-left 0.38s var(--ease);
  }

  html[data-rail="collapsed"] body { padding-left: 0; }

  html[data-rail="collapsed"] .rail { transform: translateX(-101%); }
}

@media (max-width: 1024px) {
  body { padding-top: calc(var(--ticker-h) + var(--railbar-h)); }

  .rail {
    top: var(--ticker-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--railbar-h);
    flex-direction: row;
    align-items: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--glass-line);
    background: linear-gradient(180deg, #17191E, #101114);
    transform: none;
  }

  .rail__bar {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
    padding: 0 clamp(0.85rem, 3vw, 1.4rem);
  }

  .rail__toggle { display: inline-flex; }

  .rail__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 clamp(0.85rem, 3vw, 1.4rem);
    background: #131519;
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 26px 42px -28px #000;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  }

  .rail__panel[data-open] {
    max-height: 76vh;
    overflow-y: auto;
    padding: 1rem clamp(0.85rem, 3vw, 1.4rem) 1.6rem;
  }

  .rail__progress { display: none; }

  .rail__note { margin-top: 1.3rem; }

  .navlist__link { padding: 0.68rem 0.75rem; font-size: 1rem; }

  .quicklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__col:last-child { grid-column: 1 / -1; }
  .grid--editorial { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --ticker-h: 40px; --railbar-h: 52px; }

  body { line-height: 1.8; }

  .ticker { gap: 0.6rem; }
  .ticker__badge { display: none; }
  .ticker__more { font-size: 0.7rem; }

  .grid--2,
  .grid--3,
  .grid--editorial { grid-template-columns: 1fr; }

  .foot__cols { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

  .rail-tools { right: 0.6rem; bottom: 0.6rem; }
  .rail-tool { font-size: 0.68rem; padding: 0.42rem 0.68rem; }

  .page-title { font-size: clamp(2.05rem, 11vw, 2.9rem); }
}

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

  .ticker__track { animation: none; transform: none; }

  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .media:hover > img,
  .media:hover > picture > img { transform: none; }
}
