/* ==========================================================================
   K8体育入口 · 共享站点套件 /assets/site.css
   夜场比赛控制室：深绿底色 + 荧光黄绿行动色 + 等宽比分牌
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #06120E;
  --ink-800: #0C1C17;
  --ink-700: #12352B;
  --line: #1E4D3F;
  --line-soft: rgba(30, 77, 63, 0.55);
  --muted: #A7BCB3;
  --text: #E9F5EE;
  --lime: #C8FF3F;
  --signal: #19E08F;
  --alert: #FF6B3D;
  --cyan: #37D8E6;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC",
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "IBM Plex Mono", Consolas,
    "Liberation Mono", monospace;

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-stack);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 84% -12%, rgba(55, 216, 230, 0.10), transparent 62%),
    radial-gradient(900px 520px at 6% 2%, rgba(200, 255, 63, 0.06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-stretch: condensed;
}

h1 { font-size: clamp(2rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.55rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.15rem); }

p { max-width: 44ch; }

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

/* ---------- 4. 布局助手 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

#main-content { display: block; }

.page-main {
  padding-block: clamp(28px, 5vw, 64px) clamp(40px, 7vw, 88px);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 42ch;
}

.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink-900);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 18, 14, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 44px -40px rgba(0, 0, 0, 1);
}

.site-header__status {
  background: linear-gradient(
    90deg,
    rgba(18, 53, 43, 0.9),
    rgba(12, 28, 23, 0.6) 58%,
    rgba(6, 18, 14, 0.35)
  );
  border-bottom: 1px solid var(--line-soft);
}

.site-header__status-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  padding-block: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.statusline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: none;
  color: var(--text);
  white-space: nowrap;
}

.statusline--muted {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.statusline__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10.5px;
}

.statusline__value {
  color: var(--signal);
  font-weight: 700;
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.dot--ok {
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(25, 224, 143, 0.16);
}

.dot--alert {
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.16);
}

.site-header__bar {
  background: linear-gradient(90deg, rgba(12, 28, 23, 0.96), rgba(6, 18, 14, 0.99));
}

.site-header__bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 74px;
  padding-block: 12px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  box-shadow: 0 8px 22px -12px rgba(200, 255, 63, 0.85);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.brand:hover .brand__mark {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(200, 255, 63, 1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  display: block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.brand--footer .brand__mark {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 53, 43, 0.55);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(55, 216, 230, 0.08);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

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

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__text {
  line-height: 1;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}

.nav-seam {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

/* 右端工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tool-link {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.tool-link:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(55, 216, 230, 0.08);
}

/* 滚动进度 */
.progress-rail {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(30, 77, 63, 0.5);
}

.progress-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.1s linear;
}

/* ---------- 7. 通用按钮 / 标签 / 卡片 / 图片容器 / 面包屑 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn--signal {
  background: var(--lime);
  color: var(--ink-900);
  box-shadow: 0 14px 30px -20px rgba(200, 255, 63, 0.95);
}

.btn--signal:hover {
  transform: translateY(-2px);
  background: #d6ff66;
}

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

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(18, 53, 43, 0.6);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--ok {
  background: var(--signal);
  border-color: transparent;
  color: var(--ink-900);
  font-weight: 700;
}

.tag--alert {
  background: var(--alert);
  border-color: transparent;
  color: #1A0A04;
  font-weight: 700;
}

.tag--info {
  background: rgba(55, 216, 230, 0.1);
  border-color: rgba(55, 216, 230, 0.45);
  color: var(--cyan);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  box-shadow: 0 20px 44px -38px rgba(0, 0, 0, 1);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 216, 230, 0.55);
  box-shadow: 0 26px 50px -34px rgba(55, 216, 230, 0.35);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--ink-700), var(--ink-800) 60%, var(--ink-900));
}

.media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

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

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 28, 23, 0.92), var(--ink-900) 72%),
    var(--ink-900);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan) 42%, transparent 88%);
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(24px, 3.4vw, 48px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40ch;
}

.footer-brand__summary {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
}

.footer-brand__status {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 53, 43, 0.5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--muted);
  max-width: 36ch;
}

.footer-brand__status .dot {
  margin-top: 6px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
  border-bottom-color: var(--lime);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 14px;
  padding-block: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.footer-contact__item--wide {
  flex-wrap: wrap;
}

.footer-contact__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text);
  word-break: break-word;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.copy-btn:hover {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
}

.copy-btn[data-copied] {
  color: var(--ink-900);
  background: var(--lime);
  border-color: var(--lime);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: clamp(18px, 2.6vw, 26px) clamp(24px, 3.4vw, 36px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-legal__copy,
.footer-legal__icp {
  margin: 0;
  max-width: none;
}

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

.footer-legal__link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 9. 焦点与动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .dot--ok {
    animation: dot-breathe 3.8s ease-in-out infinite;
  }

  @keyframes dot-breathe {
    0%, 100% { box-shadow: 0 0 0 3px rgba(25, 224, 143, 0.16); }
    50% { box-shadow: 0 0 0 7px rgba(25, 224, 143, 0.04); }
  }
}

@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;
  }
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1140px) {
  .site-nav a { font-size: 13.5px; }
  .brand__sub { display: none; }
}

@media (max-width: 1080px) and (min-width: 921px) {
  .header-tools .tool-link { display: none; }
}

@media (max-width: 920px) {
  .site-header__bar-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 62px;
    padding-block: 10px;
  }

  .brand { order: 1; }
  .nav-toggle { order: 2; display: inline-flex; margin-left: auto; }

  .site-nav {
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

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

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-seam { display: none; }

  .site-nav a {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a::after { display: none; }

  .site-nav a[aria-current="page"] {
    color: var(--lime);
    padding-left: 12px;
    box-shadow: inset 2px 0 0 var(--cyan);
  }

  .header-tools {
    order: 4;
    display: none;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    padding-bottom: 14px;
  }

  .site-header[data-open] .header-tools { display: flex; }

  .header-tools .tool-link { flex: 1 1 40%; text-align: center; }
  .header-tools .btn { flex: 1 1 100%; }

  .statusline--muted { display: none; }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

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

@media (max-width: 860px) {
  .grid--two,
  .grid--three,
  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header__status-inner { font-size: 10.5px; }
  .statusline__label { display: none; }

  .brand__name { font-size: 14px; }
  .brand__mark { width: 38px; height: 38px; font-size: 14px; }

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

  .footer-legal { gap: 8px 16px; font-size: 11px; }
}
