/* =====================================================================
   乐鱼体育主站 · /assets/site.css
   共享层：reset、变量、中文排版、页头、页脚、通用组件与图片容器
   ===================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #102433;
  --deep: #071A2B;
  --panel: #0E3552;
  --race: #1B6A9C;
  --orange: #FF6A2B;
  --orange-deep: #C2410C;
  --mint: #22C7A9;
  --mist: #F3F7FA;
  --paper: #FFFFFF;
  --slate: #6C7F92;

  --hair: rgba(16, 36, 51, .12);
  --hair-light: rgba(243, 247, 250, .12);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-lg: 30px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --shadow-soft: 0 24px 52px -38px rgba(7, 26, 43, .9);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

::selection { background: rgba(255, 106, 43, .3); color: var(--deep); }

:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 4.8vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.38; }
h4 { font-size: 1.05rem; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(36px, 5vw, 74px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 2.6vw, 32px);
}

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

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 5. 按钮 ---------- */
.button {
  --btn-bg: var(--orange);
  --btn-fg: #071A2B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 16px 32px -20px rgba(255, 106, 43, .95);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -20px rgba(255, 106, 43, .9);
}

.button:active { transform: translateY(0); }

.button.button--primary {
  background: var(--orange);
  color: #071A2B;
}

.button.button--ghost {
  background: transparent;
  color: #F3F7FA;
  box-shadow: inset 0 0 0 1px rgba(243, 247, 250, .38);
}

.button.button--ghost:hover {
  background: rgba(243, 247, 250, .1);
  box-shadow: inset 0 0 0 1px rgba(243, 247, 250, .82), 0 18px 34px -24px rgba(0, 0, 0, .9);
}

.button.button--data {
  background: var(--mint);
  color: #052A24;
  box-shadow: 0 16px 32px -22px rgba(34, 199, 169, .95);
}

.button.button--data:hover {
  box-shadow: 0 22px 38px -22px rgba(34, 199, 169, .9);
}

/* ---------- 6. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #071A2B;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .22s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  color: #F3F7FA;
  background:
    radial-gradient(140% 150% at 50% -40%, rgba(27, 106, 156, .58), rgba(7, 26, 43, 0) 62%),
    linear-gradient(180deg, #071A2B 0%, #082234 58%, #071A2B 100%);
  border-bottom: 1px solid var(--hair-light);
}

.header-utility { border-bottom: 1px solid rgba(243, 247, 250, .08); }

.header-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(243, 247, 250, .6);
}

.header-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-notice__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: noticePulse 3.4s ease-in-out infinite;
}

.header-notice__link {
  color: var(--mint);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

.header-notice__link:hover { color: #FFFFFF; }

.header-hours {
  font-family: var(--font-mono);
  letter-spacing: .02em;
  color: rgba(243, 247, 250, .42);
}

.masthead { padding-block: clamp(16px, 2.4vw, 26px); }

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.brand {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  color: #FFFFFF;
  line-height: 1;
}

.brand__word {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 900;
  letter-spacing: .04em;
}

.brand__rule {
  display: block;
  width: clamp(72px, 12vw, 132px);
  height: 4px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--mint) 0%, var(--orange) 58%, var(--orange-deep) 100%);
  transform: scaleX(.78);
  transition: transform .28s ease;
}

.brand:hover .brand__rule { transform: scaleX(1); }

.masthead__cta { justify-self: end; }

.nav-toggle {
  justify-self: start;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 13px;
  border-radius: var(--pill);
  color: #F3F7FA;
  background: rgba(14, 53, 82, .92);
  box-shadow: inset 0 0 0 1px rgba(243, 247, 250, .16);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background .2s ease, box-shadow .2s ease;
}

.nav-toggle:hover { background: rgba(27, 106, 156, .9); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease;
}

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

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

/* 联赛胶囊带 */
.league-strip {
  padding-block: 11px 7px;
  border-top: 1px solid rgba(243, 247, 250, .08);
}

.league-strip__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.league-strip__label {
  flex: none;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(243, 247, 250, .45);
}

.league-strip__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.league-strip__track::-webkit-scrollbar { display: none; }

.league-chip {
  flex: none;
  scroll-snap-align: center;
  padding: 7px 16px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(243, 247, 250, .74);
  background: rgba(14, 53, 82, .9);
  box-shadow: inset 0 0 0 1px rgba(243, 247, 250, .1);
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.league-chip:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(34, 199, 169, .55);
}

.league-chip[aria-pressed="true"] {
  background: var(--orange);
  color: #071A2B;
  font-weight: 800;
  box-shadow: 0 8px 20px -10px rgba(255, 106, 43, .95);
}

.league-strip__status {
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .01em;
  color: rgba(34, 199, 169, .9);
  white-space: nowrap;
}

/* 主页导航 */
.site-nav {
  display: flex;
  justify-content: center;
  padding: 0 0 clamp(14px, 2vw, 22px);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

.site-nav__list a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(243, 247, 250, .76);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-nav__list a:hover {
  color: #FFFFFF;
  background: rgba(243, 247, 250, .09);
}

.site-nav__list a[aria-current="page"] {
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(255, 106, 43, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 43, .6);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 100px);
  padding: clamp(28px, 4vw, 56px) 0 0;
  border-radius: clamp(28px, 4vw, 46px) clamp(28px, 4vw, 46px) 0 0;
  color: rgba(243, 247, 250, .76);
  background:
    radial-gradient(92% 120% at 10% 0%, rgba(27, 106, 156, .42), rgba(7, 26, 43, 0) 62%),
    radial-gradient(70% 90% at 94% 6%, rgba(255, 106, 43, .18), rgba(7, 26, 43, 0) 64%),
    linear-gradient(180deg, #071A2B 0%, #05131F 100%);
  overflow: hidden;
}

.footer-callout {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: linear-gradient(118deg, rgba(27, 106, 156, .95) 0%, rgba(14, 53, 82, .94) 48%, rgba(7, 26, 43, .96) 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 247, 250, .1), 0 34px 66px -46px rgba(0, 0, 0, .95);
  overflow: hidden;
}

.footer-callout::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 199, 169, .3), rgba(34, 199, 169, 0) 70%);
  pointer-events: none;
}

.footer-callout__copy {
  position: relative;
  z-index: 1;
  flex: 1 1 340px;
  min-width: 0;
}

.footer-callout__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--mint);
}

.footer-callout__title {
  margin-top: 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: #FFFFFF;
}

.footer-callout__text {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(243, 247, 250, .76);
}

.footer-callout__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(30px, 4vw, 54px) clamp(26px, 3.5vw, 44px);
}

.footer-brand__mark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: #FFFFFF;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--mint), var(--orange)) 1;
}

.footer-brand__text {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(243, 247, 250, .72);
}

.footer-brand__meta {
  margin-top: 10px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(243, 247, 250, .46);
}

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

.footer-links__title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(34, 199, 169, .88);
}

.footer-links__list { margin-top: 12px; }

.footer-links__list a {
  display: inline-block;
  padding-block: 5px;
  font-size: 14.5px;
  color: rgba(243, 247, 250, .74);
  transition: color .18s ease, transform .18s ease;
}

.footer-links__list a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--orange);
}

.footer-contact__list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(243, 247, 250, .42);
}

.footer-contact__val {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 247, 250, .88);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 26px;
  padding-block: 16px clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(243, 247, 250, .1);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(243, 247, 250, .46);
}

.footer-bottom__legal { font-variant-numeric: tabular-nums; }

.footer-bottom__note { max-width: 52ch; }

/* ---------- 9. 通用内容组件 ---------- */
.card {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(16, 36, 51, .07);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--race);
  background: rgba(27, 106, 156, .1);
  box-shadow: inset 0 0 0 1px rgba(27, 106, 156, .18);
}

.data-band {
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--r-lg);
  color: #F3F7FA;
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(27, 106, 156, .5), rgba(7, 26, 43, 0) 60%),
    linear-gradient(160deg, #071A2B 0%, #0E3552 100%);
}

.breadcrumb { padding-top: clamp(16px, 2.2vw, 24px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
}

.breadcrumb__list li { display: flex; align-items: center; }

.breadcrumb__list li + li::before {
  content: "/";
  margin: 0 9px;
  color: rgba(108, 127, 146, .5);
}

.breadcrumb__list a { transition: color .18s ease; }

.breadcrumb__list a:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0E3552 0%, #071A2B 58%, #1B6A9C 100%);
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(7, 26, 43, 0) 44%, rgba(7, 26, 43, .56) 100%);
  pointer-events: none;
}

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #F3F7FA;
}

/* ---------- 11. 联赛筛选协议 ---------- */
[data-league][hidden] { display: none !important; }

/* ---------- 12. 动画 ---------- */
@keyframes noticePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 199, 169, .55); }
  50% { box-shadow: 0 0 0 6px rgba(34, 199, 169, 0); }
}

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

@keyframes leagueIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-league]:not([hidden]) { animation: leagueIn .26s ease both; }
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .masthead__cta {
    padding: 9px 15px;
    font-size: 13.5px;
  }

  .site-nav {
    display: none;
    padding: 0;
  }

  .site-nav[data-open] {
    display: block;
    width: min(calc(100% - var(--gutter) * 2), var(--wrap));
    margin: 4px auto 0;
    padding: 10px 0 20px;
    border-top: 1px solid rgba(243, 247, 250, .1);
    animation: navDrop .22s ease-out both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__list a {
    display: block;
    padding: 13px 18px;
    border-radius: var(--r-sm);
    font-size: 16px;
  }

  .league-strip__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .header-hours { display: none; }
  .header-utility__inner { padding-block: 9px; }
  .league-strip__label { display: none; }

  .footer-callout { flex-direction: column; align-items: flex-start; }
  .footer-callout__actions { width: 100%; }
  .footer-callout__actions .button { flex: 1 1 160px; }

  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-contact__list { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .brand__word { font-size: 1.3rem; }
  .masthead__cta { padding: 8px 12px; font-size: 12.5px; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .button:hover,
  .league-chip:hover,
  .footer-links__list a:hover { transform: none; }
}
