/* ==========================================================================
   皇冠服务 · 共享样式 /assets/site.css
   暗底金线档案语言：深墨底 + 细线骨架 + 克制的暖金决策点
   ========================================================================== */

:root {
  --ink: #0B0D10;
  --panel: #14181D;
  --panel-2: #1F242B;
  --gold: #E8B45A;
  --gold-soft: #F6DCA8;
  --slate: #8FA3AB;
  --slate-deep: #4C5A61;
  --paper: #F3F1EC;
  --fog: #B7BEC4;
  --alert: #C97B45;
  --ok: #4E8F7E;

  --line: 1px solid rgba(76, 90, 97, 0.55);
  --line-soft: 1px solid rgba(76, 90, 97, 0.32);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-l: 22px;
  --radius-m: 16px;
  --radius-s: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-mid: 200ms;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; }

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

a { color: inherit; text-decoration: none; }

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

input, select, textarea { font: inherit; color: inherit; }

hr { border: 0; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(232, 180, 90, 0.28);
  color: var(--paper);
}

/* ---------- 无障碍辅助 ---------- */
.visually-hidden {
  position: absolute;
  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 {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #14100A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ---------- 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gap, clamp(16px, 2.4vw, 28px));
  grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr));
}

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

/* ---------- 文字层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.display {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.lede {
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
  color: var(--fog);
}

.prose p {
  max-width: 34em;
  color: var(--fog);
}

.prose p + p { margin-top: 1em; }

.prose h2,
.prose h3 {
  color: var(--paper);
  font-weight: 700;
  line-height: 1.4;
}

.rule {
  border: 0;
  border-top: 1px solid rgba(76, 90, 97, 0.4);
  margin: clamp(28px, 5vw, 48px) 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100A;
}

.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(232, 180, 90, 0.45);
  color: var(--gold);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(232, 180, 90, 0.1);
  color: var(--gold-soft);
}

.btn--quiet {
  background: rgba(31, 36, 43, 0.7);
  border-color: rgba(76, 90, 97, 0.6);
  color: var(--fog);
}

.btn--quiet:hover {
  color: var(--paper);
  border-color: rgba(143, 163, 171, 0.7);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

/* ---------- 标签 / 面板 / 媒体框 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(76, 90, 97, 0.6);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.8;
  color: var(--slate);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(232, 180, 90, 0.42);
}

.tag--ok {
  color: var(--ok);
  border-color: rgba(78, 143, 126, 0.48);
}

.tag--alert {
  color: var(--alert);
  border-color: rgba(201, 123, 69, 0.48);
}

.panel {
  border: 1px solid rgba(76, 90, 97, 0.45);
  border-radius: var(--radius-m);
  background: var(--panel);
  padding: clamp(18px, 3vw, 30px);
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(76, 90, 97, 0.5);
  border-radius: var(--radius-m);
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(0deg, rgba(76, 90, 97, 0.16) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(76, 90, 97, 0.16) 0 1px, transparent 1px 28px);
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > picture > img,
.media-frame__art {
  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--square { aspect-ratio: 1 / 1; }

.media-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 12px;
  border: 1px solid rgba(232, 180, 90, 0.32);
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.84);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  color: var(--gold);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  padding-block: 22px 0;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate-deep);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs__link {
  color: var(--slate);
  transition: color var(--t-fast) var(--ease);
}

.crumbs__link:hover { color: var(--gold); }

.crumbs__sep {
  color: var(--slate-deep);
  opacity: 0.7;
}

.crumbs__current {
  color: var(--fog);
}

/* ==========================================================================
   头部：悬浮玻璃胶囊 + 悬挂刻度
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--gutter);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  background: rgba(76, 90, 97, 0.22);
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(232, 180, 90, 0.55), var(--gold) 55%, var(--gold-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

.head-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(143, 163, 171, 0.22);
  border-radius: 999px;
  background: rgba(20, 24, 29, 0.78);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 20px 46px -30px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(243, 241, 236, 0.05);
}

/* 胶囊下沿悬挂的档案刻度 */
.head-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 88px;
  height: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, rgba(232, 180, 90, 0.5) 0 1px, transparent 1px 8px);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 180, 90, 0.42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 18%, rgba(232, 180, 90, 0.26), transparent 62%),
    #101418;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.brand__slogan {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--slate);
  white-space: nowrap;
}

.brand:hover .brand__name { color: var(--gold-soft); }

.nav {
  margin-inline: auto;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fog);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(232, 180, 90, 0.1);
}

.nav__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(232, 180, 90, 0.13);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 90, 0.28);
}

.nav__hint {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  z-index: 12;
  padding: 6px 14px;
  border: 1px solid rgba(232, 180, 90, 0.26);
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.95);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.8;
  color: var(--gold-soft);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              visibility var(--t-mid);
  pointer-events: none;
}

.nav__hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(76, 90, 97, 0.7);
  border-radius: 999px;
  background: rgba(31, 36, 43, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.8;
  color: var(--slate);
  white-space: nowrap;
}

.version-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(78, 143, 126, 0.18);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(143, 163, 171, 0.3);
  border-radius: 50%;
  background: rgba(31, 36, 43, 0.7);
  color: var(--paper);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(232, 180, 90, 0.55);
  color: var(--gold);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease),
              top var(--t-mid) var(--ease),
              opacity var(--t-fast) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   页脚：品牌 + 栏目索引 + 等宽底座
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid rgba(76, 90, 97, 0.45);
  background: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(232, 180, 90, 0) 0%,
    rgba(232, 180, 90, 0.55) 18%,
    rgba(232, 180, 90, 0.16) 58%,
    rgba(232, 180, 90, 0) 100%
  );
  pointer-events: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 80px) var(--gutter) clamp(32px, 5vw, 48px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.footer__statement {
  max-width: 26em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--fog);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
}

.footer__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.75;
}

.footer__k {
  flex: 0 0 auto;
  min-width: 3em;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--slate-deep);
}

.footer__v {
  color: var(--fog);
  overflow-wrap: anywhere;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(76, 90, 97, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: var(--slate);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fog);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.footer__link:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
  border-top: 1px solid rgba(76, 90, 97, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: var(--slate-deep);
}

.footer__copy { color: var(--slate-deep); }

.footer__icp { color: var(--slate); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(76, 90, 97, 0.6);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--slate);
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.to-top::before {
  content: "↑";
  font-size: 13px;
  line-height: 1;
}

.to-top:hover {
  color: var(--gold);
  border-color: rgba(232, 180, 90, 0.5);
  background: rgba(232, 180, 90, 0.08);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .brand__slogan { display: none; }
}

@media (max-width: 1080px) {
  .nav__link {
    padding: 9px 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 1040px) {
  .version-chip { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }

  .head-bar {
    padding: 8px 10px 8px 14px;
    border-radius: 20px;
  }

  .head-bar::after { bottom: -7px; width: 64px; }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(143, 163, 171, 0.24);
    border-radius: var(--radius-l);
    background: rgba(12, 15, 19, 0.97);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow: 0 32px 72px -34px rgba(0, 0, 0, 0.98);
  }

  .site-header[data-open] .nav { display: flex; }

  .nav__list {
    flex-direction: column;
    gap: 2px;
  }

  .nav__link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav__hint { display: none; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-1, .span-2 { grid-column: span 2; }
  .span-3, .span-4 { grid-column: span 3; }
  .span-5, .span-6, .span-7, .span-8,
  .span-9, .span-10, .span-11, .span-12 { grid-column: span 6; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__title { font-size: 10px; }
  .display { letter-spacing: 0.005em; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 92px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [class*="span-"] { grid-column: span 2; }

  .head-bar { padding: 7px 8px 7px 12px; gap: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 34px; height: 34px; font-size: 8px; }
  .brand__name { font-size: 14px; }
  .head-tools { gap: 8px; }
  .btn--sm { padding: 8px 12px; font-size: 12.5px; }
  .nav-toggle { width: 38px; height: 38px; }

  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .brand__text { display: none; }
}

/* ---------- 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .scroll-progress > span { transition: none; }
}
