/* =========================================================
   赛事通体育 · 共享样式 /assets/site.css
   01 重置  02 变量与主题  03 排版  04 页头  05 页脚
   06 按钮与基础组件  07 图片容器  08 动效与可访问性
   ========================================================= */

/* ---------- 01 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul, ol { padding: 0; }
.nav-list,
.footer-links,
.contact-list,
.breadcrumbs { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection {
  background: #5BE7B0;
  color: #05211A;
}

/* ---------- 02 变量与主题 ---------- */
:root {
  color-scheme: dark;

  /* 品牌色 */
  --ink-900: #07120F;
  --ink-800: #0E211C;
  --ink-700: #16302A;
  --mint: #5BE7B0;
  --amber: #F2A93B;
  --steel: #9CB3C9;
  --fog: #E9F2EC;
  --slate: #1B2A36;
  --moss: #A9C4B8;
  --clay: #E2705A;
  --mist: #CBD9D2;

  /* 语义色（阅读模式整体换肤） */
  --bg: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --line: rgba(91, 231, 176, 0.16);
  --text: var(--fog);
  --muted: var(--moss);
  --muted-2: var(--steel);
  --accent: var(--mint);
  --accent-warm: var(--amber);
  --accent-soft: rgba(91, 231, 176, 0.12);
  --accent-line: rgba(91, 231, 176, 0.40);
  --warm-soft: rgba(242, 169, 59, 0.12);
  --header-bg: rgba(14, 33, 28, 0.86);
  --header-border: rgba(91, 231, 176, 0.16);
  --nav-hover: rgba(91, 231, 176, 0.10);

  /* 形状与节奏 */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --wrap: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 浅色阅读模式：整体换肤 */
html[data-read-mode="true"] {
  color-scheme: light;
  --bg: #E9F2EC;
  --surface: #F4FAF6;
  --surface-2: #E6F0EA;
  --line: rgba(27, 42, 54, 0.14);
  --text: #1B2A36;
  --muted: #43596B;
  --muted-2: #5A7285;
  --accent: #16795A;
  --accent-warm: #B46910;
  --accent-soft: rgba(22, 121, 90, 0.10);
  --accent-line: rgba(22, 121, 90, 0.42);
  --warm-soft: rgba(180, 105, 16, 0.12);
  --header-bg: rgba(244, 250, 246, 0.90);
  --header-border: rgba(27, 42, 54, 0.14);
  --nav-hover: rgba(22, 121, 90, 0.10);
}

/* ---------- 03 排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(91, 231, 176, 0.030) 0 1px,
    transparent 1px 10px
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.35; letter-spacing: 0; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }

strong { font-weight: 600; color: var(--text); }
em { font-style: normal; color: var(--accent); }

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

.prose { max-width: 38em; }
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 2em; margin-bottom: 0.6em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

/* ---------- 04 页头 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 300;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--mint);
  color: #05211A;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 200ms var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--fog);
  outline-offset: -6px;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 120;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  transition: top 220ms var(--ease), width 220ms var(--ease);
}

.site-header[data-scrolled] {
  top: 8px;
  width: min(calc(var(--wrap) - 140px), calc(100% - 2rem));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: transform 120ms linear;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.75rem);
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  box-shadow: 0 22px 50px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: padding 220ms var(--ease), background 220ms var(--ease);
}

.site-header[data-scrolled] .header-shell {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  min-width: 0;
  border-radius: var(--radius-pill);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--mint), #2FB98A);
  color: #05211A;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
}

.brand-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 190ms var(--ease), background 190ms var(--ease), box-shadow 190ms var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--nav-hover);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 190ms var(--ease), border-color 190ms var(--ease), background 190ms var(--ease);
}

.tool-btn:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.tool-btn[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  transition: opacity 190ms var(--ease), box-shadow 190ms var(--ease);
}

.tool-btn[aria-pressed="true"] .tool-dot {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 190ms var(--ease), background 190ms var(--ease);
}

.nav-toggle:hover { border-color: var(--accent-line); background: var(--nav-hover); }

.nav-toggle-bars {
  display: grid;
  gap: 5px;
}

.nav-toggle-bars span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

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

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

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

/* ---------- 05 页脚 ---------- */
.site-footer {
  margin-top: clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(120% 90% at 10% 0%, var(--accent-soft), transparent 62%),
    var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem;
}

.footer-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-claim {
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 0.78fr)) 1.75fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-brand-note {
  margin-top: 0.6rem;
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted-2);
}

.footer-col-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.contact-list {
  display: grid;
  gap: 0.95rem;
}

.contact-item { display: grid; gap: 0.2rem; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.copy-btn[data-copied] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.contact-note {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted-2);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.footer-copy,
.footer-icp { white-space: nowrap; }

/* ---------- 06 按钮与基础组件 ---------- */
#main-content {
  display: block;
  padding-top: clamp(6.5rem, 9vw, 8rem);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.btn--primary {
  background: var(--accent-warm);
  color: #241202;
  box-shadow: 0 12px 30px -20px rgba(242, 169, 59, 0.95);
}

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

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

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

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 13px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  opacity: 0.5;
}

.breadcrumbs a { transition: color 180ms var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tag--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tag--warm { color: var(--accent-warm); border-color: rgba(242, 169, 59, 0.42); background: var(--warm-soft); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
}

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

/* ---------- 07 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.img-frame > img,
.img-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.70) contrast(1.05);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--accent-soft), transparent 62%);
  mix-blend-mode: screen;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 08 动效与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .brand-note { display: none; }
  .nav-link { padding: 0.45rem 0.6rem; font-size: 13px; }
  .tool-label { display: none; }
  .tool-btn { padding: 0.45rem 0.55rem; }
}

@media (max-width: 1040px) {
  .site-header,
  .site-header[data-scrolled] {
    top: 10px;
    width: calc(100% - 1.5rem);
  }

  .header-shell {
    padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.1rem;
  }

  .nav-item { width: 100%; }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-brand-note,
  .contact-note { max-width: 44ch; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .footer-inner,
  .wrap { width: calc(100% - 1.5rem); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .footer-meta { font-size: 11px; }
  .btn--sm { padding: 0.45rem 0.85rem; font-size: 12.5px; }
  .header-tools .tool-btn { display: none; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 14px; }
  .header-tools .btn--primary { display: none; }
}

@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.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
