/* ==========================================================================
   皇冠体彩数据 · 共享站点样式 /assets/site.css
   墨绿档案鎏金体系 · 极简文字建筑 · 框景与档案秩序
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 色彩 */
  --ink-green: #0E2F2A;
  --ink-green-800: #123A34;
  --gold: #C8A24A;
  --gold-soft: #E6D3A3;
  --cream: #F7F1E3;
  --charcoal: #1C1B18;
  --vermilion: #B23A2E;
  --moss: #5C7A6E;
  --brown: #3A2E25;
  --archive: #8C8778;
  --paper: #FFFDF7;

  /* 边界 */
  --hairline: rgba(140, 135, 120, 0.34);
  --hairline-strong: rgba(28, 27, 24, 0.24);
  --hairline-gold: rgba(200, 162, 74, 0.48);
  --hairline-cream: rgba(230, 211, 163, 0.22);

  /* 字体 */
  --font-title: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, "Courier New", monospace;

  /* 字号 */
  --step--1: 12.5px;
  --step-0: 16.5px;
  --step-1: 18px;
  --step-2: clamp(24px, 2.4vw, 28px);
  --step-3: clamp(30px, 3.4vw, 40px);
  --step-4: clamp(38px, 4.6vw, 56px);
  --step-5: clamp(44px, 6vw, 72px);

  /* 尺度 */
  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;

  /* 阴影 */
  --shadow-s: 0 1px 2px rgba(28, 27, 24, 0.05);
  --shadow-m: 0 10px 30px rgba(14, 47, 42, 0.10);
  --shadow-l: 0 24px 60px rgba(14, 47, 42, 0.18);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink-green);
  margin: 0 0 0.55em;
}

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }

a {
  color: var(--ink-green);
  text-decoration-color: rgba(200, 162, 74, 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--vermilion); }

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

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2rem 0;
}

::selection { background: var(--gold-soft); color: var(--brown); }

/* 焦点 */
:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 3. 通用工具 ---------- */
.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.prose { max-width: 38em; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--hairline);
  margin: clamp(28px, 4vw, 48px) 0;
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }

/* ---------- 4. 标签与按钮 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--brown);
  border: 1px solid rgba(58, 46, 37, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.tag--outline {
  background: transparent;
  color: var(--moss);
  border-color: var(--hairline);
}

.tag--alert {
  background: rgba(178, 58, 46, 0.10);
  color: var(--vermilion);
  border-color: rgba(178, 58, 46, 0.34);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

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

.btn--primary {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

.btn--gold {
  background: var(--gold);
  border-color: rgba(58, 46, 37, 0.2);
  color: var(--brown);
}
.btn--gold:hover {
  background: var(--gold-soft);
  color: var(--brown);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--ink-green);
}
.btn--ghost:hover {
  background: rgba(14, 47, 42, 0.06);
  border-color: var(--ink-green);
  color: var(--ink-green);
}

.btn--sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- 5. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}

.card--dark {
  background: var(--ink-green);
  border-color: var(--hairline-gold);
  color: var(--cream);
}

.card--dark h2,
.card--dark h3,
.card--dark h4 { color: var(--cream); }

.card--flush { padding: 0; overflow: hidden; }

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--archive);
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

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

/* ---------- 7. 图片容器（页面阶段放占位） ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}

.figure__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #EDE4D2;
  background-image:
    repeating-linear-gradient(135deg, rgba(92, 122, 110, 0.10) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #F1E9D8 0%, #E3D9C2 100%);
}

.figure__caption {
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }

/* ---------- 8. 页头：悬浮胶囊浮岛 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 130;
  padding: 10px 20px;
  border-radius: var(--radius-s);
  background: var(--vermilion);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #FFFFFF;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 0 16px;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 227, 0.98) 0%,
    rgba(247, 241, 227, 0.92) 62%,
    rgba(247, 241, 227, 0) 100%
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* 品牌胶囊 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border-radius: var(--radius-pill);
  background: var(--ink-green);
  border: 1px solid var(--hairline-gold);
  box-shadow: 0 8px 24px rgba(14, 47, 42, 0.18);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(14, 47, 42, 0.24);
  border-color: var(--gold);
}

.brand__seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #F0E2BC 0%, var(--gold) 58%, #96762F 100%);
  color: var(--ink-green);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--cream);
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--gold-soft);
  white-space: nowrap;
}

/* 导航浮岛 */
.nav-island {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(28, 27, 24, 0.08);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__item { margin: 0; }

.primary-nav__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.primary-nav__link:hover {
  background: var(--cream);
  color: var(--ink-green);
}

.primary-nav__link[aria-current="page"] {
  color: var(--ink-green);
  font-weight: 700;
}

.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  border: 1px solid rgba(58, 46, 37, 0.2);
  color: var(--brown);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-cta:hover {
  background: var(--ink-green);
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink-green);
  border: 1px solid var(--hairline-gold);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(14, 47, 42, 0.2);
}

.nav-toggle:hover { border-color: var(--gold); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  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__label { line-height: 1; }

/* ---------- 9. 页脚：档案抽屉 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--ink-green);
  color: var(--cream);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0 1px,
    transparent 1px 12px
  );
  opacity: 0.55;
}

.site-footer__inner {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: clamp(44px, 5vw, 64px) 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(28px, 3.4vw, 48px);
}

.footer-brand__seal {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: var(--ink-green);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(14, 47, 42, 0.22);
}

.footer-brand__line {
  max-width: 30em;
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(247, 241, 227, 0.86);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline-cream);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin: 0; }

.footer-links a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: rgba(247, 241, 227, 0.82);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-contact__row {
  display: grid;
  gap: 2px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  opacity: 0.9;
}

.footer-contact__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin: 2px 0 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(247, 241, 227, 0.72);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(230, 211, 163, 0.45);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.copy-btn:hover {
  background: rgba(200, 162, 74, 0.16);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.copy-btn[data-copied="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown);
}

.copy-btn__text { display: inline-block; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 227, 0.66);
}

.colophon { margin: 0; }
.colophon--icp { letter-spacing: 0.08em; }

/* ---------- 10. 动效 ---------- */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease,
              transform 0.55s cubic-bezier(0.22, 0.7, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold) 0%, var(--vermilion) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .primary-nav__link { padding: 8px 10px; font-size: 13.5px; }
  .brand__tagline { display: none; }
  .nav-cta { padding: 8px 13px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .nav-island { position: relative; }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: min(320px, calc(100vw - 2 * var(--gutter)));
    padding: 10px;
    border-radius: var(--radius-l);
    background: var(--paper);
    border: 1px solid var(--hairline-gold);
    box-shadow: var(--shadow-l);
  }

  .primary-nav[data-open="true"] {
    display: flex;
    animation: nav-drop 0.22s ease-out both;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav__link {
    padding: 12px 14px;
    border-radius: var(--radius-s);
    font-size: 15px;
  }

  .primary-nav__link[aria-current="page"]::after { display: none; }

  .primary-nav__link[aria-current="page"] {
    background: rgba(14, 47, 42, 0.06);
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    padding: 12px 16px;
  }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

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

@media (max-width: 600px) {
  :root { --step-0: 16px; }

  .brand { padding: 6px 14px 6px 6px; gap: 9px; }
  .brand__seal { width: 34px; height: 34px; font-size: 17px; }
  .brand__name { font-size: 15.5px; letter-spacing: 0.04em; }

  .nav-toggle { padding: 9px 13px; font-size: 12.5px; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 12. 动效过敏与打印 ---------- */
@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-reveal .reveal {
    opacity: 1;
    transform: none;
  }

  .primary-nav[data-open="true"] { animation: none; }
}

@media print {
  .site-header,
  .site-footer,
  .scroll-meter,
  .copy-btn,
  .nav-toggle { display: none !important; }

  body { background: #FFFFFF; color: #000000; }
}
