/* =========================================================
   十博体育官网 · 共享样式表 /assets/site.css
   顺序：重置 → 变量 → 基础排版 → 容器 → 通用组件 → 头部 → 页脚 → 响应式
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink: #06110D;
  --panel: #101614;
  --panel-teal: #0F3A31;
  --line: #24413A;
  --paper: #EDE3CE;
  --text: #E9F1EC;
  --dim: #9FB5AA;
  --cyan: #3FE3C6;
  --amber: #F3B444;
  --coral: #E4635B;

  /* 字体 */
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 尺度 */
  --edge: clamp(14px, 2.6vw, 40px);
  --max: 1520px;
  --reading: 68ch;
  --header-h: 76px;

  /* 圆角 */
  --r-sm: 2px;
  --r-md: 4px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 400ms;

  /* 层级 */
  --z-header: 60;
  --z-progress: 90;
  --z-skip: 200;
}

/* ---------- 3. 基础排版 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: var(--reading);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--dim);
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: var(--z-skip);
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  background: var(--paper);
  color: #0B1A15;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.9);
  transition: transform 200ms var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

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

.section { padding-block: clamp(38px, 5.6vw, 84px); }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section__title {
  margin-top: 10px;
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.prose { max-width: var(--reading); }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: clamp(20px, 2.2vw, 28px);
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 227, 198, 0.35);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.divider {
  height: 1px;
  margin: clamp(26px, 4vw, 56px) 0;
  background: var(--line);
  border: 0;
}

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* ---------- 5. 通用组件 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.panel--teal { background: var(--panel-teal); }
.panel--paper {
  background: var(--paper);
  color: #0B1A15;
  border-color: rgba(11, 26, 21, 0.25);
}
.panel--stack { isolation: isolate; }
.panel--stack::after {
  content: "";
  position: absolute;
  inset: 10px -9px -9px 10px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04140F;
  font-weight: 700;
}
.btn--primary:hover {
  background: #6EEDD8;
  border-color: #6EEDD8;
  color: #04140F;
}
.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #20160A;
  font-weight: 700;
}
.btn--amber:hover {
  background: #FFC96A;
  border-color: #FFC96A;
  color: #20160A;
}
.btn--ghost {
  border-color: rgba(63, 227, 198, 0.42);
  color: var(--cyan);
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.crumbs a {
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumbs__sep { color: #35564C; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(63, 227, 198, 0.36);
  background: rgba(63, 227, 198, 0.06);
}
.tag--amber {
  color: var(--amber);
  border-color: rgba(243, 180, 68, 0.42);
  background: rgba(243, 180, 68, 0.07);
}

.paper-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #0B1A15;
  background: var(--paper);
  border-radius: var(--r-sm);
  transform: rotate(-1.2deg);
}

/* 可复用的图片占位容器（页面阶段放图使用） */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--panel-teal);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 17, 13, 0) 42%, rgba(6, 17, 13, 0.86) 100%);
}
.media__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(90deg, rgba(63, 227, 198, 0.16) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(63, 227, 198, 0.1) 0 1px, transparent 1px 48px);
}
.media__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #04140F;
  background: var(--cyan);
  border-radius: var(--r-sm);
}

/* 显现动效 */
html[data-motion="on"] .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html[data-motion="on"] .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 滚动进度线 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-progress);
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  pointer-events: none;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(6, 17, 13, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--line) 24%, var(--line) 76%, transparent);
}
.site-header::before { left: var(--edge); }
.site-header::after { right: var(--edge); }

.site-header.is-condensed {
  background: rgba(6, 17, 13, 0.97);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.95);
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--edge);
  transition: min-height 280ms var(--ease);
}
.site-header.is-condensed .header-frame { min-height: 60px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  order: 1;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #0F3A31 0%, #06110D 100%);
}
.brand__mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(63, 227, 198, 0.4);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  background: var(--amber);
}
.brand__mark--sm { flex-basis: 28px; width: 28px; height: 28px; }
.brand__mark--sm::before { width: 9px; height: 9px; }
.brand__mark--sm::after { width: 5px; height: 5px; right: 3px; bottom: 3px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand__desc {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
  transition: opacity 240ms var(--ease);
}
.site-header.is-condensed .brand__desc { opacity: 0.55; }

/* 导航 */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  position: relative;
  display: block;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--dim);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease), background 200ms var(--ease);
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}
.site-nav__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* 右侧工具区 */
.header-tail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.season-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(243, 180, 68, 0.08);
  border: 1px solid rgba(243, 180, 68, 0.42);
  border-radius: var(--r-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.site-header.is-condensed .season-chip {
  opacity: 1;
  transform: none;
}
.header-cta {
  padding: 8px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  order: 3;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 240ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(4.5px) 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(-4.5px) rotate(-45deg);
}
.nav-toggle__text {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 7vw, 116px);
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer-frame {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(38px, 5.6vw, 84px) var(--edge) clamp(20px, 2.4vw, 32px);
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 44px;
  padding-bottom: clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.footer-brand__text { line-height: 1.2; }
.footer-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.footer-brand__desc {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.footer-note {
  max-width: 46ch;
  font-size: 14.5px;
  color: var(--dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(26px, 3.6vw, 48px);
}
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.footer-links li + li { margin-top: 9px; }
.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: var(--dim);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}
.footer-links a:hover {
  color: var(--text);
  transform: translateX(3px);
}
.footer-links a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.footer-links a:hover::before { opacity: 1; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 30px;
  margin-top: clamp(28px, 3.6vw, 48px);
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.footer-contact__label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.footer-contact__value {
  font-size: 14.5px;
  color: var(--text);
  word-break: break-word;
}
.footer-contact__note {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px dashed rgba(36, 65, 58, 0.9);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dim);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.footer-sitemap { color: #7C9187; }

.footer-mark {
  margin-top: clamp(20px, 3vw, 40px);
  overflow: hidden;
  white-space: nowrap;
  line-height: 0.86;
}
.footer-mark span {
  display: block;
  font-size: clamp(38px, 8.6vw, 112px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(15, 58, 49, 0.8);
  -webkit-text-stroke: 1px rgba(36, 65, 58, 0.95);
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1180px) {
  .site-nav__link { padding: 9px 9px; font-size: 14px; }
  .brand__desc { display: none; }
}

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

@media (max-width: 900px) {
  .site-header::before,
  .site-header::after { display: none; }

  .header-frame { justify-content: space-between; }
  .brand { order: 1; }
  .header-tail { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--edge) 20px;
    background: rgba(6, 17, 13, 0.985);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.95);
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(36, 65, 58, 0.6);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { padding-left: 18px; }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translateY(-50%);
    background: var(--amber);
  }
}

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

  body { font-size: 16px; }
  .brand__mark { flex-basis: 32px; width: 32px; height: 32px; }
  .brand__name { font-size: 15px; }
  .season-chip { display: none; }
  .header-cta { padding: 7px 11px; font-size: 12.5px; }
  .nav-toggle__text { display: none; }
  .panel--stack::after { inset: 8px -6px -6px 8px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 9. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html[data-motion="on"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .season-chip {
    opacity: 1;
    transform: none;
  }
}
