/* ==========================================================================
   /assets/site.css — 杏彩体育 简体版 共享外壳样式
   深空蓝指挥舱 · 纵向叙事长卷 · 微交互优先
   ========================================================================== */

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

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

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

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

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --space-blue: #060B1A;
  --hull-blue: #0E1730;
  --line-blue: #1E2A4A;
  --cyan: #3EE7D1;
  --amber: #FFA63D;
  --cyan-glow: #A8FBF0;
  --slate: #6E7A8F;
  --clay: #C97B5A;
  --cream: #F3EEE4;
  --moss: #4E6B52;

  --amber-deep: #FFB95F;
  --amber-ink: #2A1200;
  --cyan-ink: #04231F;

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

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

  /* 尺度 */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 180ms;
}

/* ---------- 3. 基底排版 ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--space-blue);
  background-image:
    radial-gradient(1100px 640px at 88% -6%, rgba(62, 231, 209, .10), transparent 60%),
    radial-gradient(820px 520px at 0% 32%, rgba(255, 166, 61, .055), transparent 62%),
    linear-gradient(to right, rgba(30, 42, 74, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 42, 74, .34) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px, 84px 84px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

p { max-width: 68ch; }

strong { color: var(--cyan-glow); font-weight: 700; }

::selection {
  background: rgba(62, 231, 209, .28);
  color: var(--cream);
}

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan);
  line-height: 1;
}

.section-title {
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cream);
  text-wrap: balance;
  max-width: 24ch;
}

.section-note {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. 文本与数字 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
  line-height: 1.4;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.72;
  color: var(--cream);
  max-width: 60ch;
}

.muted { color: var(--slate); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.num-lg {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--amber);
}

/* ---------- 6. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -72px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--cyan-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  outline-offset: 2px;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 11, 26, .9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-blue);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--cyan), #1AA394);
  color: var(--cyan-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(62, 231, 209, .32),
              0 10px 26px -16px rgba(62, 231, 209, .95);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--cream);
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate);
  white-space: nowrap;
}

/* 状态胶囊 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 6px 14px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: rgba(14, 23, 48, .72);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--slate);
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(62, 231, 209, .5);
  animation: status-pulse 2.6s var(--ease) infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 231, 209, .5); }
  55%      { box-shadow: 0 0 0 7px rgba(62, 231, 209, 0); }
}

.status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 8. 导航 ---------- */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 10px 8px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--line-blue);
  outline: none;
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--slate);
  opacity: .72;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { opacity: 1; }

.nav-link[aria-current="page"] .nav-index {
  color: var(--cyan);
  opacity: 1;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-md);
  background: rgba(14, 23, 48, .82);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--cyan); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--cyan); }

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

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

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-blue);
  color: var(--cream);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.header-cta { flex: 0 0 auto; }

/* ---------- 10. 面板与标签 ---------- */
.panel {
  background: var(--hull-blue);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 28px);
}

.panel-glow {
  box-shadow: 0 0 0 1px rgba(62, 231, 209, .08),
              0 28px 70px -46px rgba(62, 231, 209, .55);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: rgba(14, 23, 48, .6);
  color: var(--slate);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.6;
  transition: border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan-glow);
}

/* ---------- 11. 色带 ---------- */
.band {
  padding-block: clamp(26px, 4.6vw, 54px);
  border-block: 1px solid var(--line-blue);
}

.band-cyan { background: linear-gradient(96deg, rgba(62, 231, 209, .14), rgba(62, 231, 209, .02)); }
.band-clay { background: linear-gradient(96deg, rgba(201, 123, 90, .22), rgba(201, 123, 90, .04)); }
.band-moss { background: linear-gradient(96deg, rgba(78, 107, 82, .26), rgba(78, 107, 82, .04)); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumb { padding-block: 18px 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--slate);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line-blue);
}

.breadcrumb-link {
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible { color: var(--cyan); }

.breadcrumb-current { color: var(--cream); }

/* ---------- 13. 图片容器 ---------- */
.figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--hull-blue), var(--space-blue));
}

.figure-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(30, 42, 74, .55) 0 1px,
    transparent 1px 14px
  );
}

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

.figure-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--line-blue);
  background: rgba(6, 11, 26, .6);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line-blue);
  background:
    radial-gradient(760px 320px at 10% 0%, rgba(78, 107, 82, .18), transparent 70%),
    radial-gradient(680px 300px at 92% 6%, rgba(62, 231, 209, .07), transparent 72%),
    linear-gradient(180deg, rgba(14, 23, 48, .92), rgba(6, 11, 26, 1));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(0, 2fr);
  gap: clamp(28px, 4.5vw, 64px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
  line-height: 1.2;
}

.footer-brand-name::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--clay);
  transform: rotate(45deg);
}

.footer-brand-tag {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 32ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
}

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

.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--cyan);
  line-height: 1.5;
}

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

.footer-link {
  display: inline-block;
  width: fit-content;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: var(--slate);
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cream);
  border-bottom-color: var(--cyan);
}

.footer-contact {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-blue);
}

.footer-contact-line {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .03em;
  color: var(--slate);
  max-width: none;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-blue);
}

.footer-legal-text {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
  max-width: none;
}

/* ---------- 15. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-blue);
  border-radius: 50%;
  background: rgba(14, 23, 48, .94);
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible { border-color: var(--cyan); }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-status { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-cta {
    order: 2;
    margin-left: auto;
    padding: 9px 15px;
    font-size: 13px;
  }

  .site-nav {
    order: 4;
    margin-left: 0;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 22px;
    background: rgba(6, 11, 26, .985);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line-blue);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { display: block; }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 12px;
    border-bottom: 1px solid var(--line-blue);
    border-radius: 0;
    font-size: 16px;
    color: var(--cream);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--cyan);
    border-bottom-color: var(--line-blue);
    background: rgba(62, 231, 209, .06);
  }

  .nav-link[aria-current="page"] {
    color: var(--cyan);
    border-bottom-color: var(--line-blue);
    background: linear-gradient(90deg, rgba(62, 231, 209, .14), transparent 72%);
    box-shadow: inset 2px 0 0 var(--cyan);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 480px) {
  .brand-sub { display: none; }

  .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .footer-legal { justify-content: flex-start; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot { animation: none; }
  .to-top { transform: none; }
  .scroll-progress-bar { transition: none; }
}
