/* ==========================================================================
   8868体育 · 共享样式表 /assets/site.css
   夜间赛事控制台 + 展览画册：深空蓝数据舱、荧光青强调、信号橙状态点
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

hr { border: 0; margin: 0; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 数据舱深色层 */
  --navy: #0A1420;
  --navy-2: #12263A;
  --navy-3: #18314A;

  /* 强调与状态 */
  --cyan: #4FE3D0;
  --orange: #FF6A3D;
  --green: #35C48F;
  --amber: #F2C14E;

  /* 画册浅色层 */
  --cream: #F4EDE1;
  --cream-2: #E9DFCE;
  --ink: #241C17;
  --brick: #B4472C;

  /* 中性 */
  --grid: #7C8DA6;

  /* 线与面 */
  --line-dark: rgba(124, 141, 166, 0.22);
  --line-light: rgba(36, 28, 23, 0.14);
  --wash-cyan: rgba(79, 227, 208, 0.08);
  --wash-cyan-strong: rgba(79, 227, 208, 0.16);
  --wash-orange: rgba(255, 106, 61, 0.14);

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* 尺度 */
  --rail: 88px;
  --rail-open: 240px;
  --topbar: 56px;
  --shell-max: 1320px;
  --measure: 720px;

  /* 其他 */
  --radius: 10px;
  --radius-sm: 6px;
  --ease: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-2: 0 18px 38px -22px rgba(0, 0, 0, 0.9);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-stretch: 90%;
}

h1 { font-size: clamp(34px, 6.4vw, 88px); font-weight: 900; line-height: 1.04; }
h2 { font-size: clamp(24px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
h4 { font-size: 17px; }

p { font-size: 16.5px; line-height: 1.8; }

.mono,
code, kbd, samp, time {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.h-display {
  font-family: var(--font-head);
  font-size: clamp(34px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.01em;
  font-stretch: 90%;
}

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

/* ---------- 4. 焦点与可访问性 ---------- */
:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

:where(a, button):focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 5. 容器与正文 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.shell--narrow {
  max-width: 960px;
}

.prose {
  max-width: var(--measure);
}

.prose p { font-size: 16.5px; line-height: 1.85; margin-bottom: 1.2em; }
.prose p:last-child { margin-bottom: 0; }

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

.prose ul,
.prose ol {
  max-width: var(--measure);
  margin-bottom: 1.2em;
  padding-left: 1.2em;
  list-style: none;
}

.prose li {
  position: relative;
  font-size: 16.5px;
  line-height: 1.85;
  margin-bottom: 0.5em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.prose ol { counter-reset: item; }

.prose ol > li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: -2.1em;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--grid);
  line-height: 1.85;
}

.divider {
  height: 1px;
  width: 100%;
  border: 0;
  background: var(--line-dark);
}

/* ---------- 6. 画册浅色页 ---------- */
.surface-cream {
  background-color: var(--cream);
  color: var(--ink);
}

.surface-cream h1,
.surface-cream h2,
.surface-cream h3,
.surface-cream h4 { color: var(--ink); }

.surface-cream p,
.surface-cream li { color: var(--ink); }

.surface-cream .divider { background: var(--line-light); }

.surface-cream .chapter-num { color: var(--brick); }

.surface-cream .prose ul > li::before { background: var(--brick); }

.surface-cream .prose ol > li::before { color: var(--brick); }

.surface-cream a:not(.btn) {
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.surface-cream .panel {
  background: var(--cream-2);
  border-color: var(--line-light);
}

.surface-cream .panel:hover {
  border-color: var(--brick);
}

/* ---------- 7. 章节锚点 ---------- */
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: var(--navy);
}

.btn--primary:hover { background: #6bf0de; }

.btn--ghost {
  border-color: rgba(124, 141, 166, 0.42);
  color: var(--cream);
  background: transparent;
}

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

.btn--signal {
  background: var(--orange);
  color: #20120C;
}

.btn--signal:hover { background: #ff8259; }

.btn:active { transform: translateY(1px); }

/* ---------- 9. 徽章与标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--live {
  color: var(--cyan);
  background: var(--wash-cyan);
  border-color: rgba(79, 227, 208, 0.42);
}

.badge--beta {
  color: var(--orange);
  background: var(--wash-orange);
  border-color: rgba(255, 106, 61, 0.44);
}

.badge--sync {
  color: var(--green);
  background: rgba(53, 196, 143, 0.12);
  border-color: rgba(53, 196, 143, 0.42);
}

.badge--pending {
  color: var(--amber);
  background: rgba(242, 193, 78, 0.12);
  border-color: rgba(242, 193, 78, 0.42);
}

.badge--muted {
  color: var(--grid);
  background: transparent;
  border-color: var(--line-dark);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grid);
}

/* ---------- 10. 面板 ---------- */
.panel {
  position: relative;
  display: block;
  padding: 20px;
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform var(--ease), border-color var(--ease),
              box-shadow var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 227, 208, 0.5);
  box-shadow: var(--shadow-2);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grid);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--grid);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(124, 141, 166, 0.5);
}

.breadcrumb-item a {
  color: var(--grid);
  transition: color var(--ease);
}

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

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

.surface-cream .breadcrumb-item,
.surface-cream .breadcrumb-item a { color: rgba(36, 28, 23, 0.62); }

.surface-cream .breadcrumb-item a:hover { color: var(--brick); }

.surface-cream .breadcrumb-item[aria-current="page"] { color: var(--ink); }

/* ---------- 12. 媒体容器（页面阶段放图用） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background:
    linear-gradient(140deg, rgba(79, 227, 208, 0.14), rgba(10, 20, 32, 0.92) 62%),
    var(--navy-2);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 141, 166, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 141, 166, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.media--hero { aspect-ratio: 16 / 9; }
.media--wide { aspect-ratio: 21 / 9; }
.media--card { aspect-ratio: 4 / 3; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grid);
}

.media-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- 13. 页头 · 移动优先 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--topbar);
  padding: 0 16px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(18, 38, 58, 0.97), rgba(10, 20, 32, 0.99));
  border-bottom: 1px solid var(--line-dark);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(124, 141, 166, 0.06) 1px, transparent 1px);
  background-size: 100% 24px;
}

.rail-bar {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 9px 9px 9px 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--cream);
}

.brand-line {
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--grid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 抽屉按钮 */
.nav-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cream);
  transition: border-color var(--ease), color var(--ease);
}

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

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 16px;
  height: 12px;
}

.nav-toggle-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-icon i:nth-child(1) { top: 0; }
.nav-toggle-icon i:nth-child(2) { top: 5px; }
.nav-toggle-icon i:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 14. 导航抽屉（移动） ---------- */
.site-nav {
  position: fixed;
  top: var(--topbar);
  right: 0;
  z-index: 95;
  width: min(86vw, 340px);
  height: calc(100vh - var(--topbar));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 32px;
  overflow-y: auto;
  background: var(--navy-2);
  border-left: 1px solid var(--line-dark);
  transform: translateX(103%);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (height: 100dvh) {
  .site-nav { height: calc(100dvh - var(--topbar)); }
}

.site-nav[data-open] {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: var(--cream);
  transition: background-color var(--ease), color var(--ease);
}

.nav-link:hover {
  background: var(--wash-cyan);
}

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

.nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--grid);
}

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

.nav-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-actions .btn { width: 100%; }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: var(--topbar) 0 0 0;
  z-index: 92;
  background: rgba(5, 11, 18, 0.64);
}

.nav-scrim[hidden] { display: none; }

/* 滚动进度 */
.rail-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 15. 页头 · 桌面轨道 ---------- */
@media (min-width: 1024px) {

  body { padding-left: var(--rail); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    width: var(--rail);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 0;
    border-right: 1px solid var(--line-dark);
    background: linear-gradient(180deg, #0C1B2B 0%, #0A1420 100%);
    transition: width 220ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .site-header::after {
    background-image:
      linear-gradient(rgba(124, 141, 166, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(124, 141, 166, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
  }

  .site-header:hover,
  .site-header:focus-within { width: var(--rail-open); }

  .rail-bar {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    width: var(--rail-open);
    padding: 20px 0 18px 25px;
    border-bottom: 1px solid var(--line-dark);
  }

  .brand { gap: 12px; }

  .brand-text { display: none; }

  .site-header:hover .brand-text,
  .site-header:focus-within .brand-text { display: flex; }

  .brand-line { white-space: normal; width: 150px; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    flex: 1 1 auto;
    width: var(--rail-open);
    height: auto;
    padding: 18px 0 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    border-left: 0;
    transform: none;
    transition: none;
  }

  .site-nav[data-open] { transform: none; }

  .nav-list { gap: 2px; }

  .nav-link {
    width: var(--rail);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 4px;
    border-radius: 0;
    text-align: center;
    transition: background-color var(--ease), color var(--ease),
                width 220ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    background: transparent;
    transition: background-color var(--ease);
  }

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

  .nav-num { font-size: 10.5px; }

  .nav-label {
    font-size: 10.5px;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }

  .site-header:hover .nav-link,
  .site-header:focus-within .nav-link {
    width: var(--rail-open);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 11px 22px;
    text-align: left;
  }

  .site-header:hover .nav-label,
  .site-header:focus-within .nav-label {
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .nav-actions {
    width: var(--rail-open);
    padding: 18px 22px 0;
    opacity: 0;
    transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-header:hover .nav-actions,
  .site-header:focus-within .nav-actions { opacity: 1; }

  .nav-scrim { display: none; }

  .rail-progress {
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: 2px;
    height: 100%;
    transform: scaleY(var(--progress, 0));
    transform-origin: top center;
  }
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 28px;
  color: var(--cream);
  background: linear-gradient(180deg, #0A1420 0%, #0C1B2B 100%);
  border-top: 1px solid var(--line-dark);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 141, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 141, 166, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--shell-max);
  margin-inline: auto;
}

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

.footer-logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--cream);
}

.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--grid);
}

.footer-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

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

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--cyan);
}

.footer-col-title::before {
  content: "/ ";
  color: var(--orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 237, 225, 0.82);
  transition: color var(--ease), padding-left var(--ease);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-contact-item {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 237, 225, 0.86);
  word-break: break-word;
}

.footer-contact-key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--grid);
}

.footer-note {
  padding-left: 12px;
  border-left: 2px solid var(--brick);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--grid);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: var(--shell-max);
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grid);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .site-footer { padding: 72px 32px 32px; }
  .footer-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr) minmax(0, 1.15fr);
    gap: 48px;
  }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-base { margin-top: 56px; }
}

/* ---------- 17. 显现与降级 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

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

@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;
    transition: none;
  }

  .panel:hover { transform: none; }
}
