/* ==========================================================================
   华体会体育 · 快速通道 — 共享样式 /assets/site.css
   色彩：墨绿基底 / 次层墨绿 / 纸白 / 荧光青柠 / 高温橙 / 冷灰蓝 / 深墨
   ========================================================================== */

/* ---------- 0. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #04150F;
  --base: #0B2B22;
  --base-2: #14392D;
  --paper: #F2F6F1;
  --lime: #C8FF3D;
  --orange: #FF6B2C;
  --steel: #8CA3B4;
  --steel-lt: #D8E3EA;
  --carbon: #0A1A14;
  --lime-deep: #7FA826;

  --shell: 1200px;
  --gutter: 24px;
  --header-h: 128px;

  --font-display: "Archivo Black", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-hard: 8px 8px 0 var(--ink);
  --border-hard: 3px solid var(--ink);
}

/* ---------- 2. Base ---------- */
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--base);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 背景数据网格层（第三层中的最底层） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 163, 180, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 163, 180, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- 3. 焦点与跳过链接 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.section--paper :focus-visible,
.prose :focus-visible { outline-color: var(--lime-deep); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s var(--ease);
}

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

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

#main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.section {
  position: relative;
  padding-block: clamp(72px, 8vw, 140px);
}

.section--tight { padding-block: clamp(40px, 5vw, 76px); }

.section--paper {
  background: var(--paper);
  color: var(--carbon);
}

.section--deep { background: var(--base-2); }

.rule {
  height: 2px;
  border: 0;
  background: rgba(140, 163, 180, 0.28);
}

/* ---------- 5. 排版层级 ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-stretch: condensed;
}

.t-section {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.t-item {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-index {
  display: block;
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--steel);
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.section--paper .label { color: #5B6B77; }

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

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}

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

.prose h2,
.prose h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }

.prose ul,
.prose ol { padding-left: 1.25em; list-style: disc; }

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

.link {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 255, 61, 0.45);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.link:hover { border-bottom-color: var(--lime); }

.section--paper .link {
  color: var(--lime-deep);
  border-bottom-color: rgba(127, 168, 38, 0.5);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(200, 255, 61, 0.24);
}

.btn--ghost:hover { box-shadow: 6px 6px 0 rgba(200, 255, 61, 0.34); }

.btn--ghost:active { box-shadow: 2px 2px 0 rgba(200, 255, 61, 0.24); }

/* ---------- 7. 媒体容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--base-2);
  border: var(--border-hard);
  box-shadow: var(--shadow-hard);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 255, 61, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 61, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.32;
  transition: opacity 0.3s var(--ease);
}

.media-frame:hover::after { opacity: 0.8; }

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

.media-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- 8. 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   9. 头部
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header[data-scrolled="true"] {
  background-color: var(--base);
  box-shadow: 0 16px 32px -26px #000000;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
}

.site-header[data-scrolled="true"]::after { transform: scaleX(1); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: rgba(4, 21, 15, 0.5);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* 工具条 */
.site-header__utility {
  height: 36px;
  border-bottom: 1px solid rgba(140, 163, 180, 0.22);
}

.site-header__utility-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__tagline {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
}

.meta-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
}

.meta-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 3.2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(200, 255, 61, 0); }
}

.meta-strip__label {
  letter-spacing: 0.18em;
  color: var(--steel);
}

.meta-strip__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--lime);
}

/* 主栏 */
.site-header__bar { height: 92px; }

.site-header__bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.brand:hover .brand__mark {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.brand__line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--steel);
}

/* 导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(242, 246, 241, 0.8);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--paper); }

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

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  font-weight: 700;
}

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

.site-nav__aside {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav__meta {
  display: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  margin-left: auto;
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(200, 255, 61, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

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

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

/* ==========================================================================
   10. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: clamp(56px, 8vw, 96px);
  background: var(--ink);
  color: var(--steel);
  border-top: 2px solid var(--lime);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.site-footer__brand { min-width: 0; }

.site-footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.site-footer__tagline {
  margin-top: 16px;
  max-width: 22em;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.site-footer__cta { margin-top: 26px; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

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

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(140, 163, 180, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--steel-lt);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.footer-link:hover { color: var(--lime); }

.footer-link:hover::after { transform: scaleX(1); }

.footer-line {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(140, 163, 180, 0.85);
  word-break: break-word;
}

.footer-line--mono {
  margin-top: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--steel);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(140, 163, 180, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(140, 163, 180, 0.72);
}

.site-footer__legal { margin: 0; }

.site-footer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
}

.site-footer__quick .footer-link { font-size: 12px; }

.site-footer__icp { margin: 0; }

/* ==========================================================================
   11. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .site-nav__list { gap: 18px; }
  .site-nav { gap: 20px; }
}

@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

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

  .site-header__utility { display: none; }
  .site-header__bar { height: 64px; }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .brand__line { font-size: 16px; }
  .brand__sub { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 48px;
    background: var(--base);
    border-top: 2px solid var(--lime);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.28s var(--ease), visibility 0.24s linear;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__item { border-bottom: 1px solid rgba(140, 163, 180, 0.18); }

  .site-nav__link {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0;
    color: var(--paper);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] { color: var(--lime); }

  .site-nav__aside {
    margin-top: 30px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .site-nav__meta { display: block; }

  .site-nav__cta { width: 100%; }

  body.is-nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  body { font-size: 16px; }

  .prose { font-size: 16px; }

  .section { padding-block: clamp(52px, 10vw, 88px); }
}

@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .site-nav__cta { width: 100%; }
}

/* ==========================================================================
   12. 降低动效
   ========================================================================== */
@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;
  }

  [data-reveal],
  [data-reveal="pending"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .meta-strip__dot { animation: none; }

  .scroll-progress__bar { transition: none; }

  .site-header,
  .site-header::after,
  .site-nav { transition: none; }
}
