/* ============================================================
   沙巴赛场 · 共享样式表 /assets/site.css
   纸感底色 + 红黄牌状态色 + 墨绿数据块
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --paper: #F7F3E8;
  --surface: #FFFCF4;
  --ink: #1A1D18;
  --green: #0E3B2E;
  --red: #C8102E;
  --red-deep: #A90D27;
  --yellow: #F5C518;
  --moss: #566A5C;
  --edge: #DED5BE;
  --red-wash: #F8E4E2;
  --yellow-wash: #FFF1B8;
  --white: #FFFFFF;

  --font-display: 'DIN Condensed', 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-note: 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', serif;

  --shell-max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 72px;
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote { margin: 0; }

h1,
h2,
h3,
h4 { font-weight: 700; line-height: 1.15; }

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

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

/* ---------- 3. 可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease-snap);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 48px);
}

/* ---------- 4. 容器与版式基座 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--green { background: var(--green); color: var(--paper); }
.section--surface { background: var(--surface); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--edge);
  margin: 0;
}

.hairline--ink { border-top-color: rgba(247, 243, 232, 0.22); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}

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

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 148px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.heading-md {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

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

.note {
  font-family: var(--font-note);
  font-size: 13px;
  font-style: italic;
  line-height: 1.7;
  color: var(--moss);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    background-color 120ms ease-out,
    color 120ms ease-out,
    border-color 120ms ease-out;
}

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

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

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

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

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

.btn--ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
  box-shadow: 4px 4px 0 0 var(--green);
}

.btn--ghost:hover {
  background: var(--green);
  color: var(--paper);
  box-shadow: 6px 6px 0 0 var(--green);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 2vw, 24px) 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.breadcrumbs a {
  color: var(--moss);
  border-bottom: 1px solid transparent;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

.crumb-sep { color: var(--edge); }

.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 7. 记录卡与图片容器 ---------- */
.cut-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--edge);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.cut-card :focus-visible { outline-offset: -4px; }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green);
  border: 1px solid var(--edge);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(247, 243, 232, 0.55) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
  opacity: 0.18;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--cut {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

/* ---------- 8. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  border: 1px solid currentColor;
}

.tag--red {
  background: var(--red-wash);
  border-color: rgba(200, 16, 46, 0.32);
  color: #8F0B20;
}

.tag--yellow {
  background: var(--yellow-wash);
  border-color: rgba(245, 197, 24, 0.72);
  color: #6B5000;
}

.tag--green {
  background: rgba(14, 59, 46, 0.08);
  border-color: rgba(14, 59, 46, 0.3);
  color: var(--green);
}

/* ---------- 9. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}

.header-strip {
  background: var(--green);
  color: rgba(247, 243, 232, 0.82);
}

.header-strip .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.22);
}

.strip-link {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 243, 232, 0.38);
  padding-bottom: 1px;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}

.strip-link:hover,
.strip-link:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
}

.header-bar {
  position: relative;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 160ms ease-out;
}

.site-header[data-stuck="true"] .header-bar {
  box-shadow: 0 8px 0 -4px rgba(26, 29, 24, 0.1);
}

.header-bar .shell {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 36px;
  height: 40px;
  flex: none;
}

.card-chip {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 30px;
  border-radius: 2px;
}

.card-chip--red {
  left: 0;
  background: var(--red);
  transform: rotate(-9deg);
}

.card-chip--yellow {
  right: 0;
  background: var(--yellow);
  transform: rotate(7deg);
  box-shadow: 0 0 0 1px rgba(26, 29, 24, 0.12);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.05;
  color: var(--ink);
  transition: color 120ms ease-out;
}

.brand-descriptor {
  display: block;
  margin-top: 4px;
  font-family: var(--font-note);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--moss);
}

.brand:hover .brand-name { color: var(--red); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background-color 120ms ease-out;
}

.nav-toggle:hover { background: var(--yellow); }

.nav-toggle-bars {
  display: block;
  width: 20px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 180ms var(--ease-snap), opacity 120ms ease-out;
}

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

.nav-toggle-label { line-height: 1; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 2px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 120ms ease-out;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--moss);
  transition: color 120ms ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 180ms var(--ease-snap);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--red); }

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { color: var(--red); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--red); }
.nav-link[aria-current="page"] .nav-index { color: var(--red); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

/* 抽屉关闭按钮 */
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--paper);
  border: 2px solid rgba(247, 243, 232, 0.35);
  transition: border-color 120ms ease-out, color 120ms ease-out;
}

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

.nav-close-mark {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.nav-close-mark::before,
.nav-close-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-close-mark::before { transform: rotate(45deg); }
.nav-close-mark::after { transform: rotate(-45deg); }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(14, 59, 46, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}

.nav-scrim[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease-out;
}

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

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: var(--green);
  color: rgba(247, 243, 232, 0.86);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -30%;
  width: min(70vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(245, 197, 24, 0.16), rgba(245, 197, 24, 0) 62%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -8%;
  top: -18%;
  width: min(48vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(200, 16, 46, 0.18), rgba(200, 16, 46, 0) 65%);
  pointer-events: none;
}

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

.footer-mast {
  padding: clamp(40px, 6vw, 76px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(247, 243, 232, 0.18);
}

.footer-brand {
  font-family: var(--font-body);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--yellow);
}

.footer-note {
  margin-top: 12px;
  max-width: 46ch;
  font-family: var(--font-note);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(247, 243, 232, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(247, 243, 232, 0.18);
}

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

.footer-link {
  display: inline-block;
  padding: 7px 0;
  font-size: 15px;
  color: rgba(247, 243, 232, 0.86);
  border-bottom: 1px solid transparent;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--yellow);
  border-color: rgba(245, 197, 24, 0.7);
}

.footer-contact-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
}

.footer-contact-key {
  flex: none;
  min-width: 52px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(247, 243, 232, 0.6);
}

.footer-contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin-top: 14px;
  font-family: var(--font-note);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(247, 243, 232, 0.66);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 20px 0 clamp(26px, 4vw, 42px);
  font-size: 12.5px;
  color: rgba(247, 243, 232, 0.7);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-left: auto;
}

.footer-legal a {
  color: rgba(247, 243, 232, 0.78);
  border-bottom: 1px solid rgba(247, 243, 232, 0.26);
  padding-bottom: 1px;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- 11. 入场显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms var(--ease-snap), transform 460ms var(--ease-snap);
}

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-index { display: none; }
}

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

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

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(86vw, 340px);
    height: 100dvh;
    margin: 0;
    padding: 20px 24px 40px;
    background: var(--green);
    color: var(--paper);
    border-right: 4px solid var(--red);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 280ms var(--ease-snap);
  }

  .site-nav[data-open="true"] { transform: translateX(0); }

  .site-nav :focus-visible { outline-color: var(--yellow); }

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

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

  .nav-item { border-bottom: 1px solid rgba(247, 243, 232, 0.16); }

  .nav-link {
    display: flex;
    justify-content: flex-start;
    padding: 16px 0;
    font-size: 17px;
    color: var(--paper);
  }

  .nav-link::after { display: none; }

  .nav-index {
    display: inline-block;
    min-width: 30px;
    font-size: 11px;
    color: rgba(247, 243, 232, 0.48);
  }

  .nav-link:hover,
  .nav-link:focus-visible { color: var(--yellow); }

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

  .nav-cta {
    width: 100%;
    margin-top: 26px;
    justify-content: center;
  }

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

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .brand-descriptor { display: none; }
  .brand-name { font-size: 18px; }
  .header-status { font-size: 11.5px; }
  .strip-link { display: none; }
  .header-strip .shell { min-height: 30px; }
  .footer-brand { letter-spacing: 0.04em; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { margin-left: 0; }
  .footer-contact-key { min-width: 46px; }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

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

  .btn:hover,
  .btn:active { transform: none; }
}
