/* ============ 乐鱼体育 shared site.css ============ */

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

p {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-mild);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg: #0A1F44;
  --bg-deep: #071A3A;
  --accent: #FF6B35;
  --accent-mild: #FF8F5C;
  --silver: #C0C5D1;
  --neon: #39FF14;
  --rock: #8A8D91;
  --moss: #5A7D6D;
  --clay: #B5651D;
  --cream: #F5F0E6;
  --ink: #101828;
  --white: #FFFFFF;
  --font-display: "Arial Black", "DIN Alternate", "Roboto Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "IBM Plex Mono", "Consolas", monospace;
  --header-h: 72px;
  --container-w: 1240px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--neon);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

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

/* ---------- Container ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- Main ---------- */
#main-content {
  display: block;
  min-height: 60vh;
}

#main-content:focus {
  outline: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(192,197,209,0.16);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 18%,
    transparent 18% 55%,
    var(--neon) 55% 62%,
    transparent 62% 100%
  );
  opacity: 0.65;
  pointer-events: none;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  height: var(--header-h);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-mild);
  border-color: var(--accent-mild);
  color: var(--bg);
  transform: translateY(-1px);
}

.header-cta {
  padding: 10px 18px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  pointer-events: none;
  background: rgba(192,197,209,0.18);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  transition: width 0.1s linear;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid rgba(192,197,209,0.16);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 12%,
    var(--silver) 12% 18%,
    transparent 18% 46%,
    var(--neon) 46% 52%,
    transparent 52% 78%,
    var(--silver) 78% 84%,
    transparent 84% 100%
  );
  opacity: 0.7;
  pointer-events: none;
}

.footer-shell {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.2fr;
  gap: 40px;
  padding-block: clamp(32px, 6vw, 72px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-mark {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.footer-name {
  font-size: 26px;
}

.footer-trust {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  max-width: 40ch;
  margin: 0;
}

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

.footer-links-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rock);
  margin: 0 0 8px;
}

.footer-link {
  display: inline-block;
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  padding-block: 3px;
  transition: color 0.2s ease, padding-left 0.2s ease, transform 0.2s ease;
}

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

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

.contact-line {
  font-size: 14px;
  color: var(--silver);
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid rgba(192,197,209,0.15);
  font-size: 13px;
  color: var(--rock);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver);
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

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

.breadcrumbs [aria-current] {
  color: var(--silver);
}

/* ---------- Section Panels ---------- */
.section-panel {
  --cut: 14px;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(24px, 4vw, 56px);
  border-radius: 4px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.section-panel h1,
.section-panel h2,
.section-panel h3,
.section-panel h4 {
  color: var(--bg);
}

.section-panel a {
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.section-index {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--bg);
}

/* ---------- Grid Helpers ---------- */
.grid-panel {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--silver);
  background: transparent;
  color: var(--silver);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}

.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(192,197,209,0.35);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Live Pulse ---------- */
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--neon);
}

.live-pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    background: var(--bg-deep);
    border-top: 1px solid rgba(192,197,209,0.1);
    border-bottom: 3px solid var(--accent);
    padding: 20px clamp(16px, 4vw, 48px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }

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

  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(192,197,209,0.14);
  }

  .nav-link::before {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--accent);
  }

  .nav-index {
    font-size: 12px;
  }

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

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 18px;
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

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

  .live-pulse::before {
    animation: none;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.4);
  }

  .scroll-progress span {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
