/* ==========================================================================
   皇冠足球主站 · 共享样式 /assets/site.css
   夜间球场指挥台 · 框景刻度 · Bento 悬浮面板
   ========================================================================== */

/* 1. 变量 ---------------------------------------------------------------- */
:root {
  --ink-900: #06130F;
  --ink-800: #0B211A;
  --field-700: #12362B;
  --paper-100: #EAF6F1;
  --cyan-400: #25F4D0;
  --gold-500: #E8B84A;
  --orange-500: #FF6A3D;
  --slate-300: #9DB9AE;
  --mint-200: #9BFFE9;
  --leaf-600: #1D5A46;

  --line: rgba(155, 255, 233, 0.16);
  --line-strong: rgba(155, 255, 233, 0.32);
  --surface: rgba(18, 54, 43, 0.72);
  --surface-deep: rgba(11, 33, 26, 0.9);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 72px;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-lift: 0 22px 48px -26px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 84% -10%, rgba(37, 244, 208, 0.1), transparent 62%),
    radial-gradient(760px 480px at 2% 6%, rgba(232, 184, 74, 0.07), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--paper-100);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

button { font: inherit; color: inherit; }

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

::selection {
  background: var(--cyan-400);
  color: var(--ink-900);
}

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

/* 3. 基础排版 ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--paper-100);
}

h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-400); text-decoration: none; }
a:hover { color: var(--mint-200); }

strong { font-weight: 700; color: var(--paper-100); }

.mono,
.data,
code,
kbd {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.muted { color: var(--slate-300); }
.text-cyan { color: var(--cyan-400); }
.text-gold { color: var(--gold-500); }
.text-orange { color: var(--orange-500); }

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

/* 4. 布局工具 ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(30px, 4vw, 56px); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--slate-300);
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

/* 5. 跳转链接 ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -80px;
  left: 14px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--cyan-400);
  color: #04201A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: #04201A;
  outline-offset: -2px;
}

/* 6. 头部命令栏 ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 19, 15, 0.98), rgba(9, 28, 22, 0.94));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(37, 244, 208, 0.75) 0 12px,
    transparent 12px 32px
  );
  opacity: 0.38;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--paper-100);
  text-decoration: none;
}

.brand:hover { color: var(--paper-100); }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  border: 1px solid rgba(232, 184, 74, 0.55);
  background:
    radial-gradient(circle at 32% 22%, rgba(232, 184, 74, 0.45), rgba(232, 184, 74, 0) 64%),
    linear-gradient(150deg, rgba(37, 244, 208, 0.24), rgba(11, 33, 26, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(6, 19, 15, 0.65),
    0 0 18px -6px rgba(232, 184, 74, 0.75);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px 1px rgba(37, 244, 208, 0.85);
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(6, 19, 15, 0.65),
    0 0 24px -4px rgba(37, 244, 208, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-300);
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.nav-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--paper-100);
  background: rgba(155, 255, 233, 0.07);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(155, 255, 233, 0.45);
  transition: color 0.18s var(--ease);
}

.nav-label { white-space: nowrap; }

.nav-link[aria-current="page"] {
  color: var(--paper-100);
  background: rgba(37, 244, 208, 0.1);
  box-shadow: inset 0 0 0 1px rgba(37, 244, 208, 0.34);
}

.nav-link[aria-current="page"]::before {
  background: var(--cyan-400);
  box-shadow: 0 0 8px 1px rgba(37, 244, 208, 0.9);
}

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

.nav-panel-actions { display: none; }

/* 右侧操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.ghost-link {
  padding: 5px 2px;
  border-bottom: 1px dashed rgba(157, 185, 174, 0.42);
  color: var(--slate-300);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 54, 43, 0.65);
  color: var(--paper-100);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: rgba(37, 244, 208, 0.1);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s 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);
}

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

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  background: linear-gradient(90deg, var(--cyan-400), var(--gold-500));
  box-shadow: 0 0 12px rgba(37, 244, 208, 0.6);
}

/* 7. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 62%);
  overflow: hidden;
}

.footer-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(155, 255, 233, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(155, 255, 233, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3.4vw, 52px);
}

.footer-brand { display: grid; gap: 14px; align-content: start; }

.footer-brand-line {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.footer-summary {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-300);
}

.footer-brand .pill { justify-self: start; }

.footer-device {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(37, 244, 208, 0.42);
  color: var(--cyan-400);
  font-size: 13.5px;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.footer-device:hover {
  color: var(--mint-200);
  border-color: var(--mint-200);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 18px;
}

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

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint-200);
  opacity: 0.78;
}

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

.footer-link {
  display: inline-block;
  color: var(--slate-300);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--paper-100);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-deep);
}

.contact-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(155, 255, 233, 0.6);
}

.contact-val {
  color: var(--paper-100);
  overflow-wrap: anywhere;
}

.contact-note {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--slate-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-link {
  color: var(--slate-300);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.legal-link:hover { color: var(--cyan-400); }

.copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(157, 185, 174, 0.78);
}

/* 8. 按钮 ---------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-gold {
  --btn-bg: linear-gradient(140deg, var(--gold-500), #F3D07C);
  --btn-fg: #1A1206;
  box-shadow: 0 10px 26px -14px rgba(232, 184, 74, 0.9);
}

.btn-gold:hover { box-shadow: 0 14px 34px -12px rgba(232, 184, 74, 0.88); }

.btn-cyan {
  --btn-bg: linear-gradient(140deg, var(--cyan-400), var(--mint-200));
  --btn-fg: #04201A;
  box-shadow: 0 10px 26px -14px rgba(37, 244, 208, 0.9);
}

.btn-outline {
  --btn-bg: rgba(155, 255, 233, 0.06);
  --btn-fg: var(--paper-100);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--cyan-400);
  background: rgba(37, 244, 208, 0.12);
}

.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 244, 208, 0.4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.text-link:hover {
  color: var(--mint-200);
  border-color: var(--mint-200);
}

/* 9. 状态标签 ------------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 54, 43, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--slate-300);
  white-space: nowrap;
}

.pill--mint {
  color: var(--cyan-400);
  border-color: rgba(37, 244, 208, 0.42);
  background: rgba(37, 244, 208, 0.1);
}

.pill--live {
  color: var(--orange-500);
  border-color: rgba(255, 106, 61, 0.45);
  background: rgba(255, 106, 61, 0.12);
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px rgba(37, 244, 208, 0.85);
}

.pill--live .dot {
  background: var(--orange-500);
  box-shadow: 0 0 10px rgba(255, 106, 61, 0.9);
}

/* 10. 卡片 --------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 54, 43, 0.92), rgba(11, 33, 26, 0.94));
  box-shadow: 0 1px 0 rgba(155, 255, 233, 0.06) inset;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card--lift:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 208, 0.45);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(37, 244, 208, 0.16);
}

.card-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate-300);
}

/* 11. 网格 --------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

/* 12. 图片容器 ----------------------------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 72% 0%, rgba(37, 244, 208, 0.18), transparent 62%),
    linear-gradient(160deg, var(--field-700), var(--ink-800));
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(155, 255, 233, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(155, 255, 233, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

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

.media-caption {
  margin: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-300);
}

/* 13. 数据条 ------------------------------------------------------------- */
.data-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(155, 255, 233, 0.12);
  overflow: hidden;
}

.data-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--mint-200));
  transition: transform 0.9s var(--ease);
}

.data-bar-fill--gold {
  background: linear-gradient(90deg, var(--gold-500), #F6DE9E);
}

.data-bar-fill--orange {
  background: linear-gradient(90deg, var(--orange-500), #FFA98C);
}

/* 14. 面包屑与索引轨 ------------------------------------------------------ */
.breadcrumb { margin-bottom: 20px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-300);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(155, 255, 233, 0.4);
}

.breadcrumb-link {
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

.breadcrumb-item[aria-current="page"] { color: var(--paper-100); }

.index-rail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 4px;
  align-content: start;
}

.index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 12px 12px 0;
  color: var(--slate-300);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.index-link:hover {
  color: var(--paper-100);
  background: rgba(155, 255, 233, 0.06);
}

.index-link[aria-current="true"] {
  color: var(--paper-100);
  border-left-color: var(--cyan-400);
  background: rgba(37, 244, 208, 0.08);
}

/* 15. 滚动显现 ----------------------------------------------------------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* 16. 响应式 ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-link { padding: 6px 9px; font-size: 13.5px; gap: 6px; }
  .brand-line { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .ghost-link,
  .header-actions .btn { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    padding: 10px var(--gutter) 22px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(11, 33, 26, 0.99), rgba(6, 19, 15, 0.99));
    box-shadow: 0 30px 60px -30px #000;
  }

  .nav[data-open] { display: flex; }

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

  .nav-item { width: 100%; }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .nav-index { font-size: 11px; }

  .nav-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > [class*="span-"] { grid-column: span 6; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }

  .brand-name { font-size: 15px; }

  .bento { grid-template-columns: 1fr; }
  .bento > [class*="span-"] { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .index-rail { position: static; }
}

/* 17. 减少动效 ----------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

  html.js-reveal [data-reveal],
  html.js-reveal [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress-bar { transition: none !important; }
}
