/* ==========================================================================
   A8棋牌娱乐中文专区 · 共享样式表 /assets/site.css
   夜间牌桌 + 数据仪表盘：墨绿台面、暗金描边、霓虹青数据、高亮橙提示
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0B1F19;
  --panel: #123028;
  --gold: #C8A03C;
  --gold-bright: #EFCB6B;
  --cyan: #2FE3C6;
  --orange: #FF7A2F;
  --line: #2A4A3E;
  --text: #E7F1EA;
  --muted: #93A99E;
  --paper: #F5F1E6;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fs-body: 16px;
  --fs-small: 14px;
  --fs-note: 12.5px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --bw: 2px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --shadow-hard: 0 26px 54px -30px rgba(0, 0, 0, .96), inset 0 1px 0 rgba(231, 241, 234, .05);
  --shadow-lift: 0 34px 62px -30px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(231, 241, 234, .07);
}

/* ---------- 3. 基础排版与台面质感 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 540px at 90% -10%, rgba(47, 227, 198, .11), transparent 66%),
    radial-gradient(780px 480px at 2% 6%, rgba(200, 160, 60, .10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(42, 74, 62, .28) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, rgba(42, 74, 62, .20) 0 1px, transparent 1px 68px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--paper);
}

h1 { font-size: clamp(30px, 5.6vw, 60px); }
h2 { font-size: clamp(24px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2.2vw, 32px); }
h4 { font-size: clamp(17px, 1.6vw, 24px); }

strong { color: var(--gold-bright); font-weight: 800; }

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

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.divider {
  height: 2px;
  border: 0;
  margin: 40px 0;
  background: linear-gradient(90deg, var(--gold), rgba(47, 227, 198, .65), transparent);
}

/* ---------- 5. 标题组与标签 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-size: clamp(24px, 3.6vw, 44px);
  color: var(--paper);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(18, 48, 40, .72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

.badge--gold { color: var(--gold-bright); border-color: rgba(200, 160, 60, .5); background: rgba(200, 160, 60, .12); }
.badge--cyan { color: var(--cyan); border-color: rgba(47, 227, 198, .45); background: rgba(47, 227, 198, .10); }
.badge--orange { color: var(--orange); border-color: rgba(255, 122, 47, .45); background: rgba(255, 122, 47, .10); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: var(--bw) solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: rgba(239, 203, 107, .75);
  color: #10231C;
  box-shadow: 0 14px 30px -16px rgba(200, 160, 60, .95);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -16px rgba(239, 203, 107, 1); }

.btn--ghost {
  background: rgba(11, 31, 25, .62);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--cyan); }

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan), #1BAF9A);
  border-color: rgba(47, 227, 198, .6);
  color: #07211C;
  box-shadow: 0 14px 30px -18px rgba(47, 227, 198, .9);
}
.btn--cyan:hover { transform: translateY(-3px); }

/* ---------- 7. 面板、卡片与指标 ---------- */
.panel {
  position: relative;
  padding: 24px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 48, 40, .94), rgba(11, 31, 25, .94));
  box-shadow: var(--shadow-hard);
}

.panel--raised { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card {
  position: relative;
  padding: 24px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(18, 48, 40, .94), rgba(11, 31, 25, .94));
  box-shadow: var(--shadow-hard);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 36px 64px -28px rgba(0, 0, 0, 1), 0 0 0 1px rgba(239, 203, 107, .2);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--gold-bright);
  text-shadow: 0 0 22px rgba(200, 160, 60, .45);
}
.stat--cyan .stat__value { color: var(--cyan); text-shadow: 0 0 22px rgba(47, 227, 198, .5); }
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- 8. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(47, 227, 198, .16), transparent 62%),
    linear-gradient(160deg, #163A30, #0B1F19);
  box-shadow: var(--shadow-hard);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.06);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(231, 241, 234, .035) 0 1px, transparent 1px 4px);
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: .04em;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(6, 17, 13, .92));
}

/* ---------- 9. 面包屑与正文容器 ---------- */
.breadcrumb { margin: 26px 0 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: .04em;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item:not(:last-child)::after { content: "/"; color: rgba(47, 227, 198, .6); }
.breadcrumb__link { color: var(--muted); border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: rgba(47, 227, 198, .6); }

.prose { max-width: 74ch; font-size: 16px; line-height: 1.8; color: var(--text); }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 30px 0 12px; }
.prose h4 { margin: 24px 0 10px; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 6px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: -16px; top: .72em; width: 8px; height: 2px; background: var(--cyan); }
.prose ol { list-style: decimal; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(47, 227, 198, .5); }
.prose a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

/* ---------- 10. 章节跟随标签与显现动效 ---------- */
.toc-link {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}
.toc-link:hover { color: var(--text); border-left-color: var(--gold); }
.toc-link[aria-current="true"] {
  color: var(--gold-bright);
  border-left-color: var(--cyan);
  padding-left: 20px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .25, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 11. 头部：状态带 + 悬浮胶囊 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 25, .94), rgba(11, 31, 25, 0));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: transform .12s linear;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 95;
  padding: 10px 18px;
  border: var(--bw) solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--gold-bright);
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 10px; }

/* 状态带 */
.header-rail {
  max-height: 46px;
  overflow: hidden;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(42, 74, 62, .6);
  background: linear-gradient(180deg, rgba(18, 48, 40, .92), rgba(11, 31, 25, .68));
  transition: max-height .28s ease, opacity .22s ease;
}

.header-rail__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-rail__note {
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: .14em;
  color: rgba(200, 160, 60, .92);
}

.header-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  letter-spacing: .1em;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 227, 198, .16), 0 0 12px rgba(47, 227, 198, .75);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

/* 胶囊 */
.nav-capsule { padding: 0 var(--gutter); }

.nav-capsule__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(18, 48, 40, .96), rgba(11, 31, 25, .95));
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(231, 241, 234, .05);
  backdrop-filter: blur(8px);
  transition: padding .28s ease, margin-top .28s ease;
}

.nav-capsule__inner::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--cyan) 64%, transparent);
  opacity: .8;
  transition: opacity .28s ease, left .28s ease, right .28s ease;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  flex: 0 1 auto;
}

.brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: var(--bw) solid var(--gold);
  border-radius: 10px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, rgba(200, 160, 60, .3), rgba(47, 227, 198, .14)), var(--ink);
  box-shadow: inset 0 0 0 3px rgba(11, 31, 25, .88), 0 0 20px -4px rgba(200, 160, 60, .7);
}

.brand__pip {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 227, 198, .95);
  transform: rotate(8deg);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 17px; letter-spacing: -.01em; color: var(--paper); }
.brand__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }

/* 导航 */
.primary-nav {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  display: none;
  padding: 14px;
  border: var(--bw) solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 48, 40, .99), rgba(11, 31, 25, .99));
  box-shadow: 0 34px 64px -28px rgba(0, 0, 0, 1);
}
.primary-nav[data-open] { display: block; animation: navDrop .2s cubic-bezier(.2, .9, .3, 1.2); }

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

.primary-nav__list { display: flex; flex-direction: column; gap: 4px; }

.nav-link {
  display: block;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-link:hover { color: var(--gold-bright); background: rgba(47, 227, 198, .08); border-color: rgba(47, 227, 198, .35); }
.nav-link[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(200, 160, 60, .14);
  border-color: rgba(200, 160, 60, .55);
  box-shadow: inset 0 -2px 0 var(--gold-bright);
}

.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: var(--bw) solid rgba(239, 203, 107, .7);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold), #9C7726);
  color: #10231C;
  font-size: var(--fs-small);
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 12px 28px -14px rgba(200, 160, 60, .95);
  transition: transform .2s ease, background .2s ease;
}
.nav-cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0B1F19; }
.nav-cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }

/* 展开按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 25, .72);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

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

.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bar { height: 2px; border-radius: 2px; background: var(--cyan); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 12. 页脚：第二个导航面 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding-top: 56px;
  border-top: var(--bw) solid var(--line);
  background:
    radial-gradient(720px 340px at 10% 0%, rgba(200, 160, 60, .1), transparent 70%),
    radial-gradient(640px 320px at 92% 4%, rgba(47, 227, 198, .08), transparent 72%),
    linear-gradient(180deg, #0E251E, #081712);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
  opacity: .85;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px 28px;
  padding-bottom: 44px;
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }

.footer-brand__mark {
  width: 34px;
  height: 34px;
  border: var(--bw) solid var(--gold);
  border-radius: 9px;
  transform: rotate(-8deg);
  background:
    linear-gradient(135deg, rgba(200, 160, 60, .32), rgba(47, 227, 198, .16)),
    radial-gradient(circle at 50% 50%, var(--cyan) 0 4px, transparent 5px),
    var(--ink);
  box-shadow: 0 0 18px -5px rgba(200, 160, 60, .8);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--paper);
}

.footer-brand__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.footer-brand__line { max-width: 34ch; font-size: var(--fs-small); color: var(--muted); }
.footer-brand__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer-col__title::before { content: ""; width: 14px; height: 2px; background: var(--cyan); }

.footer-col__list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-size: var(--fs-small);
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer-link:hover { color: var(--cyan); border-bottom-color: rgba(47, 227, 198, .6); }

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

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 31, 25, .62);
  box-shadow: inset 0 0 0 1px rgba(47, 227, 198, .06), 0 20px 40px -30px rgba(0, 0, 0, .95);
}

.contact-item { display: flex; flex-direction: column; gap: 5px; }

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item__value {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--gold-bright);
  word-break: break-all;
}
.contact-item__value--text { font-family: var(--font-body); color: var(--text); word-break: normal; }

.copy-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border: 1px solid rgba(47, 227, 198, .42);
  border-radius: var(--radius-pill);
  background: rgba(47, 227, 198, .08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.copy-btn:hover { background: rgba(47, 227, 198, .18); }
.copy-btn[data-copied] { border-color: var(--orange); color: var(--orange); background: rgba(255, 122, 47, .12); }

.contact-note { font-size: var(--fs-note); line-height: 1.7; color: var(--muted); }

.footer-legal {
  border-top: 1px solid rgba(42, 74, 62, .7);
  background: rgba(6, 17, 13, .6);
}

.footer-legal__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: var(--fs-note);
  color: var(--muted);
}

.footer-legal__icp { font-family: var(--font-mono); letter-spacing: .08em; color: rgba(200, 160, 60, .92); }
.footer-legal__copy { font-family: var(--font-mono); letter-spacing: .06em; }
.footer-bottom { max-width: 52ch; }

/* ---------- 13. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 70;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  --p: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }

.to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--cyan) calc(var(--p) * 1%), rgba(47, 227, 198, .16) 0);
}

.to-top::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

.to-top__icon {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--gold-bright);
  transition: color .18s ease;
}
.to-top:hover .to-top__icon { color: var(--cyan); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 719px) {
  .header-rail__note { display: none; }
  .header-rail__inner { justify-content: flex-end; }
  body { font-size: 15.5px; }
}

@media (max-width: 559px) {
  .brand__tag { display: none; }
  .nav-toggle__label { display: none; }
  .nav-cta { padding: 9px 13px; font-size: 13px; }
  .nav-capsule__inner { gap: 10px; padding-left: 12px; }
}

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

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

  .primary-nav {
    position: static;
    display: flex;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none;
  }

  .primary-nav__list { flex-direction: row; gap: 2px; }
  .nav-link { padding: 9px 13px; font-size: var(--fs-small); }
  .nav-cta { margin-left: 0; }

  /* 收缩态：收起状态带，导航收入展开面板 */
  .site-header[data-condensed="true"] .header-rail { max-height: 0; opacity: 0; }
  .site-header[data-condensed="true"] .nav-capsule__inner { margin-top: 8px; padding: 8px 10px 8px 14px; }
  .site-header[data-condensed="true"] .brand__tag { display: none; }
  .site-header[data-condensed="true"] .nav-capsule__inner::after { opacity: .5; }

  .site-header[data-condensed="true"] .nav-toggle { display: inline-flex; }

  .site-header[data-condensed="true"] .primary-nav {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    left: auto;
    display: none;
    min-width: 240px;
    padding: 14px;
    border: var(--bw) solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 48, 40, .99), rgba(11, 31, 25, .99));
    box-shadow: 0 34px 64px -28px rgba(0, 0, 0, 1);
  }
  .site-header[data-condensed="true"] .primary-nav[data-open] { display: block; animation: navDrop .2s cubic-bezier(.2, .9, .3, 1.2); }
  .site-header[data-condensed="true"] .primary-nav__list { flex-direction: column; gap: 4px; }
  .site-header[data-condensed="true"] .nav-link { padding: 10px 16px; font-size: 15px; }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid {
    grid-template-columns:
      minmax(230px, 1.5fr)
      repeat(3, minmax(120px, .85fr))
      minmax(260px, 1.5fr);
    gap: 34px 28px;
  }
}

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

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
