/* =========================================================
   完美体育真赛档案库 · 全站共享样式
   文件：/assets/site.css
   说明：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.026) 1px, transparent 1px),
    radial-gradient(ellipse 85% 55% at 88% -12%, rgba(0, 212, 255, 0.09), transparent 62%),
    radial-gradient(ellipse 70% 45% at 8% 112%, rgba(255, 107, 53, 0.07), transparent 58%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--data-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

address {
  font-style: normal;
}

::selection {
  background: rgba(255, 107, 53, 0.85);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 155, 186, 0.35);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- CSS 变量 ---------- */
:root {
  /* 品牌色板 */
  --bg-primary: #0A1F44;
  --bg-secondary: #101B33;
  --accent: #FF6B35;
  --accent-bright: #FF824F;
  --accent-deep: #E04F18;
  --data-cyan: #00D4FF;
  --silver: #C0C0C0;
  --text-primary: #E6EDF6;
  --text-secondary: #8A9BBA;
  --success: #2EB67D;
  --warning: #FFC107;

  /* 字体 */
  --font-headline: "Archivo Black", "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", "WenQuanYi Micro Hei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;

  /* 尺寸与形状 */
  --header-height: 76px;
  --radius: 14px;
  --radius-lg: 22px;
  --border-line: 1px solid rgba(192, 192, 192, 0.14);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.28);
  --container-width: 1280px;
}

/* ---------- 基础排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
}

p {
  margin-bottom: 1em;
}

strong,
b {
  font-weight: 700;
  color: var(--text-primary);
}

/* ---------- 容器与网格 ---------- */
.container {
  width: min(var(--container-width), 100% - 32px);
  margin-inline: auto;
}

#main-content {
  min-height: 70vh;
  outline: none;
}

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.prose h2 {
  font-size: 26px;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.prose p {
  margin-bottom: 1em;
}

.prose ul {
  padding-left: 20px;
  list-style: square;
  color: var(--text-secondary);
  margin-bottom: 1.2em;
}

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

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.4);
  transform: translateY(calc(-100% - 48px));
  transition: transform 0.2s ease;
}

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

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(10, 31, 68, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(192, 192, 192, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 212, 255, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.header-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--data-cyan));
  transition: width 0.12s linear;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--text-primary);
}

.brand-lockup:hover {
  color: var(--text-primary);
}

.brand-glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 55%, var(--accent-deep));
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28);
  flex-shrink: 0;
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 40%);
  pointer-events: none;
}

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

.brand-name {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- 胶囊导航 ---------- */
.nav-capsule {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 27, 51, 0.7);
  border: 1px solid rgba(192, 192, 192, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  justify-self: center;
}

.nav-capsule a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.nav-capsule a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.nav-capsule a[aria-current="page"] {
  background: rgba(255, 107, 53, 0.14);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.5);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(16, 27, 51, 0.7);
  border: 1px solid rgba(192, 192, 192, 0.18);
  justify-self: end;
}

.nav-toggle:hover {
  border-color: rgba(255, 107, 53, 0.5);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background:
    linear-gradient(180deg, rgba(16, 27, 51, 0.5), transparent 80px),
    var(--bg-primary);
  border-top: 1px solid rgba(192, 192, 192, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 30%, rgba(0, 212, 255, 0.4) 70%, transparent);
  opacity: 0.8;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand {
  position: relative;
}

.footer-brand::before {
  content: "";
  position: absolute;
  top: -48px;
  left: -32px;
  width: 220px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

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

.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
}

.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.footer-statement {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 340px;
  margin-bottom: 20px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  padding: 5px 12px;
  background: rgba(16, 27, 51, 0.75);
  border: 1px solid rgba(192, 192, 192, 0.14);
  border-radius: 999px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-dot-live {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.trust-dot-ok {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.footer-heading {
  position: relative;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--accent);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact-lines {
  display: flex;
  flex-direction: column;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px dashed rgba(192, 192, 192, 0.1);
}

.contact-line:last-child {
  border-bottom: none;
}

.contact-key {
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: 5px;
}

.footer-subbar {
  background: rgba(8, 18, 40, 0.72);
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  padding: 18px 0;
}

.footer-subbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-legal-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

.legal-sep {
  color: rgba(192, 192, 192, 0.3);
  margin: 0 8px;
  font-family: var(--font-mono);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(192, 192, 192, 0.4);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.3);
}

/* ---------- 数据面板与标签 ---------- */
.panel {
  background: rgba(16, 27, 51, 0.68);
  border: 1px solid rgba(192, 192, 192, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.tag-live,
.tag-archive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  vertical-align: middle;
}

.tag-live {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.tag-archive {
  color: var(--data-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- 区块标题 ---------- */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  background: rgba(255, 107, 53, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ---------- 面包屑 ---------- */
.crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.crumb-list a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.crumb-list a:hover {
  color: var(--accent);
}

.crumb-list .crumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

.crumb-sep {
  color: rgba(192, 192, 192, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- 图片容器 ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  border: 1px solid rgba(192, 192, 192, 0.12);
}

.image-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--data-cyan));
  border-radius: 3px 0 0 0;
  z-index: 2;
}

/* ---------- 显现交互 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 焦点可见性 ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-capsule a:focus-visible {
  border-radius: 999px;
  outline-offset: 2px;
}

/* ---------- 平板 ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-capsule {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 130;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
    background: rgba(10, 31, 68, 0.96);
    border: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-capsule[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-capsule a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    text-align: left;
  }

  .nav-capsule a + a {
    margin-top: 2px;
  }

  .nav-capsule a[aria-current="page"] {
    background: rgba(255, 107, 53, 0.16);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.4);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    gap: 12px;
  }

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

  .brand-tag {
    display: none;
  }

  .brand-glyph {
    width: 36px;
    height: 34px;
    font-size: 18px;
    border-radius: 10px 10px 10px 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-subbar-inner {
    flex-direction: column;
    text-align: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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