/* ==========================================================
   博澳娱乐 · 共享 Site Kit
   文件：/assets/site.css
   ========================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--c-deep-space);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-cream);
  min-height: 100vh;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-dark-gold);
}

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

:focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--c-gold);
  color: var(--c-deep-space);
}

/* ---------- CSS 变量 ---------- */
:root {
  --c-deep-space: #0B1D3A;
  --c-indigo: #1B3A5C;
  --c-royal: #2C5A8C;
  --c-gold: #D4AF37;
  --c-amber: #E67E22;
  --c-cream: #F9F6F0;
  --c-ink: #2E2727;
  --c-mist: #E5E9F0;
  --c-dark-gold: #B8860B;

  --font-heading: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
  --font-accent: "Georgia", serif;

  --container-width: 1280px;
  --header-height: 76px;
  --header-height-sm: 64px;
  --radius: 2px;
  --space-section: clamp(72px, 10vw, 128px);

  --fs-hero: clamp(42px, 6vw, 72px);
  --fs-h1: clamp(34px, 4.5vw, 60px);
  --fs-h2: clamp(28px, 3.5vw, 48px);
  --fs-h3: clamp(24px, 2.5vw, 36px);
}

/* ---------- 基础中文排版 ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: bold;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-ink);
  margin-bottom: 0.5em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 28px; }

p {
  margin-bottom: 1em;
}

.accent-text {
  font-family: var(--font-accent);
  font-weight: bold;
  font-style: italic;
  color: var(--c-gold);
}

/* ---------- 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--space-section) 0;
}

.content-area {
  padding: var(--space-section) 0;
  background: var(--c-cream);
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 16px);
  min-height: 60vh;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

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

.is-dark {
  background: var(--c-deep-space);
  color: rgba(249, 246, 240, 0.8);
}

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

/* ---------- 无障碍工具 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 300;
  transform: translateY(-120%);
  padding: 10px 24px;
  background: var(--c-gold);
  color: var(--c-deep-space);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.3s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 29, 58, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
}

.reading-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(11, 29, 58, 0.4);
  pointer-events: none;
}

.reading-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-amber));
  transition: width 0.15s ease-out;
}

.header-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-dark-gold));
  color: var(--c-deep-space);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
  transform: skew(-3deg);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--c-cream);
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: rgba(249, 246, 240, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover {
  color: var(--c-gold);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--c-gold);
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: bold;
  color: var(--c-deep-space);
  background: linear-gradient(135deg, var(--c-gold), var(--c-dark-gold));
  border: 1px solid var(--c-gold);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.header-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(249, 246, 240, 0.3);
  border-radius: var(--radius);
  background: transparent;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-deep-space);
  color: rgba(249, 246, 240, 0.75);
  border-top: 4px solid var(--c-gold);
}

.footer-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 48px) 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.4fr;
  gap: clamp(32px, 6vw, 64px);
}

.footer-brand .brand-logo {
  margin-bottom: 20px;
}

.footer-brand .brand-name {
  color: var(--c-cream);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: bold;
  color: var(--c-gold);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(249, 246, 240, 0.6);
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(249, 246, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--c-gold);
  padding-left: 4px;
}

.footer-contact-line {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(249, 246, 240, 0.7);
  margin-bottom: 8px;
}

.footer-contact-line strong {
  display: block;
  color: var(--c-cream);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(249, 246, 240, 0.55);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-deep-space);
  border-color: var(--c-gold);
}

.btn-gold:hover {
  background: var(--c-dark-gold);
  border-color: var(--c-dark-gold);
  color: #fff;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--c-gold);
  border-color: rgba(212, 175, 55, 0.65);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--c-gold);
}

.btn-dark {
  background: var(--c-deep-space);
  color: var(--c-cream);
  border-color: var(--c-deep-space);
}

.btn-dark:hover {
  background: var(--c-indigo);
  border-color: var(--c-indigo);
}

/* ---------- 标签与装饰 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.16em;
  color: var(--c-royal);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--c-gold);
}

.is-dark .section-label {
  color: var(--c-gold);
}

.exhibit-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--c-deep-space);
  color: var(--c-gold);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.time-tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: var(--c-cream);
  background: var(--c-amber);
  border-radius: var(--radius);
}

.big-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--c-gold) 20%, var(--c-dark-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-gold);
}

/* ---------- 纸张叠层与印刷边框 ---------- */
.paper-layer {
  position: relative;
  background: var(--c-cream);
  border: 1px solid var(--c-mist);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(11, 29, 58, 0.08);
}

.print-frame {
  position: relative;
  background: var(--c-cream);
  border: 2px solid var(--c-deep-space);
}

.print-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--c-gold);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 图片容器 ---------- */
.image-ratio {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-mist);
  border-radius: var(--radius);
}

.image-ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(11, 29, 58, 0.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(11, 29, 58, 0.08) 25%, transparent 25%),
    var(--c-mist);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border: 1px solid var(--c-mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--c-royal);
  letter-spacing: 0.1em;
}

/* ---------- 统计指标 ---------- */
.stat-item {
  padding: 24px;
  background: var(--c-cream);
  border: 1px solid var(--c-mist);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: var(--c-royal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- 表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-mist);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-mist);
}

.data-table th {
  background: var(--c-deep-space);
  color: var(--c-cream);
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.06);
}

/* ---------- 引言 ---------- */
.blockquote-note {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--c-gold);
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 18px;
  color: var(--c-ink);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(249, 246, 240, 0.5);
}

.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--c-gold);
  border-radius: 50%;
}

.breadcrumb a {
  color: rgba(249, 246, 240, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--c-gold);
}

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

/* ---------- 内页首屏 ---------- */
.page-hero {
  padding: calc(var(--header-height) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 8vw, 80px);
  background: var(--c-deep-space);
  color: var(--c-cream);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.page-hero .breadcrumb {
  margin-bottom: 24px;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 24px;
}

.page-hero-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-gold);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: bold;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  margin-bottom: 16px;
  max-width: 800px;
}

.page-hero-summary {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(249, 246, 240, 0.7);
  max-width: 620px;
  margin-bottom: 32px;
}

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-deep-space);
  color: var(--c-cream);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: bold;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(249, 246, 240, 0.72);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ---------- 滚动显现与章节高亮 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

.scroll-chapter {
  position: relative;
  padding-left: 32px;
}

.scroll-chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-mist);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.scroll-chapter[data-active]::before {
  background: var(--c-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.chapter-index {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-royal);
  transition: color 0.4s ease;
  margin-bottom: 12px;
}

.scroll-chapter[data-active] .chapter-index {
  color: var(--c-gold);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .header-inner {
    height: var(--header-height-sm);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 16px;
    background: rgba(11, 29, 58, 0.98);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    max-height: calc(100vh - var(--header-height-sm));
    overflow-y: auto;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav-link {
    display: block;
    font-size: 16px;
    padding: 14px 18px;
    color: var(--c-cream);
    text-align: center;
    border: 1px solid transparent;
  }

  .nav-link[aria-current="page"] {
    border-color: rgba(212, 175, 55, 0.5);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .page-hero {
    padding-top: calc(var(--header-height-sm) + 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

  .reading-progress-fill {
    transition: none;
  }
}
