/* ==========================================================================
   AG品牌 · 焕新进行时 — 共享样式表 /assets/site.css
   深墨蓝幕布 + 青柠绿/电光紫撞色 + 奶油纸白页脚
   ========================================================================== */

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

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

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

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

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; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --c-ink: #0A1A2F;
  --c-ink-2: #16305A;
  --c-lime: #C6FF3D;
  --c-violet: #7B4DFF;
  --c-orange: #FF8A3D;
  --c-paper: #F6F1E4;
  --c-brown: #241C17;
  --c-mint: #E7FFC2;
  --c-mist: #8FA3BF;
  --c-coral: #FF5A5A;

  --r-sm: 10px;
  --r-lg: 20px;
  --r-xl: 40px;
  --r-pill: 999px;

  --frame-x: clamp(16px, 4vw, 56px);
  --shell: 1440px;
  --header-h: 68px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(.22, .68, .24, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1180px 620px at 80% -12%, rgba(123, 77, 255, .30), transparent 62%),
    radial-gradient(920px 540px at 6% 4%, rgba(198, 255, 61, .13), transparent 60%),
    radial-gradient(760px 520px at 52% 108%, rgba(123, 77, 255, .18), transparent 64%),
    linear-gradient(180deg, #0A1A2F 0%, #0E2340 46%, #0A1A2F 100%);
  color: var(--c-paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

p { text-wrap: pretty; }

/* ---------- 4. 通用工具 ---------- */
.container {
  width: min(var(--shell), 100% - (var(--frame-x) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(56px, 8vw, 128px); }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.section-sub {
  max-width: 62ch;
  color: rgba(246, 241, 228, .74);
  font-size: 16px;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 12vw, 220px);
  line-height: .86;
  letter-spacing: -.05em;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.72;
  color: rgba(246, 241, 228, .82);
  max-width: 58ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--c-mist);
}

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  line-height: 1;
  color: var(--c-mist);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(198, 255, 61, .35);
  border-radius: var(--r-pill);
  background: rgba(198, 255, 61, .07);
  color: var(--c-lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.section-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 132px);
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 255, 61, .55);
}

.section-band {
  display: block;
  width: 100%;
  height: 3px;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-lime), var(--c-violet) 52%, rgba(123, 77, 255, 0));
}

.stack > * + * { margin-top: var(--stack-gap, 16px); }

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

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

/* ---------- 5. 按钮 / 标签 / 卡片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s var(--ease-out), background-color .2s ease,
              color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.99); }

.btn-primary {
  background: var(--c-lime);
  color: var(--c-ink);
}
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(198, 255, 61, .16); }

.btn-violet {
  background: var(--c-violet);
  color: var(--c-paper);
}
.btn-violet:hover { box-shadow: 0 0 0 6px rgba(123, 77, 255, .22); }

.btn-ghost {
  border-color: rgba(246, 241, 228, .38);
  color: var(--c-paper);
}
.btn-ghost:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
}

.btn-paper {
  background: var(--c-paper);
  color: var(--c-brown);
}
.btn-paper:hover { box-shadow: 0 0 0 6px rgba(246, 241, 228, .2); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid rgba(198, 255, 61, .3);
  border-radius: var(--r-pill);
  background: rgba(198, 255, 61, .12);
  color: var(--c-mint);
  font-size: 13px;
  line-height: 1.5;
}

.tag[data-tone="violet"] {
  border-color: rgba(123, 77, 255, .44);
  background: rgba(123, 77, 255, .18);
  color: #DCD1FF;
}

.tag[data-tone="orange"] {
  border-color: rgba(255, 138, 61, .44);
  background: rgba(255, 138, 61, .14);
  color: #FFD3B0;
}

.tag[data-tone="paper"] {
  border-color: rgba(143, 163, 191, .34);
  background: rgba(246, 241, 228, .08);
  color: var(--c-paper);
}

.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid rgba(143, 163, 191, .2);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(22, 48, 90, .9), rgba(10, 26, 47, .92));
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(198, 255, 61, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.paper {
  background: var(--c-paper);
  color: var(--c-brown);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 56px);
}

.paper .mono { color: #6B5A4C; }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 2em;
  color: var(--c-brown);
}

.prose h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  margin-top: 1.7em;
  color: var(--c-brown);
}

.prose p,
.prose li { color: #3A2E26; }

.prose strong { color: var(--c-brown); font-weight: 700; }

.prose a {
  color: #6A34C4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 1.35em; }

.prose li + li { margin-top: .5em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--c-mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: rgba(143, 163, 191, .5);
}

.breadcrumb a { color: var(--c-mist); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--c-lime); }
.breadcrumb [aria-current="page"] { color: var(--c-paper); font-weight: 600; }

/* ---------- 6. 图片容器（页面阶段放 <img>） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background-color: var(--c-ink-2);
  background-image: linear-gradient(135deg, rgba(123, 77, 255, .44), rgba(10, 26, 47, .9) 56%, rgba(198, 255, 61, .24));
  isolation: isolate;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.media-frame:hover img { transform: scale(1.02); }

.media-frame[data-ratio="21x9"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="4x3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1x1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3x4"] { aspect-ratio: 3 / 4; }

.media-frame[data-skew="on"] {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

/* ---------- 7. 顶部框架导航 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-lime);
  color: var(--c-ink);
  font-weight: 700;
  transition: top .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 26, 47, .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143, 163, 191, .22);
  color: var(--c-paper);
}

.header-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  width: min(var(--shell), 100% - (var(--frame-x) * 2));
  min-height: var(--header-h);
  margin-inline: auto;
  padding-block: 10px;
  transition: min-height .28s var(--ease-out), padding .28s var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-lime), var(--c-violet));
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  transition: transform .25s var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--c-lime);
  white-space: nowrap;
  transition: opacity .25s ease;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  color: rgba(246, 241, 228, .78);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.nav-link:hover {
  color: var(--c-paper);
  background: rgba(198, 255, 61, .12);
}

.nav-link[aria-current="page"] {
  background: var(--c-lime);
  color: var(--c-ink);
  font-weight: 700;
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--c-mist);
  white-space: nowrap;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 138, 61, .8);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--c-orange);
  border-radius: 50%;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(.45); opacity: .9; }
  70%, 100% { transform: scale(1.15); opacity: 0; }
}

.pin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid rgba(123, 77, 255, .55);
  border-radius: var(--r-pill);
  background: rgba(123, 77, 255, .14);
  color: #D8CBFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.pin-link::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(123, 77, 255, .22);
}

.pin-link:hover {
  border-color: var(--c-lime);
  background: rgba(198, 255, 61, .12);
  color: var(--c-lime);
}

.pin-link:hover::before { background: var(--c-lime); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(143, 163, 191, .36);
  border-radius: 14px;
  color: var(--c-paper);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
  background: rgba(198, 255, 61, .08);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-lime), var(--c-violet) 62%, var(--c-orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-header[data-compact] .header-frame {
  min-height: 54px;
  padding-block: 6px;
}

.site-header[data-compact] .brand-tag { opacity: 0; }
.site-header[data-compact] .brand-mark { transform: scale(.92); }

/* 页面纵向边框刻线（桌面端） */
@media (min-width: 1100px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(143, 163, 191, 0) 0%,
      rgba(143, 163, 191, .32) 16%,
      rgba(143, 163, 191, .32) 84%,
      rgba(143, 163, 191, 0) 100%);
  }
  body::before { left: clamp(8px, 2vw, 24px); }
  body::after { right: clamp(8px, 2vw, 24px); }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 120px);
  padding: clamp(40px, 5vw, 76px) 0 28px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--c-paper);
  color: var(--c-brown);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-lime), var(--c-violet) 50%, var(--c-orange));
}

.footer-frame {
  width: min(var(--shell), 100% - (var(--frame-x) * 2));
  margin-inline: auto;
}

.footer-masthead {
  display: grid;
  gap: 16px;
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(36, 28, 23, .16);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-brown);
  color: var(--c-lime);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.footer-brand-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: #7A6A5C;
}

.footer-headline {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--c-brown);
}

.footer-lede {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: #5A4C40;
}

.pin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid rgba(36, 28, 23, .22);
  border-radius: var(--r-pill);
  background: rgba(36, 28, 23, .04);
  color: var(--c-brown);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}

.pin-chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-violet);
}

.pin-chip:hover {
  background: var(--c-mint);
  border-color: rgba(36, 28, 23, .42);
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(36, 28, 23, .16);
}

.footer-col > * + * { margin-top: 18px; }

.footer-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7A6A5C;
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  color: var(--c-brown);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}

.footer-links a:hover {
  color: #5B37C4;
  border-bottom-color: #5B37C4;
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8A7A6B;
}

.footer-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-brown);
  word-break: break-word;
}

.footer-note {
  font-size: 13px;
  line-height: 1.75;
  color: #6B5A4C;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 22px;
}

.footer-legal-item {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: #7A6A5C;
}

.site-footer :focus-visible { outline-color: #5B37C4; }

/* ---------- 9. 右侧纵向刻度条 + 返回顶部 ---------- */
.rail {
  position: fixed;
  top: 50%;
  right: clamp(10px, 1.6vw, 22px);
  z-index: 55;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.rail[data-visible] {
  opacity: 1;
  pointer-events: auto;
}

.rail-track {
  position: relative;
  width: 3px;
  height: min(38vh, 260px);
  border-radius: var(--r-pill);
  background: rgba(143, 163, 191, .25);
  overflow: hidden;
}

.rail-progress {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-lime), var(--c-violet));
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

.rail-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(198, 255, 61, .5);
  border-radius: 50%;
  background: rgba(10, 26, 47, .86);
  color: var(--c-lime);
  font-size: 16px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}

.rail-top:hover {
  background: var(--c-lime);
  color: var(--c-ink);
  transform: translateY(-2px);
}

/* ---------- 10. 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-band.reveal {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .9s var(--ease-out);
}

.section-band.reveal.is-visible { transform: scaleX(1); }

/* ---------- 11. 焦点 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1000px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    padding: 14px var(--frame-x) 22px;
    overflow-y: auto;
    background: rgba(10, 26, 47, .98);
    border-bottom: 1px solid rgba(143, 163, 191, .25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s var(--ease-out), visibility .24s linear;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .site-header[data-compact] .header-frame { min-height: 58px; }

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

@media (max-width: 860px) {
  .pulse { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }

  .rail-track { display: none; }

  .rail-top {
    width: 42px;
    height: 42px;
    background: rgba(10, 26, 47, .92);
  }

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

  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 13px; }
  .pin-link { padding: 8px 12px; font-size: 12px; }
  .card { border-radius: var(--r-lg); }
  .paper { border-radius: var(--r-lg); }
}

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

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

  .reveal,
  .section-band.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .pin-chip:hover,
  .rail-top:hover,
  .media-frame:hover img { transform: none !important; }
}

@media print {
  .site-header,
  .rail,
  .skip-link { display: none !important; }
}
