/* ==========================================================================
   金多宝赛场 · 共享站点样式 /assets/site.css
   奶油纸阅读底 + 漆墨黑收束区 + 朱砂红动作点
   ========================================================================== */

:root {
  --ink: #17120F;
  --red: #B23A2B;
  --red-deep: #7E241B;
  --cream: #F4EBDD;
  --sand: #E5D7C3;
  --green: #2F6B4F;
  --lime: #DFFF3F;
  --night: #101A20;
  --dust: #6B4A35;
  --mist: #A8C8B5;

  --hairline: rgba(23, 18, 15, 0.14);
  --hairline-soft: rgba(23, 18, 15, 0.07);
  --lit-hairline: rgba(244, 235, 221, 0.16);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Barlow Condensed", "Oswald", "DIN Condensed", "Arial Narrow", system-ui, sans-serif;

  --wrap-max: 1200px;
  --header-max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-float: 0 14px 34px -24px rgba(23, 18, 15, 0.85);
  --shadow-drop: 0 26px 52px -30px rgba(23, 18, 15, 0.75);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(25px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

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

button {
  font-family: inherit;
}

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

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

/* ---------- 工具 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap-max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--red-deep);
}

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

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

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--hairline);
}

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 235, 221, 0.93);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}

.header-shell {
  position: relative;
  width: min(100% - (var(--gutter) * 1.6), var(--header-max));
  margin-inline: auto;
  padding-block: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.read-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--hairline-soft);
}

.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.14s linear;
}

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.brand-island:hover,
.brand-island:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178, 58, 43, 0.4);
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-line {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--dust);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: var(--shadow-float);
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

[data-site-header][data-open="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

[data-site-header][data-open="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

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

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(229, 215, 195, 0.86);
  box-shadow: var(--shadow-float);
}

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

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: rgba(244, 235, 221, 0.92);
}

.nav-link[aria-current="page"] {
  background: var(--red);
  color: var(--cream);
}

.nav-link[aria-current="page"]:hover {
  background: var(--red-deep);
}

.nav-cta {
  display: inline-block;
  padding: 8px 17px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--red-deep);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink);
  color: var(--cream);
  font-size: 14.5px;
  line-height: 1.7;
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--red) 0 24%,
    var(--red-deep) 24% 33%,
    var(--green) 33% 62%,
    var(--sand) 62% 70%,
    var(--red) 70% 100%
  );
}

.footer-shell {
  width: min(100% - (var(--gutter) * 2), var(--wrap-max));
  margin-inline: auto;
  padding: clamp(38px, 6vw, 68px) 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(120px, 0.75fr));
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--lit-hairline);
}

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

.footer-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.footer-brand-name {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.footer-tagline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: rgba(244, 235, 221, 0.72);
}

.footer-index-note {
  margin: 0;
  max-width: 26ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(244, 235, 221, 0.58);
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--mist);
}

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

.footer-link {
  color: rgba(244, 235, 221, 0.84);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 4vw, 48px);
  padding-top: clamp(24px, 3.4vw, 36px);
  font-style: normal;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.footer-contact-item--wide {
  flex-basis: 100%;
}

.footer-contact-label {
  padding: 2px 10px;
  border: 1px solid rgba(168, 200, 181, 0.34);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
  line-height: 1.7;
}

.footer-contact-value {
  font-size: 14px;
  color: rgba(244, 235, 221, 0.9);
  word-break: break-word;
}

.footer-copy {
  appearance: none;
  padding: 3px 11px;
  border: 1px solid rgba(244, 235, 221, 0.3);
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(244, 235, 221, 0.8);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.footer-copy:hover,
.footer-copy:focus-visible {
  background: rgba(244, 235, 221, 0.12);
  color: var(--cream);
}

.footer-copy[data-copied="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.footer-note {
  margin: 16px 0 0;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(244, 235, 221, 0.58);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--lit-hairline);
  font-size: 12.5px;
  color: rgba(244, 235, 221, 0.6);
}

.footer-copyright {
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
}

.footer-icp {
  letter-spacing: 0.06em;
}

.footer-dot {
  color: rgba(244, 235, 221, 0.32);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(23, 18, 15, 0.28);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(23, 18, 15, 0.05);
}

.btn--night {
  background: var(--night);
  color: var(--cream);
}

.btn--night:hover {
  background: var(--red-deep);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--dust);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(107, 74, 53, 0.5);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

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

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose > *:first-child { margin-top: 0; }

.prose h2,
.prose h3 {
  margin: 2.1em 0 0.6em;
  letter-spacing: -0.01em;
}

.prose p { margin: 0 0 1.1em; }

.prose a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--sand);
  color: var(--ink);
}

.prose strong { font-weight: 600; }

/* ---------- 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.grid--split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

.card {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--cream);
}

.card--sand {
  background: var(--sand);
  border-color: rgba(23, 18, 15, 0.1);
}

.card--night {
  background: var(--night);
  border-color: rgba(244, 235, 221, 0.14);
  color: var(--cream);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(23, 18, 15, 0.05);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.tag--red {
  border-color: rgba(178, 58, 43, 0.28);
  background: rgba(178, 58, 43, 0.09);
  color: var(--red-deep);
}

.tag--green {
  border-color: rgba(47, 107, 79, 0.28);
  background: rgba(47, 107, 79, 0.1);
  color: var(--green);
}

.note {
  padding-left: 14px;
  border-left: 2px solid var(--sand);
  font-size: 13px;
  line-height: 1.75;
  color: var(--dust);
}

.note > *:last-child { margin-bottom: 0; }

/* ---------- 编辑部目录行 ---------- */
.index-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, padding-inline 0.18s ease;
}

.index-row:hover,
.index-row:focus-visible {
  padding-inline: 10px 6px;
  background: rgba(229, 215, 195, 0.45);
}

.index-row-num {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}

.index-row-title {
  min-width: 0;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.45;
}

.index-row-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dust);
  white-space: nowrap;
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--sand);
}

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

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

.media-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--dust);
}

/* ---------- 显现动效 ---------- */
[data-reveal] {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 1079px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-pill {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px;
    border-radius: 20px;
    background: var(--cream);
    box-shadow: var(--shadow-drop);
  }

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

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

  .nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-cta {
    padding: 11px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
  }

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

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 32px;
  }

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

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }

  .header-shell {
    width: min(100% - 24px, var(--header-max));
    padding-block: 10px;
    gap: 10px;
  }

  .brand-island {
    padding: 5px 13px 5px 5px;
    gap: 8px;
  }

  .brand-seal {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 17px;
  }

  .brand-line { font-size: 14px; }

  .brand-tagline { font-size: 9.5px; letter-spacing: 0.1em; }

  .nav-toggle {
    padding: 8px 13px 8px 11px;
  }

  .grid {
    gap: 18px;
  }
}

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

  .footer-brand-name { font-size: 22px; }

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

  .index-row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 4px;
  }

  .index-row-meta {
    grid-column: 2;
    white-space: normal;
  }
}

/* ---------- 减少动效 ---------- */
@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;
  }

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

  .brand-island:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .read-progress,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-footer {
    margin-top: 24pt;
    background: none;
    color: #000;
  }

  .footer-link,
  .footer-contact-value,
  .footer-brand-name,
  .footer-tagline,
  .footer-index-note,
  .footer-note,
  .footer-bottom {
    color: #000;
  }

  .media-frame {
    break-inside: avoid;
  }
}
