/* ============================================================
   亚慱体育站 · 共享样式 /assets/site.css
   档案室信号系统：墨蓝底板 + 荧光青绿数据 + 暖橙版本
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:root {
  --ink-900: #030D16;
  --ink-800: #061826;
  --ink-700: #0A2238;
  --panel: #12314D;
  --line: #2A4F6E;
  --line-soft: rgba(42, 79, 110, 0.55);
  --text: #E8F0F7;
  --muted: #A7BACB;
  --signal: #34F5C5;
  --signal-dim: rgba(52, 245, 197, 0.12);
  --amber: #FF9B4A;
  --amber-dim: rgba(255, 155, 74, 0.14);

  --w-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --grid-gap: clamp(14px, 1.6vw, 22px);
  --radius: 2px;

  --font-display: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --header-h: 68px;
}

body {
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    linear-gradient(180deg, rgba(52, 245, 197, 0.045), rgba(52, 245, 197, 0) 340px),
    repeating-linear-gradient(90deg, rgba(42, 79, 110, 0.14) 0 1px, rgba(42, 79, 110, 0) 1px 104px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  color: var(--text);
}

h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: 0; }

p { max-width: 40em; }

a { transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ skip link ------------------------------ */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--signal);
  color: #04121C;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------ header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(6, 24, 38, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(6, 24, 38, 0.985);
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, 0.95);
}

.progress-rail {
  display: block;
  height: 2px;
  background: rgba(42, 79, 110, 0.55);
  overflow: hidden;
}
.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  transition: width 0.14s linear;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.brand-line {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.brand-mark:hover .brand-line { color: var(--signal); }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: none;
  padding: 4px 9px;
  border: 1px dashed rgba(255, 155, 74, 0.55);
  border-radius: var(--radius);
  background: var(--amber-dim);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}
.version-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--amber);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--signal); color: var(--signal); }
.nav-toggle[aria-expanded="true"] { border-color: var(--signal); color: var(--signal); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.16s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), top 0.18s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.primary-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(18, 49, 77, 0.85); }
.nav-link[aria-current="page"] {
  color: var(--signal);
  background: var(--signal-dim);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-utils { display: flex; align-items: center; }

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--signal);
  color: #04121C;
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.cta-button:hover {
  background: #6BF8D5;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -16px rgba(52, 245, 197, 0.9);
}

.drawer-foot { display: none; }
.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.drawer-cta:hover { background: var(--signal-dim); }

/* ------------------------------ footer ------------------------------ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink-900);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(42, 79, 110, 0.9) 0 1px, transparent 1px 16px);
}

.footer-inner {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 58px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) 1.35fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

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

.footer-brand-line {
  max-width: 26em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.footer-brand-note {
  max-width: 30em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.footer-stamp {
  max-width: none;
  display: inline-block;
  margin-top: 18px;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

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

.footer-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
}
.footer-group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--signal);
  border-radius: 1px;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.footer-link:hover { color: var(--signal); }

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

.contact-list { display: flex; flex-direction: column; gap: 12px; }

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
}

.contact-key {
  flex: 0 0 100%;
  color: var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.6;
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text);
  word-break: break-all;
  line-height: 1.6;
}

.copy-btn {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  line-height: 1.6;
}
.copy-btn:hover { color: var(--signal); border-color: var(--signal); }
.copy-btn[data-copied="true"] {
  color: var(--signal);
  border-color: var(--signal);
  background: var(--signal-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(26px, 4vw, 42px);
  padding: 16px 0 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-legal, .footer-copy { max-width: none; }
.footer-legal { color: var(--muted); }
.footer-top-link { color: var(--signal); }
.footer-top-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------ 通用布局 ------------------------------ */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

.prose { max-width: 42em; }
.prose > * + * { margin-top: 1em; }
.prose p { max-width: none; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--signal); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}
.breadcrumb a:hover { color: var(--signal); }

/* ------------------------------ 通用组件 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: #04121C; }
.btn--signal:hover { background: #6BF8D5; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-dim); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  white-space: nowrap;
}
.tag--signal { color: var(--signal); border-color: rgba(52, 245, 197, 0.45); background: var(--signal-dim); }
.tag--amber { color: var(--amber); border-color: rgba(255, 155, 74, 0.5); background: var(--amber-dim); }

.eyebrow {
  display: block;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
}
.panel-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--amber);
  border-radius: 1px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.note {
  max-width: 44em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.divider {
  height: 0;
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.section-panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(18, 49, 77, 0.92), rgba(10, 34, 56, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.section-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62px;
  height: 2px;
  background: var(--signal);
}

.index-link {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.index-link:hover { color: var(--text); background: rgba(18, 49, 77, 0.7); }
.index-link[aria-current="true"],
.index-link[aria-current="page"] {
  color: var(--signal);
  border-left-color: var(--signal);
  background: var(--signal-dim);
}

/* ------------------------------ 图片容器基础 ------------------------------ */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-700);
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 79, 110, 0.45) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(0deg, rgba(42, 79, 110, 0.3) 0 1px, transparent 1px 30px),
    linear-gradient(140deg, #0A2238, #12314D 62%, #0A2238);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

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

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

/* ------------------------------ 平板 ------------------------------ */
@media (max-width: 1080px) {
  .version-badge { display: none; }
  .nav-link { padding: 9px 8px; font-size: 13px; }
  .header-nav { gap: 12px; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------ 移动 ------------------------------ */
@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }

  .header-inner { flex-wrap: nowrap; padding: 10px var(--gutter); gap: 10px; }
  .brand-block { gap: 0; }
  .brand-glyph { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .brand-line { font-size: 13.5px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.16em; }

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

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--ink-700);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -28px rgba(0, 0, 0, 0.95);
  }
  .header-nav[data-open] { display: flex; }

  .primary-nav { width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(42, 79, 110, 0.55);
    border-radius: 0;
    font-size: 15px;
  }
  .nav-link::after { content: none; }
  .nav-link[aria-current="page"] {
    background: var(--signal-dim);
    border-left: 2px solid var(--signal);
    padding-left: 14px;
  }

  .header-utils { padding: 14px 0 6px; }
  .cta-button { width: 100%; }

  .drawer-foot {
    display: block;
    margin-top: 10px;
    padding: 12px 0 18px;
    border-top: 1px dashed var(--line-soft);
  }

  .span-4, .span-6, .span-8 { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-brand-note { font-size: 13px; }
}

@media (max-width: 420px) {
  .footer-links { grid-template-columns: minmax(0, 1fr); }
  .brand-sub { display: none; }
}

/* ------------------------------ 动效降级 ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .cta-button:hover { transform: none; }
}
