/* ============================================================
   /assets/site.css — 哈狗游戏攻略 共享外壳
   夜间电竞指挥舱 × 编辑部报头
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { margin: 0; padding: 0; }

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

button { font: inherit; color: inherit; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--orange); }

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

::selection {
  background: var(--cyan);
  color: #04101c;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #06111F;
  --tactical: #0A1A2F;
  --steel: #102A44;
  --cyan: #2FF3E0;
  --orange: #FF8A3D;
  --magenta-a: #7B2FF7;
  --magenta-b: #F107A3;
  --ice: #E8F4FF;
  --mist: #7E93A8;
  --green: #3DDC97;
  --amber: #FFD166;

  --line: rgba(47, 243, 224, 0.18);
  --line-soft: rgba(126, 147, 168, 0.24);
  --line-hot: rgba(255, 138, 61, 0.45);

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

  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --maxw: 1240px;
  --cut: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. 中文排版基调 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ice);
}

h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: 0.04em; }

p { max-width: 68ch; }

/* ---------- 4. 通用工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 0.86em;
}

.hl { color: var(--cyan); font-weight: 600; }

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

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--orange);
  opacity: 0.8;
}

/* ---------- 5. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ice);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #04101c;
}

.btn--primary:hover {
  background: var(--cyan);
  color: #04101c;
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border-color: var(--line-soft);
  color: var(--ice);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.btn--cut:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

/* ---------- 7. 标签 / 面板 / 旁注 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.1);
  border: 1px solid rgba(47, 243, 224, 0.35);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

.tag--orange {
  color: var(--orange);
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.42);
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.4);
}

.tag--green {
  color: var(--green);
  background: rgba(61, 220, 151, 0.12);
  border-color: rgba(61, 220, 151, 0.4);
}

.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: linear-gradient(160deg, rgba(16, 42, 68, 0.92), rgba(10, 26, 47, 0.94));
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.note {
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid var(--orange);
  color: var(--mist);
  font-size: 0.9rem;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

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

.breadcrumb li::after {
  content: "/";
  margin-left: 0.4rem;
  color: rgba(126, 147, 168, 0.55);
}

.breadcrumb li:last-child::after { content: ""; margin: 0; }

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 9. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(155deg, var(--steel), var(--tactical) 70%, var(--ink));
  border: 1px solid var(--line-soft);
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(6, 17, 31, 0.26) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ice);
  background: linear-gradient(0deg, rgba(6, 17, 31, 0.92), rgba(6, 17, 31, 0));
}

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

/* ---------- 10. 渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 40;
  color: var(--ice);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 243, 224, 0.055) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(47, 243, 224, 0.035) 0 1px, transparent 1px 64px),
    radial-gradient(120% 140% at 50% -30%, rgba(123, 47, 247, 0.22), transparent 62%);
  border-bottom: 1px solid var(--line);
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 90;
  padding: 0.6rem 1.2rem;
  background: var(--cyan);
  color: #04101c;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translate(-50%, -130%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #04101c;
  outline: none;
}

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
  background: rgba(47, 243, 224, 0.08);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 62%, var(--magenta-b) 100%);
  transition: width 0.12s linear;
}

/* 刊头 */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem var(--gutter) 0.85rem;
}

.masthead__deco {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(126, 147, 168, 0.78);
  white-space: nowrap;
}

.masthead__deco--right { justify-content: flex-end; }

.masthead__rule {
  flex: 1 1 auto;
  min-width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft));
}

.masthead__deco--right .masthead__rule {
  background: linear-gradient(90deg, var(--line-soft), transparent);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  text-align: center;
  text-decoration: none;
  color: var(--ice);
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: linear-gradient(98deg, var(--ice) 0%, var(--ice) 50%, var(--cyan) 76%, var(--magenta-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.38rem;
  vertical-align: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #04101c;
  -webkit-text-fill-color: #04101c;
  background: var(--orange);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--mist);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(16, 42, 68, 0.85);
  border: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { background: var(--orange); }
.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); }

/* 第二栏：注册入口 */
.utility-bar {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(10, 26, 47, 0.95), rgba(16, 42, 68, 0.8) 50%, rgba(10, 26, 47, 0.95));
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}

.utility-bar__place {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.utility-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.utility-bar__mail {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding-bottom: 1px;
  border-bottom: 1px dashed rgba(47, 243, 224, 0.45);
}

.utility-bar .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* 战术标签导航 */
.nav-band {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: rgba(6, 17, 31, 0.94);
}

.nav-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.nav-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.nav-list__item {
  display: flex;
  align-items: stretch;
}

.nav-list__item + .nav-list__item {
  box-shadow: inset 1px 0 0 rgba(126, 147, 168, 0.18);
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.72rem 1.1rem;
  color: var(--ice);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.34rem;
  width: 1.5rem;
  height: 2px;
  background: var(--cyan);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.06);
}

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: translateX(-50%) scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
}

.nav-link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--orange);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: 1px;
  color: var(--ice);
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(241, 7, 163, 0.16), transparent 58%),
    radial-gradient(70% 100% at 4% 6%, rgba(47, 243, 224, 0.1), transparent 60%),
    linear-gradient(180deg, var(--tactical) 0%, var(--ink) 72%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 243, 224, 0.05) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(47, 243, 224, 0.03) 0 1px, transparent 1px 64px);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.4rem) var(--gutter) 1.6rem;
}

.footer-col { min-width: 0; }

.footer-col--brand {
  padding-left: 0.9rem;
  border-left: 2px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ice);
}

.footer-tagline {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--mist);
}

.footer-heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--orange);
}

.footer-heading::before {
  content: "// ";
  color: var(--mist);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  color: var(--ice);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-icp {
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  padding-top: 0.15rem;
}

.footer-contact__v {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ice);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter) 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.to-top {
  padding: 0.45rem 0.9rem;
  background: rgba(16, 42, 68, 0.9);
  border: 1px solid var(--line-soft);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

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

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

  .masthead {
    display: block;
    padding: 1rem var(--gutter) 0.85rem;
  }

  .masthead__deco { display: none; }

  .masthead__brand { width: 100%; }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
  }

  .nav-band__inner { padding: 0; }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(10, 26, 47, 0.97);
    transition: max-height 0.4s var(--ease), visibility 0.4s var(--ease);
  }

  .nav-band[data-open] .nav-list {
    max-height: 32rem;
    visibility: visible;
  }

  .nav-list__item + .nav-list__item { box-shadow: none; }

  .nav-link {
    padding: 0.85rem var(--gutter);
    font-size: 0.96rem;
    border-top: 1px solid rgba(126, 147, 168, 0.16);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: rgba(47, 243, 224, 0.07);
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .nav-link[aria-current="page"]::before { display: none; }
}

@media (max-width: 640px) {
  .brand-badge { display: none; }
  .brand-title { white-space: normal; letter-spacing: 0.06em; }
  .brand-sub { font-size: 0.55rem; letter-spacing: 0.18em; }

  .utility-bar__inner { padding: 0.55rem var(--gutter); }
  .utility-bar__mail { font-size: 0.68rem; }
  .utility-bar__actions { gap: 0.6rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col--brand { border-left: 1px solid var(--line); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .masthead { padding-right: 5.4rem; }
  .masthead__brand { align-items: flex-start; text-align: left; }
}

/* ---------- 动效降级 ---------- */
@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;
  }

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