/* =========================================================
   多宝体育官网 · /assets/site.css
   共享外壳：变量 / 重置 / 排版 / 页头 / 页脚 / 基础组件
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --c-orange: #FF5A1F;
  --c-orange-deep: #DE4711;
  --c-navy: #0B1E3A;
  --c-paper: #F7F5F0;
  --c-green: #B6FF3D;
  --c-rock: #5A5F66;
  --c-moss: #3E5C4B;
  --c-clay: #C65A3A;
  --c-cream: #EDE6DA;
  --c-ink: #101820;
  --c-silver: #A8B2BD;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell-max: 1280px;
  --nav-max: 1360px;
  --gutter: clamp(18px, 4vw, 44px);

  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  --shadow-hard: 6px 6px 0 rgba(16, 24, 32, 0.16);
  --shadow-soft: 0 22px 48px -30px rgba(11, 30, 58, 0.85);

  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}

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

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; }

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

hr { border: 0; }

/* ---------- 3. 中文排版与通用文本 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p { margin: 0; overflow-wrap: break-word; }

.display-thin {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.display-bold {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.heading-xl {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.heading-md {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.index-label,
.eyebrow,
.data-xl,
.data-md,
.data-table,
.tag {
  font-variant-numeric: tabular-nums;
}

.index-label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-rock);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-orange);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.data-xl {
  font-family: var(--font-data);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.data-md {
  font-family: var(--font-data);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(48px, 7vw, 96px) 0; }

.stack > * + * { margin-top: 1rem; }

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

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

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

/* ---------- 5. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-green);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 0.7em 1.15em;
  background: var(--c-ink);
  color: var(--c-green);
  border: 2px solid var(--c-green);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.35em;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn:hover { transform: translate(-2px, -2px); }

.btn--accent {
  background: var(--c-orange);
  color: #ffffff;
  border-color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(182, 255, 61, 0.9);
}

.btn--accent:hover { box-shadow: 6px 6px 0 rgba(182, 255, 61, 1); }

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(16, 24, 32, 0.16);
}

.btn--outline:hover { box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.22); }

.btn--ghost {
  background: transparent;
  color: var(--c-paper);
  border-color: rgba(247, 245, 240, 0.5);
}

.btn--ghost:hover {
  background: rgba(247, 245, 240, 0.12);
  border-color: var(--c-paper);
}

.btn--compact {
  padding: 0.56em 1.05em;
  font-size: 14px;
}

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

/* ---------- 7. 页头：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 12px var(--gutter) 0;
  transition: padding-top 0.24s var(--ease);
}

.site-header.is-condensed { padding-top: 6px; }

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 9px 12px 9px 14px;
  background: var(--c-navy);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 var(--c-clay), var(--shadow-soft);
  transition: box-shadow 0.24s var(--ease), border-radius 0.24s var(--ease),
              padding 0.24s var(--ease);
}

.site-header.is-condensed .header-shell {
  box-shadow: 3px 3px 0 var(--c-clay), 0 14px 30px -26px rgba(11, 30, 58, 0.9);
}

/* 品牌章 */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 2px;
  border-radius: var(--radius-pill);
}

.brand-mark__glyph {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--c-orange);
  color: #ffffff;
  border: 2px solid var(--c-ink);
  border-radius: 13px;
  box-shadow: 2px 2px 0 var(--c-green);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-mark__name {
  color: var(--c-paper);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-mark__line {
  color: var(--c-silver);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

/* 导航胶囊组 */
.nav-island { margin-left: auto; }

.nav-island__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-island__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  color: rgba(247, 245, 240, 0.74);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.nav-island__link:hover {
  color: var(--c-paper);
  background: rgba(247, 245, 240, 0.1);
}

.nav-island__link[aria-current="page"] {
  color: var(--c-navy);
  background: var(--c-paper);
  box-shadow: inset 0 0 0 2px var(--c-green);
}

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(247, 245, 240, 0.08);
  border: 2px solid rgba(247, 245, 240, 0.28);
  border-radius: var(--radius-pill);
  color: var(--c-paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(247, 245, 240, 0.16);
  border-color: var(--c-paper);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-green);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

@media (max-width: 1040px) {
  .header-shell {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 10px 12px;
    box-shadow: 3px 3px 0 var(--c-clay), var(--shadow-soft);
  }

  .brand-mark { margin-right: auto; }

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

  .nav-island {
    order: 5;
    width: 100%;
    margin: 0;
    display: none;
  }

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

  .nav-island__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(247, 245, 240, 0.18);
  }

  .nav-island__link {
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 16px;
    color: rgba(247, 245, 240, 0.86);
  }

  .nav-island__link[aria-current="page"] {
    box-shadow: inset 0 0 0 2px var(--c-green);
  }
}

@media (max-width: 560px) {
  .site-header { padding-top: 8px; }
  .brand-mark__glyph { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
  .brand-mark__line { display: none; }
  .nav-toggle { padding: 9px 11px; }
  .nav-toggle__label { display: none; }
  .btn--compact { padding: 0.5em 0.9em; font-size: 13px; }
}

/* ---------- 8. 页脚：深空蓝纵向主轴 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background: var(--c-navy);
  color: var(--c-paper);
  border-top: 4px solid var(--c-orange);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(247, 245, 240, 0.26) 0 2px,
    transparent 2px 22px
  );
  opacity: 0.6;
  pointer-events: none;
}

.footer-canvas {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(46px, 6vw, 84px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.6fr));
  gap: clamp(28px, 4vw, 60px);
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.footer-brand__name {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-paper);
}

.footer-brand__name em {
  font-style: normal;
  color: var(--c-orange);
}

.footer-brand__line {
  margin-top: 12px;
  color: var(--c-silver);
  font-size: 12.5px;
  letter-spacing: 0.2em;
}

.footer-brand__note {
  margin-top: 18px;
  max-width: 36ch;
  color: rgba(247, 245, 240, 0.62);
  font-size: 14px;
  line-height: 1.85;
}

.footer-col__title {
  margin-bottom: 18px;
  color: var(--c-green);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer-col__list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-col__link {
  display: inline-block;
  color: rgba(247, 245, 240, 0.74);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.footer-col__link:hover {
  color: var(--c-paper);
  border-bottom-color: var(--c-orange);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(32px, 4vw, 54px);
  padding: clamp(20px, 2.6vw, 32px);
  background: rgba(247, 245, 240, 0.04);
  border: 2px solid rgba(247, 245, 240, 0.18);
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .footer-contact { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

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

.footer-contact__key {
  display: block;
  margin-bottom: 6px;
  color: var(--c-green);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.footer-contact__val {
  display: block;
  color: var(--c-paper);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact__meta {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 245, 240, 0.14);
  color: var(--c-silver);
  font-size: 13px;
  line-height: 1.8;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 240, 0.16);
  color: var(--c-silver);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.footer-base__copy { margin: 0; }
.footer-base__icp { margin: 0; }

/* ---------- 9. 基础组件 ---------- */
.surface {
  background: var(--c-paper);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-hard);
}

.surface--cream { background: var(--c-cream); }

.surface--navy {
  background: var(--c-navy);
  color: var(--c-paper);
  border-color: var(--c-navy);
}

.surface--moss {
  background: var(--c-moss);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

.divider {
  height: 3px;
  background: var(--c-ink);
  border: 0;
  margin: 0;
}

.divider--soft {
  height: 1px;
  background: rgba(16, 24, 32, 0.14);
}

.tick-rule {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 16px
  );
  opacity: 0.28;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 11px;
  background: var(--c-paper);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.tag--live {
  background: var(--c-green);
  color: var(--c-ink);
}

.tag--dark {
  background: var(--c-navy);
  color: var(--c-green);
  border-color: var(--c-green);
}

/* 面包屑 */
.breadcrumbs { padding-top: 20px; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--c-rock);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__list li + li::before {
  content: "/";
  color: var(--c-silver);
}

.breadcrumbs__link {
  color: var(--c-rock);
  border-bottom: 1px solid currentColor;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

.breadcrumbs__current {
  color: var(--c-ink);
  font-weight: 600;
}

/* 长文正文 */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #22303f;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}

.prose ul, .prose ol { padding-left: 1.35em; }

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--c-orange-deep);
  border-bottom: 2px solid rgba(255, 90, 31, 0.35);
}

.prose a:hover { border-bottom-color: var(--c-orange); }

.prose strong { font-weight: 800; }

.prose code {
  padding: 0.12em 0.42em;
  background: var(--c-cream);
  border-radius: 4px;
  font-family: var(--font-data);
  font-size: 0.9em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--c-orange);
  color: var(--c-rock);
}

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-cream);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
}

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

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(16, 24, 32, 0.06) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--c-cream), #ffffff);
  color: var(--c-rock);
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 12px;
}

.media-frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  background: var(--c-orange);
  color: #ffffff;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-data);
  font-size: 14px;
}

.data-table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--c-ink);
  color: var(--c-rock);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: left;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.1);
}

/* ---------- 10. 动态协议 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-green) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

:root.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ---------- 11. 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .btn:hover,
  .footer-col__link:hover {
    transform: none;
  }
}
