/* =========================================================
   澳门黄金金版 · 共享样式表 /assets/site.css
   结构：重置 / 变量 / 排版 / 容器 / 通用组件 / 页头 / 页脚 / 响应式
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd, figure, blockquote { 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; cursor: pointer; }

a { color: inherit; }

::selection { background: rgba(212, 175, 55, 0.32); color: #FFF8E3; }

:focus-visible {
  outline: 2px solid #F0D67A;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 2 变量 ---------- */
:root {
  --ink: #1A1A1A;
  --ink-deep: #0E0E0E;
  --gold: #D4AF37;
  --gold-hi: #F0D67A;
  --gold-dark: #8C6B1F;
  --ivory: #F5F1E6;
  --jade: #0F7B6C;
  --jade-lt: #35B49C;
  --coral: #E4572E;
  --mist: #6E6E6E;
  --mist-lt: #B9B4A6;

  --gold-foil: linear-gradient(135deg, #8C6B1F 0%, #D4AF37 48%, #F0D67A 100%);
  --line: rgba(212, 175, 55, 0.24);
  --line-soft: rgba(212, 175, 55, 0.13);

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 132px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --measure: 38em;
  --radius: 18px;
}

/* ---------- 3 基础排版 ---------- */
body {
  margin: 0;
  padding-top: var(--header-h);
  background:
    radial-gradient(1100px 680px at 84% -12%, rgba(212, 175, 55, 0.15), transparent 62%),
    radial-gradient(900px 620px at 2% 14%, rgba(15, 123, 108, 0.12), transparent 62%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(240, 214, 122, 0.035) 0 1px,
    transparent 1px 10px
  );
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.55rem); }

p { text-wrap: pretty; }

.num,
.metric__value,
.section-index,
.utility-meta__count,
.footer-legal__badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4 容器与网格 ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--gold-hi); font-weight: 600; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

/* ---------- 5 章节体系 ---------- */
.section-block {
  position: relative;
  padding-block: clamp(56px, 9vw, 118px);
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 34px);
  align-items: start;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.section-index {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 700;
  line-height: 0.9;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 4px;
}

.section-title { color: var(--ivory); }
.section-title em {
  font-style: normal;
  color: var(--gold-hi);
}

.section-note,
.annot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--mist-lt);
}

.section-lede {
  max-width: 34em;
  margin-top: 14px;
  color: rgba(245, 241, 230, 0.72);
  font-size: 16.5px;
}

.rule-diagonal {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55) 38%, rgba(15, 123, 108, 0.45) 70%, transparent);
  transform: skewY(-0.6deg);
}

/* ---------- 6 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn--gold {
  background: var(--gold-foil);
  color: #17130A;
  box-shadow: 0 14px 30px -18px rgba(212, 175, 55, 0.95);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(212, 175, 55, 1); }

.btn--ghost {
  border-color: rgba(212, 175, 55, 0.42);
  color: var(--gold-hi);
  background: rgba(212, 175, 55, 0.05);
}
.btn--ghost:hover { background: rgba(212, 175, 55, 0.14); border-color: rgba(212, 175, 55, 0.7); }

.btn--coral {
  border-color: rgba(228, 87, 46, 0.5);
  color: #F2A488;
  background: rgba(228, 87, 46, 0.1);
}
.btn--coral:hover { background: rgba(228, 87, 46, 0.2); color: #FFC4AE; }

.btn--ivory {
  background: var(--ivory);
  color: #1A1A1A;
}
.btn--ivory:hover { transform: translateY(-2px); }

/* ---------- 7 标签 ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(53, 180, 156, 0.45);
  background: rgba(15, 123, 108, 0.16);
  color: var(--jade-lt);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tag-chip:hover { transform: translateY(-1px); border-color: rgba(53, 180, 156, 0.85); }
.tag-chip[aria-pressed="true"],
.tag-chip.is-active {
  background: var(--gold-foil);
  border-color: transparent;
  color: #17130A;
  font-weight: 600;
}

/* ---------- 8 面板 · 卡片 · 图文 ---------- */
.panel-cut {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(245, 241, 230, 0.055), rgba(14, 14, 14, 0.72));
  clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.panel-cut::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 2px;
  background: var(--gold-foil);
}

.card-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: start;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(245, 241, 230, 0.06), rgba(14, 14, 14, 0.62));
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.42); }

.card__body { padding: clamp(18px, 2.4vw, 26px); }
.card__title { font-family: var(--font-display); font-weight: 900; font-size: 1.22rem; color: var(--ivory); }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist-lt);
}
.card__text { margin-top: 10px; font-size: 15.5px; color: rgba(245, 241, 230, 0.74); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, rgba(140, 107, 31, 0.42), rgba(14, 14, 14, 0.92));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .media-frame__img { transform: scale(1.03); }
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold-hi);
  background: linear-gradient(90deg, rgba(14, 14, 14, 0.9), transparent);
}

/* ---------- 9 数据指标 ---------- */
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__value {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__label {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--mist-lt);
}

/* ---------- 10 面包屑 ---------- */
.crumbs {
  padding-top: clamp(18px, 3vw, 30px);
  font-size: 13.5px;
  color: var(--mist-lt);
}
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before {
  content: "／";
  color: rgba(212, 175, 55, 0.55);
}
.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.crumbs a:hover { color: var(--gold-hi); border-color: rgba(212, 175, 55, 0.6); }
.crumbs [aria-current="page"] { color: var(--ivory); }

/* ---------- 11 收藏 / 订阅 / 返回顶部 / 进度 ---------- */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.favorite-btn:hover { transform: translateY(-1px); border-color: rgba(212, 175, 55, 0.75); }
.favorite-btn.is-active,
.favorite-btn[aria-pressed="true"] {
  background: var(--gold-foil);
  border-color: transparent;
  color: #17130A;
  font-weight: 600;
}

.subscribe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.78);
  color: rgba(245, 241, 230, 0.82);
  font-size: 13.5px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.subscribe-toggle::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.subscribe-toggle.is-on,
.subscribe-toggle[aria-pressed="true"] {
  border-color: rgba(228, 87, 46, 0.6);
  color: #FFC9B4;
  background: rgba(228, 87, 46, 0.14);
}
.subscribe-toggle.is-on::before,
.subscribe-toggle[aria-pressed="true"]::before {
  background: var(--coral);
  border-color: var(--coral);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(18px, 4vw, 40px);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(14, 14, 14, 0.86);
  color: var(--gold-hi);
  font-family: var(--font-mono);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }

.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
  background: rgba(245, 241, 230, 0.06);
}
.progress-rail__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-foil);
  transition: width 0.12s linear;
}

/* ---------- 12 滚动显现 ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13 页头 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #17130A;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(10px, 1.6vw, 16px) 0 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.header-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 26px);
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.94), rgba(14, 14, 14, 0.88));
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(240, 214, 122, 0.14);
  backdrop-filter: blur(14px) saturate(150%);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease);
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--gold-foil);
  color: #161206;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 10px 20px -12px rgba(212, 175, 55, 0.95);
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), font-size 0.35s var(--ease);
}
.brand-mark__glyph { transform: translateY(-1px); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.05em;
  color: var(--ivory);
}
.brand-text__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(245, 241, 230, 0.72);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease),
              opacity 0.3s var(--ease), padding 0.3s var(--ease), font-size 0.3s var(--ease);
}
.nav-link:hover { color: var(--gold-hi); background: rgba(212, 175, 55, 0.12); }
.nav-link[aria-current="page"] {
  color: #17130A;
  background: var(--gold-foil);
  font-weight: 600;
  box-shadow: 0 12px 24px -16px rgba(212, 175, 55, 0.95);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-hi);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] { color: #F2A488; border-color: rgba(228, 87, 46, 0.55); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 4px; transform: rotate(-45deg); }

.utility-bar { width: 100%; }
.utility-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 2px;
  transition: opacity 0.3s var(--ease);
}

.cta-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--gold-foil);
  color: #17130A;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 18px 34px -22px rgba(212, 175, 55, 0.95);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta-upgrade__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 19, 10, 0.18);
  font-family: var(--font-mono);
  transition: transform 0.25s var(--ease);
}
.cta-upgrade:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -20px rgba(212, 175, 55, 1); }
.cta-upgrade:hover .cta-upgrade__arrow { transform: translateX(3px); }

.utility-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: rgba(245, 241, 230, 0.75);
  transition: padding 0.3s var(--ease);
}
.utility-meta__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-lt);
  animation: gold-pulse 2.8s var(--ease) infinite;
}
@keyframes gold-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 180, 156, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(53, 180, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 180, 156, 0); }
}
.utility-meta__count { font-size: 15px; font-weight: 700; color: var(--gold-hi); }

/* 滚动收窄态 */
.site-header[data-scrolled="true"] { padding-top: 8px; gap: 6px; }
.site-header[data-scrolled="true"] .header-shell {
  padding: 5px 8px 5px 12px;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.97), rgba(10, 10, 10, 0.93));
}
.site-header[data-scrolled="true"] .brand-mark { width: 32px; height: 32px; font-size: 17px; }
.site-header[data-scrolled="true"] .brand-text__sub { display: none; }
.site-header[data-scrolled="true"] .nav-link { padding: 7px 12px; font-size: 13.8px; opacity: 0.68; }
.site-header[data-scrolled="true"] .nav-link:hover,
.site-header[data-scrolled="true"] .nav-link[aria-current="page"] { opacity: 1; }
.site-header[data-scrolled="true"] .utility-meta { padding: 6px 12px; }
.site-header[data-scrolled="true"] .utility-bar { opacity: 0.94; }

/* ---------- 14 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 58%, #0E0E0E 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 340px at 86% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(520px 300px at 6% 100%, rgba(15, 123, 108, 0.14), transparent 72%),
    repeating-linear-gradient(135deg, rgba(240, 214, 122, 0.045) 0 1px, transparent 1px 13px);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 2px;
  background: var(--gold-foil);
}

.footer-shell { position: relative; z-index: 1; padding-block: clamp(44px, 7vw, 86px) clamp(26px, 4vw, 44px); }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--gold-foil);
  color: #161206;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.06em;
  color: var(--ivory);
}
.footer-brand__tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.footer-brand__note {
  flex: 1 1 320px;
  max-width: 52ch;
  font-size: 15px;
  color: rgba(245, 241, 230, 0.68);
}

.footer-grid {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 54px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.45), transparent);
}

.footer-list li + li { margin-top: 10px; }
.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: rgba(245, 241, 230, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-list a:hover {
  color: var(--gold-hi);
  transform: translateX(3px);
  border-color: rgba(212, 175, 55, 0.55);
}

.footer-office { display: grid; gap: 10px; font-size: 14.5px; }
.footer-office__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.footer-office__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--jade-lt);
  padding-top: 3px;
}
.footer-office__val { color: rgba(245, 241, 230, 0.82); overflow-wrap: anywhere; }
.footer-office__note { font-size: 13px; color: var(--mist-lt); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: clamp(30px, 5vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--mist-lt);
}
.footer-legal__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-legal__item { display: inline-flex; align-items: center; gap: 9px; }
.footer-legal__sep { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.75; }
.footer-legal__badge {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 12px;
  color: var(--gold);
}

/* ---------- 15 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 128px; }
  .nav-link { padding: 8px 11px; font-size: 14px; }
  .tag-cloud { gap: 8px; }
}

@media (max-width: 900px) {
  :root { --header-h: 120px; --measure: 34em; }

  .header-shell {
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 12px;
    border-radius: 26px;
  }
  .brand { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .primary-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.28s var(--ease), visibility 0.4s;
  }
  .primary-nav[data-open="true"] {
    max-height: 560px;
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
  }
  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15.5px;
    text-align: left;
  }
  .nav-link[aria-current="page"] { border-radius: 14px; }
  .site-header[data-scrolled="true"] .nav-link { padding: 12px 14px; font-size: 15.5px; opacity: 0.8; }

  .utility-shell { justify-content: space-between; gap: 8px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: auto minmax(0, 1fr); }
  .section-head .section-note { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section-note,
  .annot { writing-mode: horizontal-tb; letter-spacing: 0.14em; }
  .grid--2,
  .grid--3,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-upgrade { padding: 7px 7px 7px 13px; font-size: 13px; }
  .cta-upgrade__arrow { width: 22px; height: 22px; }
  .utility-meta { padding: 6px 11px; font-size: 12.5px; }
  .utility-meta__label { display: none; }
  .brand-text__sub { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-brand__note { flex-basis: 100%; }
}

@media (max-width: 420px) {
  :root { --header-h: 112px; }
  .brand-text__name { font-size: 14.5px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
}

/* ---------- 16 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
  .utility-meta__pulse { animation: none; }
  .card:hover,
  .btn--gold:hover,
  .btn--ivory:hover,
  .cta-upgrade:hover,
  .footer-list a:hover,
  .tag-chip:hover,
  .favorite-btn:hover { transform: none; }
  .card:hover .media-frame__img { transform: none; }
  .progress-rail__fill { transition: none; }
  .to-top { transition: none; }
}
