/* ==========================================================================
   大发彩票主站 · 共享外壳样式 /assets/site.css
   绛红 · 鎏金 · 高原靛蓝 —— 海报式分层构图与切角面板
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --crimson: #7A1F2B;
  --crimson-deep: #5E1620;
  --gold: #C9A227;
  --gold-ink: #8A6B0C;          /* 浅底可读的深金 */
  --indigo: #16233F;
  --indigo-lift: #1E2E4E;
  --barley: #4E7A4A;
  --amber: #D9822B;
  --slate: #3A4252;
  --paper: #F7F3EA;
  --cloud: #FFFFFF;
  --mist: #AFC0D8;
  --ink: #14161C;
  --ink-soft: rgba(20, 22, 28, 0.68);
  --line: rgba(58, 66, 82, 0.16);
  --shadow-lg: 0 30px 60px -34px rgba(20, 22, 28, 0.55);
  --shadow-sm: 0 10px 30px -22px rgba(20, 22, 28, 0.55);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "PingFang SC", monospace;
  --wrap-max: 1200px;
  --radius: 14px;
  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% -12%, rgba(122, 31, 43, 0.08), transparent 46%),
    radial-gradient(circle at 94% 2%, rgba(22, 35, 63, 0.09), transparent 52%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
hr { border: 0; }
[id] { scroll-margin-top: 110px; }
::selection { background: rgba(201, 162, 39, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4, .display-1, .display-2 {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.display-1 {
  font-size: clamp(40px, 7.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.display-2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 36em;
}
.prose { max-width: 38em; font-size: 16px; line-height: 1.85; }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose + .prose { margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin: 1.8em 0 0.7em; }
.prose ul { margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 2px;
  background: var(--gold);
  transform: skewX(-30deg);
}
.prose strong { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  transform: skewX(-30deg);
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}
.num--on-dark { color: var(--gold); }

.note-vertical {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--slate);
  text-transform: uppercase;
}
.note-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}
.section { padding: clamp(54px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .col-3, .col-4, .col-6, .col-8 { grid-column: span 12; }
}

.slash {
  display: block;
  width: 56px; height: 3px;
  background: var(--gold);
  transform: skewX(-30deg);
}
.hairline {
  height: 1px;
  background: linear-gradient(90deg, rgba(58, 66, 82, 0.4), rgba(58, 66, 82, 0));
}
.cut-panel {
  background: var(--cloud);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn--gold {
  background: var(--gold);
  color: #241A00;
  box-shadow: 0 10px 22px -14px rgba(201, 162, 39, 0.95);
}
.btn--gold:hover { background: #D9B33A; transform: translateY(-1px); }
.btn--crimson { background: var(--crimson); color: #FFF6EA; }
.btn--crimson:hover { background: var(--crimson-deep); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(58, 66, 82, 0.28); color: var(--ink); }
.btn--ghost:hover { border-color: var(--crimson); color: var(--crimson); background: rgba(122, 31, 43, 0.06); }
.btn--compact { padding: 8px 16px; font-size: 13.5px; }

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--ok { background: rgba(78, 122, 74, 0.14); color: #2E5230; border: 1px solid rgba(78, 122, 74, 0.36); }
.tag--warn { background: rgba(217, 130, 43, 0.16); color: #7A4308; border: 1px solid rgba(217, 130, 43, 0.42); }
.tag--info { background: rgba(22, 35, 63, 0.08); color: var(--indigo); border: 1px solid rgba(22, 35, 63, 0.22); }
.tag--gold { background: rgba(201, 162, 39, 0.18); color: #6E5510; border: 1px solid rgba(201, 162, 39, 0.48); }

/* ---------- 7. 展览说明牌卡片 ---------- */
.exhibit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 0;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.exhibit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(122, 31, 43, 0.3);
}
.exhibit-card__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}
.exhibit-card__title {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.3;
  color: var(--ink);
}
.exhibit-card__text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.exhibit-card__foot {
  margin-top: auto;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate);
}

/* ---------- 8. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-lift) 46%, var(--crimson-deep) 100%);
  border: 1px solid rgba(58, 66, 82, 0.22);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(247, 243, 234, 0.09) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(247, 243, 234, 0.09) 0 1px, transparent 1px 26px);
  pointer-events: none;
  z-index: 1;
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 16px 12px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0) 0%, rgba(20, 22, 28, 0.78) 100%);
  color: #F1EDE3;
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

/* ---------- 9. 面包屑与折叠面板 ---------- */
.breadcrumbs {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  color: rgba(58, 66, 82, 0.45);
}
.breadcrumbs a { transition: color 0.18s ease; }
.breadcrumbs a:hover { color: var(--crimson); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.fold {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  transition: border-left-color 0.2s ease;
}
.fold:has(.fold-trigger[aria-expanded="true"]) { border-left-color: var(--gold); }
.fold-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.fold-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.fold-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); }
.fold-panel { padding: 0 20px 20px; font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.fold-panel[hidden] { display: none; }

/* ---------- 10. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--crimson) 0%, var(--gold) 70%, var(--gold) 100%);
  pointer-events: none;
}

/* ---------- 11. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--crimson);
  color: #FFF6EA;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px;
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.97) 0%, rgba(247, 243, 234, 0.84) 62%, rgba(247, 243, 234, 0) 100%);
  pointer-events: none;
}
.header-wrap { position: relative; padding-top: clamp(10px, 1.6vw, 16px); padding-bottom: 4px; }

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(58, 66, 82, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header[data-scrolled="true"] .header-shell {
  padding: 5px 8px 5px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px -26px rgba(20, 22, 28, 0.62);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(122, 31, 43, 0.08);
  border: 1px solid rgba(122, 31, 43, 0.22);
  color: var(--crimson);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-tag {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--slate);
  white-space: nowrap;
}
.site-header[data-scrolled="true"] .brand-tag { display: none; }

.nav-pill {
  margin-left: auto;
  padding: 3px;
  background: rgba(247, 243, 234, 0.85);
  border: 1px solid rgba(58, 66, 82, 0.1);
  border-radius: 999px;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: block; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover { background: rgba(122, 31, 43, 0.09); color: var(--crimson); }
.nav-link[aria-current="page"] { background: var(--crimson); color: #FFF6EA; }
.nav-link[aria-current="page"]:hover { background: var(--crimson-deep); color: #FFF6EA; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(58, 66, 82, 0.24);
  background: var(--cloud);
  flex: 0 0 auto;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--crimson); background: rgba(122, 31, 43, 0.06); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 平板与手机：导航变为靛蓝下拉面板 */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav-pill {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 10px;
    border-radius: 22px;
    background: rgba(22, 35, 63, 0.98);
    border: 1px solid rgba(201, 162, 39, 0.36);
    box-shadow: 0 34px 64px -32px rgba(20, 22, 28, 0.85);
    display: none;
  }
  .nav-pill[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    color: #E8EEF7;
    font-size: 15.5px;
  }
  .nav-link:hover { background: rgba(201, 162, 39, 0.16); color: var(--gold); }
  .nav-link[aria-current="page"] { background: var(--crimson); color: #FFF6EA; }
  .nav-link[aria-current="page"]:hover { background: var(--crimson-deep); color: #FFF6EA; }
}

@media (max-width: 720px) {
  .header-shell { gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 15.5px; }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .header-cta { padding: 7px 12px; font-size: 12.5px; letter-spacing: 0; }
  .header-shell { padding: 7px 8px 7px 12px; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--indigo);
  color: var(--mist);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(175, 192, 216, 0.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(175, 192, 216, 0.05) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.site-footer .wrap { position: relative; }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(44px, 6vw, 76px) 0 40px;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F3EDE0;
  transition: color 0.18s ease;
}
.footer-brand-link:hover { color: var(--gold); }
.footer-mark { display: inline-flex; color: var(--gold); }
.footer-brand-name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.footer-tagline {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.footer-contact-line {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(231, 238, 247, 0.9);
}
.footer-contact-note {
  margin-top: 10px;
  max-width: 26em;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(175, 192, 216, 0.72);
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.footer-links { display: grid; gap: 10px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: rgba(231, 238, 247, 0.82);
  transition: color 0.18s ease;
}
.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--gold);
  transition: width 0.18s ease, margin-right 0.18s ease;
}
.footer-link:hover { color: var(--gold); }
.footer-link:hover::before { width: 12px; margin-right: 8px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(201, 162, 39, 0.34);
  font-size: 12.5px;
  color: rgba(175, 192, 216, 0.72);
}
.footer-address { font-family: var(--mono); letter-spacing: 0.01em; }
.footer-legal { letter-spacing: 0.06em; }
.footer-copy { letter-spacing: 0.04em; }

.knot-band {
  position: relative;
  height: 16px;
  background-color: var(--crimson);
  background-image:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, 0.85) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-45deg, rgba(201, 162, 39, 0.85) 0 2px, transparent 2px 10px);
  border-top: 1px solid rgba(201, 162, 39, 0.6);
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 13. 显现动效 ---------- */
[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 减弱动效 ---------- */
@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;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .exhibit-card:hover { transform: none; }
  .btn:hover { transform: none; }
  .scroll-progress { display: none; }
}
