/* ==========================================================================
   星力电玩棋牌 / site.css
   共享外壳：reset、变量、中文排版、页头、页脚、按钮、面包屑、网格、基础组件
   ========================================================================== */

:root {
  /* 矿物色体系 */
  --ink-900: #0B2B24;
  --ink-800: #123A30;
  --ink-700: #0E332A;
  --moss-600: #4F7A5A;
  --gold-500: #C9A24A;
  --gold-300: #E6C77E;
  --ivory-100: #F4EFE3;
  --stone-700: #3A3F3B;
  --stone-400: #8A8F86;
  --cyan-400: #38D6C4;
  --coral-500: #E2645A;

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", "Source Han Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Source Han Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  /* 尺度与节奏 */
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --grid-gap: clamp(16px, 2.2vw, 26px);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --read-progress: 0%;
}

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

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

body {
  margin: 0;
  background: var(--ivory-100);
  color: var(--stone-700);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol { padding: 0; }

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

button { font: inherit; color: inherit; }

a { color: var(--moss-600); text-underline-offset: 3px; }

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

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

#main-content { display: block; scroll-margin-top: 116px; }

[data-spy-section],
[id] { scroll-margin-top: 120px; }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.025em;
  color: inherit;
  text-wrap: balance;
}

p { text-wrap: pretty; line-break: strict; }

/* ---------- 版心 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 章节色块 ---------- */
.section { padding-block: clamp(44px, 6.5vw, 92px); }
.section--ink { background: var(--ink-900); color: var(--ivory-100); }
.section--deep { background: var(--ink-800); color: var(--ivory-100); }
.section--ivory { background: var(--ivory-100); color: var(--stone-700); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

/* ---------- 小标签与标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  max-width: 56ch;
}

/* ---------- 刻度与细线 ---------- */
.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.55), rgba(201, 162, 74, 0.05));
}

.ticks {
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 18px
  );
  opacity: 0.35;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px),
    calc(100% - 10px) 100%, 0 100%, 0 10px
  );
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn--gold {
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
  color: var(--ink-900);
}

.btn--gold:hover {
  background: linear-gradient(140deg, #F0D79B, var(--gold-300));
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(201, 162, 74, 0.55);
  color: var(--gold-300);
}

.btn--ghost:hover {
  background: rgba(201, 162, 74, 0.14);
  transform: translateY(-2px);
}

.section--ivory .btn--ghost {
  border-color: rgba(11, 43, 36, 0.35);
  color: var(--ink-900);
}

.section--ivory .btn--ghost:hover { background: rgba(11, 43, 36, 0.07); }

.btn--gold:focus-visible,
.nav-toggle:focus-visible,
.nav-anchor:focus-visible {
  outline-color: var(--ivory-100);
  box-shadow: inset 0 0 0 2px rgba(11, 43, 36, 0.45);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: rgba(201, 162, 74, 0.09);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  white-space: nowrap;
}

.tag--cyan {
  border-color: rgba(56, 214, 196, 0.45);
  background: rgba(56, 214, 196, 0.1);
  color: #1F8E83;
}

.section--ink .tag--cyan,
.section--deep .tag--cyan { color: var(--cyan-400); }

.tag--coral {
  border-color: rgba(226, 100, 90, 0.45);
  background: rgba(226, 100, 90, 0.1);
  color: #B24038;
}

.section--ink .tag--coral,
.section--deep .tag--coral { color: var(--coral-500); }

/* ---------- 面板 ---------- */
.panel {
  background: var(--ink-800);
  color: var(--ivory-100);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(201, 162, 74, 0.2);
}

.panel--cut {
  clip-path: polygon(
    0 0, calc(100% - 24px) 0, 100% 24px,
    100% 100%, 24px 100%, 0 calc(100% - 24px)
  );
}

.panel--paper {
  background: #FBF7EC;
  color: var(--stone-700);
  border-color: rgba(58, 63, 59, 0.14);
}

/* ---------- 数字锚点 ---------- */
.stat { display: grid; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: 0.02em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--stone-400);
}

/* ---------- 档案柜抽屉 ---------- */
.drawer {
  position: relative;
  display: block;
  padding: 18px 20px 18px 24px;
  background: #FBF7EC;
  border: 1px solid rgba(58, 63, 59, 0.14);
  border-left: 3px solid var(--moss-600);
  color: var(--stone-700);
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.drawer:hover,
.drawer:focus-visible {
  transform: translateY(-4px);
  border-left-color: var(--gold-500);
  box-shadow: 0 14px 26px rgba(11, 43, 36, 0.12);
}

.drawer__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--stone-400);
}

.drawer__title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- 网格 ---------- */
.grid { display: grid; gap: var(--grid-gap); }
.grid--tight { --grid-gap: 12px; }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-800);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media:hover > img,
.media:hover > picture > img { transform: scale(1.035); }

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--stone-400);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone-400);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--moss-600);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--gold-500);
  border-bottom-color: rgba(201, 162, 74, 0.6);
}

.section--ink .breadcrumb,
.section--deep .breadcrumb { color: rgba(244, 239, 227, 0.6); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--stone-700);
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose li + li { margin-top: 0.4em; }

.prose blockquote {
  padding: 14px 20px;
  border-left: 3px solid var(--gold-500);
  background: rgba(201, 162, 74, 0.09);
  font-size: 0.98em;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(11, 43, 36, 0.07);
  color: var(--ink-800);
}

.section--ink .prose,
.section--deep .prose { color: rgba(244, 239, 227, 0.86); }

/* ---------- 粘性目录 ---------- */
.spy {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.spy a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--stone-400);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.spy a:hover { color: var(--ink-900); }

.spy a[aria-current="true"] {
  color: var(--ink-900);
  border-left-color: var(--gold-500);
  background: rgba(201, 162, 74, 0.14);
}

.section--ink .spy a,
.section--deep .spy a { color: rgba(244, 239, 227, 0.55); }

.section--ink .spy a[aria-current="true"],
.section--deep .spy a[aria-current="true"] {
  color: var(--ivory-100);
  background: rgba(201, 162, 74, 0.16);
}

/* ---------- 滚动显现（JS 开启 data-motion="on" 才生效） ---------- */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html[data-motion="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   页头
   ========================================================================== */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--gold-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-260%);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  background: linear-gradient(180deg, #0C2E26 0%, #0A2620 100%);
  color: var(--ivory-100);
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
}

/* 状态轨 */
.status-rail {
  display: none;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(201, 162, 74, 0.16);
}

.status-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--stone-400);
}

.rail-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.rail-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.rail-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan-400);
  box-shadow: 0 0 8px rgba(56, 214, 196, 0.8);
  animation: rail-blink 2.6s steps(1, end) infinite;
}

@keyframes rail-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: 0.25; }
}

.rail-link {
  color: var(--gold-300);
  text-decoration: none;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(201, 162, 74, 0.45);
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.rail-link:hover {
  color: #F6E4B6;
  border-bottom-color: var(--gold-300);
}

@media (min-width: 900px) {
  .status-rail { display: block; }
}

/* 主横条 */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(150deg, #1A5445, #0B2B24);
  border: 1px solid rgba(201, 162, 74, 0.55);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.brand__mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-300);
  transform: translate(-5px, -5px);
  box-shadow:
    10px 0 0 var(--gold-500),
    0 10px 0 var(--gold-500),
    10px 10px 0 var(--gold-300);
}

.brand:hover .brand__mark {
  transform: rotate(-6deg);
  border-color: var(--gold-300);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ivory-100);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--stone-400);
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(201, 162, 74, 0.45);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle:hover {
  background: rgba(201, 162, 74, 0.16);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

/* 导航：移动优先 */
.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  padding: 10px var(--gutter) 22px;
  background: var(--ink-700);
  border-top: 1px solid rgba(201, 162, 74, 0.28);
  border-bottom: 1px solid rgba(201, 162, 74, 0.28);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
}

.primary-nav[data-open="true"] { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: navi;
}

.primary-nav li {
  counter-increment: navi;
  border-bottom: 1px solid rgba(244, 239, 227, 0.08);
}

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

.primary-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 227, 0.9);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.primary-nav a::before {
  content: "0" counter(navi);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--moss-600);
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--gold-300); }

.primary-nav a:hover::before { color: var(--gold-500); }

.primary-nav a[aria-current="page"] { color: var(--gold-300); }

.primary-nav a[aria-current="page"]::before { color: var(--gold-300); }

.primary-nav a.nav-anchor {
  margin-left: -4px;
  padding-left: 12px;
  color: var(--gold-300);
  background: rgba(201, 162, 74, 0.14);
  border-left: 3px solid var(--gold-500);
}

.primary-nav a.nav-anchor::before { color: var(--gold-500); }

/* 桌面导航 */
@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    counter-reset: none;
  }

  .primary-nav li {
    counter-increment: none;
    border: 0;
  }

  .primary-nav a {
    display: inline-block;
    position: relative;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(244, 239, 227, 0.78);
    transition: color 0.16s var(--ease);
  }

  .primary-nav a::before { display: none; }

  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    background: var(--gold-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s var(--ease);
  }

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

  .primary-nav a[aria-current="page"] { color: var(--ivory-100); }

  .primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--gold-300);
  }

  .primary-nav a.nav-anchor {
    margin-left: 6px;
    padding: 10px 16px;
    font-weight: 800;
    color: var(--ink-900);
    background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
    border-left: 0;
    clip-path: polygon(
      10px 0, 100% 0, 100% calc(100% - 10px),
      calc(100% - 10px) 100%, 0 100%, 0 10px
    );
  }

  .primary-nav a.nav-anchor::after { display: none; }

  .primary-nav a.nav-anchor:hover {
    color: var(--ink-900);
    background: linear-gradient(140deg, #F0D79B, var(--gold-300));
  }

  .primary-nav a.nav-anchor[aria-current="page"] {
    color: var(--ink-900);
    background: var(--gold-300);
    box-shadow: inset 0 0 0 2px rgba(11, 43, 36, 0.35);
  }
}

/* 阅读进度 */
.readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: rgba(201, 162, 74, 0.16);
  overflow: hidden;
}

.readout__bar {
  display: block;
  width: var(--read-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 0.14s linear;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--ivory-100);
  padding-bottom: 18px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 162, 74, 0.55) 0 1px,
    transparent 1px 26px
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.footer-mark {
  position: absolute;
  right: -0.06em;
  bottom: -0.24em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.02em;
  color: rgba(201, 162, 74, 0.055);
  pointer-events: none;
  user-select: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 44px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(52px, 6.5vw, 78px) var(--gutter) clamp(32px, 4vw, 48px);
}

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

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr;
    gap: clamp(24px, 3vw, 44px);
  }
}

.footer-brand { min-width: 0; }

.footer-summary {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 239, 227, 0.72);
}

.footer-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone-400);
}

.footer-col { min-width: 0; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-500);
}

.footer-col__title::before,
.footer-col__title::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--moss-600);
  flex: none;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: rgba(244, 239, 227, 0.82);
  text-decoration: none;
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-col a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--moss-600);
  flex: none;
  transition: background 0.16s var(--ease);
}

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

.footer-col a:hover::before { background: var(--gold-500); }

.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: baseline;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(201, 162, 74, 0.24);
}

.contact-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--stone-400);
}

.contact-row__value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ivory-100);
  word-break: break-word;
}

.copy-btn {
  padding: 4px 8px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: transparent;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.copy-btn:hover {
  background: var(--gold-500);
  color: var(--ink-900);
  border-color: var(--gold-500);
}

.copy-btn[data-copied="true"] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-900);
}

.copy-status {
  min-height: 1.5em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 20px var(--gutter) 6px;
  border-top: 1px solid rgba(201, 162, 74, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-400);
}

.footer-legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal__links a {
  color: var(--stone-400);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-legal__links a:hover {
  color: var(--gold-300);
  border-bottom-color: rgba(201, 162, 74, 0.6);
}

/* ==========================================================================
   动效收敛
   ========================================================================== */

@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[data-motion="on"] [data-reveal],
  html[data-motion="on"] [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .media:hover > img,
  .media:hover > picture > img,
  .drawer:hover,
  .btn:hover,
  .footer-col a:hover { transform: none; }
}
