/* ===== 辉煌官网 · 第三版 共享外壳样式 /assets/site.css ===== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; }
hr { border: 0; }

:root {
  --paper: #F7F1E7;
  --paper-2: #E8DFD1;
  --ink: #102A43;
  --ink-2: #1B3A57;
  --gold: #D98A1F;
  --gold-lit: #F2B84B;
  --signal: #D64545;
  --slate: #6B7F95;
  --coal: #1F2328;

  --rail-w: 248px;
  --bar-h: 66px;

  --pad: clamp(20px, 4.2vw, 64px);
  --gap: clamp(22px, 2.6vw, 44px);
  --sec-gap: clamp(56px, 9vw, 132px);
  --radius: 22px;
  --radius-sm: 12px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --line: rgba(16, 42, 67, .16);
  --line-soft: rgba(16, 42, 67, .10);
  --line-gold: rgba(217, 138, 31, .42);
  --shadow-soft: 0 18px 46px -28px rgba(16, 42, 67, .55);
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.7;
  color: var(--coal);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% -8%, rgba(242, 184, 75, .17), transparent 46%),
    radial-gradient(circle at 92% 6%, rgba(27, 58, 87, .09), transparent 44%);
  background-repeat: no-repeat;
  padding-top: var(--bar-h);
}

#main-content { scroll-margin-top: calc(var(--bar-h) + 18px); }

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

.visually-hidden {
  position: absolute !important;
  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 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  transform: translate(-50%, -240%);
  z-index: 300;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--gold);
  color: #2b1a03;
  font-weight: 800;
  letter-spacing: .06em;
  transition: transform .18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  height: 4px;
  width: 0;
  z-index: 160;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit));
  transition: width .12s linear;
}

/* ---------- 头部：左侧档案轨道 ---------- */
.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  z-index: 200;
  display: flex;
  background: var(--ink);
  color: var(--paper);
  border-inline-end: 1px solid rgba(242, 184, 75, .22);
}
.site-header::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -7px;
  width: 6px;
  background: linear-gradient(180deg, var(--gold-lit), var(--gold) 42%, rgba(217, 138, 31, .12));
  pointer-events: none;
}

.rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 20px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
}
.rail__stamp {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.32rem;
  line-height: 1;
  color: #2b1a03;
  background: linear-gradient(150deg, var(--gold-lit), var(--gold));
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 2px rgba(242, 184, 75, .28), 0 10px 20px -12px #000;
}
.rail__wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.04rem;
  letter-spacing: .07em;
  line-height: 1.2;
  color: var(--paper);
}
.rail__wordmark em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--gold-lit);
}

.rail__toggle {
  display: none;
  width: 46px; height: 46px;
  place-items: center;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .42);
}
.rail__toggle-box { display: grid; gap: 5px; }
.rail__toggle-bar {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header[data-open] .rail__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header[data-open] .rail__toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .rail__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rail__nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.rail__navlabel {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .32em;
  color: rgba(247, 241, 231, .4);
}
.rail__list { display: flex; flex-direction: column; gap: 2px; }
.rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px;
  border-radius: 10px;
  border-inline-start: 3px solid transparent;
  font-size: .94rem;
  letter-spacing: .02em;
  color: rgba(247, 241, 231, .78);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.rail__num {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  color: rgba(242, 184, 75, .68);
}
.rail__link:hover {
  background: rgba(242, 184, 75, .12);
  color: #fff;
}
.rail__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(217, 138, 31, .34), rgba(217, 138, 31, .04));
  border-inline-start-color: var(--gold-lit);
  color: #fff;
  font-weight: 700;
}
.rail__link[aria-current="page"] .rail__num { color: var(--gold-lit); }

.rail__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #2b1a03;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .1em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  transition: background-color .18s ease, transform .18s ease;
}
.rail__cta:hover { background: var(--gold-lit); transform: translateY(-2px); }

.rail__foot {
  padding-top: 14px;
  border-top: 1px solid rgba(247, 241, 231, .14);
  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1.7;
  letter-spacing: .08em;
  color: rgba(247, 241, 231, .52);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 120px);
  color: rgba(247, 241, 231, .82);
  background:
    linear-gradient(90deg, var(--gold), var(--gold-lit) 38%, rgba(242, 184, 75, 0) 38%) top left / 100% 6px no-repeat,
    var(--ink-2);
  padding-block: clamp(44px, 6vw, 88px) clamp(26px, 3.4vw, 40px);
}
.footer__inner { display: grid; gap: clamp(26px, 3.6vw, 48px); }

.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__stamp {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  color: #2b1a03;
  background: linear-gradient(150deg, var(--gold-lit), var(--gold));
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 2px rgba(242, 184, 75, .28);
}
.footer__name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.14rem;
  letter-spacing: .1em;
  color: var(--paper);
}
.footer__tagline {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .24em;
  color: var(--gold-lit);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 56px);
  padding-block: clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(247, 241, 231, .14);
  border-bottom: 1px solid rgba(247, 241, 231, .14);
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .3em;
  color: rgba(242, 184, 75, .88);
}
.footer__list { display: grid; gap: 9px; font-size: .92rem; }
.footer__list a { color: rgba(247, 241, 231, .78); transition: color .18s ease; }
.footer__list a:hover { color: var(--gold-lit); }
.footer__col--wide { min-width: 0; }
.footer__list--contact { gap: 11px; font-size: .88rem; }
.footer__list--contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  word-break: break-word;
}
.footer__k {
  flex: 0 0 auto;
  min-width: 42px;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .22em;
  color: rgba(242, 184, 75, .8);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  color: rgba(247, 241, 231, .55);
}
.footer__icp { color: rgba(247, 241, 231, .72); }

/* ---------- 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--sec-gap); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 标题组 ---------- */
.display {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
}
.sec-head { display: grid; gap: 14px; max-width: 64ch; margin-bottom: clamp(26px, 3.6vw, 54px); }
.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .32em;
  color: var(--gold);
}
.sec-num::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.85rem, 3.3vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--ink);
}
.sec-lede { max-width: 60ch; color: #3c5068; }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; color: var(--coal); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.28;
  color: var(--ink);
  margin-top: 1.9em;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1.6em;
}
.prose a {
  color: #a5660f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  color: var(--ink-2);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--gold {
  background: var(--gold);
  color: #2b1a03;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 26px -18px rgba(16, 42, 67, .9);
}
.btn--gold:hover { background: var(--gold-lit); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn--ghost:hover { background: var(--gold); color: #2b1a03; transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: .84rem; }

/* ---------- 标签 / 章戳 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  background: var(--paper-2);
  color: var(--ink);
}
.tag--signal { background: var(--signal); color: #fff5ec; font-weight: 700; }
.tag--gold {
  background: rgba(217, 138, 31, .16);
  color: #8a5410;
  box-shadow: inset 0 0 0 1px var(--line-gold);
}

.stamp {
  display: inline-grid;
  place-items: center;
  padding: 10px 14px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: #a5660f;
  background: rgba(247, 241, 231, .68);
  transform: rotate(-4deg);
  box-shadow: 0 0 0 3px rgba(217, 138, 31, .12);
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-top: clamp(22px, 3.4vw, 44px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--slate);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line-gold); }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 色块 / 分隔 / 提示 ---------- */
.panel {
  padding: clamp(22px, 3.4vw, 46px);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.panel--ink { background: var(--ink); color: rgba(247, 241, 231, .86); }
.panel--ink .sec-title, .panel--ink h2, .panel--ink h3 { color: var(--paper); }
.panel--gold {
  background: linear-gradient(140deg, rgba(242, 184, 75, .36), rgba(217, 138, 31, .14));
}

.rule {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lit) 26%, var(--ink) 100%);
}

.note {
  padding: 12px 0 12px 18px;
  border-left: 3px solid var(--gold);
  color: var(--ink-2);
  font-size: .95rem;
}

.data-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--slate);
}
.data-row b { color: var(--ink); font-weight: 700; }

/* ---------- 图片容器基础规则 ---------- */
.figure { display: grid; gap: 12px; }
.figure__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 22% 18%, rgba(242, 184, 75, .34), transparent 52%),
    linear-gradient(140deg, var(--paper-2), #d9cfbe 78%);
  box-shadow: var(--shadow-soft);
}
.figure__media img,
.figure__media picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 3 / 4; }
.figure__media--square { aspect-ratio: 1 / 1; }
.figure__cap {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--slate);
}

/* ---------- 滚动渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 键盘焦点 ---------- */
.site-header :focus-visible { outline-color: var(--gold-lit); }
.site-footer :focus-visible { outline-color: var(--gold-lit); }

/* ---------- 平板 / 移动：抽屉导航 ---------- */
@media (max-width: 960px) {
  body.is-nav-locked { overflow: hidden; }

  .site-header {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--bar-h);
    align-items: center;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(242, 184, 75, .25);
  }
  .site-header::after { display: none; }

  .rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    overflow: visible;
  }
  .rail__stamp { width: 38px; height: 38px; font-size: 1.12rem; }
  .rail__wordmark { font-size: .98rem; }
  .rail__wordmark em { display: none; }
  .rail__toggle { display: grid; }

  .rail__nav {
    position: fixed;
    inset: var(--bar-h) 0 auto 0;
    z-index: 190;
    display: none;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - var(--bar-h));
    padding: 18px 18px 26px;
    overflow-y: auto;
    background: var(--ink-2);
    border-bottom: 6px solid var(--gold);
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .72);
  }
  .site-header[data-open] .rail__nav {
    display: flex;
    animation: drawerDrop .22s ease-out both;
  }
  .rail__list { gap: 4px; }
  .rail__link {
    min-height: 48px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .rail__actions { margin-top: 6px; gap: 12px; }
  .rail__cta { min-height: 48px; }
  .rail__foot { border-top: 1px solid rgba(247, 241, 231, .14); }

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

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

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 860px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
}

/* ---------- 桌面：轨道常驻 ---------- */
@media (min-width: 961px) {
  body { padding-top: 0; padding-left: var(--rail-w); }
  .scroll-progress { top: 0; left: var(--rail-w); }
  :root { --bar-h: 0px; }
}

/* ---------- 降低动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
