/* =========================================================
   半岛体育 · 共享站点样式 /assets/site.css
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --deep: #0A1B2E;
  --deep-soft: #0d2439;
  --studio: #12314F;
  --orange: #FF6B1A;
  --orange-deep: #B2450B;
  --green: #2FE08C;
  --amber: #FFC93C;
  --red: #E63329;
  --yellow: #FFD400;
  --paper: #F7F5F0;
  --ink: #0A0A0A;
  --graphite: #6B7785;
  --mist: #D8E2EC;

  --line-dark: rgba(216, 226, 236, 0.16);
  --line-light: rgba(10, 27, 46, 0.12);
  --text-on-dark: rgba(247, 245, 240, 0.74);
  --text-on-dark-strong: #F7F5F0;

  --font-display: "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: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo,
    Consolas, "Liberation Mono", monospace;
  --font-serif: "Source Han Serif SC", "Songti SC", "Noto Serif SC", Georgia,
    "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: 24px;
  --header-h: 76px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-lift: 0 24px 60px -30px rgba(3, 12, 22, 0.65);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
}

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

/* ---------- 3. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--amber);
}

.visually-hidden {
  position: absolute;
  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;
}

/* ---------- 4. 排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.num,
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.4;
  color: var(--orange);
}

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

.lede {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--graphite);
}

.on-dark .lede {
  color: var(--text-on-dark);
}

.on-dark {
  color: var(--paper);
  background: var(--deep);
}

.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.78;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  letter-spacing: -0.02em;
}

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

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose strong {
  font-weight: 700;
}

.divider {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--mist);
}

.on-dark .divider,
.divider--dark {
  border-top-color: var(--line-dark);
}

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

.wrap--narrow {
  max-width: 900px;
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--deep);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(247, 245, 240, 0.36);
  color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(247, 245, 240, 0.1);
  border-color: var(--paper);
}

.btn-dark {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--studio);
  border-color: var(--studio);
}

.btn-outline {
  background: transparent;
  border-color: rgba(10, 27, 46, 0.28);
  color: var(--deep);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* ---------- 7. 标签胶囊 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(10, 27, 46, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(10, 27, 46, 0.06);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--orange {
  background: rgba(255, 107, 26, 0.14);
  border-color: rgba(255, 107, 26, 0.42);
  color: var(--orange-deep);
}

.tag--green {
  background: rgba(47, 224, 140, 0.16);
  border-color: rgba(47, 224, 140, 0.42);
  color: #16794c;
}

.tag--amber {
  background: rgba(255, 201, 60, 0.2);
  border-color: rgba(255, 201, 60, 0.55);
  color: #7a5a00;
}

.card--dark .tag,
.on-dark .tag {
  background: rgba(247, 245, 240, 0.08);
  border-color: rgba(247, 245, 240, 0.18);
  color: var(--paper);
}

.card--dark .tag--orange,
.on-dark .tag--orange {
  background: rgba(255, 107, 26, 0.18);
  border-color: rgba(255, 107, 26, 0.55);
  color: var(--orange);
}

.card--dark .tag--green,
.on-dark .tag--green {
  background: rgba(47, 224, 140, 0.16);
  border-color: rgba(47, 224, 140, 0.5);
  color: var(--green);
}

.card--dark .tag--amber,
.on-dark .tag--amber {
  background: rgba(255, 201, 60, 0.16);
  border-color: rgba(255, 201, 60, 0.5);
  color: var(--amber);
}

/* ---------- 8. 档案卡 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.card--dark {
  background: var(--studio);
  border-color: var(--line-dark);
  color: var(--paper);
}

.card--tint {
  border-color: rgba(255, 107, 26, 0.42);
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 26, 0.55);
  box-shadow: var(--shadow-lift);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--orange);
}

.stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

.on-dark .stat-label,
.card--dark .stat-label {
  color: var(--text-on-dark);
}

/* ---------- 9. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--studio);
  isolation: isolate;
}

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

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

.media--3x2 {
  aspect-ratio: 3 / 2;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(216, 226, 236, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(216, 226, 236, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
}

.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(216, 226, 236, 0.28);
  border-radius: calc(var(--radius-card) - 10px);
}

.media-caption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--graphite);
}

.on-dark .media-caption {
  color: var(--text-on-dark);
}

/* ---------- 10. 数据表 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  font-size: 0.9375rem;
}

.data-table caption {
  caption-side: top;
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--graphite);
}

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

.data-table thead th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--graphite);
}

.data-table td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(18, 49, 79, 0.04);
}

.on-dark .data-table th,
.on-dark .data-table td,
.card--dark .data-table th,
.card--dark .data-table td {
  border-bottom-color: var(--line-dark);
}

.on-dark .data-table thead th,
.card--dark .data-table thead th {
  color: var(--text-on-dark);
}

.on-dark .data-table tbody tr:nth-child(even),
.card--dark .data-table tbody tr:nth-child(even) {
  background: rgba(247, 245, 240, 0.05);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  font-size: 0.8125rem;
  color: var(--graphite);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(107, 119, 133, 0.55);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 119, 133, 0.5);
}

.breadcrumb a:hover {
  color: var(--orange-deep);
  text-decoration-color: currentColor;
}

.breadcrumb--on-dark {
  color: var(--text-on-dark);
}

.breadcrumb--on-dark a {
  text-decoration-color: rgba(247, 245, 240, 0.45);
}

.breadcrumb--on-dark a:hover {
  color: var(--amber);
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 320;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--deep);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 13. 站点头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 27, 46, 0.9) 0%,
    rgba(10, 27, 46, 0.55) 55%,
    rgba(10, 27, 46, 0) 100%
  );
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.site-header.is-scrolled {
  background: var(--deep);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 245, 240, 0.42);
  border-radius: 11px;
  background: rgba(18, 49, 79, 0.62);
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(247, 245, 240, 0.22);
  border-radius: 7px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(247, 245, 240, 0.62);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(247, 245, 240, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(18, 49, 79, 0.55);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.16);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.18s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  line-height: 1;
}

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

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

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.78);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.nav-list a:hover {
  color: var(--text-on-dark-strong);
  background: rgba(247, 245, 240, 0.08);
}

.nav-list a[aria-current="page"] {
  color: var(--text-on-dark-strong);
  background: rgba(255, 107, 26, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 索引条 */
.index-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(216, 226, 236, 0.14);
  background: rgba(10, 27, 46, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.22s var(--ease);
}

.site-header:not(.is-scrolled) .index-bar {
  background: rgba(10, 27, 46, 0.34);
  border-top-color: rgba(216, 226, 236, 0.1);
}

.index-bar-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.index-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(247, 245, 240, 0.8);
  text-align: left;
  cursor: pointer;
}

.index-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--orange);
  flex: none;
}

.index-hint {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(247, 245, 240, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-chevron {
  flex: none;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}

.index-toggle[aria-expanded="true"] .index-chevron {
  transform: rotate(-135deg);
}

.index-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 2px 0 16px;
}

.index-panel[data-open="true"] {
  display: grid;
}

.index-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(216, 226, 236, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(18, 49, 79, 0.72);
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.88);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.index-panel a:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 26, 0.14);
  color: var(--text-on-dark-strong);
}

.index-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 224, 140, 0.14);
}

.index-panel li:nth-child(4) .index-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.16);
}

.index-panel li:nth-child(3) .index-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.16);
}

/* ---------- 14. 站点页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 28px;
  border-top: 1px solid var(--line-dark);
  background: var(--deep);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(216, 226, 236, 0.07) 0 1px,
      transparent 1px 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(216, 226, 236, 0.05) 0 1px,
      transparent 1px 72px
    );
  -webkit-mask-image: radial-gradient(
    130% 95% at 12% 0%,
    #000 0%,
    rgba(0, 0, 0, 0.55) 45%,
    transparent 78%
  );
  mask-image: radial-gradient(
    130% 95% at 12% 0%,
    #000 0%,
    rgba(0, 0, 0, 0.55) 45%,
    transparent 78%
  );
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.brand--footer {
  margin-bottom: 4px;
}

.footer-tagline {
  max-width: 24ch;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(247, 245, 240, 0.82);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.66);
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 224, 140, 0.16);
}

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

.footer-group-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--orange);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.76);
  transition: color 0.18s var(--ease);
}

.footer-group a:hover {
  color: var(--text-on-dark-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}

.footer-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding-inline: var(--gutter);
}

.footer-contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 0.875rem;
  color: rgba(247, 245, 240, 0.72);
}

.footer-contact-line--wide {
  flex-basis: 100%;
}

.contact-label {
  flex: none;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.contact-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  word-break: break-word;
}

.footer-contact-line--wide .contact-value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(24px, 3vw, 36px) auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid rgba(216, 226, 236, 0.12);
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.55);
}

.footer-note {
  max-width: 54ch;
  line-height: 1.65;
}

.footer-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-copy {
  color: rgba(247, 245, 240, 0.6);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(247, 245, 240, 0.5);
}

/* ---------- 15. 滚动进度与返回顶部 ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}

.progress-bar__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: transform 0.1s linear;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(216, 226, 236, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(10, 27, 46, 0.92);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    visibility 0.22s linear, background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--deep);
}

.to-top__icon {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1;
}

/* ---------- 16. 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(12px);
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-list {
    gap: 0;
  }

  .nav-list a {
    padding: 0 10px;
    font-size: 0.875rem;
  }

  .primary-nav {
    gap: 14px;
  }
}

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

  .footer-tagline {
    max-width: 30ch;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
  }

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

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-height: calc(100vh - var(--header-h) - 44px);
    padding: 16px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line-dark);
    background: var(--deep);
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.9);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

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

  .nav-list a {
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line-dark);
  }

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

  .index-hint {
    font-size: 0.75rem;
  }

  .index-panel {
    grid-template-columns: 1fr;
    padding-bottom: 14px;
  }

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

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --radius-card: 20px;
  }

  body {
    font-size: 16px;
  }

  .brand-badge {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .index-hint {
    display: none;
  }

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

  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }

  .footer-contact-line {
    flex-wrap: wrap;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    padding: 0 15px;
  }

  .btn {
    padding: 0 18px;
  }
}

/* ---------- 18. 减少动态偏好 ---------- */
@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;
  }

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

  .to-top {
    transform: none;
  }
}
