/* =========================================================
   w88优德赛场 · 共享样式表 /assets/site.css
   深墨绿赛场底 + 荧光数据强调 + 悬浮胶囊导航 + 框景结构
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 112px;
}

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

ul, ol { list-style: none; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --bg: #0B1512;
  --panel: #131C18;
  --raise: #1C2A24;
  --accent: #C8F741;
  --accent-dim: #8FA83A;
  --away: #7FA6C6;
  --home: #FF6A3C;
  --paper: #EFE6D2;
  --ink: #B9C7BE;
  --ink-strong: #E9F1EB;
  --muted: #7C8C84;
  --line: #2A3A32;
  --frame: #0A0F0C;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "PingFang SC", monospace;

  --maxw: 1280px;
  --gutter: 16px;
  --dur: 0.18s;
}

@media (min-width: 720px)   { :root { --gutter: 22px; } }
@media (min-width: 1200px)  { :root { --gutter: 28px; } }

/* ---------- 3. 页面基底 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0.01em;
  color: var(--ink);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(200, 247, 65, 0.028) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
  background-attachment: fixed;
  padding-top: clamp(88px, 9vw, 104px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

p { text-wrap: pretty; }

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-240%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #0A0F0C;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--dur) ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 12px 0;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -26px rgba(0, 0, 0, 0.95);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.08s linear;
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 28px, var(--maxw));
  margin-inline: auto;
  padding: 8px 10px 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--frame), 0 24px 42px -34px rgba(0, 0, 0, 0.95);
  transition: padding var(--dur) ease;
}

.site-header.is-compact { padding: 7px 0; }
.site-header.is-compact .nav-capsule { padding: 5px 8px 5px 14px; }
.site-header.is-compact .brand__tag { display: none; }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__mark {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--accent);
  color: #0A0F0C;
  line-height: 1.15;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
  white-space: nowrap;
}

.brand__tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 桌面导航 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) ease;
}

.nav-link:hover { color: var(--ink-strong); background: var(--raise); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 胶囊右侧工具区 */
.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--raise);
  border: 1px solid var(--line);
}

.status-dot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.status-dot__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.42; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #0A0F0C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--frame);
  transition: transform var(--dur) ease;
}

.nav-cta:hover { transform: translateY(-1px); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 600;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transition: background-color var(--dur) ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transition: transform var(--dur) ease, top var(--dur) ease;
}

.nav-toggle__bars::before { top: -4px; }
.nav-toggle__bars::after  { top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 84px;
  padding: 52px 0 30px;
  background: var(--frame);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-brand__mark {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent);
  color: #0A0F0C;
}

.footer-brand__name {
  margin-top: 12px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-strong);
}

.footer-brand__line {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.footer-list a {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.footer-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-dim);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

.footer-contact__item { display: flex; gap: 8px; }

.footer-contact__label {
  color: var(--accent-dim);
  letter-spacing: 0.06em;
}

.footer__footnote {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
}

.legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 7. 通用容器与框架 ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.frame {
  position: relative;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-dim);
  border-left: 2px solid var(--accent-dim);
}

.frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent-dim);
  border-right: 2px solid var(--accent-dim);
}

.frame--paper {
  background: var(--paper);
  border-color: var(--frame);
  color: var(--frame);
}

.frame--paper h2,
.frame--paper h3,
.frame--paper .h3 { color: var(--frame); }
.frame--paper p { color: #33301F; }

/* ---------- 8. 排版工具 ---------- */
.h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink-strong);
}

.h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.2;
  color: var(--ink-strong);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

.prose p + p { margin-top: 0.95em; }
.prose strong { color: var(--ink-strong); font-weight: 700; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul { margin: 0.8em 0; padding-left: 0; }
.prose li {
  position: relative;
  padding-left: 18px;
  margin-top: 0.45em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--accent-dim);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  margin: 26px 0;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}

.btn:hover { transform: translateY(-1px); border-color: var(--accent-dim); }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0F0C;
  box-shadow: 0 2px 0 var(--frame);
}

.btn--accent:hover { border-color: var(--accent); }

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

.btn--sm { padding: 8px 14px; font-size: 13px; }

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

.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }

.breadcrumb__current { color: var(--accent); }

/* ---------- 11. 分屏骨架 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.45fr);
  gap: 28px;
  align-items: start;
}

.split__aside {
  position: sticky;
  top: 104px;
  align-self: start;
}

.split__main { min-width: 0; }

/* ---------- 12. 目录索引 ---------- */
.index-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.index-list__item {
  display: block;
  padding: 9px 12px 9px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  transition: color var(--dur) ease, border-color var(--dur) ease, background-color var(--dur) ease;
}

.index-list__item[data-depth="1"] { font-weight: 700; font-size: 14px; }
.index-list__item[data-depth="2"] { font-weight: 600; }
.index-list__item[data-depth="3"] { font-weight: 500; color: var(--muted); }

.index-list__item:hover {
  color: var(--ink-strong);
  background: var(--panel);
}

.index-list__item.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--raise);
}

.index-list__label { display: inline-block; }

/* ---------- 13. 条目流 ---------- */
.entry-list { display: flex; flex-direction: column; }

.entry {
  padding: 14px 2px;
  border-top: 1px solid var(--line);
}

.entry:last-child { border-bottom: 1px solid var(--line); }

.entry__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.entry__title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink-strong);
}

.entry__title a:hover { color: var(--accent); }

.entry__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.entry__score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.entry__body {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 72ch;
}

/* ---------- 14. 数据条带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 22px 0;
  padding: 12px 18px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
}

.band__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.band__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.band__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-left: auto;
}

.band__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

/* ---------- 15. 标记与色点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tag--home { color: var(--home); border-color: rgba(255, 106, 60, 0.45); }
.tag--away { color: var(--away); border-color: rgba(127, 166, 198, 0.45); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot--home   { background: var(--home); }
.dot--away   { background: var(--away); }
.dot--accent { background: var(--accent); }

/* ---------- 16. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.06) brightness(0.88);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(11, 21, 18, 0.55) 0 1px,
    rgba(0, 0, 0, 0) 1px 3px
  );
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(11, 21, 18, 0.86);
}

/* ---------- 17. 平板与移动端 ---------- */
@media (max-width: 1040px) {
  .site-header { padding: 10px 0; }

  .nav-capsule {
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border-radius: 22px;
  }

  .site-header.is-compact .nav-capsule { border-radius: 20px; }

  .brand__tag { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 6;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 3px 0 var(--frame), 0 30px 46px -34px rgba(0, 0, 0, 0.95);
  }

  .nav-links[data-open] { display: flex; }

  .nav-link {
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 14.5px;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: var(--raise);
    color: var(--accent);
  }

  .nav-side { margin-left: auto; gap: 8px; }

  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; top: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { padding-top: 86px; }

  .nav-capsule { width: min(100% - 20px, var(--maxw)); }

  .status-dot { padding: 5px 9px; }
  .status-dot__text { font-size: 10.5px; }

  .nav-cta { padding: 8px 13px; font-size: 12.5px; }

  .frame { padding: 18px; }

  .band { padding: 11px 14px; gap: 8px 16px; }
  .band__stats { margin-left: 0; width: 100%; }
  .band__value { font-size: 1.3rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; gap: 8px; }

  .media-frame { aspect-ratio: 3 / 2; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 14px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 12px; }
}

/* ---------- 18. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot__dot { animation: none; opacity: 1; }
  .scroll-progress { transition: none; }
}
