/* ===================================================================
   财神指南 · site.css  (/assets/site.css)
   共享外壳 + 通用组件；页面专属布局写入各页 CSS
   =================================================================== */

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

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

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

ul, ol { padding: 0; }

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

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

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

:root {
  /* —— 色板 —— */
  --ink: #0A0A0B;
  --char: #15151A;
  --iron: #25252C;
  --cloud: #F7F2E7;
  --sand: #E6D3AE;
  --gold: #E7B75A;
  --gold-deep: #8A5A16;
  --cinnabar: #B93421;
  --jade: #2E7D6E;
  --mist: #ABA294;

  --line-gold: rgba(231, 183, 90, 0.18);
  --line-gold-strong: rgba(231, 183, 90, 0.42);
  --line-ink: rgba(10, 10, 11, 0.14);

  /* —— 字体 —— */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* —— 字号阶梯 —— */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;
  --fs-72: 72px;
  --fs-96: 96px;

  --w-max: 1200px;
  --gutter: 20px;
  --radius-pill: 999px;
  --radius-s: 3px;

  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 30px rgba(231, 183, 90, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

@media (min-width: 768px) {
  :root { --gutter: 28px; }
}

/* ============================ 基础排版 ============================ */

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 480px at 78% -10%, rgba(231, 183, 90, 0.10), transparent 62%),
    radial-gradient(700px 420px at 4% 14%, rgba(185, 52, 33, 0.10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(247, 242, 231, 0.026) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(247, 242, 231, 0.020) 0 1px, transparent 1px 96px);
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(231, 183, 90, 0.35);
  color: var(--cloud);
}

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

main { display: block; }

#main-content { outline: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================ 跳转链接 ============================ */

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #14100a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-gold);
  transition: top 180ms var(--ease);
}

.skip-link:focus { top: 12px; }

/* ============================ 布局容器 ============================ */

.container {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: 820px; }

.section { padding: 56px 0; }

.section__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--cloud);
}

.lede {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(247, 242, 231, 0.76);
}

.link-gold {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(231, 183, 90, 0.42);
  text-underline-offset: 3px;
}

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

/* ============================ 索引小元素 ============================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: rgba(231, 183, 90, 0.86);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.index-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(231, 183, 90, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background: rgba(231, 183, 90, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(231, 183, 90, 0.9);
}

.seal-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 2px;
  background: linear-gradient(160deg, #cf4230, var(--cinnabar));
  color: var(--cloud);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 231, 0.3);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 125, 110, 0.22), 0 0 12px rgba(46, 125, 110, 0.9);
}

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.btn--gold {
  background: linear-gradient(160deg, #f3ce86, var(--gold) 42%, #c8933a);
  color: #14100a;
  box-shadow: 0 8px 22px rgba(231, 183, 90, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(231, 183, 90, 0.36);
}

.btn--ghost {
  background: rgba(247, 242, 231, 0.04);
  border-color: var(--line-gold-strong);
  color: var(--cloud);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(231, 183, 90, 0.08);
  color: var(--gold);
}

.btn--seal {
  background: linear-gradient(160deg, #cf4230, var(--cinnabar));
  color: var(--cloud);
  box-shadow: 0 8px 22px rgba(185, 52, 33, 0.3);
}

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

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

/* ============================ 面板 / 媒体 ============================ */

.panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-s);
  background: linear-gradient(165deg, rgba(37, 37, 44, 0.94), rgba(15, 15, 18, 0.97));
  box-shadow: var(--shadow-panel);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 46%, rgba(231, 183, 90, 0.5) 47%, rgba(231, 183, 90, 0.5) 53%, transparent 54%);
  pointer-events: none;
}

.panel--light {
  background: linear-gradient(180deg, var(--cloud), #efe7d6);
  border-color: rgba(10, 10, 11, 0.1);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.panel--light h2,
.panel--light h3 { color: var(--ink); }

.panel--light p { color: rgba(10, 10, 11, 0.78); }

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-s);
  background:
    radial-gradient(circle at 50% 50%, rgba(231, 183, 90, 0.18) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(231, 183, 90, 0.14) 38.6% 39.4%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(231, 183, 90, 0.08) 58.6% 59.4%, transparent 60%),
    linear-gradient(150deg, #1b1b21, #0c0c0e);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.72);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(231, 183, 90, 0.9);
}

/* ============================ 面包屑 ============================ */

.breadcrumb { padding: 20px 0 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(171, 162, 148, 0.95);
}

.breadcrumb__link {
  color: rgba(247, 242, 231, 0.72);
  transition: color 160ms var(--ease);
}

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

.breadcrumb__sep { color: rgba(231, 183, 90, 0.5); }

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

/* ============================ Bento 网格 ============================ */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bento__cell {
  min-width: 0;
  grid-column: span 4;
}

@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }
  .bento__cell { grid-column: span 6; }
  .bento__cell--w3 { grid-column: span 3; }
  .bento__cell--w4 { grid-column: span 4; }
  .bento__cell--w5 { grid-column: span 5; }
  .bento__cell--w6 { grid-column: span 6; }
  .bento__cell--w7 { grid-column: span 7; }
  .bento__cell--w8 { grid-column: span 8; }
  .bento__cell--w9 { grid-column: span 9; }
  .bento__cell--w12 { grid-column: span 12; }
}

/* ============================ 分段切换（标签页） ============================ */

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: rgba(37, 37, 44, 0.85);
}

.seg__tab {
  appearance: none;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(247, 242, 231, 0.74);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.seg__tab:hover:not([aria-selected="true"]) { color: var(--gold); }

.seg__tab[aria-selected="true"] {
  background: linear-gradient(160deg, #f3ce86, var(--gold));
  color: #14100a;
  font-weight: 600;
}

.seg__panel { margin-top: 20px; }

.seg__panel[hidden] { display: none; }

/* ============================ 页头外壳 ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(231, 183, 90, 0.12);
}

.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  box-shadow: 0 0 12px rgba(231, 183, 90, 0.7);
  transition: transform 120ms linear;
}

.header-status {
  display: none;
  border-bottom: 1px solid rgba(231, 183, 90, 0.1);
  background: linear-gradient(90deg, rgba(185, 52, 33, 0.16), rgba(231, 183, 90, 0.08) 45%, transparent);
}

.header-status__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.header-status__text { color: rgba(247, 242, 231, 0.7); }

.header-status__code {
  margin-left: auto;
  color: rgba(231, 183, 90, 0.75);
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--w-max);
  min-height: 62px;
  margin: 0 auto;
  padding: 10px var(--gutter);
}

/* —— 品牌浮岛 —— */

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: linear-gradient(140deg, rgba(37, 37, 44, 0.95), rgba(21, 21, 26, 0.86));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.brand-island:hover,
.brand-island:focus-visible {
  border-color: var(--line-gold-strong);
  box-shadow: var(--shadow-gold);
}

.brand-island__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 3px;
  background: linear-gradient(160deg, #cf4230, var(--cinnabar) 45%, #7d1f12);
  color: var(--cloud);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 231, 0.35), 0 6px 16px rgba(185, 52, 33, 0.35);
}

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

.brand-island__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cloud);
}

.brand-island__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

/* —— 移动菜单按钮 —— */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: rgba(37, 37, 44, 0.9);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--line-gold-strong); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

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

/* —— 胶囊导航：移动端贴底面板 —— */

.nav-island {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line-gold-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 21, 26, 0.98), rgba(10, 10, 11, 0.99));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(231, 183, 90, 0.14);
  transform: translateY(calc(100% + 26px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease), visibility 240ms var(--ease);
}

/* 移动端展开态 */
.nav-island[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-island__list {
  counter-reset: navidx;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-island__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(247, 242, 231, 0.84);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-island__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(231, 183, 90, 0.55);
}

.nav-island__link:hover:not([aria-current="page"]) {
  border-color: rgba(231, 183, 90, 0.28);
  background: rgba(231, 183, 90, 0.09);
  color: var(--gold);
}

.nav-island__link[aria-current="page"] {
  background: linear-gradient(160deg, #f3ce86, var(--gold) 58%, #cb9a41);
  color: #14100a;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(231, 183, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-island__link[aria-current="page"]::before { color: rgba(10, 10, 11, 0.55); }

.nav-island__cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 899px) {
  body.is-nav-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .brand-island__tag { display: none; }
  .brand-island__name { font-size: 16px; }
}

/* —— 胶囊导航：桌面端行内浮岛 —— */

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .header-status { display: block; }

  .nav-island {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    max-height: none;
    overflow: visible;
    padding: 5px;
    border-radius: var(--radius-pill);
    background: linear-gradient(140deg, rgba(21, 21, 26, 0.94), rgba(10, 10, 11, 0.9));
    border: 1px solid var(--line-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-island__list {
    display: flex;
    align-items: center;
    gap: 2px;
    grid-template-columns: none;
  }

  .nav-island__link {
    padding: 9px 13px;
    border-radius: var(--radius-pill);
    font-size: 14px;
  }

  .nav-island__cta {
    width: auto;
    margin-left: 6px;
  }
}

/* ============================ 页脚 ============================ */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line-gold);
  background:
    radial-gradient(820px 380px at 12% 0%, rgba(231, 183, 90, 0.1), transparent 60%),
    radial-gradient(620px 320px at 88% 16%, rgba(185, 52, 33, 0.12), transparent 62%),
    linear-gradient(180deg, var(--char), var(--ink) 65%);
  color: rgba(247, 242, 231, 0.8);
  font-size: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 57.6%, rgba(231, 183, 90, 0.1) 58% 58.6%, transparent 59%),
    radial-gradient(circle, transparent 0 73.6%, rgba(231, 183, 90, 0.08) 74% 74.6%, transparent 75%),
    radial-gradient(circle, transparent 0 89.6%, rgba(231, 183, 90, 0.06) 90% 90.6%, transparent 91%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand__seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 3px;
  background: linear-gradient(160deg, #cf4230, var(--cinnabar) 45%, #7d1f12);
  color: var(--cloud);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 231, 0.32), 0 8px 20px rgba(185, 52, 33, 0.36);
}

.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cloud);
  line-height: 1.3;
}

.footer-brand__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(231, 183, 90, 0.72);
}

.footer-brand__summary {
  max-width: 34ch;
  margin-bottom: 18px;
  color: rgba(247, 242, 231, 0.72);
  font-size: 14.5px;
  line-height: 1.8;
}

.footer-brand__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(171, 162, 148, 0.95);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(231, 183, 90, 0.85);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

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

.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: rgba(247, 242, 231, 0.76);
  font-size: 14.5px;
  transition: color 160ms var(--ease), gap 160ms var(--ease);
}

.footer-col__link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(231, 183, 90, 0.6);
  border-radius: 50%;
  transition: background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.footer-col__link:hover {
  color: var(--gold);
  gap: 14px;
}

.footer-col__link:hover::before {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(231, 183, 90, 0.8);
}

.contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(231, 183, 90, 0.14);
}

.contact-item:last-of-type { border-bottom: 0; }

.contact-item__key {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(171, 162, 148, 0.95);
}

.contact-item__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 242, 231, 0.88);
}

.contact-item__text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 9px;
  border: 1px solid rgba(231, 183, 90, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(231, 183, 90, 0.08);
  color: rgba(231, 183, 90, 0.92);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.copy-btn:hover {
  background: rgba(231, 183, 90, 0.18);
  border-color: var(--gold);
}

.copy-btn.is-copied {
  border-color: rgba(46, 125, 110, 0.7);
  background: rgba(46, 125, 110, 0.22);
  color: #9fdccb;
}

.footer-contact__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(171, 162, 148, 0.92);
}

.footer-divider {
  position: relative;
  height: 1px;
  margin-top: 40px;
  background: linear-gradient(90deg, transparent, var(--line-gold) 12%, var(--line-gold-strong) 50%, var(--line-gold) 88%, transparent);
}

.footer-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(231, 183, 90, 0.8);
  transform: translate(-50%, -50%) rotate(45deg);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 22px 0 30px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(171, 162, 148, 0.9);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-base__links a {
  color: rgba(247, 242, 231, 0.68);
  transition: color 160ms var(--ease);
}

.footer-base__links a:hover { color: var(--gold); }

.footer-base__legal { color: rgba(247, 242, 231, 0.6); }

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.45fr 0.75fr 0.75fr 1.15fr;
    gap: 40px;
  }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-top: 64px; }
}

/* ============================ 进入视口显现 ============================ */

html.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

html.reveal-armed [data-reveal].is-revealed {
  opacity: 1;
  transform: 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;
  }

  html.reveal-armed [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-rail__bar { transition: none; }
}
