/* ==========================================================
   大江体育PG游戏网 · Site Kit 共享样式
   视觉体系：深空蓝 × 荧光绿 × 烈焰橙 · 数据指挥台
   ========================================================== */

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

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

body {
  min-height: 100vh;
  background-color: var(--color-deep-space);
  color: var(--color-mist);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

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

ul,
ol {
  list-style: none;
}

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

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

input,
select,
textarea {
  font: inherit;
  border-radius: 0;
}

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

::selection {
  background: var(--color-neon-green);
  color: var(--color-deep-space);
}

/* ---------- 变量 ---------- */
:root {
  --color-deep-space: #0B1B3D;
  --color-vibrant-blue: #1B3A6B;
  --color-neon-green: #C6FF00;
  --color-flame-orange: #FF7A00;
  --color-graphite: #0A0E1A;
  --color-mist: #F5F7FA;
  --color-white: #FFFFFF;
  --color-silver: #9CA3AF;
  --color-alert: #E53935;
  --color-green-light: #E5FFCC;

  --font-heading: "Noto Sans SC", "Alibaba PuHuiTi", "Source Han Sans CN", sans-serif;
  --font-body: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", monospace;

  --container-max: 1200px;
  --container-padding: clamp(20px, 4vw, 48px);
  --header-h: 72px;
}

/* ---------- 版式 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

p {
  text-wrap: pretty;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ---------- 工具类 ---------- */
.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--color-neon-green);
  color: var(--color-deep-space);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.3s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(11, 27, 61, 0.96) 0%, rgba(11, 27, 61, 0.68) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: var(--color-deep-space);
  border-bottom-color: rgba(198, 255, 0, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* 品牌 */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-neon-green);
  flex-shrink: 0;
}

.brand-logo-glyph {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--color-deep-space);
  line-height: 1;
}

.brand-logo-live {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-flame-orange);
  border: 2px solid var(--color-deep-space);
  animation: live-ring 1.8s ease-out infinite;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--color-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-logo-text em {
  font-style: normal;
  color: var(--color-neon-green);
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  color: var(--color-flame-orange);
  border: 1px solid rgba(255, 122, 0, 0.5);
  background: rgba(255, 122, 0, 0.08);
  white-space: nowrap;
  transform: translateY(-1px);
}

/* 主导航 */
.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  color: rgba(245, 247, 250, 0.78);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--color-neon-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(198, 255, 0, 0.08);
}

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

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

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 247, 250, 0.25);
  background: rgba(11, 27, 61, 0.6);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

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

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-neon-green);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ---------- 快速查询条 ---------- */
.header-querybar {
  position: relative;
  z-index: 990;
  background: rgba(11, 27, 61, 0.88);
  border-bottom: 1px solid rgba(198, 255, 0, 0.14);
}

.querybar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px 14px;
}

.querybar-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid var(--color-neon-green);
  border-radius: 50%;
}

.querybar-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: var(--color-neon-green);
  transform: rotate(45deg);
}

.querybar-placeholder {
  flex: 1;
  min-width: 0;
  color: rgba(245, 247, 250, 0.55);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.querybar-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-neon-green);
  border: 1px solid rgba(198, 255, 0, 0.35);
  background: rgba(198, 255, 0, 0.06);
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-deep-space);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 255, 0, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neon-green);
  border-color: rgba(198, 255, 0, 0.5);
}

.btn-secondary:hover {
  background: rgba(198, 255, 0, 0.14);
  color: var(--color-white);
  border-color: var(--color-neon-green);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-mist);
  border-color: rgba(245, 247, 250, 0.3);
}

.btn-ghost:hover {
  border-color: var(--color-mist);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---------- 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-orange {
  color: var(--color-flame-orange);
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.08);
}

.badge-green {
  color: var(--color-neon-green);
  border-color: rgba(198, 255, 0, 0.35);
  background: rgba(198, 255, 0, 0.08);
}

/* ---------- 数据视觉 ---------- */
.data-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-neon-green);
  font-size: 1.2em;
  line-height: 1.2;
}

.data-card {
  background: rgba(27, 58, 107, 0.4);
  border: 1px solid rgba(245, 247, 250, 0.1);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.data-card:hover {
  border-color: rgba(198, 255, 0, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(27, 58, 107, 0.5);
  border: 1px solid rgba(245, 247, 250, 0.1);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-neon-green);
  animation: live-ring 1.8s ease-out infinite;
}

@keyframes live-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(198, 255, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 0, 0);
  }
}

/* ---------- 框景与网格 ---------- */
.stage-frame {
  position: relative;
  border: 1px solid rgba(245, 247, 250, 0.16);
}

.stage-frame::before,
.stage-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.stage-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--color-flame-orange);
  border-left: 3px solid var(--color-flame-orange);
}

.stage-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--color-flame-orange);
  border-right: 3px solid var(--color-flame-orange);
}

.grid-overlay {
  position: relative;
}

.grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.slant-accent {
  display: block;
  width: 64px;
  height: 6px;
  background: var(--color-neon-green);
}

.ticker-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 10px 16px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid rgba(198, 255, 0, 0.16);
}

/* ---------- 区块标题 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-neon-green);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-flame-orange);
}

.section-title {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

/* ---------- 内容网格（编辑部式） ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(24px, 4vw, 56px);
}

.aside-note {
  padding: 16px 18px;
  border-left: 3px solid var(--color-flame-orange);
  background: rgba(255, 122, 0, 0.08);
  font-size: 0.9rem;
  color: rgba(245, 247, 250, 0.7);
  margin-block: 16px;
}

/* ---------- 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-graphite);
  border: 1px solid rgba(245, 247, 250, 0.12);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.5s ease, filter 0.5s ease;
}

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

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: rgba(245, 247, 250, 0.5);
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--color-neon-green);
  transition: color 0.2s ease;
}

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

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(245, 247, 250, 0.3);
  font-size: 0.85em;
}

/* ---------- 数据表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 247, 250, 0.1);
}

.data-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neon-green);
  background: rgba(27, 58, 107, 0.4);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--color-deep-space) 0%, var(--color-graphite) 100%);
  border-top: 1px solid rgba(198, 255, 0, 0.18);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 160px;
  height: 3px;
  background: var(--color-neon-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 80px) 44px;
}

.footer-col {
  min-width: 0;
}

.footer-col-brand {
  max-width: 440px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-description {
  font-size: 0.9rem;
  color: rgba(245, 247, 250, 0.55);
  line-height: 1.8;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid rgba(198, 255, 0, 0.28);
  background: rgba(198, 255, 0, 0.06);
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.8);
}

.trust-badge-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-neon-green);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-heading::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-flame-orange);
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-link {
  position: relative;
  color: rgba(245, 247, 250, 0.65);
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--color-neon-green);
  padding-left: 6px;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--color-neon-green);
  background: rgba(198, 255, 0, 0.05);
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.55);
}

.footer-note .live-dot {
  margin-top: 7px;
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact-item {
  padding: 12px 14px;
  border-left: 2px solid rgba(255, 122, 0, 0.55);
  background: rgba(27, 58, 107, 0.35);
}

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.4);
}

.footer-contact-value {
  display: block;
  font-size: 0.92rem;
  color: var(--color-white);
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 247, 250, 0.08);
  padding-block: 20px 24px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.45);
}

/* ---------- 返回顶部 ---------- */
.back-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(11, 27, 61, 0.92);
  border: 1px solid var(--color-neon-green);
  color: var(--color-neon-green);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
}

.back-top-btn[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top-btn:hover {
  background: var(--color-neon-green);
  color: var(--color-deep-space);
}

/* ---------- 显现交互 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 响应式：平板与手机 ---------- */
@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--container-padding) * -1);
    right: calc(var(--container-padding) * -1);
    z-index: 10;
    background: rgba(10, 14, 26, 0.98);
    border-top: 1px solid rgba(198, 255, 0, 0.25);
    border-bottom: 1px solid rgba(198, 255, 0, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    max-height: calc(100vh - var(--header-h) - 8px);
    overflow-y: auto;
  }

  .main-nav[data-open] {
    display: block;
  }

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

  .nav-item:not(:first-child) {
    border-top: 1px solid rgba(245, 247, 250, 0.05);
  }

  .nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: 0;
    width: 3px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }

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

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

  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

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

  .brand-logo-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo-text {
    font-size: 1rem;
  }

  .brand-logo-live {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }

  .brand-version {
    display: none;
  }

  .querybar-badge {
    display: none;
  }

  .querybar-placeholder {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .back-top-btn {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- 减动效 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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