/* ==========================================================================
   /assets/site.css — 财神棋牌888 共享外壳
   节庆编辑部 + 棋牌桌面：纸底、红金、棋盘网格与印章秩序
   ========================================================================== */

:root {
  /* 品牌色板 */
  --caishen-red: #C8102E;
  --caishen-red-deep: #8A0B1F;
  --gold: #D4A017;
  --gold-bright: #F2C14E;
  --ink: #141414;
  --board-ink: #242424;
  --celadon: #2E7D6E;
  --rice: #FAF5E9;
  --paper: #EFE7D6;
  --white: #FFFFFF;
  --text: #2B2B2B;
  --line: #B8A36A;

  /* 语义层 */
  --surface-page: var(--rice);
  --surface-panel: var(--paper);
  --surface-card: var(--white);
  --surface-deep: var(--ink);
  --text-soft: #5C5449;
  --text-on-dark: rgba(250, 245, 233, 0.78);
  --ink-cream: #FFF6DA;

  /* 字体 */
  --font-display: "ZCOOL QingKe HuangYou", "站酷庆科黄油体", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "DIN Alternate", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字号阶梯 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;
  --fs-72: 4.5rem;
  --fs-96: 6rem;

  /* 度量 */
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --header-h: 104px;
  --shadow-soft: 0 24px 60px -38px rgba(20, 20, 20, 0.55);
  --shadow-gold: 0 18px 44px -26px rgba(212, 160, 23, 0.66);
}

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

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

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

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; }

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--surface-page);
  background-image:
    radial-gradient(120% 70% at 100% 0%, rgba(212, 160, 23, 0.1), transparent 58%),
    radial-gradient(90% 60% at 0% 4%, rgba(200, 16, 46, 0.06), transparent 60%);
  background-repeat: no-repeat;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.6vw, var(--fs-48)); }
h2 { font-size: clamp(1.65rem, 3vw, var(--fs-32)); }
h3 { font-size: var(--fs-24); }
h4 { font-size: var(--fs-18); }

p { max-width: 46em; }

a { color: var(--caishen-red); }

strong { color: var(--ink); }

::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

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

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

#main-content {
  padding-top: var(--header-h);
  scroll-margin-top: var(--header-h);
}

/* ---------- 容器与网格 ---------- */
.wrap {
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(44px, 6vw, 92px); }

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

.span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: 1 / -1; }

@media (min-width: 860px) {
  .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; }
}

.layout-editorial {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1040px) {
  .layout-editorial {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 248px);
    align-items: start;
  }
}

/* ---------- 标题层级 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.26em;
  color: var(--caishen-red);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.display-title {
  font-size: clamp(2.6rem, 7vw, var(--fs-96));
  line-height: 1.02;
  letter-spacing: -0.012em;
}

.lede {
  font-size: var(--fs-18);
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 38em;
}

.aside-note {
  border-left: 3px solid var(--gold);
  padding: 14px 0 14px 16px;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--text-soft);
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.11), transparent 78%);
}

.board-grid {
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.16) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #2A1200;
  border-color: rgba(138, 11, 31, 0.22);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.55), 0 18px 40px -22px rgba(212, 160, 23, 0.95);
}

.btn--red {
  background: linear-gradient(140deg, var(--caishen-red), var(--caishen-red-deep));
  color: var(--ink-cream);
  border-color: rgba(242, 193, 78, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(184, 163, 106, 0.75);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--caishen-red);
}

.btn--sm {
  font-size: var(--fs-14);
  padding: 11px 18px;
}

.btn--block { width: 100%; }

/* ---------- 卡片 / 标签 / 数据 ---------- */
.card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid rgba(184, 163, 106, 0.42);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: var(--shadow-soft);
}

.card--dark {
  background: linear-gradient(155deg, var(--board-ink), #171717 82%);
  border-color: rgba(212, 160, 23, 0.34);
  color: var(--text-on-dark);
}

.card--dark h2,
.card--dark h3,
.card--dark h4 { color: var(--ink-cream); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  line-height: 1.4;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.tag--gold {
  color: #6B4A00;
  background: rgba(242, 193, 78, 0.18);
  border-color: rgba(212, 160, 23, 0.58);
}

.tag--celadon {
  color: #1E5C51;
  background: rgba(46, 125, 110, 0.12);
  border-color: rgba(46, 125, 110, 0.44);
}

.tag--red {
  color: var(--caishen-red-deep);
  background: rgba(200, 16, 46, 0.09);
  border-color: rgba(200, 16, 46, 0.34);
}

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8A5B00;
}

.data-num--gold { color: var(--gold-bright); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 18px 0;
  font-size: var(--fs-14);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--caishen-red);
  border-color: var(--caishen-red);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 折叠面板协议 ---------- */
.panel {
  border: 1px solid rgba(184, 163, 106, 0.5);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.panel[data-open="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.32), var(--shadow-soft);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px clamp(16px, 2vw, 22px);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-18);
  color: var(--ink);
  cursor: pointer;
}

.panel__head::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-18);
  color: var(--gold);
  transition: transform 0.24s ease;
}

.panel[data-open="true"] .panel__head::after { transform: rotate(45deg); }

.panel__body {
  padding: 0 clamp(16px, 2vw, 22px) 18px;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--text-soft);
}

.panel__body[hidden] { display: none; }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  --frame-ratio: 16 / 10;
  position: relative;
  aspect-ratio: var(--frame-ratio);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 160, 23, 0.42);
  background: linear-gradient(135deg, var(--caishen-red-deep), var(--board-ink) 72%);
  box-shadow: var(--shadow-soft);
}

.media-frame > picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 193, 78, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 193, 78, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.media-frame--flat::after { display: none; }
.media-frame--tilt { transform: rotate(-2deg); }
.media-frame--portrait { --frame-ratio: 3 / 4; }
.media-frame--square { --frame-ratio: 1 / 1; }
.media-frame--wide { --frame-ratio: 21 / 9; }

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.24em;
  text-align: center;
  color: rgba(250, 245, 233, 0.6);
}

.media-caption {
  margin-top: 10px;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

/* ---------- 进入视口显现 ---------- */
[data-reveal-armed="true"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.72s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal-armed="true"][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   头部
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 400;
  transform: translate(-50%, -180%);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #2A1200;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.24s ease;
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  color: var(--ink-cream);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.5) 62%, rgba(20, 20, 20, 0) 100%);
  transition: background-color 0.34s ease, box-shadow 0.34s ease, backdrop-filter 0.34s ease;
}

.site-header[data-elevated="true"] {
  background-color: rgba(20, 20, 20, 0.97);
  background-image: none;
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.5), 0 24px 54px -34px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-top: 9px;
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: rgba(250, 245, 233, 0.7);
}

.header-rail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.18);
  flex: 0 0 auto;
}

.header-rail__text {
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rail__meta {
  font-family: var(--font-mono);
  color: rgba(242, 193, 78, 0.82);
  white-space: nowrap;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 10px 14px;
}

/* 品牌印章 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  color: var(--ink-cream);
  background: linear-gradient(150deg, var(--caishen-red), var(--caishen-red-deep));
  border: 1px solid rgba(242, 193, 78, 0.85);
  border-radius: 11px 4px 11px 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28), 0 8px 20px -10px rgba(200, 16, 46, 0.95);
  transform: rotate(-3deg);
  transition: transform 0.26s ease;
}

.brand:hover .brand__seal { transform: rotate(2deg) scale(1.04); }

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink-cream);
}

.brand__tagline {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: rgba(242, 193, 78, 0.88);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 20px);
  flex-wrap: nowrap;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 233, 0.86);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.site-nav__list a:hover { color: var(--ink-cream); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--gold-bright); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__extras { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.utility-link {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(250, 245, 233, 0.8);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px dashed rgba(184, 163, 106, 0.55);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.utility-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 160, 23, 0.55);
  border-radius: 999px;
  color: var(--ink-cream);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { background: rgba(242, 193, 78, 0.16); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--gold-bright);
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 阅读进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(212, 160, 23, 0.14);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  will-change: transform;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(46px, 6.4vw, 86px);
  border-top: 1px solid rgba(212, 160, 23, 0.46);
  color: var(--text-on-dark);
  background:
    radial-gradient(120% 90% at 10% 0%, #2C1012 0%, var(--ink) 54%, #0C0C0C 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.11) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: rotate(-1.4deg);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 74%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 74%);
}

.footer-grid {
  position: relative;
  z-index: 1;
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  gap: clamp(26px, 3.2vw, 48px);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.78fr)) minmax(0, 1.2fr);
}

.footer-brand { display: grid; gap: 16px; align-content: start; }

.brand--footer .brand__seal {
  width: 54px;
  height: 54px;
  font-size: 28px;
  border-radius: 14px 5px 14px 5px;
}

.brand--footer .brand__name { font-size: 24px; }

.footer-brand__line {
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: rgba(250, 245, 233, 0.62);
  max-width: 30em;
}

.footer-note {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(242, 193, 78, 0.09), rgba(36, 36, 36, 0.2));
}

.footer-note__text {
  font-size: var(--fs-14);
  line-height: 1.8;
  color: rgba(250, 245, 233, 0.82);
  max-width: 30em;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.55);
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.footer-copy:hover {
  background: var(--gold-bright);
  color: #2A1200;
  border-color: var(--gold-bright);
}

.footer-col { display: grid; gap: 14px; align-content: start; }

.footer-col__title {
  position: relative;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink-cream);
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-bright);
}

.footer-links { display: grid; gap: 10px; }

.footer-links a {
  display: inline-block;
  font-size: 15px;
  color: rgba(250, 245, 233, 0.74);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.footer-contact { display: grid; gap: 14px; align-content: start; }

.footer-contact__list { display: grid; gap: 12px; }

.footer-contact__list li {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(184, 163, 106, 0.28);
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(242, 193, 78, 0.8);
}

.footer-contact__val {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: rgba(250, 245, 233, 0.86);
  word-break: break-word;
}

.footer-contact__note {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(250, 245, 233, 0.55);
  max-width: 30em;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  width: min(1300px, calc(100% - var(--gutter) * 2));
  margin: clamp(34px, 4.6vw, 58px) auto 0;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(184, 163, 106, 0.28);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 245, 233, 0.58);
}

.footer-base__legal { max-width: none; }

.footer-base__meta {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(242, 193, 78, 0.72);
  max-width: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .header-actions .utility-link { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 92px; }

  .nav-toggle { display: inline-flex; }

  .header-actions { display: none; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px var(--gutter) 28px;
    background: rgba(15, 15, 15, 0.985);
    border-bottom: 1px solid rgba(212, 160, 23, 0.44);
    box-shadow: 0 34px 60px -32px #000;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-nav[data-open="true"] { display: flex; animation: navPanelIn 0.26s ease both; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li { border-bottom: 1px solid rgba(184, 163, 106, 0.16); }

  .site-nav__list a {
    display: block;
    padding: 15px 2px;
    font-size: var(--fs-16);
    white-space: normal;
  }

  .site-nav__list a::after { display: none; }

  .site-nav__list a[aria-current="page"]::before {
    content: "◆";
    margin-right: 9px;
    font-size: 10px;
    vertical-align: 2px;
    color: var(--gold-bright);
  }

  .site-nav__extras {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 20px;
  }

  .site-nav__extras .utility-link {
    display: inline-block;
    align-self: flex-start;
    font-size: var(--fs-14);
  }

  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .header-rail { display: none; }

  .header-bar { padding-block: 11px 12px; gap: 10px; }

  .brand__seal { width: 40px; height: 40px; font-size: 21px; }
  .brand__name { font-size: 17px; }
  .brand__tagline { font-size: 10px; letter-spacing: 0.12em; }

  .nav-toggle { padding: 8px 12px; font-size: 12px; }
  .nav-toggle__label { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .brand__tagline { 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;
  }

  [data-reveal-armed="true"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .brand:hover .brand__seal { transform: rotate(-3deg); }
  .btn:hover { transform: none; }
  .footer-links a:hover { transform: none; }
}
