/* ==========================================================================
   竞博 CN · 共享样式 /assets/site.css
   坐标碑 × 控制室：深蓝底、金色刻度、赤色行动、青色焦点
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --c-deep: #0B1F3A;
  --c-night: #12325C;
  --c-gold: #C9A227;
  --c-gold-deep: #8A6D12;
  --c-red: #E0452C;
  --c-red-hi: #EF5238;
  --c-snow: #E8F0F5;
  --c-paper: #F7FAFC;
  --c-scale: #AEB9C6;
  --c-cyan: #2BD9D0;
  --c-violet: #8B7CF6;
  --c-ink: #061224;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1220px;
  --gutter: clamp(18px, 4vw, 56px);
  --rail: 48px;
  --header-h: 72px;

  --hair: rgba(174, 185, 198, 0.22);
  --hair-strong: rgba(201, 162, 39, 0.42);
  --glass: rgba(18, 50, 92, 0.55);

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 24px 60px -32px rgba(3, 10, 22, 0.9);
  --focus: #2BD9D0;
}

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

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

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

ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }
hr { border: 0; }

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

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--c-snow);
  background: var(--c-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { max-width: 68ch; }
strong { font-weight: 700; }

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

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

/* ---------- 5. 布局容器与分区 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--light { background: var(--c-snow); color: var(--c-deep); }
.section--paper { background: var(--c-paper); color: var(--c-deep); }
.section--night { background: var(--c-night); }
.section--ink   { background: var(--c-ink); }

.section--light p,
.section--paper p { color: #22405f; }

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

/* ---------- 6. 页头：紧凑命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--c-snow);
  background: linear-gradient(180deg, rgba(6, 18, 36, 0.97), rgba(11, 31, 58, 0.93));
  border-bottom: 1px solid var(--hair-strong);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.header-rail { display: none; }

.header-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  background: linear-gradient(155deg, rgba(43, 217, 208, 0.18), transparent 62%);
}

.brand-glyph span { position: absolute; background: var(--c-gold); }
.brand-glyph span:nth-child(1) { left: 50%; top: 4px; bottom: 4px; width: 1px; transform: translateX(-50%); }
.brand-glyph span:nth-child(2) { top: 50%; left: 4px; right: 4px; height: 1px; transform: translateY(-50%); }
.brand-glyph span:nth-child(3) {
  right: 2px; bottom: 2px; width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px rgba(43, 217, 208, 0.85);
}

.brand-copy { display: grid; gap: 2px; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-snow);
  transition: color 0.18s var(--ease);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-scale);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name { color: var(--c-cyan); }

/* 服务地区 */
.header-utility {
  display: none;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-scale);
  white-space: nowrap;
}

.utility-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px rgba(43, 217, 208, 0.9);
}

/* 导航 */
.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2px, 0.8vw, 10px);
}

.nav-item { display: block; }

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(232, 240, 245, 0.76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  opacity: 0.85;
}

.nav-list a:hover {
  color: var(--c-snow);
  border-bottom-color: rgba(43, 217, 208, 0.45);
  background: rgba(43, 217, 208, 0.07);
  transform: translateY(-2px);
}

.nav-list a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-list a[aria-current="page"] {
  color: var(--c-snow);
  border-bottom-color: var(--c-cyan);
  background: rgba(43, 217, 208, 0.1);
}

.nav-list a[aria-current="page"] .nav-idx {
  color: var(--c-cyan);
  opacity: 1;
}

.nav-foot { display: none; }

/* 动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.version-chip {
  display: none;
  align-items: center;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  background: rgba(43, 217, 208, 0.1);
  border: 1px solid rgba(43, 217, 208, 0.42);
  border-radius: 999px;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-snow);
  background: rgba(18, 50, 92, 0.65);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-gold);
  background: rgba(201, 162, 39, 0.14);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--c-gold);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 进度线 */
.header-progress {
  position: relative;
  height: 2px;
  background: rgba(174, 185, 198, 0.16);
  overflow: hidden;
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold) 62%, var(--c-red));
  will-change: transform;
}

/* 页头收缩态 */
.site-header[data-condensed="true"] .header-bar { min-height: 60px; padding-block: 6px; }
.site-header[data-condensed="true"] .brand-sub { opacity: 0.6; }
.site-header[data-condensed="true"] .header-utility { opacity: 0.5; }

/* 页头断点 */
@media (min-width: 1080px) {
  .header-bar { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .site-nav { justify-self: center; }
}

@media (min-width: 1240px) {
  .version-chip { display: inline-flex; }
}

@media (min-width: 1320px) {
  .header-utility { display: inline-flex; }
}

@media (min-width: 1400px) {
  .header-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: var(--rail);
    border-right: 1px solid rgba(174, 185, 198, 0.14);
    background: linear-gradient(180deg, rgba(43, 217, 208, 0.07), transparent 70%);
    pointer-events: none;
  }
  .rail-mark {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--c-scale);
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
  .rail-rule {
    width: 1px;
    flex: 1 1 auto;
    max-height: 120px;
    background: linear-gradient(180deg, transparent, var(--c-gold), transparent);
    opacity: 0.6;
  }
  .header-bar { padding-left: calc(var(--gutter) + var(--rail)); }
}

@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .header-bar { grid-template-columns: minmax(0, 1fr) auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 61;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: linear-gradient(180deg, var(--c-ink), var(--c-deep));
    border-top: 1px solid rgba(174, 185, 198, 0.16);
    border-bottom: 1px solid var(--hair-strong);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
    transition: max-height 0.3s var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    display: grid;
    gap: 0;
    justify-content: stretch;
    padding: 6px var(--gutter) 14px;
  }

  .nav-item { border-bottom: 1px solid rgba(174, 185, 198, 0.14); }

  .nav-list a {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 0;
    border-radius: 0;
  }

  .nav-list a:hover { transform: none; background: rgba(43, 217, 208, 0.06); }

  .nav-list a[aria-current="page"] {
    background: transparent;
    box-shadow: inset 3px 0 0 var(--c-cyan);
    padding-left: 12px;
  }

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

  .nav-foot {
    display: block;
    margin: 0 var(--gutter) 16px;
    padding-top: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--c-scale);
    border-top: 1px solid rgba(174, 185, 198, 0.14);
  }
}

@media (max-width: 420px) {
  .header-actions .btn--sm { padding: 8px 10px; font-size: 12.5px; }
  .nav-toggle-text { display: none; }
  .brand-name { font-size: 16px; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  color: var(--c-snow);
  background: var(--c-ink);
  border-top: 1px solid var(--hair-strong);
  overflow: hidden;
}

.footer-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(174, 185, 198, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(174, 185, 198, 0.07) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 16%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 15% 0%, #000 16%, transparent 76%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--c-gold);
}

.footer-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.brand--footer {
  margin-top: 16px;
  align-items: center;
  gap: 12px;
}

.brand--footer .brand-name { font-size: 22px; }
.brand--footer .brand-sub { letter-spacing: 0.02em; font-size: 10.5px; }

.footer-statement {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(232, 240, 245, 0.72);
}

.footer-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-scale);
}

.footer-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px rgba(43, 217, 208, 0.9);
}

.footer-heading {
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  border-bottom: 1px solid var(--hair);
}

.footer-list li { display: block; }

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(232, 240, 245, 0.78);
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-list a::before {
  content: "";
  width: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: width 0.18s var(--ease), opacity 0.18s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-cyan);
  transform: translateX(3px);
}

.footer-list a:hover::before { width: 16px; opacity: 1; }

.contact-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(174, 185, 198, 0.14);
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--c-scale);
  padding-top: 2px;
}

.contact-val {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--c-snow);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 22px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--c-scale);
}

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

.footer-copy [data-year] { font-variant-numeric: tabular-nums; }

.footer-consult {
  color: var(--c-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-red);
  color: var(--c-paper);
  box-shadow: 0 12px 28px -16px rgba(224, 69, 44, 0.95);
}

.btn--primary:hover { background: var(--c-red-hi); }

.btn--ghost {
  background: transparent;
  color: var(--c-snow);
  border-color: rgba(201, 162, 39, 0.55);
}

.btn--ghost:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--c-gold);
}

.btn--dark {
  background: var(--c-deep);
  color: var(--c-snow);
}

.btn--dark:hover { background: var(--c-night); }

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

.section--light .btn--ghost,
.section--paper .btn--ghost {
  color: var(--c-deep);
  border-color: rgba(11, 31, 58, 0.35);
}

.section--light .btn--ghost:hover,
.section--paper .btn--ghost:hover {
  background: rgba(11, 31, 58, 0.08);
  border-color: var(--c-deep);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-scale);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(174, 185, 198, 0.5);
}

.breadcrumbs a {
  color: var(--c-scale);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: currentColor;
}

.breadcrumbs [aria-current="page"] { color: var(--c-snow); }

.section--light .breadcrumbs,
.section--paper .breadcrumbs { color: #4a627d; }
.section--light .breadcrumbs [aria-current="page"],
.section--paper .breadcrumbs [aria-current="page"] { color: var(--c-deep); }

/* ---------- 10. 标签与坐标标记 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.section--light .eyebrow,
.section--paper .eyebrow { color: var(--c-gold-deep); }

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
}

.version-tag--new {
  color: var(--c-cyan);
  background: rgba(43, 217, 208, 0.13);
  border-color: rgba(43, 217, 208, 0.45);
}

.version-tag--old {
  color: var(--c-scale);
  background: transparent;
  border-color: rgba(174, 185, 198, 0.45);
}

.version-tag--diff {
  color: #B3A9FB;
  background: rgba(139, 124, 246, 0.16);
  border-color: rgba(139, 124, 246, 0.5);
}

/* ---------- 11. 玻璃层 / 实色层 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--glass);
  border: 1px solid rgba(174, 185, 198, 0.2);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-panel);
}

.panel--solid {
  background: var(--c-paper);
  color: var(--c-deep);
  border-color: rgba(11, 31, 58, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 44px -30px rgba(11, 31, 58, 0.5);
}

.panel--solid p { color: #22405f; }

/* ---------- 12. 图片容器（供页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, var(--c-night), var(--c-ink) 70%),
    repeating-linear-gradient(90deg, rgba(174, 185, 198, 0.1) 0 1px, transparent 1px 64px);
  border: 1px solid rgba(174, 185, 198, 0.18);
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06) brightness(0.94) hue-rotate(-6deg);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 55% at 78% 16%, rgba(201, 162, 39, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(6, 18, 36, 0) 40%, rgba(6, 18, 36, 0.6));
}

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

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--c-snow);
  text-shadow: 0 1px 6px rgba(6, 18, 36, 0.9);
}

/* ---------- 13. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

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

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* ---------- 14. 对照表 ---------- */
.data-table {
  width: 100%;
  font-size: 14.5px;
  line-height: 1.6;
}

.data-table caption {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--c-scale);
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(174, 185, 198, 0.22);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.data-table tbody tr:hover td { background: rgba(43, 217, 208, 0.05); }

.section--light .data-table th,
.section--paper .data-table th { color: var(--c-gold-deep); }

.section--light .data-table th,
.section--light .data-table td,
.section--paper .data-table th,
.section--paper .data-table td { border-bottom-color: rgba(11, 31, 58, 0.14); }

.section--light .data-table tbody tr:hover td,
.section--paper .data-table tbody tr:hover td { background: rgba(11, 31, 58, 0.04); }

/* ---------- 15. 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1em; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin-top: 1em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--c-gold);
}

.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 26px; }
.prose ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-gold);
}

.prose a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 217, 208, 0.5);
}

.prose a:hover { border-bottom-color: var(--c-cyan); }

.section--light .prose a,
.section--paper .prose a {
  color: #0F6F6B;
  border-bottom-color: rgba(15, 111, 107, 0.45);
}

/* ---------- 16. 显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

  .btn:hover,
  .nav-list a:hover,
  .footer-list a:hover { transform: none; }

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
