/* =========================================================
   财神捕鱼电玩 · 共享样式表 /assets/site.css
   母题：深海秘境 × 财神吉庆
   骨架：左侧品牌轨道 + 顶部紧凑命令栏 + 编号章节
   ========================================================= */

/* ---------- 01. 变量 ---------- */
:root {
  --c-deep: #061826;
  --c-teal: #0C2E3D;
  --c-blue: #164B60;
  --c-pearl: #F6F1E4;
  --c-gold: #E8B44A;
  --c-coral: #FF6B4A;
  --c-green: #1F6F5C;
  --c-mist: #7FA6B3;
  --c-bronze: #8A5A1E;
  --c-ash: #D9D2C2;

  --line: rgba(127, 166, 179, .22);
  --line-strong: rgba(127, 166, 179, .42);

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

  --rail-w: 88px;
  --bar-h: 64px;

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 26px;
  --radius-xl: 40px;

  --shell: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 02. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  background-color: var(--c-deep);
  color: var(--c-pearl);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: inherit; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

p { margin: 0 0 1.2em; }

/* ---------- 03. 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: var(--c-pearl);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.62rem); letter-spacing: -.012em; }
h4 { font-size: 1.06rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.8;
  color: var(--c-ash);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .85;
}

.section-no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 180, 74, .55);
}

.surface-paper {
  background: var(--c-pearl);
  color: var(--c-deep);
}

.surface-paper h1,
.surface-paper h2,
.surface-paper h3,
.surface-paper h4 { color: var(--c-deep); }

.surface-paper .lede { color: #3c4d57; }

/* ---------- 04. 焦点与可访问性 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 10px);
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--c-gold);
  color: #1a1204;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-offset: 4px;
}

/* ---------- 05. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: var(--bar-h);
  left: var(--rail-w);
  right: 0;
  height: 2px;
  z-index: 115;
  background: linear-gradient(90deg, var(--c-gold), var(--c-coral) 60%, var(--c-green));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 06. 左侧品牌轨道 ---------- */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  background: linear-gradient(180deg, #0C2E3D 0%, #061826 58%, #0C2E3D 100%);
  border-right: 1px solid var(--line);
}

.brand-rail__seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #2a0f00;
  background: linear-gradient(145deg, #F7D78E 0%, #E8B44A 52%, #8A5A1E 100%);
  box-shadow: 0 0 0 1px rgba(232, 180, 74, .55), 0 10px 24px -12px rgba(232, 180, 74, .95);
}

.brand-rail__line {
  width: 1px;
  flex: 1 1 auto;
  min-height: 22px;
  background: linear-gradient(180deg, transparent, rgba(127, 166, 179, .5), transparent);
}

.brand-rail__label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .34em;
  color: var(--c-mist);
}

.brand-rail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(31, 111, 92, .18), 0 0 12px rgba(31, 111, 92, .9);
}

/* ---------- 07. 顶部命令栏 ---------- */
.site-header { position: relative; z-index: 125; }

.cmd-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 0 clamp(14px, 2.2vw, 32px);
  background: rgba(6, 24, 38, .84);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

/* 品牌锁标 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--c-pearl);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: #2a0f00;
  background: linear-gradient(145deg, #F7D78E, #E8B44A 55%, #8A5A1E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.brand__text { display: flex; flex-direction: column; gap: 1px; }

.brand__line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.14;
  letter-spacing: .01em;
  color: var(--c-pearl);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--c-mist);
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--c-mist);
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.primary-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(127, 166, 179, .62);
  transition: color .18s var(--ease);
}

.primary-nav__link:hover {
  color: var(--c-pearl);
  background: rgba(22, 75, 96, .62);
}

.primary-nav__link:hover .primary-nav__idx { color: var(--c-gold); }

.primary-nav__link[aria-current="page"] {
  color: var(--c-pearl);
  background: rgba(255, 107, 74, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 74, .32);
}

.primary-nav__link[aria-current="page"] .primary-nav__idx { color: var(--c-coral); }

.primary-nav__link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, .18);
}

/* 尾部队列 */
.cmd-bar__tail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.cmd-bar__cta { white-space: nowrap; }

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 74, .4);
  background: rgba(232, 180, 74, .09);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--c-pearl);
  white-space: nowrap;
}

.version-pill b { color: var(--c-gold); font-weight: 700; }

.version-pill__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px rgba(31, 111, 92, .95);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 75, 96, .62);
  color: var(--c-pearl);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover { background: rgba(22, 75, 96, .9); }
.nav-toggle.is-open { border-color: rgba(255, 107, 74, .55); background: rgba(255, 107, 74, .16); }

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}

.nav-toggle.is-open .nav-toggle__box span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__box span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 08. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--coral {
  background: var(--c-coral);
  color: #240a03;
  box-shadow: 0 12px 28px -16px rgba(255, 107, 74, .95);
}

.btn--coral:hover { background: #ff8166; transform: translateY(-1px); }

.btn--gold {
  background: var(--c-gold);
  color: #1c1203;
  box-shadow: 0 12px 28px -16px rgba(232, 180, 74, .95);
}

.btn--gold:hover { background: #f2c667; transform: translateY(-1px); }

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

.btn--ghost:hover {
  border-color: rgba(232, 180, 74, .6);
  color: var(--c-gold);
  background: rgba(232, 180, 74, .08);
}

.btn--sm { padding: 9px 17px; font-size: 13px; }
.btn--lg { padding: 15px 32px; font-size: 16px; }

/* ---------- 09. 布局工具 ---------- */
.container {
  width: min(var(--shell), 100% - clamp(32px, 6vw, 96px));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 80px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--c-mist);
}

.breadcrumb a {
  color: var(--c-mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb__sep { color: rgba(127, 166, 179, .4); }
.breadcrumb [aria-current="page"] { color: var(--c-gold); }

/* ---------- 11. 卡片与面板 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(12, 46, 61, .96), rgba(6, 24, 38, .96));
  box-shadow: 0 30px 70px -56px rgba(0, 0, 0, .95);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 180px at 100% 0%, rgba(232, 180, 74, .13), transparent 72%);
}

.card > * { position: relative; z-index: 1; }

.card--paper {
  background: linear-gradient(170deg, #FBF7EC, var(--c-pearl) 60%, #EDE6D6);
  border-color: var(--c-ash);
  color: var(--c-deep);
}

.card--paper::after {
  background: radial-gradient(420px 180px at 100% 0%, rgba(232, 180, 74, .3), transparent 72%);
}

.card__title { font-size: 1.16rem; margin-bottom: .4em; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-gold);
}

.panel {
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(12, 46, 61, .55);
}

/* ---------- 12. 胶囊标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 75, 96, .38);
  font-size: 13px;
  line-height: 1.2;
  color: var(--c-ash);
  white-space: nowrap;
}

.chip--gold {
  border-color: rgba(232, 180, 74, .48);
  background: rgba(232, 180, 74, .11);
  color: var(--c-gold);
}

.chip--coral {
  border-color: rgba(255, 107, 74, .48);
  background: rgba(255, 107, 74, .13);
  color: var(--c-coral);
}

.chip--green {
  border-color: rgba(31, 111, 92, .62);
  background: rgba(31, 111, 92, .22);
  color: #93dbc6;
}

/* ---------- 13. 折叠组 ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--c-pearl);
  transition: color .18s var(--ease);
}

.accordion__item summary::-webkit-details-marker { display: none; }

.accordion__item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--c-gold);
  transition: color .18s var(--ease);
}

.accordion__item[open] summary { color: var(--c-gold); }
.accordion__item[open] summary::after { content: "–"; }

.accordion__item summary:hover { color: var(--c-gold); }

.accordion__body {
  padding: 0 4px 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ash);
}

/* ---------- 14. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-teal) 46%, var(--c-deep) 100%);
  aspect-ratio: 16 / 10;
}

.figure > img,
.figure > svg,
.figure > picture,
.figure > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ash);
  background: linear-gradient(to top, rgba(6, 24, 38, .94), rgba(6, 24, 38, 0));
}

@media (max-width: 600px) {
  .figure { aspect-ratio: 4 / 3; border-radius: var(--radius-m); }
  .figure--wide { aspect-ratio: 16 / 10; }
  .figure--tall { aspect-ratio: 1 / 1; }
}

/* ---------- 15. 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 140px);
  padding: clamp(44px, 6vw, 84px) clamp(20px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
  color: var(--c-pearl);
  background:
    radial-gradient(760px 380px at 10% -8%, rgba(22, 75, 96, .88), transparent 64%),
    radial-gradient(620px 340px at 94% 4%, rgba(31, 111, 92, .42), transparent 62%),
    radial-gradient(520px 260px at 52% 112%, rgba(232, 180, 74, .18), transparent 72%),
    linear-gradient(180deg, #061826 0%, #04121c 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -200px;
  height: 300px;
  border-top: 1px solid rgba(232, 180, 74, .2);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -250px;
  height: 320px;
  border-top: 1px solid rgba(127, 166, 179, .18);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .78fr));
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--shell);
  margin: 0 auto;
}

.brand--footer .brand__mark { width: 42px; height: 42px; font-size: 20px; border-radius: 13px; }
.brand--footer .brand__line { font-size: 20px; }
.brand--footer .brand__tag { font-size: 11px; }

.footer-intro {
  margin: 18px 0 22px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-mist);
}

.footer-contact { display: grid; gap: 9px; font-size: 14px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.footer-contact__k {
  flex: none;
  width: 4.8em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-gold);
  opacity: .88;
}

.footer-contact__v {
  color: var(--c-ash);
  word-break: break-word;
  line-height: 1.65;
}

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-mist);
  line-height: 1.5;
}

.footer-col__list { display: grid; gap: 10px; }

.footer-col__list a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--c-ash);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width .24s var(--ease);
}

.footer-col__list a:hover { color: var(--c-gold); transform: translateX(3px); }
.footer-col__list a:hover::after { width: 100%; }

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  max-width: var(--shell);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--c-mist);
}

.footer-base p { margin: 0; }
.footer-base__icp { color: var(--c-ash); }

/* ---------- 17. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 130;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 180, 74, .45);
  background: rgba(12, 46, 61, .94);
  color: var(--c-gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}

.to-top.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { background: rgba(232, 180, 74, .2); }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1100px) {
  .primary-nav__idx { display: none; }
}

@media (max-width: 1024px) {
  .brand__tag { display: none; }
}

@media (max-width: 960px) {
  :root {
    --rail-w: 0px;
    --bar-h: 58px;
  }

  body { padding-left: 0; }

  .brand-rail { display: none; }
  .skip-link { left: 10px; }

  .primary-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    z-index: 108;
    display: none;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    padding: 12px 16px 24px;
    background: rgba(6, 24, 38, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -40px #000;
  }

  .primary-nav[data-open="true"] { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .primary-nav__link {
    padding: 14px 14px;
    border-radius: var(--radius-s);
    font-size: 16px;
  }

  .primary-nav__idx { display: inline; font-size: 11px; }

  .nav-toggle { display: inline-flex; }
  .cmd-bar__cta { display: none; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .cmd-bar { gap: 10px; padding: 0 14px; }
  .version-pill { display: none; }
  .brand__line { font-size: 15.5px; }
  .brand__mark { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-contact li { flex-direction: column; gap: 2px; }
  .footer-contact__k { width: auto; }

  .to-top { width: 42px; height: 42px; }
}

/* ---------- 19. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress { transition: none; }
}
