/* ==========================================================================
   亿德体育官网 · league-yide.com.cn
   共享样式表 /assets/site.css
   夜场墨绿 + 荧光青数据层 + 琥珀金冲超 / 信号红保级 双极语义
   ========================================================================== */

/* ---------- 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, li { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

button { background: none; border: 0; cursor: pointer; }

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

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

/* ---------- 变量 ---------- */
:root {
  --night: #081711;
  --turf: #0F2A20;
  --turf-2: #0B2119;
  --cyan: #4DF0C8;
  --cyan-soft: #7AF5D8;
  --amber: #F5B84B;
  --red: #FF5A5F;
  --white: #EAF6F0;
  --mist: #8FA8A0;
  --gold-deep: #A9762A;
  --black-cyan: #04100B;

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

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

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --line: rgba(77, 240, 200, 0.18);
  --line-soft: rgba(143, 168, 160, 0.22);
  --shadow: 0 24px 60px rgba(4, 16, 11, 0.55);
}

/* ---------- 基础 ---------- */
body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--night);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(940px 560px at 84% -12%, rgba(77, 240, 200, 0.11), transparent 72%),
    radial-gradient(720px 520px at -6% 34%, rgba(245, 184, 75, 0.06), transparent 72%),
    radial-gradient(680px 460px at 52% 108%, rgba(255, 90, 95, 0.05), transparent 72%);
}

::selection { background: rgba(77, 240, 200, 0.3); color: var(--white); }

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

/* ---------- 排版基元 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

p { max-width: 72ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

/* ---------- 容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: -9999px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--cyan);
  color: var(--black-cyan);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  left: var(--gutter);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 23, 17, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-top {
  max-height: 96px;
  overflow: hidden;
  background: var(--black-cyan);
  border-bottom: 1px solid rgba(77, 240, 200, 0.1);
  transition: max-height 0.34s ease, opacity 0.24s ease;
}

.site-header[data-condensed] .header-top {
  max-height: 0;
  opacity: 0;
}

.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.header-top__brand {
  max-width: none;
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.header-top__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.header-top__tag {
  padding: 3px 11px;
  border-radius: var(--pill);
  border: 1px solid var(--line-soft);
  color: var(--cyan-soft);
}

.header-top__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: dotPulse 2.6s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.header-main {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 42, 32, 0.9), rgba(8, 23, 17, 0.94));
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 13px;
}

.header-rule {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(77, 240, 200, 0.55) 16%,
    rgba(77, 240, 200, 0.2) 58%,
    transparent 100%);
}

/* ---------- 品牌标记 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  width: 32px;
  height: 32px;
  padding: 6px 5px;
  border-radius: 11px;
  background: var(--turf);
  border: 1px solid rgba(77, 240, 200, 0.3);
}

.brand__mark span {
  display: block;
  border-radius: 2px;
  background: var(--cyan-soft);
  height: 42%;
}

.brand__mark span:nth-child(2) {
  height: 74%;
  background: var(--amber);
}

.brand__mark span:nth-child(3) {
  height: 100%;
  background: var(--cyan);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__cn {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--white);
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  opacity: 0.78;
}

/* ---------- 导航 ---------- */
.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(77, 240, 200, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--night);
  font-weight: 500;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(77, 240, 200, 0.14);
}

/* ---------- 移动端按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 17px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--turf);
  color: var(--white);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 128px);
  background: linear-gradient(180deg, var(--turf-2) 0%, var(--black-cyan) 100%);
  border-top: 1px solid var(--line);
}

.footer-stripe {
  height: 5px;
  background: linear-gradient(90deg,
    var(--amber) 0 22%,
    var(--gold-deep) 22% 34%,
    var(--cyan) 34% 74%,
    var(--red) 74% 100%);
  opacity: 0.82;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(42px, 6vw, 76px);
}

.footer-brand__desc {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--mist);
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.legend span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend--up span { background: var(--amber); }
.legend--play span { background: var(--gold-deep); }
.legend--down span { background: var(--red); }

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

.footer-col__title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-contact__list {
  display: grid;
  gap: 13px;
}

.footer-contact__item {
  display: grid;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(234, 246, 240, 0.9);
  overflow-wrap: anywhere;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  opacity: 0.8;
}

.footer-base {
  border-top: 1px solid rgba(143, 168, 160, 0.14);
  background: rgba(4, 16, 11, 0.7);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--mist);
}

.footer-base__inner p { max-width: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--cyan);
  color: var(--black-cyan);
  font-weight: 500;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(77, 240, 200, 0.24);
}

.btn--ghost {
  background: rgba(15, 42, 32, 0.6);
  border-color: var(--line);
  color: var(--white);
}

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

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

/* ---------- 胶囊标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
}

.pill--up {
  color: var(--amber);
  border-color: rgba(245, 184, 75, 0.42);
  background: rgba(245, 184, 75, 0.1);
}

.pill--down {
  color: var(--red);
  border-color: rgba(255, 90, 95, 0.42);
  background: rgba(255, 90, 95, 0.1);
}

.pill--live {
  color: var(--cyan);
  border-color: rgba(77, 240, 200, 0.42);
  background: rgba(77, 240, 200, 0.1);
}

.pill--plain {
  color: var(--mist);
  border-color: var(--line-soft);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 22px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

.breadcrumb li::after {
  content: "/";
  color: rgba(143, 168, 160, 0.5);
}

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

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

/* ---------- 章节抬头 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}

.section-head__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  padding-top: 6px;
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 44px);
  letter-spacing: -0.01em;
}

.section-head__note {
  flex: 1 1 220px;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(234, 246, 240, 0.88);
}

.prose p { margin-bottom: 1.15em; color: inherit; }

.prose h2 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--white);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(77, 240, 200, 0.4);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li { margin-bottom: 0.5em; }

.prose blockquote {
  margin: 1.5em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(15, 42, 32, 0.6);
  color: var(--mist);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(15, 42, 32, 0.92), rgba(8, 23, 17, 0.96));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -72px;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  border: 1px solid rgba(77, 240, 200, 0.14);
  pointer-events: none;
}

.card:hover { border-color: rgba(77, 240, 200, 0.36); }

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
}

.card__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 记分牌数字 ---------- */
.num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--white);
}

.num--hero { font-size: clamp(64px, 12vw, 176px); }
.num--xl { font-size: clamp(36px, 5.4vw, 68px); }
.num--md { font-size: clamp(22px, 3vw, 34px); }

/* ---------- 形势轴 ---------- */
.axis-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 42, 32, 0.9), rgba(4, 16, 11, 0.82));
}

.axis-rail__title {
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.axis-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 14px;
  border-left: 3px solid var(--line-soft);
  background: rgba(8, 23, 17, 0.5);
  font-size: 13px;
  color: var(--mist);
  transition: background-color 0.24s ease, color 0.24s ease;
}

.axis-item[data-zone="up"] { border-left-color: var(--amber); }
.axis-item[data-zone="playoff"] { border-left-color: var(--gold-deep); }
.axis-item[data-zone="safe"] { border-left-color: var(--cyan); }
.axis-item[data-zone="warn"] { border-left-color: var(--mist); }
.axis-item[data-zone="down"] { border-left-color: var(--red); }

.axis-item[data-active] {
  background: rgba(77, 240, 200, 0.1);
  color: var(--white);
  animation: axisBreathe 3.6s ease-in-out infinite;
}

@keyframes axisBreathe {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(77, 240, 200, 0.12); }
  50% { box-shadow: inset 0 0 0 1px rgba(77, 240, 200, 0.45); }
}

.axis-item__label {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.axis-item__value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

/* ---------- 图片容器基础规则 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--turf);
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.9);
}

.figure__ph {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(77, 240, 200, 0.07) 0 12px,
      transparent 12px 26px),
    linear-gradient(160deg, var(--turf) 0%, var(--black-cyan) 100%);
}

.figure__cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 18px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
  background: linear-gradient(0deg, rgba(4, 16, 11, 0.94), transparent);
}

/* ---------- 章节目录 ---------- */
.toc {
  padding-left: 16px;
  border-left: 2px solid rgba(143, 168, 160, 0.2);
}

.toc__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.toc__link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.toc__link:hover { color: var(--white); }

.toc__link[data-current] {
  padding-left: 6px;
  color: var(--cyan);
}

/* ---------- 折叠条款 ---------- */
.fold { border-top: 1px solid var(--line); }

.fold__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  text-align: left;
  color: var(--white);
  transition: color 0.2s ease;
}

.fold__btn::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.26s ease;
}

.fold__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.fold__btn:hover { color: var(--cyan); }

.fold__body {
  display: none;
  padding-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.fold__body[data-open] { display: block; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(15, 42, 32, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}

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

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

.to-top__arrow {
  font-size: 14px;
  line-height: 1;
}

/* ---------- 滚动显现 ---------- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

html[data-js="on"] [data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: 0;
    padding: 10px var(--gutter) 22px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border-bottom: 1px solid var(--line);
    background: var(--turf-2);
    transition: max-height 0.34s ease, opacity 0.24s ease, visibility 0.34s ease;
  }

  .primary-nav[data-open] {
    max-height: min(72vh, 540px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }

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

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    border-radius: 14px;
    border-bottom: 1px solid rgba(77, 240, 200, 0.08);
    font-size: 16px;
  }

  .nav-link[aria-current="page"] {
    border-radius: 14px;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 6; }
  .col-9 { grid-column: span 6; }
  .col-12 { grid-column: span 6; }
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

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

  .header-top__inner { justify-content: flex-start; }
  .header-top__meta { font-size: 11.5px; }

  .brand__cn { font-size: 17px; }
  .brand__en { letter-spacing: 0.2em; }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-3, .col-4, .col-6, .col-8, .col-9, .col-12 {
    grid-column: span 2;
  }

  .footer-nav { grid-template-columns: 1fr; }
  .footer-base__inner { justify-content: flex-start; }

  .to-top {
    padding: 10px 16px;
    letter-spacing: 0.1em;
  }
}

/* ---------- 无障碍与动效偏好 ---------- */
@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;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
