/* ============================================================
   6688体育注册 · Shared Site Kit
   夜场战术室：深墨绿 / 荧光青 / 电光橙 / 1px 精密网格 / 直角
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Design tokens ---------- */
:root {
  --bg: #0A1F1A;
  --bg-2: #123029;
  --card: #0E2721;
  --line: #1E4A3F;
  --line-soft: rgba(30, 74, 63, 0.55);
  --cyan: #2FE6C8;
  --cyan-dim: rgba(47, 230, 200, 0.14);
  --orange: #FF7A2F;
  --orange-dim: rgba(255, 122, 47, 0.14);
  --rule: #A9BBD0;
  --ink: #E8F1EC;
  --muted: #8FA69F;
  --white: #FFFFFF;
  --ink-on-cyan: #04211B;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --gut: 24px;
  --pad: clamp(18px, 4vw, 48px);
  --maxw: 1320px;
  --hdr-h: 64px;
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: var(--ink-on-cyan); }

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

.container {
  width: min(calc(100% - var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 140;
  background: var(--cyan);
  color: var(--ink-on-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  transition: top 0.18s ease-out;
}

.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

/* ---------- 4. Header · 紧凑命令栏 ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 31, 26, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.hdr__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.hdr__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 34px);
  min-height: var(--hdr-h);
}

.hdr__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.hdr__dot {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 230, 200, 0.85);
  transition: background-color 0.18s ease;
}

.hdr__brand:hover .hdr__dot { background: var(--white); }

.hdr__brandtext { line-height: 1; }

.hdr__nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.hdr__navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  min-height: var(--hdr-h);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hdr__navlink::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 14px;
  height: 2px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.hdr__navlink:hover { color: var(--ink); }

.hdr__navlink[aria-current="page"] { color: var(--cyan); }

.hdr__navlink[aria-current="page"]::after { background: var(--cyan); }

.hdr__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.hdr__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  white-space: nowrap;
}

.hdr__status b { color: var(--ink); font-weight: 500; }

.hdr__statuskey { margin-right: 6px; }

.hdr__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
  white-space: nowrap;
}

.hdr__cta { padding: 9px 16px; font-size: 14px; white-space: nowrap; }

.hdr__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hdr__toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.hdr__togglebar {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cyan);
}

.hdr__togglelabel { line-height: 1; }

.hdr__scale { border-top: 1px solid var(--line-soft); }

.hdr__scalerow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 5px;
}

.hdr__tick {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hdr.is-compact .hdr__bar { min-height: 54px; }
.hdr.is-compact .hdr__scale { display: none; }
.hdr.is-compact .hdr__status,
.hdr.is-compact .hdr__count { display: none; }

/* ---------- 5. Footer · 编辑部目录 ---------- */
.ftr {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0 26px;
}

.ftr__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.ftr__brand {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ftr__brandnote {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 10px;
}

.ftr__totop {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 9px 14px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.ftr__totop:hover { border-color: var(--cyan); background: var(--cyan-dim); }

.ftr__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: 34px 0 40px;
}

.ftr__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.ftr__list { display: grid; gap: 9px; }

.ftr__link {
  display: inline-block;
  font-size: 15px;
  color: var(--rule);
  transition: color 0.18s ease;
}

.ftr__link:hover { color: var(--cyan); }

.ftr__info {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--rule);
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(30, 74, 63, 0.35);
}

.ftr__infokey {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2px;
}

.ftr__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--cyan { background: var(--cyan); color: var(--ink-on-cyan); }
.btn--cyan:hover { background: var(--white); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--text {
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}
.btn--text:hover { color: var(--white); }

/* ---------- 7. 面包屑 / 正文 / 网格 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.crumbs a { color: var(--muted); transition: color 0.18s ease; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--ink); }
.crumbs__sep { color: var(--line); }

.prose {
  max-width: 36em;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.4em; }
.prose strong { color: var(--white); font-weight: 700; }
.prose--rule { color: var(--rule); font-weight: 300; font-size: 15.5px; line-height: 1.95; }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
}

.section { padding-block: clamp(56px, 8vw, 110px); }
.section--alt { background: var(--bg-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.section-head__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

/* ---------- 8. 条款 / 面板 / 标签 / 数据 ---------- */
.clause {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}

.clause__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.clause__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 0 8px;
}

.clause__body {
  max-width: 34em;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--rule);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
}

.panel--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cut--br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.cut--tl { clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px); }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 9px;
}

.tag--cyan { color: var(--cyan); border-color: rgba(47, 230, 200, 0.45); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 47, 0.45); }

.stat__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.stat__value--cyan { color: var(--cyan); }
.stat__value--orange { color: var(--orange); }

/* ---------- 9. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.78) contrast(1.05);
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }
.figure--21x9 { aspect-ratio: 21 / 9; }

.figure__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 74, 63, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 74, 63, 0.5) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%, 100% calc(100% / 5);
  opacity: 0.6;
}

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(10, 31, 26, 0.94), rgba(10, 31, 26, 0));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rule);
}

/* ---------- 10. 主题筛选 ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
  min-width: 4.5em;
}

.filter__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 13px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.filter__btn:hover { color: var(--ink); border-color: var(--rule); }

.filter__btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-on-cyan);
}

.filter__empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 11. 显现 ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.46s ease-out, transform 0.46s ease-out;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .hdr__toggle { display: inline-flex; }

  .hdr__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--pad) 14px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

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

  .hdr__navlink {
    min-height: 0;
    padding: 15px 2px;
    font-size: 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .hdr__navlink::after { display: none; }

  .hdr__navlink[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--cyan);
  }

  .hdr__meta { margin-left: 0; }

  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .section-head__note { margin-left: 0; width: 100%; }
}

@media (max-width: 860px) {
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hdr__status,
  .hdr__count { display: none; }
  .hdr__brand { font-size: 16px; }
  .hdr__cta { padding: 8px 12px; font-size: 13px; }
  .ftr__foot { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  .grid12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr__togglelabel { display: none; }
  .ftr__head { align-items: flex-start; }
}

/* ---------- 13. 无障碍与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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