/* ==========================================================================
   皇家至尊站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

:root {
  --ink-900: #08090B;
  --ink-800: #0C0D10;
  --ink-700: #121216;
  --ink-600: #17171C;
  --gold-brown: #3A2D19;
  --gold: #C9A455;
  --gold-bright: #E8CE8A;
  --vermilion: #B44736;
  --cream: #F3E8D2;
  --grey-teal: #7E8A88;
  --electric-teal: #3FD2C4;
  --court-purple: #7560A8;

  --line-gold: rgba(201, 164, 85, 0.32);
  --line-gold-soft: rgba(201, 164, 85, 0.16);
  --line-cream: rgba(243, 232, 210, 0.12);

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

  --shell-max: 1280px;
  --gutter: clamp(1.15rem, 3.2vw, 2.75rem);
  --header-top-h: 34px;
  --header-h: 86px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-paper: 0 1px 0 rgba(232, 206, 138, 0.18), 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

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

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

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(58, 45, 25, 0.55), transparent 70%),
    radial-gradient(900px 520px at 8% 4%, rgba(117, 96, 168, 0.10), transparent 72%),
    linear-gradient(180deg, #08090B 0%, #0B0B0F 46%, #08090B 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--cream);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.125rem; line-height: 1.3; }

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold-bright);
  text-decoration-color: var(--line-gold);
  text-underline-offset: 0.32em;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

a:hover {
  color: #F7E9C6;
  text-decoration-color: var(--gold);
}

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

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

figure {
  margin: 0;
}

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

strong, b {
  color: var(--gold-bright);
  font-weight: 700;
}

::selection {
  background: rgba(201, 164, 85, 0.34);
  color: #FFF8E8;
}

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

/* ---------- 布局容器 ---------- */

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

.container--wide {
  max-width: 1440px;
}

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

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 1200;
  padding: 0.7rem 1.4rem;
  background: var(--gold);
  color: #14100A;
  font-family: var(--font-index);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: transform 0.24s var(--ease);
}

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

/* ---------- 滚动进度金线 ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) var(--progress, 0%), transparent var(--progress, 0%));
  opacity: 0.85;
  pointer-events: none;
  z-index: 4;
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.98) 0%, rgba(12, 13, 16, 0.96) 100%);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.header-top {
  background: linear-gradient(90deg, rgba(58, 45, 25, 0.6) 0%, rgba(18, 18, 22, 0.9) 60%, rgba(8, 9, 11, 0.95) 100%);
  border-bottom: 1px solid var(--line-gold-soft);
  overflow: hidden;
  max-height: 60px;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-top-h);
  padding-block: 0.28rem;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-teal);
  box-shadow: 0 0 0 3px rgba(63, 210, 196, 0.16);
  flex: none;
}

.top-line {
  margin: 0;
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--grey-teal);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-main {
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.98) 0%, rgba(8, 9, 11, 0.98) 100%);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease);
}

/* 品牌 */

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--cream);
  flex: none;
}

.brand-mark:hover {
  color: var(--cream);
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: #16120A;
  background: linear-gradient(155deg, var(--gold-bright) 0%, var(--gold) 58%, #9C7A34 100%);
  border: 1px solid rgba(232, 206, 138, 0.75);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(8, 9, 11, 0.35), 0 6px 16px -10px rgba(201, 164, 85, 0.9);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.2;
}

.brand-line-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-index);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--grey-teal);
  text-transform: uppercase;
}

/* 导航 */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 1.1vw, 1.05rem);
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.62rem;
  font-family: var(--font-body);
  font-size: 0.938rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(243, 232, 210, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.16rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-bright);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--gold-bright);
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  height: 2px;
  box-shadow: 0 0 10px rgba(232, 206, 138, 0.5);
}

/* 操作区 */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-cta-secondary {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background: rgba(58, 45, 25, 0.35);
  color: var(--gold-bright);
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(58, 45, 25, 0.6);
}

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

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

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

/* 金线回纹 */

.header-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 5px;
  padding-inline: var(--gutter);
  background: var(--ink-900);
  border-top: 1px solid var(--line-gold-soft);
}

.header-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}

.header-rule span:nth-child(2) {
  flex: 0 0 34px;
  background: var(--gold);
  opacity: 0.7;
}

.header-rule span:nth-child(3) {
  flex: 0 0 12px;
  background: var(--vermilion);
  opacity: 0.85;
}

/* 滚动压缩态 */

.site-header.is-condensed .header-top {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}

.site-header.is-condensed .header-main__inner {
  min-height: 64px;
}

.site-header.is-condensed .brand-seal {
  width: 34px;
  height: 34px;
  font-size: 1.08rem;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.938rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.26s var(--ease),
              color 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.btn--sm {
  padding: 0.52rem 0.95rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.btn--gold {
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 55%, #A9863E 100%);
  color: #14100A;
  border-color: rgba(232, 206, 138, 0.85);
  box-shadow: 0 8px 20px -14px rgba(201, 164, 85, 0.95);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  color: #14100A;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(232, 206, 138, 0.95);
}

.btn--ghost {
  background: rgba(243, 232, 210, 0.02);
  color: var(--gold-bright);
  border-color: var(--line-gold);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--cream);
  border-color: var(--gold);
  background: rgba(201, 164, 85, 0.12);
}

.btn--vermilion {
  background: rgba(180, 71, 54, 0.16);
  color: #F0B7AC;
  border-color: rgba(180, 71, 54, 0.62);
}

.btn--vermilion:hover {
  color: #FFE3DC;
  background: rgba(180, 71, 54, 0.28);
}

/* ---------- 章节色带 / 索引 ---------- */

.section-band {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0;
  margin-bottom: 1.6rem;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold-soft);
  background: linear-gradient(90deg, rgba(58, 45, 25, 0.34), transparent 78%);
}

.section-index,
.index-label {
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.8;
  color: rgba(243, 232, 210, 0.86);
  max-width: 62ch;
}

.note-text {
  font-family: var(--font-index);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--grey-teal);
}

.gold-rule {
  height: 1px;
  border: 0;
  margin: 2rem 0;
  background: linear-gradient(90deg, var(--gold), var(--line-gold-soft) 60%, transparent);
}

.gold-rule--short {
  max-width: 120px;
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  padding-top: 1.5rem;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey-teal);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line-gold);
}

.breadcrumbs__item a {
  color: var(--grey-teal);
  text-decoration: none;
}

.breadcrumbs__item a:hover {
  color: var(--gold-bright);
}

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

/* ---------- 通用卡片 ---------- */

.card {
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 2.1rem);
  background: linear-gradient(165deg, rgba(18, 18, 22, 0.96) 0%, rgba(12, 13, 16, 0.96) 100%);
  border: 1px solid var(--line-gold-soft);
  border-radius: 2px;
}

.card--paper {
  background:
    linear-gradient(165deg, rgba(18, 18, 22, 0.98) 0%, rgba(12, 13, 16, 0.98) 100%);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-paper);
}

.card--paper::after {
  content: "";
  position: absolute;
  inset: 6px -6px -6px 6px;
  border-right: 1px solid var(--line-gold-soft);
  border-bottom: 1px solid var(--line-gold-soft);
  border-radius: 2px;
  pointer-events: none;
  z-index: -1;
}

.card--offset {
  margin-top: clamp(0rem, 3vw, 2.6rem);
}

/* ---------- 徽章 ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.68rem;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(58, 45, 25, 0.4);
  white-space: nowrap;
}

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

.badge--vermilion {
  color: #FFDDD5;
  background: rgba(180, 71, 54, 0.28);
  border-color: rgba(180, 71, 54, 0.8);
  box-shadow: 0 0 0 0 rgba(180, 71, 54, 0.4);
  animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 71, 54, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(180, 71, 54, 0); }
}

/* ---------- 图片容器基础 ---------- */

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(58, 45, 25, 0.62), transparent 72%),
    linear-gradient(180deg, #121216 0%, #0A0B0E 100%);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line-gold-soft);
  pointer-events: none;
}

.media-frame__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.55;
}

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

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

.media-frame__caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  background: rgba(8, 9, 11, 0.86);
  border: 1px solid var(--line-gold-soft);
}

/* ---------- 目录跟随 ---------- */

.toc {
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.toc-list {
  display: grid;
  gap: 0.1rem;
  border-left: 1px solid var(--line-gold-soft);
}

.toc-link {
  display: block;
  padding: 0.4rem 0 0.4rem 0.85rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--grey-teal);
  text-decoration: none;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

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

.toc-link.is-current {
  color: var(--gold-bright);
  border-left-color: var(--gold);
}

/* ---------- 显现动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 返回顶部 ---------- */

.back-to-top {
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 1.9rem);
  bottom: clamp(0.9rem, 2.4vw, 1.9rem);
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  color: var(--gold-bright);
  background: rgba(12, 13, 16, 0.92);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  backdrop-filter: blur(6px);
}

.back-to-top.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--gold);
  color: var(--cream);
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(900px 400px at 12% 0%, rgba(58, 45, 25, 0.5), transparent 70%),
    linear-gradient(180deg, #0B0B0F 0%, #08090B 100%);
  border-top: 1px solid var(--line-gold);
  color: rgba(243, 232, 210, 0.82);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold-brown) 18%, var(--gold) 50%, var(--gold-brown) 82%, transparent 100%);
  opacity: 0.85;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(120px, 0.6fr)) minmax(240px, 1fr);
  gap: clamp(1.6rem, 3.4vw, 3rem);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}

.footer-brand__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #16120A;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 62%, #9C7A34);
  border: 1px solid rgba(232, 206, 138, 0.7);
  border-radius: 3px;
  flex: none;
}

.footer-brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--cream);
}

.footer-brand__sub {
  margin: 0.15rem 0 0;
  font-family: var(--font-index);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey-teal);
}

.footer-summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(243, 232, 210, 0.74);
  max-width: 34ch;
}

.footer-service {
  display: inline-block;
  margin: 0;
  padding: 0.24rem 0.66rem;
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold-soft);
  background: rgba(58, 45, 25, 0.32);
  border-radius: 2px;
}

.footer-grid {
  display: contents;
}

.footer-col-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(243, 232, 210, 0.76);
  text-decoration: none;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-bright);
  padding-left: 0.28rem;
}

.footer-contact-line {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(243, 232, 210, 0.74);
  word-break: break-word;
}

.footer-note {
  margin: 0.9rem 0 0;
  font-family: var(--font-index);
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--grey-teal);
}

.footer-meta {
  border-top: 1px solid var(--line-gold-soft);
  background: rgba(8, 9, 11, 0.6);
}

.footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  padding-block: 1.1rem;
}

.footer-legal,
.footer-copy,
.footer-legal-links {
  margin: 0;
  font-family: var(--font-index);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey-teal);
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-legal-links a {
  color: var(--grey-teal);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--gold-bright);
}

/* ---------- 减少动态 ---------- */

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .badge--vermilion {
    animation: none;
  }
}

/* ---------- 平板 ---------- */

@media (max-width: 1180px) {
  :root {
    --header-h: 78px;
  }

  .nav-link {
    font-size: 0.875rem;
    padding-inline: 0.45rem;
  }

  .nav-link::after {
    left: 0.45rem;
    right: 0.45rem;
  }

  .header-cta-secondary {
    display: none;
  }

  .footer-inner {
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(110px, 0.55fr)) minmax(220px, 0.95fr);
    gap: 1.6rem;
  }
}

/* ---------- 移动端 ---------- */

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
    --header-top-h: 30px;
  }

  body {
    font-size: 16px;
    line-height: 1.72;
  }

  .header-top__inner {
    justify-content: flex-start;
    gap: 1rem;
  }

  .top-line {
    display: none;
  }

  .brand-line {
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .brand-sub {
    display: none;
  }

  .brand-line-name {
    font-size: 1.06rem;
  }

  .brand-seal {
    width: 36px;
    height: 36px;
    font-size: 1.14rem;
  }

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

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    justify-content: flex-start;
    padding: 0;
    background: linear-gradient(180deg, rgba(12, 13, 16, 0.99) 0%, rgba(8, 9, 11, 0.99) 100%);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.42s var(--ease), visibility 0.42s;
  }

  .site-nav[data-open] {
    max-height: 70vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem var(--gutter) 1rem;
  }

  .nav-item {
    border-bottom: 1px solid var(--line-gold-soft);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0.2rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .nav-link::after {
    left: 0.2rem;
    right: auto;
    width: 26px;
    bottom: 0.5rem;
  }

  .header-main__inner {
    position: relative;
    gap: 0.9rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.9rem 1.4rem;
    padding-block: 2.4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-summary {
    max-width: 46ch;
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line-gold-soft);
  }

  .footer-meta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 0.4rem;
  }

  .nav-toggle__text {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta__inner {
    padding-block: 1rem;
  }

  .media-frame {
    aspect-ratio: 4 / 3;
  }
}
