/* ==========================================================================
   牌乐门主站 · /assets/site.css
   共享外壳：重置、变量、中文排版、头部、页脚、通用按钮与基础组件
   ========================================================================== */

:root {
  --ink: #0F2E25;
  --ink-2: #173F33;
  --ink-3: #1F4B3C;
  --copper: #B8894B;
  --copper-light: #D9B882;
  --sand: #F3EBDD;
  --paper: #FBF7EF;
  --cinnabar: #B54632;
  --sage: #7E9488;
  --charcoal: #1C211E;
  --gold-text: #E5C48F;

  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: 28px;
  --radius: 14px;
  --line: rgba(184, 137, 75, 0.32);
  --shadow: 0 18px 40px -30px rgba(15, 46, 37, 0.85);
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

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

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

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

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.7em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.9em;
}

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

.note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #586A61;
}

/* ---------- 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(44px, 7vw, 92px) 0; }
.section--tint { background: var(--paper); }
.section--ink { background: var(--ink-2); color: var(--gold-text); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--paper); }

.grid { display: grid; gap: 26px; }
.grid--split { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--copper);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   头部：双层门楣
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
  color: var(--gold-text);
  background: var(--ink);
}

.header-utility {
  background: linear-gradient(180deg, #123328 0%, #0F2E25 100%);
  border-bottom: 1px solid rgba(184, 137, 75, 0.26);
}

.header-utility__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}

.brand__seal {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(148deg, #EBCF9E 0%, var(--copper) 100%);
  border-radius: 7px 12px 7px 12px;
  box-shadow: inset 0 0 0 2px rgba(15, 46, 37, 0.22);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.brand__latin {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--copper-light);
  margin-top: 3px;
}

.header-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(184, 137, 75, 0.3);
}

.header-meta__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.header-meta__path {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--copper-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.btn--ghost {
  color: var(--copper-light);
  border-color: rgba(217, 184, 130, 0.55);
}
.btn--ghost:hover {
  color: #FFFFFF;
  background: rgba(217, 184, 130, 0.16);
  border-color: var(--copper-light);
  transform: translateY(-1px);
}

.btn--gold {
  color: #211A0E;
  background: linear-gradient(135deg, #EBCF9E 0%, var(--copper) 100%);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}
.btn--gold:hover {
  color: #1A1408;
  background: linear-gradient(135deg, #F5DDB2 0%, #C79655 100%);
  transform: translateY(-1px);
}

.btn--sm { padding: 8px 15px; font-size: 0.78rem; letter-spacing: 0.06em; }

.btn--line {
  color: var(--ink-2);
  border-color: rgba(24, 63, 51, 0.35);
  background: rgba(251, 247, 239, 0.72);
}
.btn--line:hover { background: var(--ink-2); color: var(--copper-light); border-color: var(--ink-2); }

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(217, 184, 130, 0.5);
  background: rgba(23, 63, 51, 0.65);
  color: var(--gold-text);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.24s ease, border-color 0.24s ease;
}
.nav-toggle:hover { background: rgba(184, 137, 75, 0.2); border-color: var(--copper-light); }

.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

.nav-toggle__label { line-height: 1; }

/* ---------- 主导航条 ---------- */
.header-nav {
  background: transparent;
  border-top: 1px solid rgba(184, 137, 75, 0.28);
}

.nav-panel {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  background: var(--ink-2);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list__item { position: relative; }

.nav-link {
  display: block;
  padding: 16px 20px;
  color: var(--gold-text);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: #FFFFFF; background: rgba(184, 137, 75, 0.14); }
.nav-link[aria-current="page"] {
  color: #FFFFFF;
  border-bottom-color: var(--copper);
  background: linear-gradient(180deg, rgba(184, 137, 75, 0) 0%, rgba(184, 137, 75, 0.2) 100%);
}

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(15, 46, 37, 0.22);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper-light) 100%);
  transition: width 0.08s linear;
}

/* ==========================================================================
   页脚：档案柜底层
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #C9D5CE;
  margin-top: 0;
}

.footer-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 58px var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 38px;
}

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

.footer-col__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper-light);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 137, 75, 0.28);
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--copper-light);
  border: 1.5px solid var(--copper);
  border-radius: 50% 50% 46% 46% / 52% 52% 48% 48%;
  background: radial-gradient(120% 100% at 30% 10%, rgba(184, 137, 75, 0.28), transparent 70%);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--paper);
  margin: 0 0 10px;
}

.footer-note {
  font-size: 0.86rem;
  line-height: 1.75;
  color: #A9BAB1;
  margin: 0 0 16px;
  max-width: 30ch;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin: 0;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  display: inline-block;
  color: #CFDBD4;
  font-size: 0.92rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-list a:hover { color: var(--copper-light); border-bottom-color: var(--copper); }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2px;
}

.footer-contact__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__value--addr {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #DCE5DF;
}

.footer-bottom {
  margin-top: 46px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(184, 137, 75, 0.26);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.79rem;
  color: var(--sage);
}

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

.footer-bottom__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom__links a {
  color: #BFCCC4;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom__links a:hover { color: var(--copper-light); }

.to-top {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 184, 130, 0.45);
  background: transparent;
  color: var(--gold-text);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.to-top:hover { background: rgba(217, 184, 130, 0.16); color: #FFFFFF; border-color: var(--copper-light); }

/* ==========================================================================
   基础组件
   ========================================================================== */
.breadcrumb { padding: 16px 0; font-size: 0.79rem; color: var(--sage); }
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 9px; }
.breadcrumb__item a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--copper);
}
.breadcrumb__item a:hover { color: var(--copper); }
.breadcrumb__sep { color: var(--copper); font-family: var(--font-mono); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.panel--dark {
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--gold-text);
  border-color: rgba(184, 137, 75, 0.42);
}
.panel--dark h2, .panel--dark h3 { color: var(--paper); }

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(217, 184, 130, 0.3) 0%, transparent 58%),
    linear-gradient(145deg, var(--ink-3) 0%, var(--ink) 60%, #0B241D 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 36, 29, 0.55) 100%);
}
.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: transparent;
}
.media-frame--wide .media-frame__img { aspect-ratio: 16 / 9; }
.media-frame--tall .media-frame__img { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(24, 63, 51, 0.32);
  background: rgba(251, 247, 239, 0.75);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.chip:hover { border-color: var(--copper); color: var(--ink); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--copper-light);
}

/* 显现协议 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; row-gap: 34px; }
  .footer-col--contact { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .grid--split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .header-utility__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 11px var(--gutter);
  }
  .header-meta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }

  .header-nav { border-top: none; }
  .nav-panel {
    display: none;
    padding: 0 var(--gutter) 14px;
    border-top: 1px solid rgba(184, 137, 75, 0.28);
  }
  .nav-panel[data-open] {
    display: block;
    animation: drawer-in 0.28s ease both;
  }
  .nav-list { flex-direction: column; padding: 6px 0 0; }
  .nav-list__item { width: 100%; }
  .nav-link {
    padding: 13px 6px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(184, 137, 75, 0.16);
  }
  .nav-link[aria-current="page"] {
    padding-left: 16px;
    border-bottom-color: var(--copper);
    background: linear-gradient(90deg, rgba(184, 137, 75, 0.22) 0%, rgba(184, 137, 75, 0) 100%);
  }

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

@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-shell { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col--contact { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; gap: 12px; }
  .panel { padding: 22px 20px; }
}

@media (max-width: 560px) {
  .header-actions .btn--ghost { display: none; }
  .brand__seal { width: 36px; height: 36px; font-size: 1.02rem; }
  .brand__name { font-size: 1rem; }
  .brand__latin { font-size: 0.54rem; letter-spacing: 0.16em; }
  .nav-toggle__label { display: none; }
  .btn { padding: 9px 15px; font-size: 0.8rem; }
  .btn--sm { padding: 8px 13px; font-size: 0.75rem; }
}

/* ==========================================================================
   可访问性：减少动态效果
   ========================================================================== */
@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;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .nav-panel[data-open] { animation: none; }
}

@media print {
  .site-header, .site-footer, .scroll-progress, .to-top { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
}
