/* =========================================================
   必胜28品牌站 · 共享样式 /assets/site.css
   结构：1 重置 2 变量 3 排版 4 工具 5 头部 6 页脚 7 通用组件 8 响应式与偏好
   ========================================================= */

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

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

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

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

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

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

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

/* ---------- 2 变量 ---------- */
:root {
  --ink-0: #070B14;
  --ink-1: #0E1526;
  --ink-2: #16203A;
  --line: #243354;
  --fg: #E9EFFA;
  --fg-2: #9AA9C4;
  --gold: #FFC457;
  --cyan: #34E0DA;
  --orange: #FF7A2F;
  --light: #F2F6FF;
  --light-fg: #0B1220;

  --rail-w: 268px;
  --bar-h: 64px;
  --maxw: 1320px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-header: 90;
  --z-overlay: 120;
}

/* ---------- 3 排版与基底 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink-0);
  background-image:
    linear-gradient(to right, rgba(36, 51, 84, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 51, 84, 0.28) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
}

h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: clamp(17px, 1.6vw, 19px); }

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

::selection {
  background: rgba(52, 224, 218, 0.32);
  color: #ffffff;
}

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

:target { scroll-margin-top: 96px; }

#main-content {
  display: block;
  outline: none;
}

/* ---------- 4 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

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

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

/* ---------- 5 头部 / 侧边轨道 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(9, 14, 26, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -120px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04202a;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
  outline-offset: 4px;
}

.rail {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--bar-h);
}

/* 品牌铭牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--r-md);
  min-width: 0;
}

.brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  color: #221002;
  background: linear-gradient(140deg, var(--gold), var(--orange));
  box-shadow: 0 0 0 1px rgba(255, 196, 87, 0.4), 0 8px 22px rgba(255, 122, 47, 0.22);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand--footer { padding: 0; }
.brand--footer .brand__mark { flex-basis: 36px; width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }

/* 移动端汉堡 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航抽屉（移动端基准） */
.rail__nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(340px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
}

.site-header[data-open] .rail__nav {
  transform: translateX(0);
  visibility: visible;
}

.site-header[data-open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 7, 14, 0.66);
}

.rail__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.rail__eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  color: #C6D2E8;
  font-size: 15px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.22s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(22, 32, 58, 0.7);
}

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

.nav-link:hover {
  background: rgba(36, 51, 84, 0.6);
  color: var(--fg);
  transform: translateX(2px);
}

.nav-link:hover::before { transform: scaleY(1); }

.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(255, 196, 87, 0.16), rgba(255, 196, 87, 0.02));
  color: var(--gold);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  transform: scaleY(1);
  background: var(--gold);
}

.nav-link[aria-current="page"] .nav-link__idx {
  color: var(--gold);
  border-color: rgba(255, 196, 87, 0.45);
}

.rail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.rail__foot {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

.rail__coord { color: var(--cyan); }

.rail__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- 6 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  overflow: hidden;
  color: var(--fg);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(52, 224, 218, 0.10), transparent 55%),
    radial-gradient(100% 120% at 88% 8%, rgba(255, 196, 87, 0.10), transparent 60%),
    var(--ink-1);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 51, 84, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 51, 84, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 46%, var(--orange));
  opacity: 0.85;
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 72px) 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 2fr;
  gap: clamp(28px, 4vw, 64px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer__tagline {
  max-width: 34ch;
  font-size: 15px;
  color: var(--fg-2);
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(22, 32, 58, 0.75);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chip--cyan { color: var(--cyan); border-color: rgba(52, 224, 218, 0.35); background: rgba(52, 224, 218, 0.08); }
.chip--gold { color: var(--gold); border-color: rgba(255, 196, 87, 0.35); background: rgba(255, 196, 87, 0.08); }
.chip--orange { color: var(--orange); border-color: rgba(255, 122, 47, 0.35); background: rgba(255, 122, 47, 0.08); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.footer__col { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer__col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 15px;
  color: var(--fg-2);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}

.footer__link:hover { color: var(--cyan); padding-left: 19px; }
.footer__link:hover::before { width: 13px; background: var(--cyan); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.contact-list__k {
  flex: 0 0 46px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

.contact-list__v {
  color: var(--fg);
  word-break: break-word;
}

.contact-list__note {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-2);
}

.footer__cta { margin-top: 18px; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
}

.footer__copy,
.footer__sig {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.footer__sig { color: var(--cyan); }

/* ---------- 7 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn--accent {
  background: linear-gradient(135deg, var(--orange), #FF9E4D);
  color: #20100A;
  box-shadow: 0 10px 24px rgba(255, 122, 47, 0.24);
}

.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 196, 87, 0.5), 0 14px 30px rgba(255, 122, 47, 0.34);
}

.btn--ghost {
  background: rgba(22, 32, 58, 0.8);
  border-color: var(--line);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(52, 224, 218, 0.12);
}

.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-2);
}

.btn--quiet:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.14);
}

.btn--block { width: 100%; }

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

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.section__title { font-size: clamp(26px, 3.2vw, 38px); }

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
  color: var(--fg-2);
}

.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--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 32, 58, 0.92), rgba(14, 21, 38, 0.92));
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 224, 218, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.card:hover { border-color: rgba(52, 224, 218, 0.45); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }

.card__title {
  margin-bottom: 8px;
  font-size: clamp(19px, 1.8vw, 22px);
}

.card__body {
  font-size: 15px;
  color: var(--fg-2);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

/* 图片容器：页面阶段把 <img> 放进 .media-frame__inner */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(52, 224, 218, 0.16), transparent 60%),
    radial-gradient(100% 100% at 86% 100%, rgba(255, 196, 87, 0.14), transparent 60%),
    linear-gradient(180deg, #101A30, #0A1020);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 51, 84, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 51, 84, 0.55) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

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

.media-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(7, 11, 20, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

.crumbs { padding-block: 20px 0; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--line);
}

.crumbs__link { color: var(--fg-2); transition: color 0.2s var(--ease); }
.crumbs__link:hover { color: var(--cyan); }
.crumbs__item[aria-current="page"] { color: var(--gold); }

.axis {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 28px;
}

.axis::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(36, 51, 84, 0.6) 65%, transparent);
}

.axis__item { position: relative; }

.axis__dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-0);
  box-shadow: 0 0 0 4px rgba(7, 11, 20, 0.9);
}

.axis__item[data-state="current"] .axis__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(7, 11, 20, 0.9), 0 0 16px rgba(255, 196, 87, 0.55);
}

.axis__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.axis__note {
  font-size: 15px;
  color: var(--fg-2);
}

/* 自动注入：阅读进度与返回顶部 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  height: 2px;
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(52, 224, 218, 0.6);
  transition: width 0.1s linear;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(22, 32, 58, 0.92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.15);
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

/* ---------- 8 响应式 ---------- */
@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    background-attachment: fixed;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink-1), var(--ink-0) 72%);
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 9px;
    background-image: repeating-linear-gradient(
      to bottom,
      rgba(52, 224, 218, 0.32) 0 1px,
      transparent 1px 22px
    );
    opacity: 0.7;
    pointer-events: none;
  }

  .rail {
    height: 100%;
    gap: 22px;
    padding: 26px 18px 22px;
    overflow-y: auto;
  }

  .rail__top {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
  }

  .nav-toggle { display: none; }

  .site-header .rail__nav {
    position: static;
    top: auto;
    left: auto;
    bottom: auto;
    z-index: auto;
    width: auto;
    flex: 1 1 auto;
    gap: 18px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
  }

  .rail__foot { display: flex; }

  .read-progress { left: var(--rail-w); }

  .to-top { right: 26px; bottom: 26px; }
}

@media (max-width: 1023px) {
  .brand__desc { display: none; }
  body { background-attachment: scroll; }
}

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

  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .read-progress__bar { transition: none; }
}
