/* ============================================================
   微玩体育APP · 共享样式 /assets/site.css
   战术板时间刻度系统：深墨绿指挥台 + 暖灰阅读底
   ============================================================ */

/* ---------- 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, blockquote, dl, dd, fieldset {
  margin: 0;
}

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

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

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

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

img, video {
  height: auto;
}

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 主色板 */
  --ink: #0E2A24;
  --ink-deep: #071814;
  --cyan: #4FF0D0;
  --amber: #FFB347;
  --warm: #F2EFE7;
  --paper: #FBFAF6;
  --text: #1C2A26;
  --jade: #1F6F5F;
  --line: #BFD8D0;
  --warn: #C96A3D;

  /* 半透明衍生 */
  --cyan-12: rgba(79, 240, 208, 0.12);
  --cyan-28: rgba(79, 240, 208, 0.28);
  --cyan-45: rgba(79, 240, 208, 0.45);
  --amber-18: rgba(255, 179, 71, 0.18);
  --mist: rgba(191, 216, 208, 0.85);
  --on-dark: rgba(251, 250, 246, 0.72);
  --on-dark-strong: rgba(251, 250, 246, 0.94);

  /* 字体族 */
  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  /* 形状 */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  /* 布局 */
  --shell: 1220px;
  --gutter: clamp(1.1rem, 4vw, 3rem);

  /* 阴影 */
  --shadow-soft: 0 18px 44px -28px rgba(7, 24, 20, 0.55);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.18vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.012em;
  color: var(--text);
  background-color: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 1.35rem + 3vw, 3.5rem);
}

h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.02rem + 0.8vw, 1.55rem);
}

h4 {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
}

p, li {
  line-height: 1.85;
  text-wrap: pretty;
}

strong, b {
  font-weight: 700;
  color: var(--ink);
}

code, kbd, samp, time, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--cyan);
  color: var(--ink-deep);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute;
  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: absolute;
  top: -120%;
  left: var(--gutter);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: top 0.22s ease;
}

.skip-link:focus {
  top: 0.6rem;
}

/* ---------- 5. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0E2A24 0%, #0A211C 100%);
  color: var(--paper);
  border-bottom: 1px solid var(--cyan-28);
  box-shadow: 0 14px 34px -30px rgba(0, 0, 0, 0.9);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.42rem var(--gutter) 0.36rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(191, 216, 208, 0.6);
  border-bottom: 1px dashed rgba(79, 240, 208, 0.16);
}

.header-rail__label {
  white-space: nowrap;
  flex: none;
}

.header-rail__ticks {
  flex: 1 1 auto;
  min-width: 2rem;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--cyan-45) 0 1px,
    rgba(79, 240, 208, 0) 1px 14px
  );
}

.header-rail__label--end {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 179, 71, 0.88);
}

.header-rail__label--end::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.72rem var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  color: var(--paper);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 26%, #4FF0D0 0%, #1F6F5F 56%, #0E2A24 100%);
  box-shadow:
    inset 0 0 0 1px rgba(79, 240, 208, 0.55),
    0 8px 20px -12px rgba(79, 240, 208, 0.85);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 11px 11px 11px 11px;
  border-radius: 4px;
  background: var(--paper);
  opacity: 0.9;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(191, 216, 208, 0.7);
  margin-top: 0.18rem;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cyan-45);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  background: rgba(79, 240, 208, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(79, 240, 208, 0.14);
  border-color: var(--cyan);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

.nav-toggle__label {
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__item {
  display: flex;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(251, 250, 246, 0.74);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--cyan);
  border-color: rgba(79, 240, 208, 0.4);
  background: rgba(79, 240, 208, 0.07);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-deep);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.site-nav__cta {
  flex: none;
  margin-left: 0.35rem;
}

/* 阅读进度 */
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(79, 240, 208, 0.14);
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--cyan) 58%, var(--amber) 100%);
}

/* ---------- 7. 按钮 / 标签 / 面包屑 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn--cyan {
  color: var(--cyan);
  background: rgba(79, 240, 208, 0.08);
  border-color: rgba(79, 240, 208, 0.72);
}

.btn--cyan:hover {
  color: var(--ink-deep);
  background: var(--cyan);
  border-color: var(--cyan);
}

.btn--solid {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn--solid:hover {
  background: var(--jade);
  border-color: var(--jade);
}

.btn--amber {
  color: var(--ink-deep);
  background: var(--amber);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: #FFC978;
  border-color: #FFC978;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 216, 208, 0.9);
  background: rgba(191, 216, 208, 0.24);
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}

.pill--cyan {
  color: #0B4A3E;
  background: rgba(79, 240, 208, 0.32);
  border-color: rgba(79, 240, 208, 0.85);
}

.pill--amber {
  color: #7A3F13;
  background: var(--amber-18);
  border-color: rgba(255, 179, 71, 0.72);
}

.pill--ghost {
  color: var(--mist);
  background: rgba(79, 240, 208, 0.06);
  border-color: rgba(79, 240, 208, 0.38);
}

.breadcrumb {
  padding-block: 0.4rem 1rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--jade);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-inline: 0.5rem;
  color: rgba(31, 111, 95, 0.42);
}

.breadcrumb__link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.breadcrumb__current {
  color: rgba(28, 42, 38, 0.66);
}

/* ---------- 8. 通用内容块 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.4rem;
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade);
}

.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(191, 216, 208, 0.72);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-soft);
}

.card--ink {
  background: linear-gradient(150deg, #0E2A24 0%, #0A211C 100%);
  border-color: rgba(79, 240, 208, 0.26);
  color: var(--on-dark);
}

.card--ink h2,
.card--ink h3,
.card--ink h4 {
  color: var(--paper);
}

/* 图片容器基础规则（页面阶段放置占位图） */
.figure-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #0E2A24 0%, #1F6F5F 58%, #4FF0D0 148%);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.figure-frame > img,
.figure-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.figure-frame > picture > img,
.figure-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--wide {
  aspect-ratio: 16 / 9;
}

.figure-frame--tall {
  aspect-ratio: 3 / 4;
}

.figure-frame--square {
  aspect-ratio: 1 / 1;
}

.figure-frame__caption {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(28, 42, 38, 0.62);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0E2A24 0%, #071814 58%, #071814 100%);
  color: var(--on-dark);
  padding-bottom: 2rem;
  overflow: hidden;
}

.footer-scale {
  height: 16px;
  border-top: 1px solid rgba(79, 240, 208, 0.2);
  background: repeating-linear-gradient(
    90deg,
    rgba(79, 240, 208, 0.42) 0 1px,
    rgba(79, 240, 208, 0) 1px 22px
  );
  background-position: 0 0;
  background-size: 100% 7px;
  background-repeat: repeat-x;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 3.2rem) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.7fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(79, 240, 208, 0.16);
}

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

.footer-col__brand {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--paper);
}

.footer-col__line {
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(191, 216, 208, 0.88);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.95rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(251, 250, 246, 0.7);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(79, 240, 208, 0.55);
}

.footer-list--plain {
  gap: 0.72rem;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-contact__k {
  flex: none;
  min-width: 2.9em;
  padding-top: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(79, 240, 208, 0.78);
}

.footer-contact__v {
  color: rgba(251, 250, 246, 0.78);
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(191, 216, 208, 0.6);
}

.footer-base__copy {
  line-height: 1.7;
}

.footer-base__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.7;
}

.footer-base__icp {
  color: rgba(191, 216, 208, 0.82);
}

/* ---------- 10. 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 1;
}

html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.62s ease,
    transform 0.62s cubic-bezier(0.22, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

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

@media (max-width: 900px) {
  .header-inner {
    padding-block: 0.62rem;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 1rem var(--gutter) 1.4rem;
    max-height: 72vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B221D 0%, #071814 100%);
    border-bottom: 1px solid rgba(79, 240, 208, 0.3);
    box-shadow: 0 26px 40px -30px rgba(0, 0, 0, 0.9);
  }

  .site-header[data-open="true"] .site-nav {
    display: flex;
  }

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

  .site-nav__item {
    display: block;
    border-bottom: 1px dashed rgba(79, 240, 208, 0.14);
  }

  .site-nav__link {
    display: block;
    width: 100%;
    padding: 0.85rem 0.25rem;
    border-radius: 0;
    border-color: transparent;
    font-size: 0.98rem;
  }

  .site-nav__link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--cyan);
  }

  .site-nav__link[aria-current="page"] {
    padding-inline: 0.7rem;
    border-radius: var(--radius-pill);
  }

  .site-nav__cta {
    margin-left: 0;
    width: 100%;
    padding-block: 0.82rem;
  }

  .header-rail__label {
    letter-spacing: 0.14em;
  }
}

@media (max-width: 820px) {
  .figure-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand__tagline {
    display: none;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand__mark::after {
    inset: 10px;
  }

  .brand__name {
    font-size: 1.06rem;
  }

  .header-rail__label--end {
    display: none;
  }

  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    padding: 0.55rem 0.7rem;
  }
}

@media (max-width: 400px) {
  .header-rail {
    gap: 0.6rem;
    font-size: 0.6rem;
  }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

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

  .reading-progress__bar {
    transition: none !important;
  }
}
