/* =========================================================
   盈嘉赛事 · Site Kit 共享样式 / assets/site.css
   深夜球场控制室：深墨绿空间 + 青柠脉冲 + 暖橙提醒
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #071C16;
  --panel: #0E2A22;
  --lime: #C8FF3D;
  --orange: #FF7A3D;
  --mist: #8FB4C9;
  --white: #F4F7EF;
  --muted: #6E8579;
  --line: #2F5A4B;
  --lime-soft: #E9FFC2;
  --ink: #04120E;

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

  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 68px;
  --max-w: 1320px;
  --radius: 2px;
  --shadow-hard: 8px 8px 0 rgba(4, 18, 14, .68);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.02vw, 17px);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a { color: inherit; }

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

table { border-collapse: collapse; }

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

::selection { background: var(--lime); color: var(--bg); }

/* ---------- 3. 排版与工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.page-main {
  display: block;
  padding-top: var(--header-h);
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  border: 2px solid var(--bg);
  box-shadow: 4px 4px 0 rgba(4, 18, 14, .8);
  transition: top .22s var(--ease);
}

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

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--line);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.btn-lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--bg);
}

.btn-lime:hover { --btn-bg: var(--lime-soft); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--mist);
  box-shadow: 4px 4px 0 rgba(143, 180, 201, .22);
}

.btn-ghost:hover {
  --btn-fg: var(--lime);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 rgba(200, 255, 61, .22);
}

.btn-orange {
  --btn-bg: var(--orange);
  --btn-fg: var(--bg);
  box-shadow: 4px 4px 0 rgba(4, 18, 14, .8);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: .04em;
  box-shadow: 3px 3px 0 var(--line);
}

.btn-sm:hover { box-shadow: 5px 5px 0 var(--line); }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(14, 42, 34, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}

.tag--alert {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}

/* ---------- 8. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 28, 22, 0) 42%, rgba(7, 28, 22, .62) 100%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--plain::after { display: none; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-top: calc(var(--header-h) + clamp(22px, 3vw, 34px));
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

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

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

.breadcrumbs li::after {
  content: "/";
  color: var(--line);
}

.breadcrumbs li:last-child::after { content: ""; }

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

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

/* ---------- 10. 显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

[data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 站点头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 28, 22, .94) 0%, rgba(7, 28, 22, .58) 62%, rgba(7, 28, 22, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color .32s var(--ease), border-color .32s var(--ease), backdrop-filter .32s var(--ease);
}

.site-header[data-scrolled] {
  background: rgba(7, 28, 22, .97);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(47, 90, 75, .42);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(200, 255, 61, .55);
  transition: width .12s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  width: min(var(--max-w), 100% - 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
}

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

.brand-mark {
  width: 15px;
  height: 15px;
  background: var(--lime);
  box-shadow: 3px 3px 0 rgba(47, 90, 75, .95);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.brand:hover .brand-mark {
  transform: translate(2px, 2px);
  background: var(--lime-soft);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
}

.brand-en {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mist);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  opacity: .84;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}

.nav-list 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 .24s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible { opacity: 1; }

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  opacity: 1;
  color: var(--lime);
}

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

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta { white-space: nowrap; }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.nav-toggle-bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- 12. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 132px);
  background: var(--panel);
  border-top: 3px solid var(--line);
  color: var(--white);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(47, 90, 75, .55) 0 1px, transparent 1px 140px);
  opacity: .35;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, .9fr) 2.4fr;
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 80px);
}

.footer-brand-line {
  position: relative;
  padding-top: 20px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.4;
}

.footer-brand-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--lime);
}

.footer-brand-note {
  margin-top: 12px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, .55);
  animation: pulse-dot 2.8s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 61, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

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

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

.footer-contact {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
  word-break: break-word;
}

.footer-contact + .footer-contact { margin-top: 6px; }

.footer-contact .mono { color: var(--white); }

.footer-contact-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.8;
  color: var(--muted);
}

.footer-legal-line { max-width: 72ch; }

.footer-legal-meta { white-space: nowrap; }

/* ---------- 13. 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .brand-en { display: none; }
  .nav-list { gap: 12px; }
  .nav-list a { font-size: 13.5px; }
}

@media (max-width: 960px) {
  .header-actions { margin-inline-start: auto; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 26px;
    background: var(--panel);
    border-bottom: 3px solid var(--line);
    box-shadow: 0 18px 40px rgba(4, 18, 14, .6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  }

  .site-nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; }

  .nav-list a {
    display: block;
    padding: 15px 2px;
    font-size: 17px;
    opacity: .92;
  }

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

  .nav-list a[aria-current="page"] { padding-left: 14px; }
  .nav-list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 16px;
    margin-top: -8px;
    background: var(--lime);
  }

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

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

/* ---------- 14. 响应式：手机 ---------- */
@media (max-width: 600px) {
  :root { --header-h: 60px; }

  .brand-name { font-size: 15.5px; letter-spacing: .06em; }
  .brand-mark { width: 13px; height: 13px; }
  .header-cta { padding: 8px 11px; font-size: 12.5px; }
  .nav-toggle { padding: 8px 10px; gap: 8px; }

  .footer-cols { grid-template-columns: 1fr; gap: 26px; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
  }

  .footer-legal-meta { white-space: normal; }
}

@media (max-width: 420px) {
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 8px; }
}

/* ---------- 15. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-dot { animation: none; box-shadow: 0 0 0 3px rgba(200, 255, 61, .22); }
}
