/* ============================================================
   HTH体育登录 · /assets/site.css
   共享样式：reset / 变量 / 中文排版 / 刊头 / 页脚 / 基础组件
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, blockquote, dl, dd { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --c-reef: #0A3550;
  --c-ocean: #1477B8;
  --c-bay: #D3E8F4;
  --c-orange: #F26522;
  --c-sand-orange: #FFD9BC;
  --c-sand: #F8F4EB;
  --c-coconut: #1B7A5F;
  --c-orange-deep: #B8430E;
  --c-ink: #101619;
  --c-graphite: #56636D;
  --c-line: #C9D3DA;
  --c-night: #072A42;

  --shell: 1320px;
  --pad: 64px;
  --gap: 24px;

  --fs-1: 14px;
  --fs-2: 16px;
  --fs-3: 20px;
  --fs-4: 28px;
  --fs-5: 44px;
  --fs-6: 72px;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 180ms;
  --z-header: 60;
}

@media (max-width: 1024px) {
  :root { --pad: 32px; --gap: 20px; }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
    --gap: 16px;
    --fs-1: 13px;
    --fs-2: 15px;
    --fs-3: 18px;
    --fs-4: 24px;
    --fs-5: 32px;
    --fs-6: 44px;
  }
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  background-color: var(--c-sand);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--c-ink);
}

h1 { font-size: clamp(2rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; }
h4 { font-size: 1rem; line-height: 1.35; letter-spacing: 0; }

p { margin: 0; }

strong, b { font-weight: 700; }

time,
.num,
[data-year] { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

::selection { background-color: var(--c-sand-orange); color: var(--c-ink); }

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 120;
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--c-orange);
  color: var(--c-ink);
  font-size: var(--fs-1);
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

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

/* ---------- 5. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid { display: grid; gap: var(--gap); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: 38fr 62fr; }
.split--flip { grid-template-columns: 62fr 38fr; }

.rule {
  height: 1px;
  border: 0;
  background-color: var(--c-line);
}

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--sand { background-color: var(--c-sand); }
.section--bay { background-color: var(--c-bay); }
.section--reef { background-color: var(--c-reef); color: var(--c-sand); }
.section--night { background-color: var(--c-night); color: var(--c-sand); }

.section--reef h1, .section--reef h2, .section--reef h3,
.section--night h1, .section--night h2, .section--night h3 { color: var(--c-sand); }

@media (max-width: 900px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 6. 文本组件 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-orange-deep);
  line-height: 1.4;
}

.label::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--c-orange);
}

.label--light { color: var(--c-sand-orange); }

.num {
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  border: 1px solid var(--c-line);
  color: var(--c-reef);
  background-color: transparent;
}

.tag--ok {
  color: var(--c-coconut);
  border-color: var(--c-coconut);
}

.tag--hot {
  color: var(--c-orange-deep);
  border-color: var(--c-orange);
  background-color: var(--c-sand-orange);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  --btn-bg: var(--c-ocean);
  --btn-fg: #ffffff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  font-family: inherit;
  font-size: var(--fs-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

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

.btn--primary {
  --btn-bg: var(--c-orange);
  --btn-fg: var(--c-ink);
}

.btn--primary:hover {
  --btn-bg: #FF7A3E;
  --btn-fg: var(--c-ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-reef);
  --btn-bd: var(--c-line);
}

.btn--ghost:hover {
  --btn-bg: var(--c-sand-orange);
  --btn-bd: var(--c-orange);
  --btn-fg: var(--c-reef);
}

.btn--sm {
  padding: 9px 16px;
  font-size: var(--fs-1);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--pad) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-graphite);
}

.breadcrumb a {
  color: var(--c-ocean);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.breadcrumb__sep { color: var(--c-line); }

.breadcrumb [aria-current="page"] {
  color: var(--c-ink);
  font-weight: 700;
}

/* ---------- 9. 正文容器 ---------- */
.prose {
  max-width: 72ch;
  font-size: var(--fs-2);
  line-height: 1.78;
  color: var(--c-ink);
}

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

.prose h2 {
  font-size: var(--fs-4);
  line-height: 1.1;
  margin-top: 1.9em;
}

.prose h3 {
  font-size: var(--fs-3);
  margin-top: 1.6em;
  margin-bottom: .4em;
}

.prose ul, .prose ol {
  padding-left: 1.3em;
  margin-top: 1.2em;
}

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .45em; }
.prose li::marker { color: var(--c-orange); }

.prose a {
  color: var(--c-ocean);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-orange-deep);
  text-decoration-color: var(--c-orange);
}

.prose blockquote {
  margin-top: 1.6em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--c-orange);
  color: var(--c-reef);
  font-weight: 500;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  padding: 1px 5px;
  background-color: var(--c-bay);
}

/* ---------- 10. 图片容器（页面阶段复用） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--c-bay);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

.media:hover img { transform: scale(1.02); }

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }

.media--slant {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.media__caption {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--c-graphite);
}

/* ---------- 11. 横向滑动模块 ---------- */
.rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rail__item { width: min(340px, 78vw); }

/* ---------- 12. 进场层次变化 ---------- */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
}

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

/* ---------- 13. 刊头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--c-reef);
  color: var(--c-sand);
  border-bottom: 1px solid rgba(201, 211, 218, .26);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--pad);
}

.masthead__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.masthead__pulse {
  font-weight: 700;
  color: var(--c-sand-orange);
}

.masthead__date {
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: rgba(211, 232, 244, .74);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--c-sand);
}

.brand__mark {
  font-size: 34px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--c-sand);
}

.brand__text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--c-bay);
}

.brand__tagline {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .14em;
  color: rgba(211, 232, 244, .78);
}

.brand:hover .brand__mark { color: var(--c-sand-orange); }
.brand:hover .brand__text { color: var(--c-sand); }

.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(201, 211, 218, .45);
  border-radius: 0;
  color: var(--c-sand);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-orange);
  background-color: rgba(242, 101, 34, .16);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

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

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

/* --- 栏目条 --- */
.site-nav {
  background-color: var(--c-night);
  border-top: 1px solid rgba(201, 211, 218, .2);
}

.site-nav__inner {
  display: flex;
  align-items: stretch;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 14px 16px;
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(248, 244, 235, .78);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background-color: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--c-sand);
  background-color: rgba(20, 119, 184, .28);
}

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--c-sand);
  background-color: rgba(20, 119, 184, .18);
}

.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- 滚动进度 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(201, 211, 218, .16);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--c-orange);
  transition: width 80ms linear;
}

/* --- 刊头响应式 --- */
@media (max-width: 900px) {
  .site-header { position: sticky; }

  .masthead {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px var(--pad);
  }

  .masthead__meta { display: none; }

  .masthead__brand {
    align-items: flex-start;
    text-align: left;
  }

  .brand__mark { font-size: 28px; }
  .brand__text { font-size: 12px; letter-spacing: .16em; }
  .brand__tagline { display: none; }

  .nav-toggle { display: flex; }

  .masthead .btn--primary {
    padding: 9px 13px;
    font-size: 13px;
    letter-spacing: .02em;
  }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms var(--ease);
  }

  .site-nav[data-open] {
    max-height: 72vh;
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 6px 0 12px;
    overflow: visible;
  }

  .site-nav__link {
    padding: 13px 0;
    font-size: var(--fs-2);
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(201, 211, 218, .14);
  }

  .site-nav__link::after {
    left: 0;
    right: auto;
    bottom: -1px;
    width: 34px;
    height: 3px;
  }

  .site-nav__link[aria-current="page"] { background-color: transparent; }
}

@media (max-width: 420px) {
  .brand__mark { font-size: 24px; }
  .masthead .btn--primary { padding: 8px 11px; font-size: 12px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  background-color: var(--c-reef);
  color: rgba(248, 244, 235, .82);
  border-top: 1px solid rgba(201, 211, 218, .22);
  font-size: 15px;
  line-height: 1.7;
}

.footer-rule {
  height: 6px;
  background-color: var(--c-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.25fr;
  gap: 48px 36px;
  align-items: start;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px var(--pad) 44px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--c-sand);
  text-decoration: none;
}

.footer-brand__logo span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--c-bay);
}

.footer-brand__logo:hover { color: var(--c-sand-orange); }
.footer-brand__logo:hover span { color: var(--c-sand); }

.footer-brand__line {
  max-width: 24em;
  margin: 16px 0 20px;
  color: rgba(248, 244, 235, .82);
}

.footer-brand__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: rgba(211, 232, 244, .62);
}

.footer-col__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-sand-orange);
  border-bottom: 1px solid rgba(201, 211, 218, .24);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-list a {
  color: rgba(248, 244, 235, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.footer-list--plain li {
  color: rgba(248, 244, 235, .82);
  word-break: break-word;
}

.footer-contact__key {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(211, 232, 244, .58);
}

.footer-note {
  margin-top: 18px;
  padding-left: 11px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(211, 232, 244, .62);
  border-left: 2px solid var(--c-orange);
}

.footer-legal {
  background-color: var(--c-night);
  border-top: 1px solid rgba(201, 211, 218, .18);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--pad);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(211, 232, 244, .7);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer-legal__links a {
  color: rgba(248, 244, 235, .82);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 211, 218, .35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.footer-legal__sep { color: rgba(201, 211, 218, .4); }
.footer-legal__copy { color: rgba(211, 232, 244, .6); }

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px var(--pad) 32px;
  }

  .footer-legal__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 15. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.js-ready [data-reveal],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .media:hover img {
    transform: none;
  }
}
