/* /assets/site.css — 华体会体育 全站共享样式 */

:root {
  --color-primary: #0B1B3D;
  --color-secondary: #FF6B35;
  --color-accent: #00FF87;
  --color-bg: #0A1128;
  --color-surface: #1B263B;
  --color-text: #E0E1DD;
  --color-text-muted: #8B9BB4;
  --color-border: #3A506B;
  --color-highlight: #FFD166;
  --color-success: #2EC4B6;
  --font-heading: 'Oswald', 'Arial Narrow', 'Impact', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Roboto Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  --header-width: 280px;
  --content-max: 1200px;
  --radius: 6px;
  --shadow-card: 0 10px 28px rgba(0,0,0,.22);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(0,255,135,.07), transparent 60%),
    radial-gradient(900px 480px at 8% 110%, rgba(255,107,53,.07), transparent 60%),
    var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

::selection {
  background: var(--color-secondary);
  color: var(--color-primary);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(48px, 9vw, 104px);
  border-bottom: 1px solid var(--color-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .24s ease, color .24s ease, border-color .24s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(255,107,53,.32);
}
.btn-primary:hover { background: #ff8356; color: var(--color-primary); }

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.card--highlight { border-top: 3px solid var(--color-secondary); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  background: rgba(27,38,59,.55);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.tag--success {
  color: var(--color-success);
  border-color: rgba(46,196,182,.45);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-accent);
}

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-surface), var(--color-primary));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.img-frame::before {
  content: '';
  display: block;
  padding-top: 60%;
}
.img-frame[data-ratio="wide"]::before { padding-top: 56.25%; }
.img-frame[data-ratio="square"]::before { padding-top: 100%; }
.img-frame[data-ratio="tall"]::before { padding-top: 130%; }
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: rgba(139,155,180,.4);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); text-decoration: none; }
.breadcrumb [aria-current] { color: var(--color-text); }

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10002;
  padding: 12px 20px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(58,80,107,.35);
  overflow: hidden;
  pointer-events: none;
  z-index: 10001;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-highlight) 50%, var(--color-accent) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Header : Desktop Rail ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: var(--header-width);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--color-primary) 0%, #0c1830 55%, #071021 100%);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  overflow-x: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.02) 14px 16px);
}
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 4px;
  background: var(--color-secondary);
  transform: skewX(-32deg);
  transform-origin: right top;
  pointer-events: none;
}
.site-header::-webkit-scrollbar { width: 6px; }
.site-header::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.header-brand {
  position: relative;
  padding: 34px 24px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
}
.brand-mark::before {
  background: var(--color-secondary);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  z-index: -1;
}
.brand-mark::after {
  inset: 2px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 49%, var(--color-accent) 50%, var(--color-accent) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  z-index: -1;
}
.mark-core {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
.brand-sub {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--color-accent);
  margin-top: 4px;
}

.site-nav {
  position: relative;
  margin-top: 26px;
  flex: 1;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: navIndex;
  display: grid;
  gap: 2px;
}
.nav-item { counter-increment: navIndex; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.nav-link::before {
  content: counter(navIndex, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--color-text-muted);
  opacity: .8;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
  border-left-color: var(--color-text-muted);
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  color: #fff;
  border-left-color: var(--color-secondary);
  background: linear-gradient(90deg, rgba(255,107,53,.18) 0%, rgba(255,107,53,.02) 75%, transparent 100%);
}
.nav-link[aria-current="page"]::before { color: var(--color-secondary); opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(0,255,135,.65);
}

.header-meta {
  position: relative;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(58,80,107,.6);
  display: grid;
  gap: 14px;
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--color-text-muted);
}
.status-text { letter-spacing: .04em; }

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,135,.55); }
  70% { box-shadow: 0 0 0 9px rgba(0,255,135,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,135,0); }
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .22s ease, color .22s ease, background .22s ease;
}
.search-trigger:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0,255,135,.05);
  text-decoration: none;
}
.search-label { font-family: var(--font-heading); letter-spacing: .08em; }

.search-icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 2px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Header : Mobile Drawer ---------- */
@media (max-width: 991px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 14px 0 16px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    background: rgba(11,27,61,.97);
    overflow: visible;
  }
  .site-header::before,
  .site-header::after { display: none; }

  .header-brand { padding: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .mark-core { font-size: 16px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 8px; }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    margin: 0;
    padding: 18px 0 28px;
    flex: none;
    background: linear-gradient(180deg, var(--color-primary) 0%, #0d1730 100%);
    border-right: 1px solid var(--color-border);
    border-top: 1px solid rgba(58,80,107,.45);
    transform: translateX(-101%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22,1,.36,1), visibility .3s;
  }
  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .header-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 0;
    border-top: none;
  }
  .header-status { display: none; }
  .search-trigger {
    border: none;
    padding: 7px;
    background: transparent;
    color: var(--color-text);
  }
  .search-label { display: none; }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 5px;
  }
  .toggle-line {
    transition: transform .24s ease, opacity .24s ease;
  }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-link { padding-left: 20px; padding-right: 16px; font-size: 16px; }
}

.nav-lock,
.nav-lock body { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  flex: none;
  background: linear-gradient(180deg, var(--color-primary) 0%, #081126 100%);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}
.site-footer::before {
  content: 'SPORT DATA LIVE';
  position: absolute;
  right: -10px;
  bottom: 60px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(54px, 8vw, 120px);
  line-height: 1;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(58,80,107,.28);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-accent {
  position: relative;
  height: 4px;
  background: repeating-linear-gradient(-55deg,
    var(--color-secondary) 0 8px,
    var(--color-highlight) 8px 16px,
    var(--color-accent) 16px 24px);
  opacity: .85;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 8vw, 88px);
}

.footer-brand,
.footer-links,
.footer-contact { position: relative; }

.brand--footer .brand-mark { width: 44px; height: 44px; }
.brand--footer .mark-core { font-size: 17px; }
.brand--footer .brand-name { font-size: 19px; }

.footer-tagline {
  margin: 18px 0 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 44ch;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-highlight);
  border-bottom: 1px solid rgba(58,80,107,.5);
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-link-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .22s ease, transform .22s ease;
}
.footer-link-list a::before {
  content: '→';
  font-family: var(--font-data);
  color: var(--color-accent);
}
.footer-link-list a:hover {
  color: #fff;
  transform: translateX(4px);
  text-decoration: none;
}

.footer-trust-text {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  background: rgba(7,16,33,.45);
  border-left: 2px solid var(--color-accent);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-contact-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.footer-contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-secondary);
  transform: rotate(45deg);
}
.contact-phone,
.contact-email,
.contact-address,
.contact-hours {
  display: block;
}
.contact-email { color: var(--color-accent); }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(58,80,107,.55);
  background: rgba(5,13,28,.6);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 16px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-copyright,
.footer-icp { margin: 0; }

/* ---------- Page Main ---------- */
.page-main {
  position: relative;
  flex: 1 0 auto;
  min-height: 70vh;
}
@media (min-width: 992px) {
  .page-main { margin-left: var(--header-width); }
  .site-footer { margin-left: var(--header-width); }
}
@media (max-width: 991px) {
  .page-main { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .site-nav,
  .nav-toggle .toggle-line { transition: none; }
}
