/* ============================================================
   球盟会体育 · QMH 主场坐标
   共享站点样式 /assets/site.css
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: #061826;
  background-image:
    linear-gradient(to right, rgba(36, 65, 74, 0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 65, 74, 0.38) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.2em;
}

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

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

a {
  color: #2DE2C5;
}

table {
  border-collapse: collapse;
}

/* ---------- 2. 变量 ---------- */
:root {
  --night: #061826;
  --night-soft: #08202F;
  --deep-teal: #0A2E2B;
  --turf: #1E8E4E;
  --flame: #FF7A18;
  --cyan: #2DE2C5;
  --indigo: #2B1B4A;
  --wine: #4A1F2E;
  --paper: #EDF5EE;
  --mist: #9CB5AD;
  --line: #24414A;
  --line-soft: rgba(36, 65, 74, 0.62);
  --ink-on-warm: #1A0B00;

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

  --radius: 2px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
  --ease: 120ms ease-out;
  --header-height: 66px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- 3. 基础排版与色面 ---------- */
body {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

::selection {
  background: var(--turf);
  color: var(--paper);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 页头命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 24, 38, 0.99) 0%, rgba(6, 24, 38, 0.93) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.site-header[data-scrolled] {
  border-bottom-color: rgba(45, 226, 197, 0.32);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.header-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav cmd";
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 品牌锁定 */
.brand-lockup {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 7px;
  background: var(--turf);
  border-bottom: 2px solid var(--cyan);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 1px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transform: skewX(-2deg);
  transform-origin: left center;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  text-transform: uppercase;
}

/* 移动索引按钮 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: rgba(10, 46, 43, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}

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

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

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header[data-open] .nav-toggle {
  border-color: var(--cyan);
  background: rgba(45, 226, 197, 0.1);
}

/* 导航 */
.site-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 14px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 7px;
  border-radius: 1px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease), background-color var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(45, 226, 197, 0.55);
  transition: color var(--ease);
}

.nav-label {
  display: inline-block;
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover .nav-index {
  color: var(--cyan);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(30, 142, 78, 0.18);
}

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

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

/* 命令区 */
.header-command {
  grid-area: cmd;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}

.lamp-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 226, 197, 0.16);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--ink-on-warm);
}

.btn-primary:hover {
  background: #FF9147;
  border-color: #FF9147;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

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

.btn-command {
  padding: 9px 15px;
  font-size: 13px;
  white-space: nowrap;
}

.btn-arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform var(--ease);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- 7. 阅读进度轨 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(36, 65, 74, 0.55);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--turf) 0%, var(--cyan) 100%);
  transition: width 80ms linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--deep-teal) 0%, var(--night) 72%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--turf) 0 22px, transparent 22px 44px);
  opacity: 0.55;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 42px);
}

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

.footer-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  transform: skewX(-2deg);
  transform-origin: left center;
}

.footer-lockup-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cyan);
  transform: skewX(2deg);
}

.footer-coord {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.footer-note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--turf);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  min-width: 0;
}

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

.footer-group-title {
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-link {
  position: relative;
  display: inline-block;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

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

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter) clamp(28px, 4vw, 44px);
  border-top: 1px dashed var(--line);
}

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.footer-contact {
  margin: 0;
  flex: 1 1 320px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: var(--mist);
  overflow-wrap: break-word;
  word-break: break-word;
}

.top-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.top-button:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--night);
}

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

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

.grid--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.grid--8-4 {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

/* ---------- 10. 章节标签与面包屑 ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.section-label-num {
  color: var(--flame);
  font-variant-numeric: tabular-nums;
}

.breadcrumb {
  margin: 0 0 26px;
}

.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: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

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

.breadcrumb-current {
  color: var(--paper);
}

/* ---------- 11. 记分牌卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(160deg, rgba(10, 46, 43, 0.88) 0%, rgba(6, 24, 38, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color var(--ease), background-color var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  width: 3px;
  height: 22px;
  background: var(--turf);
}

.card:hover,
.card:focus-within {
  border-color: var(--cyan);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.card-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}

.card-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(6, 24, 38, 0.66);
  border: 1px solid var(--line);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
  white-space: nowrap;
}

.tag--hot {
  color: var(--flame);
  border-color: rgba(255, 122, 24, 0.5);
}

.tag--data {
  color: var(--cyan);
  border-color: rgba(45, 226, 197, 0.45);
}

/* ---------- 13. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 12%, rgba(45, 226, 197, 0.14) 0%, transparent 46%),
    linear-gradient(135deg, var(--deep-teal) 0%, var(--night) 58%, var(--indigo) 100%);
  box-shadow: var(--shadow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(45, 226, 197, 0.1) 0%, transparent 48%);
  pointer-events: none;
}

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

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* ---------- 14. 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

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

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom-color: rgba(45, 226, 197, 0.35);
}

.data-table td {
  color: var(--paper);
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

/* ---------- 15. 长文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.4vw, 17px);
  line-height: 1.8;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(24px, 2.6vw, 32px);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(18px, 2vw, 22px);
}

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

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

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 226, 197, 0.5);
  transition: border-color var(--ease), color var(--ease);
}

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

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--indigo);
  background: rgba(43, 27, 74, 0.42);
  color: var(--paper);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------- 16. 平板 ---------- */
@media (max-width: 1100px) {
  .nav-link {
    font-size: 13px;
    padding: 9px 5px;
  }

  .status-lamp {
    display: none;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 40px);
  }

  .grid--8-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 17. 移动端：命令栏抽屉 ---------- */
@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cmd cmd";
    align-content: start;
    padding-top: 8px;
    padding-bottom: 8px;
    row-gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    justify-content: flex-start;
    width: 100%;
  }

  .site-header[data-open] .site-nav {
    display: block;
    padding: 6px 0 14px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 15px;
  }

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

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

  .header-command {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 16px;
  }

  .site-header[data-open] .header-command {
    display: flex;
  }

  .status-lamp {
    display: inline-flex;
  }

  .btn-command {
    flex: 1 1 auto;
  }

  .grid--7-5 {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .footer-contact {
    flex: 0 1 auto;
  }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 560px) {
  :root {
    --header-height: 58px;
  }

  body {
    font-size: 15px;
    background-size: 32px 32px;
  }

  .brand-mark {
    min-width: 40px;
    font-size: 11px;
  }

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

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-lockup {
    font-size: 21px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 8px;
    font-size: 13px;
  }

  .top-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 19. 降低动态 ---------- */
@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;
  }

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

  .skip-link {
    transition: none;
  }
}

/* ---------- 20. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .scroll-progress {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #101820;
  }
}
