/* =============================================
   多宝体育官方主站 · /assets/site.css
   共享层：框架式导航头部、页脚、基础组件
   ============================================= */

/* ---------- 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,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd, pre {
  margin: 0;
}

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

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

/* ---------- Variables ---------- */
:root {
  --primary-navy: #0B1B3F;
  --action-orange: #FF6B35;
  --metal-silver: #C0C0C0;
  --ink-navy-deep: #071228;
  --card-navy: #14295B;
  --ice-white: #F2F5FA;
  --slate-muted: #8B9BB5;
  --orange-soft: #FF9A76;
  --signal-green: #3CCF91;

  --font-display: Impact, "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --header-rail: 288px;
  --page-max: 1440px;
  --radius: 2px;
  --ease: 160ms ease;
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-navy-deep);
  background-color: var(--ice-white);
  background-image:
    linear-gradient(rgba(11, 27, 63, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 63, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink-navy-deep);
}

h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
h5, h6 { font-size: 16px; }

p {
  max-width: 68ch;
}

::selection {
  background: rgba(255, 107, 53, 0.25);
}

:focus-visible {
  outline: 2px solid var(--action-orange);
  outline-offset: 2px;
}

#main-content {
  outline: none;
}

/* ---------- 版心 / 栅格 / 深色区块 ---------- */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 48px;
}

.site-main {
  margin-left: var(--header-rail);
  width: calc(100% - var(--header-rail));
  min-height: 72vh;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
}

.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

.on-dark {
  background: var(--primary-navy);
  color: var(--ice-white);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark .section-title {
  color: var(--ice-white);
}

.on-dark .section-desc {
  color: var(--slate-muted);
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--action-orange);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius);
  transition: top 160ms ease;
}

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

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 3px;
  z-index: 260;
  background: linear-gradient(180deg, var(--action-orange), var(--orange-soft));
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- 框架式头部（左侧控制台导航） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--header-rail);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background:
    linear-gradient(168deg, rgba(255, 107, 53, 0.05) 0%, transparent 32%),
    linear-gradient(180deg, var(--primary-navy) 0%, var(--ink-navy-deep) 100%);
  border-right: 1px solid rgba(192, 192, 192, 0.28);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--action-orange) 0%, rgba(255, 107, 53, 0) 68%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  border-left: 2px solid rgba(192, 192, 192, 0.35);
  border-bottom: 2px solid rgba(192, 192, 192, 0.35);
}

.header-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px 24px;
}

.header-brand {
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ice-white);
}

.brand-mark::before {
  content: "";
  flex: 0 0 auto;
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--action-orange);
  transform: skewX(-14deg);
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--slate-muted);
}

.header-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(7, 18, 40, 0.55);
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-left: 2px solid var(--signal-green);
}

.status-lamp {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-green);
  animation: lamp-pulse 2.4s ease-in-out infinite;
}

@keyframes lamp-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(60, 207, 145, 0.12), 0 0 6px rgba(60, 207, 145, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(60, 207, 145, 0.2), 0 0 14px rgba(60, 207, 145, 0.7);
  }
}

.status-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ice-white);
  letter-spacing: 0.02em;
}

.site-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ice-white);
  border-left: 2px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, padding-left 160ms ease, color 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--action-orange);
  border-top: 2px solid var(--action-orange);
  transform: skewX(-10deg);
  opacity: 0;
  transition: opacity 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--card-navy);
  border-left-color: var(--action-orange);
  padding-left: 18px;
  color: var(--ice-white);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  background: var(--card-navy);
  border-left-color: var(--action-orange);
  color: var(--ice-white);
  font-weight: 700;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-action {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate-muted);
  background: transparent;
  border: 1px solid rgba(192, 192, 192, 0.22);
  border-left: 2px solid rgba(192, 192, 192, 0.4);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  color: var(--ice-white);
  background: var(--card-navy);
  border-color: var(--metal-silver);
  border-left-color: var(--action-orange);
}

.header-action--cta {
  color: var(--orange-soft);
  border-color: rgba(255, 107, 53, 0.35) rgba(255, 107, 53, 0.35) rgba(255, 107, 53, 0.35) var(--action-orange);
}

.header-action--cta:hover,
.header-action--cta:focus-visible {
  color: var(--primary-navy);
  background: var(--action-orange);
  border-left-color: var(--action-orange);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 5;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(7, 18, 40, 0.6);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: var(--radius);
}

.nav-toggle:hover {
  background: var(--card-navy);
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--action-orange);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--action-orange);
  transition: transform 160ms ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ice-white);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-left: var(--header-rail);
  width: calc(100% - var(--header-rail));
  background: linear-gradient(180deg, var(--ink-navy-deep) 0%, var(--primary-navy) 100%);
  border-top: 1px solid rgba(192, 192, 192, 0.2);
  color: var(--ice-white);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 72px;
  background: var(--action-orange);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 48px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.16);
}

.footer-brand .brand-mark {
  font-size: 24px;
}

.footer-brand .brand-mark::before {
  height: 22px;
}

.footer-trust {
  margin-top: 16px;
  max-width: 50ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate-muted);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ice-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--action-orange);
  transform: skewX(-14deg);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--slate-muted);
  transition: color 160ms ease, padding-left 160ms ease;
}

.footer-link-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: rgba(255, 107, 53, 0.55);
  transform: skewX(-14deg);
  transition: background-color 160ms ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: var(--ice-white);
  padding-left: 4px;
}

.footer-link-list a:hover::before,
.footer-link-list a:focus-visible::before {
  background: var(--action-orange);
}

.footer-contact p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-muted);
}

.footer-service {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(192, 192, 192, 0.14);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--slate-muted);
  letter-spacing: 0.02em;
}

/* ---------- 共用基础组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--action-orange);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--action-orange);
  transform: skewX(-20deg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding-left: 14px;
  border-left: 4px solid var(--action-orange);
}

.section-title {
  font-size: 34px;
  transform: skewX(-2deg);
}

.section-desc {
  margin-top: 6px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.btn-solid {
  background: var(--action-orange);
  color: var(--primary-navy);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--orange-soft);
  color: var(--primary-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-navy);
  border-color: rgba(11, 27, 63, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--action-orange);
  border-color: var(--action-orange);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--metal-silver);
}

.breadcrumb-link {
  color: var(--slate-muted);
  transition: color 160ms ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--action-orange);
}

.breadcrumb-current {
  color: var(--ink-navy-deep);
  font-weight: 600;
}

.panel {
  background: var(--card-navy);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-top: 2px solid var(--action-orange);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 14px rgba(7, 18, 40, 0.08);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ice-white);
  margin-bottom: 12px;
}

.panel-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 14px;
  background: var(--action-orange);
  transform: skewX(-14deg);
}

.panel p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ice-white);
  background: var(--card-navy);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 999px;
  white-space: nowrap;
}

.tag--live {
  color: var(--signal-green);
  border-color: rgba(60, 207, 145, 0.4);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-green);
}

.tag--count {
  color: var(--action-orange);
  border-color: rgba(255, 107, 53, 0.45);
  font-variant-numeric: tabular-nums;
}

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 45%),
    repeating-linear-gradient(-45deg, rgba(192, 192, 192, 0.1) 0 1px, transparent 1px 14px),
    var(--card-navy);
}

.img-frame img,
.img-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-right: 2px solid var(--action-orange);
  border-bottom: 2px solid var(--action-orange);
  opacity: 0.7;
  pointer-events: none;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

.img-frame--portrait {
  aspect-ratio: 4 / 5;
}

.data-table {
  width: 100%;
  font-size: 15px;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--slate-muted);
  border-bottom: 1px solid var(--metal-silver);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.3);
  color: var(--ink-navy-deep);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
  transition: background-color 160ms ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.08);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate-muted);
}

.metric-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--action-orange);
  font-variant-numeric: tabular-nums;
}

/* ---------- 滚动显现 ---------- */
.js [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 1023.98px) {
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(192, 192, 192, 0.26);
    box-shadow: 0 2px 10px rgba(7, 18, 40, 0.22);
  }

  .site-header::before,
  .site-header::after {
    display: none;
  }

  .header-inner {
    min-height: 0;
    display: block;
    padding: 14px 16px 10px;
  }

  .header-brand {
    padding-right: 88px;
  }

  .brand-mark {
    font-size: 24px;
  }

  .brand-mark::before {
    height: 22px;
  }

  .header-status {
    display: inline-flex;
    margin-top: 10px;
    padding: 5px 10px;
  }

  .status-text {
    font-size: 12px;
  }

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

  .site-nav {
    display: none;
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(192, 192, 192, 0.18);
  }

  .site-header[data-open="true"] .site-nav {
    display: block;
  }

  .nav-list {
    gap: 0;
  }

  .nav-link {
    padding: 13px 14px;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--action-orange);
  }

  .header-actions {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(192, 192, 192, 0.18);
  }

  .site-header[data-open="true"] .header-actions {
    display: flex;
  }

  .site-main {
    margin-left: 0;
    width: 100%;
  }

  .site-footer {
    margin-left: 0;
    width: 100%;
  }

  .grid-12 {
    gap: 16px;
  }

  .col-span-4,
  .col-span-5,
  .col-span-7 {
    grid-column: span 6;
  }

  .col-span-8,
  .col-span-12 {
    grid-column: span 12;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding: 0 20px;
  }

  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8 {
    grid-column: span 12;
  }

  .footer-inner {
    padding: 32px 20px 20px;
  }

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

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

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

/* ---------- 减少动效 ---------- */
@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;
  }

  .js [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
