/* ==========================================================================
   /assets/site.css — 华体会中国官方主站 共享外壳样式
   1 reset  2 变量  3 基础排版  4 版式工具  5 通用组件
   6 头部轨道（桌面）  7 头部抽屉（移动）  8 页脚  9 动效与可访问性
   ========================================================================== */

/* 1 — reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* 2 — 变量 */
:root {
  --ink-900: #06080F;
  --ink-800: #141C3A;
  --ink-700: #22306B;
  --cyan: #35E6F0;
  --amber: #F2B138;
  --lime: #3BF08C;
  --bone: #F4F6FB;
  --mist: #98A2B8;
  --line: #2C3552;
  --gobi: #C97C4E;
  --cyan-deep: #0E3A47;

  --rail: 0px;
  --bar: 64px;
  --wrap: 1240px;
  --pad: clamp(18px, 4.2vw, 64px);
  --gap: clamp(18px, 2.4vw, 32px);
  --sec: clamp(64px, 8vw, 140px);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Heiti SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}
@media (min-width: 1024px) { :root { --rail: 88px; } }

/* 3 — 基础排版 */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  padding-top: var(--bar);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(90deg, rgba(44, 53, 82, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 53, 82, 0.34) 1px, transparent 1px),
    radial-gradient(1100px 620px at 92% -8%, rgba(14, 58, 71, 0.85), transparent 70%),
    radial-gradient(760px 520px at 4% 106%, rgba(34, 48, 107, 0.5), transparent 72%);
  background-size: 96px 96px, 96px 96px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed, fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { padding-top: 0; } }
body.is-nav-open { overflow: hidden; }
@media (min-width: 1024px) { body.is-nav-open { overflow: visible; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
}
h1 { font-size: clamp(38px, 6.2vw, 88px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.6vw, 52px); }
h3 { font-size: clamp(19px, 2.1vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 21px); }
p { max-width: 34em; }
strong { color: var(--bone); font-weight: 700; }
::selection { background: var(--cyan); color: #04171b; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* 4 — 版式工具 */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.num, .stat__value, .data-row__rank, .data-row__score { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--mist); max-width: 30em; }
.vlabel {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 12px; letter-spacing: 0.34em; color: var(--mist);
}

.page-head {
  position: relative;
  padding: clamp(56px, 7vw, 128px) 0 clamp(28px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
}
.page-head__title { margin-top: 18px; max-width: 15em; }
.page-head__lede { margin-top: 22px; }
.page-head__aside { display: none; }
@media (min-width: 1280px) {
  .page-head__aside { display: block; position: absolute; right: 0; top: clamp(56px, 7vw, 128px); }
}

.breadcrumb { padding-top: 18px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: 0.1em; color: var(--mist); }
.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--line); }
.breadcrumb__link { color: var(--mist); transition: color 0.2s ease; }
.breadcrumb__link:hover { color: var(--cyan); }

.section { padding: var(--sec) 0; }
.section__head {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: flex-end; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 3.4vw, 56px);
}
.section__title { max-width: 14em; }
.section__note { font-size: 12px; letter-spacing: 0.1em; color: var(--mist); max-width: 26em; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.grid--2, .grid--3, .grid--asym { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: 1.4fr 0.6fr; }
}

/* 5 — 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--line);
  font-size: 14px; letter-spacing: 0.12em; color: var(--bone);
  background-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn--solid { background-color: var(--cyan); border-color: var(--cyan); color: #04171b; font-weight: 700; }
.btn--solid:hover { background-color: var(--lime); border-color: var(--lime); }
.btn--outline { border-color: rgba(53, 230, 240, 0.55); color: var(--cyan); }
.btn--outline:hover { background-color: var(--cyan-deep); }
.btn--text { padding-inline: 0; border-color: transparent; color: var(--cyan); }
.btn--text:hover { color: var(--lime); }

.panel {
  position: relative; overflow: hidden;
  padding: clamp(20px, 2.2vw, 32px);
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, rgba(34, 48, 107, 0.34), rgba(6, 8, 15, 0.72));
}
.panel::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background-color: var(--cyan); transition: width 0.34s ease;
}
.panel:hover::after, .panel:focus-within::after { width: 100%; }
.panel--shear::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(102deg, rgba(53, 230, 240, 0.1), transparent 58%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
}
.panel__title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 900; }
.panel__note { margin-top: 6px; font-size: 12px; letter-spacing: 0.1em; color: var(--mist); }
.panel__body { margin-top: 18px; font-size: 15px; color: var(--mist); }
.panel__foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(44, 53, 82, 0.7);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; line-height: 1; color: var(--amber); }
.stat__label { font-size: 12px; letter-spacing: 0.16em; color: var(--mist); }

.data-row {
  position: relative;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 14px clamp(12px, 1.4vw, 20px);
  border-bottom: 1px solid rgba(44, 53, 82, 0.6);
}
.data-row::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image: linear-gradient(96deg, rgba(34, 48, 107, 0.42), transparent 62%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%);
  transition: opacity 0.28s ease;
}
.data-row:hover::before { opacity: 1; }
.data-row__rank { font-size: 19px; color: var(--amber); }
.data-row__name { font-weight: 700; font-size: 16px; }
.data-row__meta { display: block; margin-top: 2px; font-size: 12px; letter-spacing: 0.06em; color: var(--mist); }
.data-row__score { font-size: clamp(20px, 2vw, 26px); color: var(--bone); }
.data-row--live .data-row__score { color: var(--lime); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.14em; color: var(--mist);
}
.tag::before { content: ""; width: 6px; height: 6px; background-color: currentColor; }
.tag--live { color: var(--lime); border-color: rgba(59, 240, 140, 0.45); }
.tag--next { color: var(--cyan); border-color: rgba(53, 230, 240, 0.4); }
.tag--off { color: var(--gobi); border-color: rgba(201, 124, 78, 0.45); }

.media { position: relative; margin: 0; }
.media__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background-image: linear-gradient(140deg, rgba(34, 48, 107, 0.55), rgba(6, 8, 15, 0.9));
}
.media__frame::before {
  content: ""; position: absolute; inset: 0; opacity: 0.7;
  background-image:
    linear-gradient(90deg, rgba(44, 53, 82, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(44, 53, 82, 0.55) 1px, transparent 1px);
  background-size: 36px 36px;
}
.media__frame img, .media__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media__caption { margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; color: var(--mist); }
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }

.fold { border: 1px solid var(--line); background-color: rgba(20, 28, 58, 0.5); }
.fold + .fold { margin-top: -1px; }
.fold__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 16px clamp(14px, 1.6vw, 22px);
  text-align: left; font-size: 16px; font-weight: 700;
  transition: color 0.2s ease;
}
.fold__trigger:hover { color: var(--cyan); }
.fold__sign { font-family: var(--font-mono); font-size: 18px; line-height: 1; color: var(--cyan); }
.fold__sign::before { content: "＋"; }
.fold[data-open="true"] .fold__sign::before { content: "－"; }
.fold__body { display: none; }
.fold[data-open="true"] .fold__body {
  display: block; padding: 0 clamp(14px, 1.6vw, 22px) 20px;
  font-size: 15px; color: var(--mist);
}

/* 6 — 头部轨道（桌面） */
.skip-link {
  position: fixed; top: 10px; left: calc(var(--rail) + 14px); z-index: 120;
  padding: 10px 18px; background-color: var(--cyan); color: #04171b;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  transform: translateY(-240%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-progress {
  position: fixed; top: 0; left: var(--rail); right: 0; height: 2px; z-index: 100;
  background-color: rgba(44, 53, 82, 0.6);
}
.site-progress__fill {
  display: block; height: 100%; width: 0;
  background-image: linear-gradient(90deg, var(--cyan), var(--lime));
}

.site-rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail); z-index: 90;
  display: flex; flex-direction: column;
  background-image: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 82%);
  border-right: 1px solid var(--line);
}
.site-rail::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background-image: linear-gradient(90deg, var(--cyan), rgba(53, 230, 240, 0));
}

.rail__brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 8px 18px; border-bottom: 1px solid var(--line); text-align: center;
}
.rail__mark {
  font-family: var(--font-display); font-size: 20px; font-weight: 900;
  letter-spacing: 0.04em; line-height: 1; color: var(--bone);
}
.rail__mark:hover { color: var(--cyan); }
.rail__tag {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 9px; line-height: 1.5; letter-spacing: 0.14em; color: var(--mist);
}

.rail__toggle { display: none; }
.rail__drawer { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.rail__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 0; }
.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background-color: var(--line); }
.rail__list { display: flex; flex-direction: column; align-items: center; }
.rail__item { width: 100%; }
.rail__link {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%; padding: 11px 0; color: var(--mist);
  transition: color 0.24s ease;
}
.rail__link::after {
  content: ""; position: absolute; right: 0; top: 14%; bottom: 14%; width: 2px;
  background-color: transparent; transition: background-color 0.24s ease;
}
.rail__link:hover { color: var(--bone); }
.rail__link:hover::after { background-color: rgba(53, 230, 240, 0.4); }
.rail__link[aria-current="page"], .rail__link.is-active { color: var(--cyan); }
.rail__link[aria-current="page"]::after, .rail__link.is-active::after { background-color: var(--cyan); }
.rail__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--line); transition: color 0.24s ease; }
.rail__link:hover .rail__num,
.rail__link[aria-current="page"] .rail__num,
.rail__link.is-active .rail__num { color: var(--cyan); }
.rail__text { writing-mode: vertical-rl; font-size: 13px; font-weight: 700; letter-spacing: 0.26em; line-height: 1; }

.rail__foot {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 10px 20px; border-top: 1px solid var(--line);
}
.rail__foot .rail__cta { padding: 12px 6px; font-size: 11px; letter-spacing: 0.16em; line-height: 1.4; text-align: center; }

/* 7 — 头部抽屉（移动） */
@media (max-width: 1023px) {
  .skip-link { left: 14px; }
  .site-progress { left: 0; z-index: 110; }
  .site-rail {
    top: 0; left: 0; right: 0; bottom: auto; width: auto; height: var(--bar);
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .site-rail::before { background-image: linear-gradient(90deg, var(--cyan), transparent); }
  .rail__brand { flex-direction: row; align-items: center; gap: 10px; padding: 0; border-bottom: 0; text-align: left; }
  .rail__mark { font-size: 17px; }
  .rail__tag { flex-direction: row; gap: 6px; letter-spacing: 0.12em; }
  .rail__tag-line + .rail__tag-line::before { content: "·"; margin-right: 6px; color: var(--line); }

  .rail__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 12px; border: 1px solid var(--line);
    font-size: 12px; letter-spacing: 0.14em; color: var(--bone);
  }
  .rail__toggle:hover { border-color: rgba(53, 230, 240, 0.55); color: var(--cyan); }
  .rail__toggle-bar {
    position: relative; display: block; width: 18px; height: 1px;
    background-color: currentColor; transition: background-color 0.2s ease;
  }
  .rail__toggle-bar::before, .rail__toggle-bar::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1px;
    background-color: currentColor; transition: transform 0.24s ease;
  }
  .rail__toggle-bar::before { top: -5px; }
  .rail__toggle-bar::after { top: 5px; }
  .site-rail[data-open="true"] .rail__toggle-bar { background-color: transparent; }
  .site-rail[data-open="true"] .rail__toggle-bar::before { transform: translateY(5px) rotate(45deg); }
  .site-rail[data-open="true"] .rail__toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

  .site-rail::after {
    content: ""; position: fixed; left: 0; right: 0; top: var(--bar); bottom: 0; z-index: 1;
    background-color: rgba(6, 8, 15, 0.62);
    opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
  }
  .site-rail[data-open="true"]::after { opacity: 1; pointer-events: auto; }

  .rail__drawer {
    position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 2;
    width: min(84vw, 320px);
    padding: 10px 0 18px; overflow-y: auto;
    background-image: linear-gradient(180deg, var(--ink-800), var(--ink-900));
    border-right: 1px solid var(--line);
    transform: translateX(-104%);
    transition: transform 0.28s ease;
  }
  .site-rail[data-open="true"] .rail__drawer { transform: translateX(0); }

  .rail__nav { padding: 6px 0; }
  .rail__link {
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 14px; padding: 14px 20px;
  }
  .rail__link::after { top: auto; bottom: 0; left: 20px; right: 20px; width: auto; height: 1px; }
  .rail__text { writing-mode: horizontal-tb; font-size: 16px; letter-spacing: 0.1em; }
  .rail__num { font-size: 11px; }
  .rail__foot {
    flex-direction: row; gap: 10px; margin-top: auto;
    padding: 16px 20px 0; border-top: 1px solid var(--line);
  }
  .rail__foot .rail__cta { flex: 1 1 auto; padding: 12px 10px; font-size: 12px; letter-spacing: 0.1em; }
}

/* 8 — 页脚 */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 8vw, 140px);
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(20, 28, 58, 0.82), rgba(6, 8, 15, 0.96));
}
.site-foot::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 120px; height: 2px;
  background-color: var(--gobi);
}
.foot__inner {
  display: grid; gap: clamp(28px, 3.4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(40px, 4.6vw, 72px);
  padding-bottom: clamp(24px, 3vw, 44px);
}
@media (min-width: 900px) {
  .foot__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); align-items: start; }
}
.foot__brand { display: flex; flex-direction: column; gap: 10px; }
.foot__brandname {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.02em; color: var(--bone);
}
.foot__brandname:hover { color: var(--cyan); }
.foot__brandsub { font-size: 13px; letter-spacing: 0.08em; color: var(--mist); }
.foot__region {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em; color: var(--gobi);
}
.foot__region::before { content: ""; width: 18px; height: 2px; background-color: var(--gobi); }

.foot__grid { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__col { min-width: 0; }
.foot__heading {
  margin-bottom: 14px; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--bone);
}
.foot__list { display: flex; flex-direction: column; gap: 10px; }
.foot__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--mist); transition: color 0.2s ease;
}
.foot__link::before { content: ""; width: 0; height: 1px; background-color: var(--cyan); transition: width 0.24s ease; }
.foot__link:hover { color: var(--cyan); }
.foot__link:hover::before { width: 14px; }

.foot__meta {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid rgba(44, 53, 82, 0.7);
}
.foot__contact { font-family: var(--font-mono); font-size: 13px; color: var(--bone); }
.foot__address { font-size: 13px; color: var(--mist); }
.foot__note { flex-basis: 100%; font-size: 12px; letter-spacing: 0.06em; color: var(--mist); }

.foot__bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.foot__legal { font-size: 12px; letter-spacing: 0.1em; }
.foot__icp { color: var(--mist); }
.foot__copy { font-size: 12px; letter-spacing: 0.08em; color: var(--mist); }

/* 9 — 动效协议与可访问性 */
.has-js [data-reveal], .has-js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.has-js [data-reveal].is-in, .has-js .reveal.is-in { opacity: 1; transform: none; }

@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;
  }
  .has-js [data-reveal], .has-js .reveal { opacity: 1; transform: none; }
  .site-progress__fill { transition: none; }
}
