/* ==========================================================================
   奥迪棋牌汇 · 赛事通体育安卓简体中文站
   共享层 /assets/site.css
   设计任务：夜间球场灯光下的数据仪表盘 + 棋牌桌颗粒秩序
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ao-950);
  background-image:
    radial-gradient(90% 55% at 50% -8%, rgba(200, 16, 46, .18), rgba(200, 16, 46, 0) 62%),
    linear-gradient(0deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-repeat: no-repeat, repeat, repeat;
  background-attachment: fixed, scroll, scroll;
  color: var(--ao-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--ao-700); margin: 2em 0; }

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

#main-content { display: block; scroll-margin-top: 96px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ao-950: #080A0D;
  --ao-900: #0F1216;
  --ao-800: #171B21;
  --ao-700: #222831;
  --ao-red: #C8102E;
  --ao-red-hi: #E01B36;
  --ao-green: #2BE08A;
  --ao-amber: #F5A524;
  --ao-cyan: #35D6E0;
  --ao-ink: #F4F6F8;
  --ao-muted: #9BA3AE;
  --ao-glass: rgba(255, 255, 255, .08);
  --ao-glass-line: rgba(255, 255, 255, .14);

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell-w: 1340px;
  --gap: clamp(14px, 1.8vw, 26px);
  --radius: 2px;
}

/* ---------- 3. 布局基础 ---------- */
.shell {
  width: min(100% - 32px, var(--shell-w));
  margin-inline: auto;
}

.grid { display: grid; gap: var(--gap); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rail { grid-column: span 2; }
.col-main { grid-column: span 10; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 1000px) {
  .rail, .col-main, .col-4, .col-6, .col-8 { grid-column: span 12; }
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--ao-red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 头部 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ao-950);
  border-bottom: 1px solid var(--ao-700);
}

/* 5.1 上层：品牌说明条 */
.masthead__tier--brand {
  background: linear-gradient(90deg, #0F1216 0%, #131A22 52%, #0F1216 100%);
  border-bottom: 1px solid var(--ao-700);
  max-height: 120px;
  overflow: hidden;
  transition: max-height .3s ease, opacity .24s ease, visibility .3s ease;
}
.masthead.is-condensed .masthead__tier--brand {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
}

.masthead__brandrow {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  padding: 13px 0;
}

/* 5.2 品牌章 */
.brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brandmark__chip {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  background: var(--ao-red);
  border-radius: var(--radius);
  flex: 0 0 auto;
}
.brandmark__chip::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.brandmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brandmark__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--ao-ink);
}
.brandmark__sig {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ao-muted);
  margin-top: 3px;
}
.brandmark:hover .brandmark__chip { background: var(--ao-red-hi); }

/* 5.3 定位句 */
.masthead__slogan {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: clamp(12px, 1.6vw, 24px);
  border-left: 1px solid var(--ao-700);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ao-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5.4 工具组 */
.masthead__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--ao-800);
  border: 1px solid var(--ao-700);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.region-pill__key { font-size: 11px; letter-spacing: .18em; color: var(--ao-muted); }
.region-pill__val { font-size: 12.5px; font-weight: 600; color: var(--ao-ink); }
.region-pill:hover { border-color: var(--ao-red); background: #1C222A; }

/* 5.5 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ao-800);
  color: var(--ao-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--brand { background: var(--ao-red); color: #fff; }
.btn--brand:hover { background: var(--ao-red-hi); }
.btn--ghost { background: transparent; border-color: var(--ao-700); }
.btn--ghost:hover { border-color: var(--ao-cyan); color: var(--ao-cyan); }
.btn--mini { padding: 8px 14px; font-size: 12.5px; }

/* 5.6 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ao-800);
  border: 1px solid var(--ao-700);
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .16s ease;
}
.nav-toggle:hover { border-color: var(--ao-red-hi); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] { border-color: var(--ao-red); color: var(--ao-red-hi); }

/* 5.7 下层：主导航条 */
.masthead__tier--nav {
  background: #05070A;
  border-bottom: 1px solid var(--ao-700);
}
.masthead__navrow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
}
.nav-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }

.nav-list { display: flex; align-items: stretch; gap: 2px; }
.nav-list__item { display: flex; }
.nav-list__link {
  display: block;
  padding: 15px 16px;
  border-bottom: 2px solid transparent;
  color: var(--ao-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.nav-list__link:hover {
  color: var(--ao-ink);
  background: rgba(255, 255, 255, .03);
}
.nav-list__link[aria-current="page"] {
  color: var(--ao-ink);
  border-bottom-color: var(--ao-red);
  background: linear-gradient(180deg, rgba(200, 16, 46, .16), transparent);
}

/* 5.8 实时迷你条 */
.live-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  background: rgba(43, 224, 138, .07);
  border: 1px solid rgba(43, 224, 138, .28);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.live-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ao-green);
  animation: ao-pulse 2s infinite;
}
.live-strip__label { color: var(--ao-green); }
.live-strip__value { color: var(--ao-ink); }

@keyframes ao-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 224, 138, .5); }
  70% { box-shadow: 0 0 0 8px rgba(43, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 224, 138, 0); }
}

/* 5.9 滚动进度 */
.masthead__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ao-red), var(--ao-amber) 62%, var(--ao-green));
  will-change: transform;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ao-900);
  border-top: 1px solid var(--ao-700);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(100%, 560px);
  height: 2px;
  background: linear-gradient(90deg, var(--ao-red), rgba(200, 16, 46, 0));
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(120px, .75fr));
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(22px, 3vw, 34px);
}

.foot-brand { display: flex; flex-direction: column; }
.foot-brand__line {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ao-ink);
}
.foot-brand__meta {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ao-muted);
}
.foot-stamp {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border: 1px solid rgba(245, 165, 36, .4);
  background: rgba(245, 165, 36, .1);
  color: var(--ao-amber);
  font-size: 10.5px;
  letter-spacing: .18em;
  border-radius: var(--radius);
}

.foot-col__heading {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ao-700);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ao-muted);
}
.foot-list { display: flex; flex-direction: column; gap: 9px; }
.foot-list__link {
  font-size: 13.5px;
  color: var(--ao-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.foot-list__link:hover { color: var(--ao-cyan); border-bottom-color: var(--ao-cyan); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding: 18px 0 34px;
  border-top: 1px solid var(--ao-700);
}
.foot-base__contact,
.foot-base__legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ao-muted);
}
.foot-base__contact { flex: 1 1 520px; }
.foot-base__legal { flex: 1 1 320px; font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- 7. 内容区骨架 ---------- */
.section { padding-block: clamp(36px, 5vw, 72px); }

.section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ao-700);
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ao-red-hi);
}
.section__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
}
.section__note { margin-left: auto; font-size: 12.5px; color: var(--ao-muted); }

.page-head { padding-block: clamp(30px, 4vw, 58px) clamp(18px, 2.4vw, 30px); }
.page-head__kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border: 1px solid rgba(200, 16, 46, .5);
  background: rgba(200, 16, 46, .12);
  color: var(--ao-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  border-radius: var(--radius);
}
.page-head__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
}
.page-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--ao-muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--ao-muted);
}
.breadcrumb a {
  color: var(--ao-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--ao-cyan);
  transition: color .16s ease;
}
.breadcrumb a:hover { color: var(--ao-cyan); }
.breadcrumb__sep { color: var(--ao-700); }

/* ---------- 8. 内容层与标签 ---------- */
.plate {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ao-800);
  border: 1px solid var(--ao-700);
  border-radius: var(--radius);
}

.glass-plate {
  padding: 14px 16px;
  background: var(--ao-glass);
  border: 1px solid var(--ao-glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--ao-700);
  background: rgba(255, 255, 255, .03);
  color: var(--ao-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag--live {
  color: var(--ao-green);
  border-color: rgba(43, 224, 138, .4);
  background: rgba(43, 224, 138, .1);
}
.tag--added {
  color: var(--ao-amber);
  border-color: rgba(245, 165, 36, .4);
  background: rgba(245, 165, 36, .1);
}
.tag--brand {
  color: #fff;
  border-color: transparent;
  background: var(--ao-red);
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* ---------- 9. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ao-800);
  border: 1px solid var(--ao-700);
  border-radius: var(--radius);
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06) brightness(.92);
}
.media-frame__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0) 38%, rgba(8, 10, 13, .9) 100%);
  pointer-events: none;
}
.media-frame__cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ao-ink);
}

/* ---------- 10. 横向主题带 ---------- */
.strip {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ao-700) transparent;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { background: var(--ao-700); border-radius: 99px; }
.strip__item {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
}

/* ---------- 11. 标签页 ---------- */
.tabs { display: block; }
.tabs__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ao-700);
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  appearance: none;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ao-muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.tabs__tab:hover { color: var(--ao-ink); }
.tabs__tab[aria-selected="true"] {
  color: var(--ao-ink);
  border-bottom-color: var(--ao-red);
}
.tabs__panel { padding-top: 20px; }
.tabs__panel[hidden] { display: none; }

/* ---------- 12. 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .masthead__slogan { display: none; }
}

@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

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

  .masthead__navrow {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  .nav-scroll {
    display: none;
    order: 3;
    flex: 1 0 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--ao-700);
  }
  .nav-scroll[data-open] { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list__link {
    padding: 12px 6px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .nav-list__link[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--ao-red);
    background: linear-gradient(90deg, rgba(200, 16, 46, .18), transparent);
  }
  .live-strip { margin-left: auto; }

  .masthead__progress { bottom: -1px; }
}

@media (max-width: 720px) {
  .masthead__brandrow { padding: 10px 0; gap: 10px; }
  .brandmark__sig { display: none; }
  .brandmark__title { font-size: 17px; }
  .region-pill { padding: 6px 9px; }
  .region-pill__val { display: none; }
  .region-pill__key { letter-spacing: .1em; }
  .live-strip__value { display: none; }
  .section__note { margin-left: 0; flex-basis: 100%; }
}

@media (max-width: 560px) {
  .nav-toggle__text { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { padding: 10px 16px; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .live-strip__dot { animation: none; box-shadow: 0 0 0 3px rgba(43, 224, 138, .22); }
}
