/* ============================================================
   华体会赛场 · 共享样式表 /assets/site.css
   蓝图网格 / 深色赛场 / 直角细线 / 荧光绿-电光蓝-暖橙
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #05070C;
  --panel: #0A1220;
  --line: #17233A;
  --text: #E9F0FA;
  --muted: #93A3BC;
  --live: #35F0A0;
  --blue: #3D8BFF;
  --alert: #FF8A3D;
  --hover-green: #0F2C24;
  --disabled: #4A5A72;

  --grid-strong: rgba(23, 35, 58, 0.72);
  --grid-accent: rgba(61, 139, 255, 0.09);
  --header-bg: #05070C;

  --content-max: 1400px;
  --gutter: clamp(16px, 4vw, 56px);
  --rail: 300px;

  --font-display: "Inter Tight", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.is-night {
  --line: #0D1524;
  --panel: #070E19;
  --muted: #7E8DA4;
  --grid-strong: rgba(15, 24, 40, 0.6);
  --grid-accent: rgba(61, 139, 255, 0.05);
  --header-bg: #04060A;
}

/* ---------- 3. 基础排版与画布 ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-accent) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px, 180px 180px, 180px 180px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--live); color: #04140D; }

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

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(22px, 3vw, 40px);
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.rule { height: 1px; background: var(--line); border: 0; }

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

/* ---------- 5. 文字层级 ---------- */
.display-1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(44px, 8.5vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.index-label {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--live);
  flex: none;
}

.data-num {
  font-family: var(--font-data);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.prose p + p { margin-top: 1.1em; }

.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(61, 139, 255, 0.42);
}

.prose a:hover { color: var(--live); border-bottom-color: var(--live); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--live);
  border-color: var(--live);
  color: #04140D;
  font-weight: 600;
}

.btn--primary:hover {
  background: #5CF5B4;
  border-color: #5CF5B4;
  color: #04140D;
}

.btn--primary:active { transform: translateY(1px); }

.utility-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.utility-btn:hover { color: var(--text); border-color: var(--blue); }

.utility-btn[aria-pressed="true"] {
  color: var(--blue);
  border-color: var(--blue);
}

.utility-dot {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
}

.utility-btn[aria-pressed="true"] .utility-dot { background: currentColor; }

/* ---------- 7. 头部 ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -120px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--live);
  color: #04140D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.scroll-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--live), var(--blue));
}

.header-top-rule {
  height: 9px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to right,
    rgba(61, 139, 255, 0.4) 0 1px,
    transparent 1px 48px
  );
}

/* 刊头 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding-block: clamp(14px, 2.1vw, 24px);
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masthead-side--start { justify-content: flex-start; }
.masthead-side--end { justify-content: flex-end; }

.masthead-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.masthead-kicker { color: var(--disabled); }

.masthead-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(23px, 3.1vw, 40px);
  line-height: 1;
  letter-spacing: 0.09em;
  color: var(--text);
  transition: color 0.18s var(--ease);
}

.masthead-title:hover { color: var(--live); }

.masthead-tick {
  display: block;
  width: min(300px, 48vw);
  height: 6px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px 12px
  );
}

/* 实时脉搏 */
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  min-width: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  animation: pulse-ring 2.4s var(--ease) infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(53, 240, 160, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 240, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 240, 160, 0); }
}

.pulse-copy {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-count { color: var(--live); }

.pulse-time { color: var(--alert); }

/* 导航 */
.masthead-nav {
  border-top: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(4px, 1.9vw, 34px);
  counter-reset: navidx;
}

.nav-link {
  display: block;
  padding: 14px 2px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--disabled);
  margin-right: 7px;
}

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

.nav-link[aria-current="page"] {
  color: var(--live);
  border-bottom-color: var(--live);
}

.nav-link[aria-current="page"]::before { color: var(--live); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 2px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  text-align: left;
}

.nav-toggle-bars {
  display: inline-grid;
  gap: 3px;
  width: 16px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: var(--live);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.masthead-nav[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.masthead-nav[data-open] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.masthead-nav[data-open] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.86), rgba(5, 7, 12, 1));
}

.site-footer::before {
  content: "";
  display: block;
  height: 9px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to right,
    rgba(53, 240, 160, 0.28) 0 1px,
    transparent 1px 48px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding-block: clamp(38px, 6vw, 72px);
}

.footer-brand { min-width: 0; }

.footer-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: 0.09em;
  color: var(--text);
  transition: color 0.18s var(--ease);
}

.footer-mark:hover { color: var(--live); }

.footer-tagline {
  margin-top: 12px;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-meta {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--disabled);
}

.footer-col-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}

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

.footer-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.footer-link:hover { color: var(--live); }

.footer-base {
  display: grid;
  gap: 6px;
  padding-block: 24px 36px;
  border-top: 1px solid var(--line);
}

.footer-contact {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  word-break: break-word;
}

.footer-note {
  font-size: 12px;
  color: var(--disabled);
}

.footer-legal {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a { transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--live); }

.breadcrumb-sep { color: var(--disabled); }

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

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

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

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
}

.media-frame > img,
.media-frame > picture > img {
  object-fit: cover;
  filter: saturate(0.36) contrast(1.08) brightness(0.94);
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    linear-gradient(140deg, rgba(53, 240, 160, 0.2) 0%, transparent 44%, rgba(61, 139, 255, 0.3) 100%);
}

.media-frame:hover > img,
.media-frame:hover > picture > img {
  transform: scale(1.035);
  filter: saturate(0.72) contrast(1.1) brightness(1);
}

/* ---------- 11. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.filter-btn:hover { color: var(--text); border-color: var(--blue); }

.filter-btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #03080F;
  font-weight: 600;
}

/* ---------- 12. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 13. 断点 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .masthead-side {
    justify-content: center;
    flex-wrap: wrap;
  }

  .masthead-brand { order: 1; }
  .masthead-side--start { order: 2; }
  .masthead-side--end { order: 3; }

  .masthead-tick { width: min(240px, 62vw); }
}

@media (max-width: 860px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: flex;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-block: 4px 10px;
    counter-reset: navidx;
  }

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

  .nav-link {
    padding: 13px 2px;
    font-size: 14px;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child .nav-link { border-bottom: 0; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

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

  .pulse-copy { font-size: 11px; }

  .pulse-time { display: none; }

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

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pulse-copy { letter-spacing: 0.04em; }
}

/* ---------- 14. 减少动效 ---------- */
@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;
  }

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

  .media-frame:hover > img,
  .media-frame:hover > picture > img { transform: none; }
}
