/* =====================================================================
   365正真赛事 · 共享样式表 /assets/site.css
   夜场观赛灯光语言：深空底 + 活力橙脉冲 + 荧光绿状态点 + 记分牌等宽字
   ===================================================================== */

/* ---------- 1 · 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul, ol { list-style: none; }

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

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

button { font: inherit; color: inherit; }

/* ---------- 2 · 设计变量 ---------- */
:root {
  --bg: #070C1A;
  --panel: #0E1730;
  --panel-up: #16224A;
  --orange: #FF6A1F;
  --orange-soft: #FF9A3D;
  --green: #35E08A;
  --blue: #4DA3FF;
  --text: #E8EEF9;
  --muted: #93A2C4;
  --line: #2A3560;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --stack: clamp(64px, 9vw, 112px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --shadow-panel: 0 18px 46px rgba(3, 7, 18, 0.55);
  --shadow-orange: 0 12px 28px rgba(255, 106, 31, 0.30);
}

/* ---------- 3 · 基础排版与页面底色 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(62% 46% at 86% -8%, rgba(255, 106, 31, 0.15), transparent 68%),
    radial-gradient(52% 42% at 2% 6%, rgba(77, 163, 255, 0.11), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(20px, 2.6vw, 32px); }
h4 { font-size: 20px; }

p { line-height: 1.75; }

strong { font-weight: 800; }

.prose p { max-width: 44em; }
.prose p + p { margin-top: 18px; }

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

/* ---------- 4 · 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 120;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #04180E;
  font-size: 13px;
  font-weight: 800;
  transition: top 0.22s ease;
}

.skip-link:focus { top: 14px; }

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

.section { padding-block: var(--stack); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }

.narrow { max-width: 720px; }

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 3vw, 48px);
}

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

.rule--glow {
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---------- 6 · 小标题与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

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

.eyebrow--hot { color: var(--orange); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(22, 34, 74, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.chip--live {
  color: var(--green);
  border-color: rgba(53, 224, 138, 0.42);
  background: rgba(53, 224, 138, 0.10);
}

.chip--hot {
  color: var(--orange);
  border-color: rgba(255, 106, 31, 0.42);
  background: rgba(255, 106, 31, 0.10);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ---------- 7 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  color: #170800;
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 106, 31, 0.44);
}

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

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(53, 224, 138, 0.08);
}

.btn--compact { padding: 9px 18px; font-size: 13px; }

/* ---------- 8 · 号码牌数字 ---------- */
.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 9 · 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 10 · 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--panel) 0%, #0B1226 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.55);
  box-shadow: var(--shadow-panel);
}

.card:hover::before { opacity: 0.85; }

.card--flat:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.card--flat:hover::before { opacity: 0; }

.card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- 11 · 要点列表 ---------- */
.bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

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

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- 12 · 媒体占位基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: radial-gradient(120% 140% at 18% 12%, var(--panel-up) 0%, #0B1226 58%, var(--bg) 100%);
}

.media > img,
.media > svg,
.media > video {
  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--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }

.media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 26, 0.78);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(232, 238, 249, 0.045) 0 1px,
    transparent 1px 42px
  );
}

/* ---------- 13 · 标签页 ---------- */
.tabs { display: block; }

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
}

.tab {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.tab:hover { color: var(--text); background: rgba(77, 163, 255, 0.12); }

.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  color: #170800;
  box-shadow: var(--shadow-orange);
}

.tabpanel {
  padding-top: clamp(18px, 2.4vw, 30px);
  animation: panelIn 0.28s ease both;
}

.tabpanel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 14 · 滚动显现 ---------- */
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

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

/* =====================================================================
   15 · 页头
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 12, 26, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  min-height: 76px;
}

/* 品牌锁形 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  color: #170800;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-orange);
}

.brand-score { display: block; line-height: 1; }

.brand-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: brandPulse 2.4s ease-out infinite;
}

@keyframes brandPulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 138, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(53, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 138, 0); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 命令栏导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(77, 163, 255, 0.12);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue);
  opacity: 0.78;
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(53, 224, 138, 0.10);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(53, 224, 138, 0.9);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle-label { letter-spacing: 0.06em; }

/* =====================================================================
   16 · 页脚
   ===================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 23, 48, 0) 0%, #0B1226 40%, var(--panel) 100%);
  color: var(--muted);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 3vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-line {
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.footer-link:hover::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(53, 224, 138, 0.85);
}

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

.footer-contact .footer-col-title { margin-bottom: 4px; }

.footer-contact-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

.footer-label {
  flex: none;
  min-width: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.footer-value { color: var(--text); }

.footer-note {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 18px 32px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.footer-copy { color: var(--muted); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

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

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

.footer-icp {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* =====================================================================
   17 · 响应式
   ===================================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
  }

  .site-nav[data-open] {
    display: flex;
    animation: navIn 0.24s ease both;
  }

  @keyframes navIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

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

  .nav-link {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

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

@media (max-width: 760px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-icp { margin-left: 0; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .tablist {
    display: flex;
    width: 100%;
    border-radius: var(--radius-lg);
    justify-content: flex-start;
  }

  .tab { flex: 1 1 auto; padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 560px) {
  .brand-tag { display: none; }
  .header-shell { min-height: 68px; }
  .nav-toggle-label { display: none; }
}

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

  [data-reveal-ready] [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .btn--primary:hover { transform: none; }
}
