/* ============================================================
   E星电竞综合 · 共享站点样式 /assets/site.css
   夜赛深蓝舞台 + 奶油阅读面板 + 霓虹青紫状态色
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: #0A1224;
}

body,
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol { padding-left: 1.2em; }

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

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. Variables ---------- */
:root {
  --night-900: #0A1224;
  --night-700: #14213D;
  --cream-100: #F4EDE2;
  --cream-50: #FBF7F0;
  --neon: #22E0D6;
  --violet: #7C5CFF;
  --lake: #2E9E8F;
  --orange: #FF8A3D;
  --ink: #2A1F1A;
  --slate: #8A94A6;
  --line: #3A4A6B;

  --rail-w: 232px;
  --bar-h: 60px;
  --radius: 2px;

  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 160ms;
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night-900);
  background-image:
    radial-gradient(760px 560px at 8% -10%, rgba(34, 224, 214, .14), transparent 62%),
    radial-gradient(820px 640px at 96% 4%, rgba(124, 92, 255, .16), transparent 64%),
    radial-gradient(900px 720px at 50% 112%, rgba(46, 158, 143, .12), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--cream-50);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; }

p + p { margin-top: 1.2em; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

main { display: block; }

#main-content { scroll-margin-top: calc(var(--bar-h) + 24px); }

/* ---------- 4. 基础工具类 ---------- */
.wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.stack > * + * { margin-top: 1.1em; }

.grid { display: grid; gap: 1.25rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  transform: skewX(-24deg);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .015em;
  transform: skewX(-3deg);
  transform-origin: 0 60%;
}
.display--xl { font-size: clamp(2.8rem, 8vw, 6rem); }
.display--lg { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.display--md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.lede {
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(251, 247, 240, .86);
  max-width: 60ch;
}

.note {
  font-size: .8rem;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--slate);
}

.slant { display: inline-block; transform: skewX(-3deg); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  padding: .22rem .5rem;
  border: 1px solid rgba(46, 158, 143, .85);
  border-radius: var(--radius);
  color: #54C4B2;
}
.tag--orange { border-color: rgba(255, 138, 61, .85); color: var(--orange); }
.tag--violet { border-color: rgba(124, 92, 255, .9); color: #A795FF; }

.link {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 214, .45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link:hover { color: #7FF3EC; border-bottom-color: var(--neon); }

.link--ink {
  color: #0C4F4A;
  border-bottom-color: rgba(12, 79, 74, .38);
}
.link--ink:hover { color: #072E2A; border-bottom-color: #072E2A; }

.muted { color: var(--slate); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .68rem 1.1rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--cream-50);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover {
  color: var(--neon);
  border-color: var(--neon);
  transform: translateX(2px);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #23120A;
  font-weight: 600;
}
.btn--primary:hover {
  background: #FFA05E;
  border-color: #FFA05E;
  color: #23120A;
}

.btn--ghost { border-color: rgba(34, 224, 214, .55); color: var(--neon); }
.btn--ghost:hover { background: rgba(34, 224, 214, .1); }

.btn--on-paper { color: var(--ink); border-color: #C9BBA6; }
.btn--on-paper:hover { color: #0A1224; background: rgba(42, 31, 26, .07); border-color: var(--ink); }

/* ---------- 6. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--slate);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs__item[aria-current="page"] { color: var(--cream-100); }
.breadcrumbs__link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumbs__link:hover { color: var(--neon); border-bottom-color: var(--neon); }
.breadcrumbs__sep { color: rgba(138, 148, 166, .55); }

/* ---------- 7. 图片容器（页面阶段放入 img / picture） ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--night-700);
  background-image:
    linear-gradient(140deg, rgba(34, 224, 214, .18), transparent 52%, rgba(124, 92, 255, .22)),
    linear-gradient(160deg, #14213D, #070F1E 78%);
}
.media picture { display: block; width: 100%; height: 100%; }
.media img,
.media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(34, 224, 214, .2), transparent 52%, rgba(124, 92, 255, .24));
  mix-blend-mode: screen;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--band { aspect-ratio: 21 / 9; }

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: .3rem .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--neon);
  background: rgba(10, 18, 36, .88);
  border-top: 1px solid rgba(34, 224, 214, .5);
  border-right: 1px solid rgba(34, 224, 214, .5);
}

/* ---------- 8. 面板 / 章节 / 装饰 ---------- */
.panel {
  padding: 1.35rem;
  background: rgba(20, 33, 61, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--paper {
  padding: 1.5rem;
  color: var(--ink);
  background: var(--cream-100);
  border-color: #E0D5C4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.panel--paper h2,
.panel--paper h3 { color: #1D1512; }
.panel--paper .note { color: #6E5F55; }

.chapter { position: relative; }
.chapter + .chapter { margin-top: 2.75rem; }

.chapter__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .9rem;
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(34, 224, 214, .55);
  -webkit-text-stroke: 1px rgba(34, 224, 214, .8);
}

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .02em;
  transform: skewX(-3deg);
}

.rule {
  height: 1px;
  border: 0;
  margin: 1.1rem 0;
  background: linear-gradient(90deg, rgba(34, 224, 214, .85), rgba(58, 74, 107, .55) 45%, rgba(58, 74, 107, 0) 100%);
}

.tick-row {
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px);
  opacity: .85;
}

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 300;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: #23120A;
  background: var(--orange);
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 10. 头部：移动端 sticky 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 36, .9);
  border-bottom: 1px solid rgba(58, 74, 107, .55);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] {
  background: var(--night-900);
  border-bottom-color: rgba(34, 224, 214, .45);
}

.rail__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(34, 224, 214, .12), transparent 55%, rgba(124, 92, 255, .12));
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 1rem;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--cream-50);
}
.brand__mark {
  display: grid;
  gap: 3px;
  width: 26px;
  padding: 3px 0;
  transform: skewX(-8deg);
}
.brand__mark-bar {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--violet));
}
.brand__mark-bar:nth-child(1) { width: 100%; }
.brand__mark-bar:nth-child(2) { width: 72%; }
.brand__mark-bar:nth-child(3) { width: 44%; background: var(--orange); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .05em;
  transform: skewX(-6deg);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  color: var(--slate);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .68rem;
  font-size: .78rem;
  letter-spacing: .08em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] { color: var(--neon); border-color: var(--neon); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--night-900);
  border-bottom: 1px solid var(--line);
  transition: max-height .22s var(--ease), visibility .22s var(--ease);
}
.site-nav[data-open] {
  max-height: 76vh;
  overflow-y: auto;
  visibility: visible;
}

.nav-list {
  display: grid;
  gap: 1px;
  padding: .35rem .75rem .75rem;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .62rem .55rem;
  text-decoration: none;
  color: rgba(251, 247, 240, .86);
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(58, 74, 107, .3);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(34, 224, 214, .07);
  padding-left: .85rem;
}
.nav-link[aria-current="page"] {
  color: var(--neon);
  border-left-color: var(--neon);
  background: linear-gradient(90deg, rgba(34, 224, 214, .16), rgba(34, 224, 214, 0) 72%);
}
.nav-link__num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--slate);
}
.nav-link[aria-current="page"] .nav-link__num { color: var(--neon); }
.nav-link__label { font-size: .95rem; }

/* 轨道工具区 */
.nav-extra {
  display: grid;
  gap: .6rem;
  padding: 1rem .9rem 1.25rem;
  border-top: 1px solid rgba(58, 74, 107, .45);
}

.rail-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .6rem;
  font-size: .85rem;
  text-align: left;
  color: var(--cream-50);
  background: rgba(20, 33, 61, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rail-btn:hover { color: var(--neon); border-color: var(--neon); background: rgba(34, 224, 214, .08); }
.rail-btn__key {
  margin-left: auto;
  padding: .05rem .35rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--slate);
  border: 1px solid var(--line);
}

.rail__quick {
  display: grid;
  gap: .3rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.quick-link {
  display: block;
  padding: .22rem 0 .22rem .7rem;
  font-size: .85rem;
  text-decoration: none;
  color: rgba(251, 247, 240, .75);
  border-left: 2px solid rgba(124, 92, 255, .6);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.quick-link:hover {
  color: var(--orange);
  border-left-color: var(--orange);
  transform: translateX(2px);
}

/* ---------- 11. 检索浮层 ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 6vh, 4rem) 1rem;
  overflow-y: auto;
  background: rgba(6, 11, 22, .8);
}

.search-overlay__panel {
  position: relative;
  width: min(100%, 560px);
  padding: 1.1rem 1.1rem 1.25rem;
  background: var(--night-700);
  border: 1px solid rgba(34, 224, 214, .45);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.search-overlay__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--violet), var(--orange));
}

.search-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.search-overlay__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .06em;
  transform: skewX(-3deg);
}
.search-overlay__close {
  padding: .28rem .6rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search-overlay__close:hover { color: var(--orange); border-color: var(--orange); }

.search-overlay__label {
  display: block;
  margin-bottom: .4rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--slate);
}

.search-input {
  width: 100%;
  padding: .7rem .8rem;
  font-family: var(--font-body);
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--cream-50);
  background: rgba(10, 18, 36, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-input::placeholder { color: rgba(138, 148, 166, .8); }
.search-input:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-color: var(--neon); }

.search-overlay__hint {
  margin-top: .7rem;
  font-size: .8rem;
  color: var(--orange);
}

.search-results {
  display: grid;
  gap: .3rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.search-result {
  display: block;
  padding: .55rem .7rem;
  font-size: .9rem;
  text-decoration: none;
  color: rgba(251, 247, 240, .86);
  border-left: 2px solid rgba(58, 74, 107, .9);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.search-result:hover {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(34, 224, 214, .08);
  padding-left: .9rem;
}

/* ---------- 12. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 2px;
  pointer-events: none;
  background: rgba(58, 74, 107, .45);
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--violet), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 4.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 33, 61, .55), rgba(10, 18, 36, .98) 55%);
}

.footer__slant {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(34, 224, 214, .18), rgba(124, 92, 255, .14) 55%, rgba(255, 138, 61, .12));
  clip-path: polygon(0 0, 58% 0, 80% 100%, 0 100%);
}

.footer__inner {
  position: relative;
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
  padding: 3.25rem 0 1.5rem;
  display: grid;
  gap: 2.25rem;
}

.footer__brand { display: grid; gap: .55rem; max-width: 36ch; }
.footer__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--cream-50);
  transform: skewX(-3deg);
  transition: color var(--dur) var(--ease);
}
.footer__logo:hover { color: var(--neon); }
.footer__logo-dot { padding: 0 .15em; color: var(--orange); }
.footer__tagline { font-size: .95rem; color: rgba(251, 247, 240, .82); }
.footer__meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--slate);
}

.footer__grid { display: grid; gap: 1.75rem; }
.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: .75rem;
  padding-bottom: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
  border-bottom: 1px solid rgba(58, 74, 107, .6);
}

.footer__list { display: grid; gap: .4rem; padding: 0; margin: 0; list-style: none; }

.footer__link {
  display: inline-block;
  font-size: .9rem;
  text-decoration: none;
  color: rgba(251, 247, 240, .78);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--neon);
  border-bottom-color: rgba(34, 224, 214, .7);
  transform: translateX(2px);
}
.footer__link--sm { font-size: .8rem; color: rgba(138, 148, 166, .95); }

.footer__contact { display: grid; gap: .7rem; margin: 0; font-size: .88rem; }
.footer__contact-row { display: grid; gap: .12rem; }
.footer__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--slate);
}
.footer__value { color: rgba(251, 247, 240, .92); word-break: break-word; }

.footer__note {
  margin-top: .85rem;
  padding-left: .6rem;
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(255, 138, 61, .92);
  border-left: 2px solid rgba(255, 138, 61, .7);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(58, 74, 107, .55);
}
.footer__legal { font-size: .76rem; color: var(--slate); }
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- 14. 平板 ---------- */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header__bar { padding: .65rem 1.5rem; }
  .nav-list { padding: .4rem 1.25rem .9rem; }
  .nav-extra { padding: 1.1rem 1.25rem 1.35rem; }
}

@media (min-width: 760px) {
  .footer__inner { padding-top: 4rem; }
  .footer__grid { grid-template-columns: 1fr 1fr 1.25fr; gap: 2rem; }
}

/* ---------- 15. 桌面：左侧固定品牌轨道 ---------- */
@media (min-width: 1000px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(10, 18, 36, .94) 0%, rgba(10, 18, 36, .99) 45%, #08101F 100%);
    border-bottom: 0;
    border-right: 1px solid rgba(58, 74, 107, .55);
  }
  .site-header[data-scrolled="true"] {
    background: var(--night-900);
    border-right-color: rgba(34, 224, 214, .4);
  }

  .site-header__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.35rem 1.1rem 0;
  }
  .nav-toggle { display: none; }
  .brand__word { font-size: 1.3rem; }
  .brand__mark { width: 30px; }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    visibility: visible;
    margin-top: 1.5rem;
    background: transparent;
    border-bottom: 0;
  }
  .nav-list { flex: 0 0 auto; padding: 0 .55rem; gap: 0; }
  .nav-link { padding: .6rem .6rem; border-bottom: 1px solid rgba(58, 74, 107, .28); }

  .nav-extra {
    margin-top: auto;
    padding: 1.2rem 1.1rem 1.5rem;
    border-top: 1px solid rgba(58, 74, 107, .45);
  }

  .scroll-progress {
    left: calc(var(--rail-w) - 2px);
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .scroll-progress__bar {
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
  }

  .wrap { width: min(100% - 4rem, 1040px); }
  #main-content { scroll-margin-top: 32px; }
}

@media (min-width: 1280px) {
  :root { --rail-w: 252px; }
}

/* ---------- 16. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
