/* ==========================================================================
   AK赛场 · 共享样式表 /assets/site.css
   夜场指挥台：暗场聚光 + 比分牌网格 + 胶囊曲线
   ========================================================================== */

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

* { margin: 0; }

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

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(92% 46% at 50% -8%, rgba(215, 255, 62, 0.08), transparent 62%),
    radial-gradient(58% 40% at 100% 4%, rgba(255, 106, 42, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.6vw + 14px, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

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

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

ul, ol { list-style: none; padding: 0; }

p { text-wrap: pretty; }

::selection {
  background: var(--lime);
  color: #08110a;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #070B09;
  --panel: #0E1A14;
  --raise: #141A16;
  --lime: #D7FF3E;
  --orange: #FF6A2A;
  --red: #FF3B3B;
  --white: #F4F8F2;
  --mist: #A8B8AD;
  --line: #3A4C40;
  --slant: #1A3024;

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-lg: 34px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

strong { font-weight: 800; color: var(--white); }

time,
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* ---------- 4. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-title {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(20, 26, 22, 0.8);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.pill--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #08110a;
  font-weight: 700;
}

.pill--orange {
  border-color: rgba(255, 106, 42, 0.55);
  color: var(--orange);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: #08110a;
  box-shadow: 0 12px 30px -18px rgba(215, 255, 62, 0.9);
}

.btn--primary:hover { background: #e8ff78; transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--white);
}

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

.btn--orange {
  background: var(--orange);
  color: #1a0a02;
}

.btn--orange:hover { background: #ff8248; transform: translateY(-1px); }

/* ---------- 6. 面包屑 ---------- */
.breadcrumb { margin-block: 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--mist);
  transition: color 0.2s ease;
}

.breadcrumb__link:hover { color: var(--lime); }

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

/* ---------- 7. 图片框景（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(150deg, #16241c 0%, #0a120d 58%, #101a14 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 0%, rgba(215, 255, 62, 0.16), transparent 64%),
    linear-gradient(200deg, rgba(255, 106, 42, 0.1), transparent 46%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--slant {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.media-frame__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(7, 11, 9, 0.72);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

/* ---------- 8. 斜切节奏色带 ---------- */
.band {
  height: clamp(26px, 6vw, 60px);
  margin-block: clamp(36px, 7vw, 84px);
  background: linear-gradient(90deg, var(--slant) 0%, rgba(26, 48, 36, 0.25) 62%, rgba(255, 106, 42, 0.22) 100%);
  clip-path: polygon(0 42%, 100% 0, 100% 58%, 0 100%);
}

/* ---------- 9. 辅助 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: #08110a;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

.header-strip {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(58, 76, 64, 0.5) 0 1px, transparent 1px 96px);
  border-bottom: 1px solid rgba(58, 76, 64, 0.55);
}

.header-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 9px;
}

.header-strip__note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(215, 255, 62, 0.55);
  animation: ak-pulse 2.4s ease-out infinite;
}

@keyframes ak-pulse {
  0% { box-shadow: 0 0 0 0 rgba(215, 255, 62, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(215, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 255, 62, 0); }
}

.header-strip__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-block: clamp(12px, 1.8vw, 20px);
}

.masthead__aside {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--mist);
  white-space: nowrap;
}

.brand {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-inline: 8px;
  transition: transform 0.2s var(--ease);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  transition: color 0.2s ease;
}

.brand__sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--mist);
}

.brand__sub::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(215, 255, 62, 0.7);
}

.brand:hover .brand__name { color: var(--lime); }

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--raise);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  border-top: 1px solid rgba(58, 76, 64, 0.5);
  background: linear-gradient(180deg, rgba(26, 48, 36, 0.4), rgba(14, 26, 20, 0.1));
}

.site-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
}

.site-nav__list {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(215, 255, 62, 0.1);
}

.site-nav__link[aria-current="page"] {
  background: var(--lime);
  color: #08110a;
  font-weight: 700;
}

.site-nav__cta {
  grid-column: 3;
  justify-self: end;
  padding: 9px 18px;
  font-size: 13.5px;
}

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

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -30% 25% auto -25%;
  height: 360px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(215, 255, 62, 0.14), transparent 70%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 72px) 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 1.7fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(58, 76, 64, 0.6);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.footer-brand__sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--lime);
}

.footer-brand__summary {
  max-width: 44ch;
  margin-top: 14px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.75;
}

.footer-brand .btn { margin-top: 20px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.footer-list { display: grid; gap: 10px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 14.5px;
  color: var(--white);
  opacity: 0.86;
  transition: color 0.2s ease, opacity 0.2s ease, padding-left 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: background 0.2s ease, width 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  opacity: 1;
  padding-left: 18px;
}

.footer-link:hover::before {
  width: 10px;
  background: var(--lime);
}

.footer-contact {
  padding-block: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid rgba(58, 76, 64, 0.6);
}

.footer-contact__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.copy-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raise);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.copy-chip:hover {
  border-color: var(--lime);
  background: #182019;
}

.copy-chip__label {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.copy-chip__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.copy-chip__state {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime);
  opacity: 0.7;
}

.copy-chip--wide { grid-column: 1 / -1; }

.copy-chip--wide .copy-chip__value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.copy-chip.is-copied {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(215, 255, 62, 0.35);
}

.copy-chip.is-copied .copy-chip__state { opacity: 1; }

.footer-contact__note {
  max-width: 78ch;
  margin-top: 14px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-legal__icp { color: var(--mist); }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-inline-start: auto;
}

.footer-legal__links a {
  color: var(--mist);
  transition: color 0.2s ease;
}

.footer-legal__links a:hover { color: var(--lime); }

.footer-watermark {
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 26vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(58, 76, 64, 0.5);
  pointer-events: none;
  user-select: none;
}

/* ---------- 12. 滚动显现 ---------- */
html.is-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.is-reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav__cta { padding: 8px 14px; font-size: 12.5px; }
  .site-nav__link { padding: 8px 11px; font-size: 14px; }
}

@media (max-width: 959px) {
  .masthead__aside { display: none; }

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

  .site-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav[data-open="true"] {
    max-height: min(78vh, 660px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .site-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-block: 10px 18px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    display: block;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 16px;
    color: var(--white);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(215, 255, 62, 0.14);
    border-color: rgba(215, 255, 62, 0.45);
    color: var(--lime);
  }

  .site-nav__cta {
    justify-self: stretch;
    margin-top: 12px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .footer-top { grid-template-columns: 1fr; }

  .footer-legal__links { margin-inline-start: 0; }

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

@media (max-width: 640px) {
  .header-strip__meta { display: none; }

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

  .folder, .copy-chip { font-size: 12.5px; }

  .footer-watermark { font-size: clamp(140px, 46vw, 260px); opacity: 0.75; }
}

@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;
    scroll-behavior: auto !important;
  }

  html.is-reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
