/* ==========================================================================
   乐鱼体育主站 · 共享样式 /assets/site.css
   深夜球场灯光下的电子战术板：青蓝底 + 蓝图网格 + 粗野主义粗边硬影
   ========================================================================== */

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

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

body { margin: 0; }

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

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

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

a { color: inherit; }

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

button { background: none; border: 0; }

table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #070B0E;
  --leyu: #0B3B4A;
  --leyu-2: #12566B;
  --line: #2E6E80;
  --paper: #F2F4F1;
  --signal: #B8FF3C;
  --pulse: #FF7A2F;
  --index: #8FA3AB;
  --offside: #D7263D;

  --line-soft: rgba(46, 110, 128, .42);
  --line-faint: rgba(46, 110, 128, .20);

  /* 尺寸 */
  --wrap: 1180px;
  --gap: clamp(16px, 2.6vw, 32px);
  --sec: clamp(56px, 8vw, 104px);

  /* 字体 */
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- 3. 全局排版 ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--leyu);
  background-image:
    radial-gradient(120% 70% at 50% -12%, rgba(184, 255, 60, .07), transparent 62%),
    radial-gradient(85% 60% at 100% 104%, rgba(255, 122, 47, .07), transparent 66%),
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: auto, auto, 76px 76px, 76px 76px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); }

:where(main) p { max-width: 34em; }

strong { font-weight: 700; }

::selection {
  background: var(--signal);
  color: var(--ink);
}

/* ---------- 4. 无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 11px 22px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: top .2s ease;
}

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

#main-content {
  display: block;
  scroll-margin-top: 132px;
  outline: none;
}

/* ---------- 5. 布局工具 ---------- */
.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

/* ---------- 6. 索引型文字 ---------- */
.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--index);
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--signal);
}

/* ---------- 7. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--index);
  margin-bottom: 22px;
}

.crumb a {
  color: var(--index);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.crumb a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.crumb-now { color: var(--paper); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--line);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

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

.btn--signal {
  background: var(--signal);
  color: var(--ink);
}

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

.btn--ghost:hover {
  color: var(--signal);
  border-color: var(--signal);
  box-shadow: 3px 3px 0 var(--line);
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--leyu-2);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(7, 11, 14, .55);
  color: var(--paper);
}

/* ---------- 10. 标签 / 状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tag:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.tag.is-on {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--index);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--index);
  flex: none;
}

.status--live::before { background: var(--signal); }
.status--soon::before { background: var(--pulse); }
.status--warn::before { background: var(--offside); }

/* ---------- 11. 图片容器 ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(7, 11, 14, .55);
}

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

.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--1x1  { aspect-ratio: 1 / 1; }

.frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 13px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
}

/* ---------- 12. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 2px solid var(--line-soft);
  box-shadow: 0 6px 0 rgba(7, 11, 14, .5);
}

.header-scale {
  height: 9px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 32px);
  opacity: .55;
  border-bottom: 1px solid var(--line-faint);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
  z-index: 2;
}

.header-shell { position: relative; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0 16px;
}

.masthead-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--index);
  text-transform: uppercase;
  white-space: nowrap;
  max-width: none;
}

.masthead-meta--end { text-align: right; }

.masthead-brand {
  display: block;
  padding: 0 30px;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.masthead-name {
  display: block;
  font-size: clamp(22px, 3.3vw, 34px);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.1;
}

.masthead-tag {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--signal);
}

/* 导航行 */
.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-top: 1px solid var(--line-soft);
}

.primary-nav { display: block; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-left: 1px solid var(--line-faint);
}

.nav-list li { display: flex; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  font-size: 14.5px;
  letter-spacing: .08em;
  color: var(--paper);
  text-decoration: none;
  border-right: 1px solid var(--line-faint);
  transition: color .18s ease, background-color .18s ease;
}

.nav-list a:hover {
  color: var(--signal);
  background: rgba(184, 255, 60, .06);
}

.nav-list a[aria-current="page"] {
  color: var(--signal);
  background: rgba(184, 255, 60, .09);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 2px;
  background: var(--signal);
}

/* 刊头右侧 CTA */
.header-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--signal);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.header-cta::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  flex: none;
}

.header-cta:hover {
  background: var(--paper);
  box-shadow: 1px 1px 0 var(--line);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  transition: color .18s ease, border-color .18s ease;
}

.nav-toggle:hover { color: var(--signal); border-color: var(--signal); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--signal);
  flex: none;
}

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

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after  { top: 5px; }

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

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

/* 中等宽度收紧导航 */
@media (max-width: 1080px) {
  .nav-list a {
    padding: 16px 13px;
    font-size: 13.5px;
    letter-spacing: .05em;
  }
  .nav-list a[aria-current="page"]::after { left: 13px; right: 13px; }
}

/* ---------- 13. 移动端页头 ---------- */
@media (max-width: 920px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0 12px;
    text-align: center;
  }

  .masthead-meta,
  .masthead-meta--end { text-align: center; font-size: 10px; letter-spacing: .16em; }

  .masthead-brand { padding: 0; border-left: 0; border-right: 0; }

  .nav-row {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    z-index: 120;
    background: var(--ink);
    border-top: 1px solid var(--line-soft);
    border-bottom: 2px solid var(--signal);
    box-shadow: 0 20px 0 rgba(7, 11, 14, .45);
    max-height: min(72vh, 460px);
    overflow-y: auto;
  }

  .primary-nav[data-open] { display: block; animation: nav-in .22s ease both; }

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

  .nav-list li { display: block; }

  .nav-list a {
    display: flex;
    width: 100%;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line-faint);
  }

  .nav-list a[aria-current="page"] { background: rgba(184, 255, 60, .1); }

  .nav-list a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .header-cta {
    position: static;
    transform: none;
    padding: 10px 14px;
    font-size: 12.5px;
    box-shadow: 3px 3px 0 var(--line);
  }
}

@media (max-width: 420px) {
  .header-cta::before { display: none; }
  .header-cta { padding: 10px 12px; letter-spacing: .04em; }
  .nav-toggle { padding: 10px 11px; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--sec);
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--signal);
}

.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 30px);
  opacity: .6;
}

.footer-grid {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
}

.footer-name {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: .12em;
}

.footer-pitch {
  margin-top: 12px;
  font-size: 14px;
  color: var(--index);
  max-width: 26ch;
}

.footer-icp {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--index);
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--signal);
}

.footer-nav a,
.footer-links a {
  font-size: 14.5px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.footer-nav li + li,
.footer-links li + li { margin-top: 10px; }

.footer-contact {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--index);
}

.footer-contact p { max-width: none; }

.footer-contact strong {
  color: var(--paper);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  word-break: break-all;
}

.footer-base {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line-soft);
}

.footer-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--index);
  max-width: none;
}

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

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { justify-content: flex-start; }
}

/* ---------- 15. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 16. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal],
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }
}
