/* =========================================================
   平博 CN · 共享站点套件  /assets/site.css
   草原深绿框架 + 赛事荧光青数据脉冲 + 数据橙行动点
   ========================================================= */

/* ---------- 1. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --grass: #0B2B22;
  --pine: #123F31;
  --tundra: #1E6B4F;
  --cyan: #35F2C4;
  --orange: #FF8A3D;
  --sky: #6EC6FF;
  --paper: #F5F1E6;
  --mist: #A9BBB3;
  --ink: #07150F;
  --mint: #B9FFE9;

  --text: #E8F3EE;
  --text-soft: rgba(232, 243, 238, 0.78);
  --text-mute: rgba(169, 187, 179, 0.88);

  --line: rgba(53, 242, 196, 0.20);
  --line-soft: rgba(169, 187, 179, 0.16);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --frame: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 基底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--grass);
  background-image:
    radial-gradient(120% 70% at 82% -10%, rgba(53, 242, 196, 0.10), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(110, 198, 255, 0.07), transparent 65%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 页面左右坐标系边框 */
@media (min-width: 1100px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 40;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(53, 242, 196, 0.34), rgba(110, 198, 255, 0.12) 55%, transparent);
  }
  body::before { left: 16px; }
  body::after { right: 16px; }
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--paper); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

main { display: block; }
#main-content { scroll-margin-top: 104px; }

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

::selection { background: var(--cyan); color: #05201a; }

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

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

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

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 242, 196, 0));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

.index-num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(53, 242, 196, 0.55);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn--accent { background: var(--orange); color: #23120a; }
.btn--accent:hover { background: #FFA063; color: #150a04; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cyan); border-color: rgba(53, 242, 196, 0.35); }
.btn--ghost:hover { background: rgba(53, 242, 196, 0.10); color: var(--mint); transform: translateY(-2px); }

/* ---------- 6. 标签 / 指标 / 面板 / 色带 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mint);
  background: rgba(53, 242, 196, 0.08);
  white-space: nowrap;
}
.tag--cyan { background: var(--cyan); border-color: var(--cyan); color: #04211a; }
.tag--orange { background: var(--orange); border-color: var(--orange); color: #221005; }

.stat {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(18, 63, 49, 0.82);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(18, 63, 49, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.data-band {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 24px) var(--gutter);
  background: linear-gradient(90deg, rgba(18, 63, 49, 0.92), rgba(11, 43, 34, 0.55));
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint);
}

/* ---------- 7. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(30, 107, 79, 0.55), rgba(11, 43, 34, 0.92)),
    var(--pine);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.media-frame > img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.media-frame:hover > img { transform: scale(1.03); }
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(0deg, rgba(53, 242, 196, 0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(53, 242, 196, 0.12) 0 1px, transparent 1px 34px);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 21, 15, 0.72));
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--slant { clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%); }

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(53, 242, 196, 0.6); }
.breadcrumbs a { color: var(--mist); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 9. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-block: 1px dashed var(--line-soft);
}
.filter-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mist);
  background: rgba(18, 63, 49, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: rgba(53, 242, 196, 0.45); }
.filter-btn[aria-pressed="true"] {
  color: #04211a;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 10. 长文正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}
.prose h2 { margin-block: 1.6em 0.6em; }
.prose h3 { margin-block: 1.4em 0.5em; }
.prose p + p { margin-top: 1em; }
.prose ul { display: grid; gap: 0.5em; margin-block: 1em; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}
.prose a { color: var(--sky); border-bottom: 1px solid rgba(110, 198, 255, 0.4); }
.prose a:hover { color: var(--mint); }

/* ---------- 11. 头部框架 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--cyan);
  color: #05201a;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #05201a; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--grass);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 46px -34px rgba(0, 0, 0, 0.95);
  color: var(--text);
}

.header-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 9px var(--gutter);
  border-bottom: 1px dashed rgba(169, 187, 179, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--text-mute);
}
.meta-coord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  white-space: nowrap;
}
.meta-coord::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18);
  flex: none;
}
.meta-note { color: var(--text-mute); }

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  max-width: var(--frame);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
}
.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(53, 242, 196, 0.16);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: var(--mist);
  white-space: nowrap;
}
.brand:hover .brand-mark { color: var(--cyan); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(53, 242, 196, 0.5); color: var(--cyan); }
.nav-toggle-label { line-height: 1; }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[data-open="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[data-open="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[data-open="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { justify-self: end; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 22px);
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--paper); }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--cyan); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); background: var(--orange); }

.header-cta { white-space: nowrap; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--sky));
  pointer-events: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(53, 242, 196, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(53, 242, 196, 0.10) 0 1px, transparent 1px 96px);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(120px, 0.7fr)) minmax(200px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(26px, 3.5vw, 40px);
}

.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}
.footer-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(53, 242, 196, 0.16);
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  color: rgba(53, 242, 196, 0.85);
}
.footer-summary {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
}

.footer-col { display: grid; gap: 0; align-content: start; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px dashed transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 196, 0.5);
  transform: translateX(3px);
}

.footer-contact { display: grid; gap: 0; align-content: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: rgba(53, 242, 196, 0.8);
}
.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}
.contact-note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(169, 187, 179, 0.8);
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(169, 187, 179, 0.8);
}
.footer-icp { color: var(--mist); }

/* ---------- 13. 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal-ready] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body { font-size: 16px; }

  .header-meta { display: none; }
  .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-block: 12px;
  }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .header-cta { display: none; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px var(--gutter) 22px;
    background: #0F3529;
    border-bottom: 1px solid rgba(53, 242, 196, 0.28);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
  }
  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px 2px;
    font-size: 16px;
    color: var(--paper);
    border-bottom: 1px dashed rgba(169, 187, 179, 0.20);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--cyan); }
  .nav-list a[aria-current="page"]::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--orange);
  }

  #main-content { scroll-margin-top: 80px; }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .brand-tag { letter-spacing: 0.14em; }
  .data-band { font-size: 12px; }
  .media-frame { aspect-ratio: 3 / 2; }
}

/* ---------- 15. 动效克制 ---------- */
@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-ready] [data-reveal],
  [data-reveal-ready] [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .media-frame:hover > img { transform: none; }
  .btn:hover { transform: none; }
  .footer-links a:hover { transform: none; }
}
