/* ============================================================
   乐鱼体育·中国 全站共享 CSS
   ============================================================ */

/* ---------- 1. CSS Variables ---------- */
:root {
  /* Brand Colors */
  --c-deep: #0A2342;
  --c-deep-light: #123B5E;
  --c-neon: #64FFDA;
  --c-orange: #FF6B35;
  --c-jewel: #0D3B4F;
  --c-indigo: #3D2E6D;
  --c-text: #E5EAF0;
  --c-muted: #9FB3C8;
  --c-gold: #D4AF37;

  /* Typography */
  --font-display: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-base: 0.35s ease;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-neon);
  text-decoration: none;
  transition: color var(--trans-fast);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ---------- 3. Chinese Typography ---------- */
body {
  font-feature-settings: "tnum" on;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--sp-3);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- 4. Container & Section ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  padding-block: var(--sp-7);
  position: relative;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.section__title {
  position: relative;
  padding-bottom: var(--sp-3);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange));
  border-radius: 2px;
}

.section__subtitle {
  color: var(--c-muted);
  font-size: 1rem;
  margin-top: var(--sp-2);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 35, 66, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.12);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-neon), transparent);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-4);
  position: relative;
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange));
  z-index: 3;
  pointer-events: none;
  transition: width 0.1s linear;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-neon);
  color: var(--c-deep);
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 9999;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 6. Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-text);
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-deep-light) 0%, var(--c-jewel) 100%);
  border: 1px solid rgba(100, 255, 218, 0.3);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--c-neon);
  position: relative;
  flex-shrink: 0;
}

.brand__mark::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__tag {
  align-self: flex-start;
}

.site-footer .brand {
  margin-bottom: var(--sp-4);
}

.site-footer .brand__mark {
  width: 40px;
  height: 40px;
  font-size: 19px;
  border-radius: 12px;
}

.site-footer .brand__name {
  font-size: 1.2rem;
}

/* ---------- 7. Navigation ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background var(--trans-fast), border-color var(--trans-fast);
  z-index: 1001;
}

.nav-toggle:hover {
  background: rgba(100, 255, 218, 0.08);
  border-color: rgba(100, 255, 218, 0.4);
}

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

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-neon);
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-nav__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--trans-fast), background var(--trans-fast);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
  border-radius: 2px;
}

.site-nav__link:hover {
  color: var(--c-neon);
  background: rgba(100, 255, 218, 0.06);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-neon);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--c-deep) 0%, #071A30 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  position: relative;
  margin-top: var(--sp-7);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), var(--c-orange));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: var(--sp-6);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
}

.site-footer__brand-col {
  max-width: 360px;
}

.site-footer__slogan {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}

.site-footer__trust {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.7;
  opacity: 0.9;
  border-left: 2px solid var(--c-gold);
  padding-left: var(--sp-3);
}

.site-footer__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-neon);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(100, 255, 218, 0.15);
  padding-bottom: var(--sp-3);
}

.site-footer__list li {
  margin-bottom: var(--sp-2);
}

.site-footer__list a {
  color: var(--c-muted);
  font-size: 0.9375rem;
  transition: color var(--trans-fast), padding-left var(--trans-fast);
  position: relative;
}

.site-footer__list a:hover {
  color: var(--c-neon);
  padding-left: var(--sp-2);
}

.site-footer__contact-list li {
  color: var(--c-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-2);
  display: flex;
  gap: var(--sp-2);
  line-height: 1.6;
}

.site-footer__hours {
  font-size: 0.8125rem;
  color: var(--c-gold);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--trans-fast);
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-neon);
  color: var(--c-deep);
}

.btn--primary:hover {
  background: #8fffe8;
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.35);
  transform: translateY(-2px);
}

.btn--orange {
  background: var(--c-orange);
  color: var(--c-deep);
}

.btn--orange:hover {
  background: #ff8555;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--c-neon);
  color: var(--c-neon);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(100, 255, 218, 0.08);
  border-color: #8fffe8;
}

/* ---------- 10. Tags & Labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

.brand__tag {
  background: var(--c-neon);
  color: var(--c-deep);
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.06);
}

/* ---------- 11. Cards ---------- */
.card {
  background: var(--c-deep-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-top: 2px solid var(--c-gold);
  border-right: 2px solid var(--c-gold);
  border-top-right-radius: var(--radius-lg);
  opacity: 0.6;
  transition: opacity var(--trans-fast);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 255, 218, 0.2);
}

.card:hover::before {
  opacity: 1;
}

/* ---------- 12. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--c-muted);
  padding-block: var(--sp-4);
}

.breadcrumb a {
  color: var(--c-neon);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--c-gold);
  font-family: var(--font-mono);
}

.breadcrumb [aria-current="page"] {
  color: var(--c-text);
  font-weight: 600;
}

/* ---------- 13. Grid ---------- */
.grid {
  display: grid;
  gap: var(--sp-4);
}

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

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

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* ---------- 14. Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}

.bento-item {
  grid-column: span 4;
  min-height: 200px;
}

.bento-item--wide {
  grid-column: span 6;
}

.bento-item--halfwide {
  grid-column: span 8;
}

.bento-item--full {
  grid-column: span 12;
}

.bento-item--tall {
  grid-column: span 3;
  grid-row: span 2;
}

/* ---------- 15. Image Placeholders ---------- */
.img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-deep-light) 0%, var(--c-jewel) 100%);
  border: 1px solid rgba(100, 255, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(225deg, rgba(100, 255, 218, 0.2) 50%, transparent 50%);
}

.img-wrap::after {
  content: '▲';
  font-size: 1.5rem;
  color: rgba(100, 255, 218, 0.25);
  font-family: var(--font-mono);
}

.img-wrap--16-9 {
  aspect-ratio: 16 / 9;
}

.img-wrap--4-3 {
  aspect-ratio: 4 / 3;
}

.img-wrap--1-1 {
  aspect-ratio: 1 / 1;
}

.img-wrap--3-2 {
  aspect-ratio: 3 / 2;
}

.img-wrap--2-1 {
  aspect-ratio: 2 / 1;
}

.img-wrap__decor {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-gold);
  background: rgba(10, 35, 66, 0.7);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  letter-spacing: 0.08em;
}

/* ---------- 16. Stats ---------- */
.stat {
  background: var(--c-deep-light);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  border-left: 3px solid var(--c-neon);
  position: relative;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-neon);
  letter-spacing: -0.02em;
}

.stat__number--orange {
  color: var(--c-orange);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: var(--sp-1);
}

/* ---------- 17. Divider ---------- */
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin: var(--sp-6) 0;
  position: relative;
}

.divider::after {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-gold);
  font-size: 0.75rem;
  background: var(--c-deep);
  padding-inline: var(--sp-3);
}

/* ---------- 18. Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. Utilities ---------- */
.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;
}

/* ---------- 20. Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 21. Media Queries ---------- */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }

  .bento-item {
    grid-column: span 6;
  }

  .bento-item--wide,
  .bento-item--halfwide {
    grid-column: span 12;
  }

  .bento-item--tall {
    grid-column: span 6;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--c-deep-light);
    border-left: 1px solid var(--c-gold);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
  }

  .site-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--c-neon), var(--c-orange), transparent 80%);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
  }

  .site-nav__link {
    padding: var(--sp-3) var(--sp-4);
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
  }

  .site-nav__link::after {
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .site-footer__brand-col {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding-block: var(--sp-5);
  }

  .section {
    padding-block: var(--sp-6);
  }

  .bento-item {
    grid-column: span 12;
  }

  .bento-item--wide,
  .bento-item--halfwide,
  .bento-item--tall {
    grid-column: span 12;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    font-size: 19px;
    border-radius: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .card {
    padding: var(--sp-4);
  }
}

/* ---------- 22. Reduced Motion ---------- */
@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;
  }

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

  .site-nav {
    transition: none;
  }

  .btn,
  .card,
  .site-footer__list a,
  .site-nav__link {
    transition: none;
  }
}
