/* ============================================================
   九游体育 · war-report-jiuyou.com.cn
   /assets/site.css — 共享外壳、基础排版与通用组件
   ============================================================ */

/* ---------- 01 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, ul, ol, li, figure, blockquote, dl, dd {
  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, picture { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; height: 0; }

/* ---------- 02 变量 ---------- */
:root {
  --ink: #14110E;
  --cream: #F6F0E4;
  --wheat: #EFE6D5;
  --red: #C62419;
  --red-deep: #8E1A12;
  --amber: #F2B31C;
  --amber-soft: #FBE3A4;
  --green: #10352B;
  --gray: #6E6A62;
  --line: #D6CDBB;
  --white: #FFFFFF;

  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo,
    Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: 32px;
  --header-h: 56px;

  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.72, 0.28, 1);

  --step-1: 12px;
  --step-2: 14px;
  --step-3: 17px;
  --step-4: 22px;
  --step-5: 30px;
  --step-6: 44px;
  --step-7: 68px;
  --step-8: 96px;
}

/* ---------- 03 页面底 / 蓝图网格 ---------- */
body {
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: var(--step-3);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(to right, rgba(214, 205, 187, 0.5) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(214, 205, 187, 0.5) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to right, rgba(214, 205, 187, 0.85) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, rgba(214, 205, 187, 0.85) 0 1px, transparent 1px 120px);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--step-7); transform: scaleX(0.96); transform-origin: left center; }
h2 { font-size: var(--step-6); }
h3 { font-size: var(--step-4); }

::selection { background: var(--amber-soft); color: var(--ink); }

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

/* ---------- 04 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
}

.page-main { padding-block: 44px 0; }

/* ---------- 05 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--step-2);
  transform: translateY(-240%);
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 06 命令栏页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--wheat);
  box-shadow: 0 14px 26px -20px rgba(20, 17, 14, 0.9);
}

.progress-rail {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 0.15s linear;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transform: scaleX(0.94);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  transform: scaleX(0.96);
  transform-origin: left center;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.brand-dot {
  width: 6px;
  height: 6px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--amber);
  align-self: flex-start;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  transition: background 0.12s var(--ease), color 0.12s var(--ease),
    transform 0.12s var(--ease);
}

.nav-list a:hover {
  background: var(--wheat);
  transform: translateY(-2px);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.nav-list a[aria-current="page"] {
  background: var(--green);
  color: var(--cream);
  box-shadow: inset 4px 0 0 var(--amber);
  transition: none;
}

.nav-list a[aria-current="page"] .nav-idx { color: var(--amber); }

.header-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--amber-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(198, 36, 25, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-toggle-bar {
  display: block;
  width: 13px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: var(--cream);
}

.nav-cta { display: none; }

/* ---------- 07 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.12s var(--ease),
    color 0.12s var(--ease), border-color 0.12s var(--ease);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- 08 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--gray);
}

.crumb { color: var(--gray); transition: color 0.12s var(--ease); }
.crumb:hover { color: var(--red); }
.crumb-sep { color: var(--line); }

/* ---------- 09 分区与网格 ---------- */
.section { padding-block: 64px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }

/* ---------- 10 面板与标签 ---------- */
.panel {
  padding: var(--step-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.panel-dark {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill-red { background: var(--red); color: var(--cream); }
.pill-amber { background: var(--amber-soft); color: var(--ink); }
.pill-green { background: var(--green); color: var(--cream); }
.pill-gray { background: rgba(110, 106, 98, 0.14); color: var(--gray); }

/* ---------- 11 数据与列表 ---------- */
.data-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-6);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stack-list { display: grid; gap: 0; }

.stack-list > li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stack-list > li:first-child { border-top: 0; }

/* ---------- 12 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  background: var(--wheat);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--amber) 50% 100%);
}

/* ---------- 13 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

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

/* ---------- 14 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(246, 240, 228, 0.07) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(246, 240, 228, 0.07) 0 1px, transparent 1px 40px);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 58%, var(--amber) 58% 100%);
}

.site-footer > .shell {
  position: relative;
  z-index: 1;
}

.footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 52px 0 28px;
  border-bottom: 1px solid rgba(246, 240, 228, 0.16);
}

.footer-claim {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 1.24;
  transform: scaleX(0.97);
  transform-origin: left center;
}

.footer-claim em {
  font-style: normal;
  color: var(--amber);
}

.footer-sync {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  color: var(--amber);
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  padding: 34px 0 30px;
}

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

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-list { display: grid; gap: 9px; }

.footer-list a {
  font-size: var(--step-2);
  color: rgba(246, 240, 228, 0.82);
  transition: color 0.12s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible { color: var(--amber); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  padding: 20px 0;
  border-top: 1px solid rgba(246, 240, 228, 0.16);
}

.footer-contact-item {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: rgba(246, 240, 228, 0.82);
}

.footer-contact-note {
  max-width: 62ch;
  font-size: var(--step-1);
  color: rgba(246, 240, 228, 0.55);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 0 30px;
  border-top: 1px solid rgba(246, 240, 228, 0.16);
  font-size: var(--step-1);
  color: rgba(246, 240, 228, 0.55);
}

.footer-legal .mono { color: rgba(246, 240, 228, 0.75); }

/* ---------- 15 响应式 ---------- */
@media (max-width: 1040px) {
  .nav-list a { padding: 6px 8px; font-size: 12.5px; }
  .brand-sub { display: none; }
  .sync-chip { font-size: 10px; padding: 4px 10px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-aside { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 26px 40px -30px rgba(20, 17, 14, 0.85);
  }

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

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

  .nav-list a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: var(--step-3);
  }

  .nav-list a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--amber);
  }

  .nav-idx { font-size: 11px; }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 14px;
  }

  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .span-5, .span-7 { grid-column: span 1; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-claim { font-size: var(--step-4); }
}

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

  body { font-size: 16px; }

  h1 { font-size: var(--step-6); }
  h2 { font-size: var(--step-5); }
  h3 { font-size: var(--step-4); }

  .section { padding-block: 44px; }
  .page-main { padding-block: 28px 0; }

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

  .site-footer { margin-top: 52px; }
  .footer-strip { padding: 42px 0 24px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .nav-toggle-label { display: none; }
}

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

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