/* =========================================================
   大发体育方站 · /assets/site.css
   共享外壳：刊头 / 页脚 / 排版 / 通用组件
   ========================================================= */

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

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

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

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

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

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0F0D;
  --panel: #101C18;
  --zone: #173E33;
  --line: #2C5C4F;
  --lime: #C8FF4A;
  --lime-dim: #d7ff72;
  --orange: #FF7A2F;
  --paper: #F2F5EE;
  --muted: #A9B8AF;
  --cyan: #4BE0C6;

  --line-soft: rgba(44, 92, 79, 0.55);
  --line-faint: rgba(44, 92, 79, 0.32);

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

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;

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

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(23, 62, 51, 0.55), transparent 68%),
    radial-gradient(820px 520px at -8% 26%, rgba(16, 28, 24, 0.92), transparent 70%),
    linear-gradient(180deg, #0B0F0D 0%, #0B0F0D 62%, #0a1210 100%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 12.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { font-weight: 700; color: var(--paper); }

::selection {
  background: var(--lime);
  color: #0B0F0D;
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 200;
  transform: translate(-50%, -220%);
  background: var(--lime);
  color: #0B0F0D;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 10px 20px;
  text-decoration: none;
  transition: transform 0.22s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(11, 15, 13, 0.98) 0%, rgba(11, 15, 13, 0.9) 100%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header[data-stuck] {
  border-bottom-color: rgba(200, 255, 74, 0.32);
  box-shadow: 0 22px 44px -34px #000;
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.1s linear;
}

/* 元信息带 */
.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 7px var(--gutter);
  border-bottom: 1px solid var(--line-faint);
}

.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 74, 0.14);
  animation: dot-pulse 2.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 品牌刊头 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 11px var(--gutter) 9px;
}

.masthead-brand {
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.5vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.masthead-brand::after {
  content: "";
  display: block;
  width: 0.4em;
  height: 0.4em;
  background: var(--lime);
  transform: translateY(-0.1em);
}

.masthead-brand:hover { color: var(--lime); }

.masthead-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.masthead-side--right {
  align-items: flex-end;
  text-align: right;
}

/* 导航带 */
.masthead-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line-faint);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 26px);
  flex-wrap: nowrap;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 15px 2px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

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

.nav-list a:hover,
.nav-list a:focus-visible { color: var(--paper); }

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

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

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

.masthead-cta { justify-self: end; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 13px 10px 13px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.22s var(--ease), top 0.22s var(--ease),
    bottom 0.22s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* ---------- 6. 通用文字与标签 ---------- */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.mono-tag--lime { color: var(--lime); }
.mono-tag--cyan { color: var(--cyan); }

.text-muted { color: var(--muted); }
.text-lime { color: var(--lime); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

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

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn-sig {
  background: var(--lime);
  color: #0B0F0D;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%
  );
}

.btn-sig:hover { background: var(--lime-dim); }

.btn-sig:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #0B0F0D, inset 0 0 0 4px var(--cyan);
}

.btn-ghost {
  background: rgba(16, 28, 24, 0.72);
  border-color: var(--line);
  color: var(--paper);
}

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

.btn-line {
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 16px;
}

.btn-line:hover {
  border-color: var(--cyan);
  color: var(--paper);
  background: rgba(75, 224, 198, 0.08);
}

/* ---------- 8. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 48px); }

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 24px);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
  margin-block: clamp(20px, 3vw, 36px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  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 + li::before {
  content: "/";
  color: var(--line);
}

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

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

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

/* ---------- 10. 区块标题条 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
}

.section-head h2,
.section-head h3 {
  font-size: clamp(22px, 2.8vw, 34px);
}

/* ---------- 11. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(158deg, rgba(23, 62, 51, 0.58) 0%, rgba(16, 28, 24, 0.96) 72%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 20px 44px -36px #000;
}

.card--cut {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%
  );
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--zone) 0%, #0B0F0D 100%);
  border: 1px solid var(--line-soft);
}

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

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

.media--ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 92, 79, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 92, 79, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

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

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

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

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background:
    linear-gradient(180deg, rgba(23, 62, 51, 0.5) 0%, rgba(16, 28, 24, 1) 38%),
    var(--panel);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(44, 92, 79, 0.3) 1px,
    transparent 1px
  );
  background-size: 92px 100%;
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) clamp(22px, 3vw, 36px);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46ch;
}

.footer-brandline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.24;
  color: var(--paper);
}

.footer-tag {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
}

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

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

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
  padding-left: 9px;
  border-left-color: var(--cyan);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--line);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--paper);
  word-break: break-word;
  line-height: 1.55;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-legal { color: var(--paper); }

.footer-icp { color: var(--muted); }

.footer-note {
  flex: 1 1 260px;
  min-width: 0;
  color: var(--line);
}

/* ---------- 15. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(16, 28, 24, 0.94);
  border: 1px solid var(--line);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    visibility 0.22s var(--ease), border-color 0.22s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { border-color: var(--lime); }

.to-top-arrow {
  font-size: 13px;
  line-height: 1;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 12px; }
  .nav-list a { font-size: 12.5px; }
  .masthead-cta { padding: 11px 15px; font-size: 12.5px; }
}

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

@media (max-width: 900px) {
  .masthead-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
  }

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

  .masthead-cta { margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    justify-content: flex-start;
    background: linear-gradient(180deg, #101C18 0%, #0B0F0D 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -24px rgba(0, 0, 0, 0.95);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.32s var(--ease), visibility 0.32s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px var(--gutter) 16px;
  }

  .nav-list li + li { border-top: 1px solid var(--line-faint); }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: 0.03em;
  }

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

  .nav-list a[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--lime);
  }

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

@media (max-width: 820px) {
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-note { flex: 0 1 auto; }
}

@media (max-width: 640px) {
  .masthead-meta .mono-tag:last-child { display: none; }
  .masthead-side { display: none; }

  .masthead {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px var(--gutter) 11px;
  }

  .masthead-brand { font-size: clamp(23px, 7vw, 30px); }

  .masthead-cta { padding: 9px 12px; font-size: 11.5px; }

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

  .to-top { padding: 10px 13px; }
  .to-top-text { display: none; }
}

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

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

  .status-dot { animation: none; }
}
