/* ==========================================================
   8868体育 · 全站共享样式 /assets/site.css
   ========================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --bg-deep: #0A1128;
  --bg-panel: #111A2D;
  --bg-raised: #16233D;
  --bg-footer: #08101F;
  --gold: #C9A227;
  --gold-bright: #E4B84A;
  --cyan: #00C2FF;
  --purple: #7A5AF8;
  --red: #FF4D4F;
  --green: #00D68F;
  --text-light: #F5F7FA;
  --text-gray: #A0AAB5;
  --border-gold: rgba(201, 162, 39, 0.2);
  --border-cyan: rgba(0, 194, 255, 0.15);

  --header-h: 72px;
  --sidebar-w: 248px;
  --content-max: 1440px;
  --content-pad: clamp(20px, 4vw, 48px);

  --font-head: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

/* ---------- Reset & 基础元素 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-light);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3, h4, h5, h6 { font-family: var(--font-body); letter-spacing: 0.02em; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

a {
  color: var(--cyan);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.25em; }

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

button {
  font-family: var(--font-body);
  font-size: 16px;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--text-light);
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.28);
  border-radius: 6px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, 0.45); }

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

#main-content {
  display: block;
  outline: none;
  min-height: 60vh;
  padding-top: var(--header-h);
}

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 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)); }
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.06), rgba(122, 90, 248, 0.04));
  border: 1px solid rgba(0, 194, 255, 0.1);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 3000;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ---------- 顶部栏 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 17, 40, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 65%);
  opacity: 0.45;
  pointer-events: none;
}

.header-inner {
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-badge {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(115deg, #F2D57E 4%, var(--gold) 48%, #E8B64D 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: text-shadow 0.3s, filter 0.3s;
}
.brand:hover .brand-badge { filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.5)); }
.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.12em;
}
.brand-tagline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid rgba(160, 170, 181, 0.3);
  line-height: 1.4;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 214, 143, 0.28);
  border-radius: 100px;
  background: rgba(0, 214, 143, 0.06);
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2.4s ease-in-out infinite;
}
.live-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-gray);
  letter-spacing: 0.05em;
  line-height: 1;
}
.live-round {
  color: var(--gold);
  font-weight: 700;
  margin-left: 3px;
  letter-spacing: 0.08em;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(0, 214, 143, 0); opacity: 0.75; }
}

/* ---------- 移动端导航按钮 ---------- */
.nav-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: rgba(17, 26, 45, 0.85);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.2);
}
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); }
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.3s;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 抽屉遮罩 ---------- */
.nav-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 940;
  background: rgba(5, 10, 25, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
}
.nav-overlay:not([hidden]) { display: block; }
@media (min-width: 769px) {
  .nav-overlay { display: none !important; }
}

/* ---------- 侧边轨道导航 ---------- */
.site-sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 950;
  width: min(320px, 85vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-panel) 0%, #0D162B 100%);
  border-right: 1px solid var(--border-cyan);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
  overflow-y: auto;
}
.site-sidebar[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}
.sidebar-brand-badge {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.sidebar-brand-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-transform: uppercase;
  line-height: 1.4;
}

.track-nav {
  position: relative;
  flex: 1;
  padding: 24px 0 12px;
}
.track-rail {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 31px;
  width: 2px;
  background: rgba(0, 194, 255, 0.13);
  border-radius: 2px;
}
.track-fill {
  position: absolute;
  top: 36px;
  left: 31px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--gold) 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.45);
  transition: height 0.1s linear;
}

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

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 24px 14px 60px;
  color: var(--text-gray);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 31px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid rgba(0, 194, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.nav-index {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--cyan);
  opacity: 0.75;
  transition: color 0.25s, opacity 0.25s;
}
.nav-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: inherit;
}
.nav-link:hover {
  color: var(--text-light);
  background: linear-gradient(90deg, rgba(0, 194, 255, 0.08), transparent 85%);
}
.nav-link:hover .nav-index { opacity: 1; color: var(--cyan); }
.nav-link:hover::before {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.6);
}
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"] .nav-index { color: var(--gold); opacity: 1; }
.nav-link[aria-current="page"]::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201, 162, 39, 0.7);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 194, 255, 0.1);
  font-size: 12px;
  color: var(--text-gray);
  letter-spacing: 0.08em;
}
.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sidebar-round {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(201, 162, 39, 0.9);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 214, 143, 0.5);
  flex-shrink: 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(201, 162, 39, 0.16);
}
.footer-accent {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.1) 10%, var(--gold) 30%, var(--cyan) 75%, transparent 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: 60px 52px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.footer-brand-badge {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.14em;
}
.footer-desc {
  margin-top: 18px;
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-gray);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 214, 143, 0.25);
  border-radius: 100px;
  background: rgba(0, 214, 143, 0.05);
  font-size: 13px;
  color: var(--text-gray);
  letter-spacing: 0.04em;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  display: inline-block;
  color: var(--text-gray);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-links a:hover { color: var(--gold); transform: translateX(5px); }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.footer-contact li { display: grid; gap: 3px; }
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
}
.footer-contact .contact-value {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.55;
  word-break: break-all;
  transition: color 0.2s;
}

.footer-bottom {
  border-top: 1px solid rgba(160, 170, 181, 0.1);
  padding-block: 18px;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--text-gray);
}
.footer-bottom-inner > * + *::before {
  content: '·';
  margin-right: 18px;
  color: rgba(201, 162, 39, 0.55);
}
.footer-icp { letter-spacing: 0.04em; }
.footer-support { color: var(--text-gray); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.3s, color 0.3s, filter 0.3s, transform 0.2s;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  filter: drop-shadow(0 6px 18px rgba(201, 162, 39, 0.35));
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.btn--ghost {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: var(--cyan);
  color: var(--bg-deep);
  filter: drop-shadow(0 6px 18px rgba(0, 194, 255, 0.35));
}
.btn--small {
  padding: 8px 18px;
  font-size: 13px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  color: var(--text-gray);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: '/';
  margin-inline: 10px;
  color: rgba(201, 162, 39, 0.5);
  font-size: 12px;
}
.breadcrumb a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li[aria-current="page"] { color: var(--gold); }

/* ---------- 板块标题 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-light);
  position: relative;
  margin: 0;
  padding-left: 18px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  transform: skewX(-14deg);
}

/* ---------- 首屏大标题 ---------- */
.display-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 5.6vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  color: var(--text-light);
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------- 切角面板 ---------- */
.panel {
  background: linear-gradient(150deg, var(--bg-panel), #0E172A);
  border: 1px solid rgba(0, 194, 255, 0.12);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color 0.3s, filter 0.3s;
}
.panel:hover {
  border-color: rgba(0, 194, 255, 0.35);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
}

/* ---------- 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js [data-reveal="visible"] {
  opacity: 1;
  transform: none;
}

/* ---------- 桌面端主体偏移 ---------- */
@media (min-width: 769px) {
  .site-sidebar {
    top: 0;
    width: var(--sidebar-w);
    transform: none;
    visibility: visible;
    transition: none;
  }
  .sidebar-brand {
    height: var(--header-h);
    padding-block: 0;
    border-bottom-color: rgba(201, 162, 39, 0.12);
  }
  .site-header { left: var(--sidebar-w); }
  body { padding-left: var(--sidebar-w); }
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }
  body.nav-is-open { overflow: auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .brand-tagline { display: none; }
  .brand-badge { font-size: 24px; }
  .brand-name { font-size: 18px; letter-spacing: 0.08em; }
  .live-status { padding: 6px 12px; }
  .live-label { font-size: 12px; }
  body.nav-is-open { overflow: hidden; }
}

/* ---------- 平板与手机页脚 ---------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; padding-block: 44px 36px; }
}

/* ---------- 减弱动效 ---------- */
@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;
  }
  .live-dot { animation: none; }
  .track-fill { transition: none; }
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
