/* ==========================================================================
   博马体育赛事 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

:root {
  /* 品牌色 */
  --terra: #C44B2B;
  --terra-lt: #E2663A;
  --pine: #103C2E;
  --pine-mid: #25624A;
  --gold: #C8A35B;
  --gold-lt: #E4C987;
  --cream: #F4EFE7;
  --ink: #1A1B18;
  --sage: #6F8177;

  /* 排名色阶 */
  --rank-1: #D86A3A;
  --rank-2: #D9A23C;
  --rank-3: #7E9A55;
  --rank-4: #174535;

  /* 结构 */
  --line: 2px solid var(--ink);
  --line-soft: 2px solid rgba(26, 27, 24, 0.18);
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-hard-sm: 5px 5px 0 var(--ink);
  --shadow-gold: 6px 6px 0 var(--gold);
  --wrap: 1280px;
  --pad: clamp(16px, 3.2vw, 42px);
  --gap: clamp(14px, 2vw, 26px);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas",
    "Liberation Mono", "Courier New", monospace;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

p, figure, blockquote { margin: 0; }

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

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

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

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

button { border-radius: 0; }

[hidden] { display: none !important; }

::selection {
  background: var(--terra);
  color: #fff;
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

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

#main-content { display: block; }
#main-content:focus { outline: none; }

/* ---------- 通用排版件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra);
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  border: 2px solid var(--pine);
  background: transparent;
}

.rule {
  height: 3px;
  margin: clamp(22px, 3vw, 34px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--terra) 0%, var(--gold) 46%, var(--pine) 100%);
}

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 长文容器 ---------- */
.prose {
  max-width: 72ch;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(24px, 2.8vw, 34px);
}

.prose h3 {
  margin-top: 1.7em;
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: 0;
}

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li { margin: 0.4em 0; }

.prose a {
  color: var(--terra);
  border-bottom: 2px solid rgba(196, 75, 43, 0.35);
}

.prose a:hover { border-bottom-color: var(--terra); }

.prose blockquote {
  padding: 16px 20px;
  border-left: 5px solid var(--terra);
  background: rgba(196, 75, 43, 0.07);
  font-weight: 500;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

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

.breadcrumb li + li::before {
  content: "／";
  margin: 0 8px;
  color: var(--gold);
}

.breadcrumb a {
  color: var(--pine);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.breadcrumb a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* ---------- 卡片 ---------- */
.card {
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow-hard-sm);
}

.card--pine {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
  box-shadow: var(--shadow-gold);
}

.card--pine .eyebrow { color: var(--gold-lt); }
.card--pine .eyebrow::before { background: var(--gold); }

.card--terra {
  background: var(--terra);
  color: #fff;
  border-color: var(--ink);
}

.card--terra .eyebrow { color: var(--gold-lt); }
.card--terra .eyebrow::before { background: var(--gold-lt); }

/* ---------- 排名色阶 ---------- */
.tier-1 { background: var(--rank-1); color: var(--ink); }
.tier-2 { background: var(--rank-2); color: var(--ink); }
.tier-3 { background: var(--rank-3); color: var(--ink); }
.tier-4 { background: var(--rank-4); color: var(--cream); }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line);
  background: linear-gradient(140deg, var(--pine) 0%, var(--pine-mid) 52%, var(--terra) 100%);
  box-shadow: var(--shadow-hard-sm);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(228, 201, 135, 0.16) 0 1px,
    transparent 1px 30px
  );
}

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

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-solid {
  background: var(--terra);
  color: #fff;
  box-shadow: 4px 4px 0 var(--gold);
}

.btn-solid:hover {
  background: var(--terra-lt);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(228, 201, 135, 0.7);
}

.btn-ghost:hover {
  background: rgba(228, 201, 135, 0.14);
  border-color: var(--gold);
  color: #fff;
}

.btn-line {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

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

.btn-pine {
  background: var(--pine);
  color: var(--cream);
  border-color: var(--pine);
  box-shadow: 5px 5px 0 var(--terra);
}

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

/* ==========================================================================
   阅读进度条
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 400;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--terra) 0%, var(--gold) 60%, var(--gold-lt) 100%);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 600;
  padding: 12px 22px;
  background: var(--gold-lt);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.skip-link:focus {
  left: 14px;
  top: 14px;
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--pine);
  color: var(--cream);
  border-bottom: 5px solid var(--terra);
}

.site-header::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--terra) 0%,
    var(--terra-lt) 26%,
    var(--gold) 62%,
    var(--gold-lt) 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--pad) 18px;
}

.header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  flex: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: var(--terra);
  border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.brand-mark:hover .brand-seal {
  background: var(--terra-lt);
  transform: translate(-1px, -1px);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--cream);
}

.brand-latin {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-lt);
  line-height: 1;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-lt);
  border: 1px solid rgba(200, 163, 91, 0.55);
  white-space: nowrap;
}

.season-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--rank-3);
  box-shadow: 0 0 0 3px rgba(126, 154, 85, 0.24);
  animation: boma-pulse 2.4s ease-in-out infinite;
}

@keyframes boma-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(126, 154, 85, 0.24); }
  50% { box-shadow: 0 0 0 6px rgba(126, 154, 85, 0.1); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(228, 201, 135, 0.55);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  cursor: pointer;
  flex: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(228, 201, 135, 0.12);
  border-color: var(--gold);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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-text { line-height: 1; }

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  min-width: 0;
}

.primary-nav { min-width: 0; }

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

.nav-link {
  display: block;
  padding: 8px 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 231, 0.82);
  border-bottom: 3px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

.nav-link[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--terra-lt);
  background: rgba(196, 75, 43, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* ---------- 头部响应式 ---------- */
@media (max-width: 1280px) {
  .season-chip { display: none; }
  .nav-link { padding: 8px 7px; font-size: 13.5px; }
}

@media (max-width: 1160px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .header-left {
    order: 1;
    flex: 1 1 auto;
    gap: 10px 16px;
  }

  .season-chip {
    display: inline-flex;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 5px 9px;
  }

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

  .header-right {
    order: 3;
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 16px;
    border-top: 2px solid rgba(200, 163, 91, 0.3);
  }

  .header-right[data-open] { display: flex; }

  .primary-nav { width: 100%; }

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

  .nav-link {
    padding: 13px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(228, 201, 135, 0.16);
    border-left: 4px solid transparent;
    border-bottom-color: rgba(228, 201, 135, 0.16);
  }

  .nav-link:hover {
    border-bottom-color: rgba(228, 201, 135, 0.16);
    border-left-color: var(--gold);
    background: rgba(228, 201, 135, 0.08);
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(228, 201, 135, 0.16);
    border-left-color: var(--terra-lt);
    background: rgba(196, 75, 43, 0.18);
  }

  .header-actions { flex-wrap: wrap; }

  .header-actions .btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 480px) {
  .brand-seal { width: 40px; height: 40px; font-size: 19px; }
  .brand-name { font-size: 18px; }
  .brand-latin { font-size: 9px; letter-spacing: 0.24em; }
  .season-chip { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 100px);
  background: var(--pine);
  color: var(--cream);
  border-top: 6px solid var(--gold);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--terra) 0 40px,
    var(--terra-lt) 40px 80px,
    var(--gold) 80px 120px,
    var(--pine-mid) 120px 160px
  );
  opacity: 0.9;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--pad) 0;
}

.footer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px 40px;
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 2px solid rgba(228, 201, 135, 0.24);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: var(--terra);
  border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--cream);
}

.footer-brand-latin {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-lt);
  line-height: 1;
}

.footer-summary {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 239, 231, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px) 0;
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 239, 231, 0.85);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-links a:hover {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

.footer-contact {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(200, 163, 91, 0.45);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.footer-contact .footer-col-title { color: var(--gold-lt); }

.contact-list {
  display: grid;
  gap: 11px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.6;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(200, 163, 91, 0.35);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 239, 231, 0.58);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(228, 201, 135, 0.22);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 231, 0.6);
}

.footer-top {
  padding: 8px 15px;
  background: transparent;
  color: var(--gold-lt);
  border: 1.5px solid rgba(228, 201, 135, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.footer-top:hover {
  background: var(--gold);
  color: var(--pine);
  border-color: var(--gold);
}

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

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

  .footer-head {
    flex-direction: column;
    gap: 18px;
  }

  .footer-summary { font-size: 14.5px; }

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

  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ==========================================================================
   内容筛选条
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.filter-btn {
  padding: 8px 14px;
  background: transparent;
  color: var(--pine);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease;
}

.filter-btn:hover {
  background: var(--gold-lt);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--terra);
  color: #fff;
  border-color: var(--ink);
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sage);
}

/* ==========================================================================
   网格响应式
   ========================================================================== */
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .filter-count { margin-left: 0; }
}

/* ==========================================================================
   减少动态偏好
   ========================================================================== */
@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;
  }

  .season-dot { animation: none; box-shadow: 0 0 0 3px rgba(126, 154, 85, 0.24); }
  .scroll-progress-bar { transition: none; }
}

/* ==========================================================================
   打印
   ========================================================================== */
@media print {
  .site-header::before,
  .site-footer::before,
  .scroll-progress,
  .skip-link,
  .nav-toggle,
  .header-actions,
  .footer-top {
    display: none !important;
  }

  .site-header,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
  }

  .brand-name,
  .footer-brand-name,
  .contact-value,
  .footer-links a {
    color: #000 !important;
  }
}
