/* ==========================================================
   爱体育 AISPORT — 共享样式 /assets/site.css
   数据竞技场视觉体系：深蓝底色、荧光绿锚点、橙色热点
   ========================================================== */

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

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

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  background-image: radial-gradient(1100px 520px at 82% -120px, rgba(57, 255, 20, .07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--c-gray-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}

p {
  margin-bottom: 1.1rem;
}

::selection {
  background: var(--c-accent);
  color: var(--c-bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-gray-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

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

#main-content:focus,
main:focus {
  outline: none;
}

/* ---------- 2. 变量 ---------- */
:root {
  --c-bg: #0D1B2A;
  --c-surface: #1B263B;
  --c-surface-lift: #1F2D46;
  --c-accent: #39FF14;
  --c-orange: #FF6B35;
  --c-white: #FFFFFF;
  --c-gray-light: #E0E1DD;
  --c-gray-mid: #9DA1AA;
  --c-gray-dark: #5C6370;
  --c-success: #A8FF78;
  --c-warning: #FFC857;

  --font-display: Impact, "Arial Narrow", "Franklin Gothic Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  --content-max: 1280px;
  --header-h: 76px;
  --ticker-h: 38px;
  --radius: 6px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 3. 基础布局与工具类 ---------- */
.container {
  width: min(100% - 40px, var(--content-max));
  margin-inline: auto;
}

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

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

.text-link {
  color: var(--c-accent);
  border-bottom: 1px solid rgba(57, 255, 20, .3);
  transition: border-color .2s, color .2s;
}
.text-link:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-accent);
}

/* ---------- 4. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9000;
  padding: 10px 18px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(13, 27, 42, .92);
  background-image: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(92, 99, 112, .05) 18px 19px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-gray-dark);
}

/* 快讯条 */
.ticker {
  display: flex;
  align-items: stretch;
  height: var(--ticker-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-gray-dark);
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 16px;
  background: var(--c-orange);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.ticker-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-bg);
  animation: blinker 1.4s linear infinite;
}

.ticker-viewport {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}
.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}
.ticker-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--c-surface), transparent);
}
.ticker-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--c-surface), transparent);
}

.ticker-text {
  display: inline-block;
  padding-left: 24px;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--c-gray-light);
  will-change: transform;
  animation: tick 32s linear infinite;
}
.ticker-text strong {
  color: var(--c-accent);
  font-weight: 700;
}

.ticker-sep {
  margin: 0 14px;
  color: var(--c-gray-dark);
}

/* 品牌与导航横排区 */
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  transform: skewX(-8deg);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--c-white);
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: blinker 2s var(--ease-out) infinite;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

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

.nav-item {
  min-width: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-gray-light);
  white-space: nowrap;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover {
  color: var(--c-white);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--c-accent);
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--c-gray-dark);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.nav-toggle:hover {
  border-color: var(--c-accent);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--c-accent);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[data-open] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 滚动进度条 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-orange));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
  border-top: 1px solid var(--c-gray-dark);
  color: var(--c-gray-light);
}

.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 80px) 20px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 48px 40px;
}

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

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

.footer-desc {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.footer-trust {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-gray-mid);
}

.footer-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-white);
}
.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 16px;
  background: var(--c-accent);
  transform: translateY(-50%);
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--c-gray-light);
  transition: color .2s, padding-left .2s var(--ease-out);
}
.footer-links a:hover {
  color: var(--c-accent);
  padding-left: 6px;
}

.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
  color: var(--c-gray-light);
}
.footer-contact li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--c-accent);
  transform: rotate(45deg);
}

.footer-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-gray-mid);
}

.footer-word {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 8px 20px 12px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(56px, 14vw, 170px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(92, 99, 112, .35);
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px 20px 24px;
  border-top: 1px solid var(--c-gray-dark);
  font-size: 13px;
  color: var(--c-gray-mid);
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--c-gray-mid);
}
.footer-bottom a:hover {
  color: var(--c-accent);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, border-color .2s, color .2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(57, 255, 20, .28);
}

.btn-outline {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.btn-outline:hover {
  background: rgba(57, 255, 20, .1);
}

.btn-dark {
  background: var(--c-surface);
  border-color: var(--c-gray-dark);
  color: var(--c-white);
}
.btn-dark:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 4px;
  height: 0;
  background: var(--c-accent);
  transition: height .3s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.card-hover:hover::before {
  height: 100%;
}

/* ---------- 9. 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge-live {
  background: var(--c-orange);
  color: var(--c-bg);
}
.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-bg);
  animation: blinker 1.2s linear infinite;
}

.badge-data {
  background: var(--c-accent);
  color: var(--c-bg);
}

.badge-neutral {
  background: var(--c-surface);
  border: 1px solid var(--c-gray-dark);
  color: var(--c-gray-light);
}

.badge-warn {
  border: 1px solid var(--c-warning);
  color: var(--c-warning);
}

/* ---------- 10. 数据指标 ---------- */
.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
}
.metric-accent {
  color: var(--c-accent);
}
.metric-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gray-mid);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 8px;
  font-size: 14px;
  color: var(--c-gray-mid);
}
.breadcrumb a {
  color: var(--c-gray-mid);
  transition: color .2s;
}
.breadcrumb a:hover {
  color: var(--c-accent);
}
.breadcrumb .sep {
  color: var(--c-gray-dark);
}
.breadcrumb [aria-current="page"] {
  color: var(--c-white);
  font-weight: 600;
}

/* ---------- 12. 内页标题 ---------- */
.page-header {
  padding: clamp(56px, 10vw, 120px) 0 clamp(32px, 5vw, 56px);
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.page-kicker::after {
  content: "";
  width: 56px;
  height: 2px;
  background: var(--c-accent);
}
.page-title {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  text-transform: uppercase;
}
.page-intro {
  max-width: 58ch;
  margin-top: 16px;
  font-size: 17px;
  color: var(--c-gray-light);
}

/* ---------- 13. 标签页 ---------- */
.tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--c-gray-dark);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--c-gray-mid);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover {
  background: rgba(27, 38, 59, .5);
  color: var(--c-white);
}
.tab[aria-selected="true"],
.tab.is-active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.tab-panel {
  padding: 28px 2px;
  animation: fade-in .35s var(--ease-out);
}
.tab-panel[hidden] {
  display: none;
}

/* ---------- 14. 媒体占位 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-surface);
  border: 1px solid var(--c-gray-dark);
  border-radius: var(--radius);
}
.media-3-4 {
  aspect-ratio: 3 / 4;
}
.media-4-3 {
  aspect-ratio: 4 / 3;
}
.media-21-9 {
  aspect-ratio: 21 / 9;
}
.media::after {
  content: "IMG";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  text-indent: .2em;
  color: var(--c-gray-dark);
  transform: translate(-50%, -50%);
}
.media img,
.media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 15. 显现动画 ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 关键帧 ---------- */
@keyframes blinker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .25;
  }
}

@keyframes tick {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-link {
    padding: 10px 10px;
  }
  .nav-link::after {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 64px;
    --ticker-h: 34px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 990;
    display: none;
    margin-left: 0;
    padding: 12px 20px 20px;
    background: rgba(13, 27, 42, .98);
    border-bottom: 2px solid var(--c-accent);
    box-shadow: 0 28px 40px rgba(0, 0, 0, .45);
  }
  .site-nav[data-open] {
    display: block;
  }

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

  .nav-link {
    padding: 13px 12px;
  }
  .nav-link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: auto;
    width: 0;
    height: 100%;
    transform: none;
    transition: width .2s var(--ease-out);
  }
  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    width: 4px;
    transform: none;
  }
  .nav-link[aria-current="page"] {
    background: rgba(57, 255, 20, .07);
  }
}

@media (max-width: 700px) {
  .brand-name {
    font-size: 22px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .ticker-label {
    padding: 0 12px;
    font-size: 12px;
  }
  .ticker-viewport::before,
  .ticker-viewport::after {
    width: 14px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

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

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

  .ticker-text {
    animation: none;
  }
  .brand-dot,
  .ticker-live-dot,
  .badge-live::before {
    animation: none;
  }

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

  .skip-link {
    transition: none;
  }
}
