/* ==========================================================================
   新葡萄8883AMG · 全站共享样式
   ========================================================================== */

/* 1. 变量与基础重置 */
:root {
  color-scheme: dark;

  --c-primary: #6A2C73;
  --c-dark: #0B0810;
  --c-silver: #A89FAE;
  --c-accent: #FF6A00;
  --c-lilac: #D8BFE0;
  --c-fg: #F5F3F7;
  --c-dark-purple: #3E1A44;

  --grad-side: linear-gradient(135deg, #0B0810 0%, #6A2C73 100%);
  --grad-panel: linear-gradient(145deg, rgba(216, 191, 224, .08), rgba(62, 26, 68, .36));
  --grad-console: linear-gradient(135deg, rgba(11, 8, 16, .78), rgba(62, 26, 68, .62));

  --font-display: "Orbitron", "Bahnschrift", "Avenir Next", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

  --header-w: 280px;
  --radius: 12px;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .42);
  --shadow-panel: 0 10px 26px rgba(0, 0, 0, .28);
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-dark);
  color: var(--c-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 背景网格与紫色微光 */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 159, 174, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 159, 174, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}

body::after {
  top: -22%;
  right: -12%;
  width: 72vw;
  height: 72vw;
  background: radial-gradient(circle, rgba(106, 44, 115, .28), transparent 65%);
}

h1, h2, h3 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: var(--c-lilac);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--c-accent);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: rgba(106, 44, 115, .65);
  color: var(--c-fg);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--c-dark-purple);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-primary);
}

/* 2. 可达性 */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--c-accent);
  color: var(--c-dark);
  padding: .65rem 1.15rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: top .25s var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  outline-offset: 0;
}

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

#main-content {
  scroll-margin-top: 4.5rem;
}

/* 3. 左侧固定头部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--header-w);
  padding: 1.75rem 1.4rem 1.25rem;
  background: var(--grad-side);
  border-right: 1px solid rgba(216, 191, 224, .14);
  box-shadow: var(--shadow-lg);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(216, 191, 224, .14), transparent 42%),
    radial-gradient(circle at 85% 92%, rgba(255, 106, 0, .08), transparent 40%);
}

.header-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(216, 191, 224, .16);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--c-fg);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(245, 243, 247, .22), transparent 30%),
    radial-gradient(circle at 50% 52%, rgba(216, 191, 224, .92), rgba(62, 26, 68, .9) 52%, rgba(11, 8, 16, .65) 100%);
  border: 1px solid rgba(245, 243, 247, .35);
  box-shadow:
    0 0 18px rgba(106, 44, 115, .6),
    inset 0 0 8px rgba(11, 8, 16, .5);
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(216, 191, 224, .5);
  animation: brandOrbit 16s linear infinite;
}

.brand-logo::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(255, 106, 0, .9);
}

@keyframes brandOrbit {
  to {
    transform: rotate(360deg);
  }
}

.brand-logo-sm {
  width: 30px;
  height: 30px;
}

.brand-logo-sm::before {
  inset: -3px;
}

.brand-logo-sm::after {
  top: 2px;
  right: 3px;
  width: 4px;
  height: 4px;
}

.brand-text {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .1em;
  line-height: 1.2;
  color: var(--c-fg);
  white-space: nowrap;
}

.brand-tagline {
  font-size: .66rem;
  line-height: 1.45;
  color: rgba(216, 191, 224, .72);
  letter-spacing: .05em;
}

/* 4. 导航 */
.site-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.nav-caption {
  padding: .1rem .8rem .55rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  color: rgba(168, 159, 174, .58);
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: .15rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .8rem;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  color: rgba(245, 243, 247, .74);
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition:
    background .25s var(--ease),
    color .25s var(--ease),
    border-color .25s var(--ease),
    padding-left .25s var(--ease),
    box-shadow .25s var(--ease);
}

.nav-index {
  min-width: 1.6em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: rgba(168, 159, 174, .65);
  transition: color .25s var(--ease);
}

.nav-link:hover {
  color: var(--c-fg);
  background: rgba(106, 44, 115, .38);
  padding-left: 1rem;
}

.nav-link:hover .nav-index {
  color: var(--c-lilac);
}

.nav-link[aria-current="page"] {
  color: var(--c-fg);
  border-left-color: var(--c-accent);
  background: linear-gradient(90deg, rgba(62, 26, 68, .72), rgba(62, 26, 68, .22) 82%, transparent);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--c-accent);
}

/* 头部状态面板 */
.header-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(216, 191, 224, .14);
  border-radius: 10px;
  background: rgba(11, 8, 16, .45);
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(255, 106, 0, .85);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 106, 0, .5);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 106, 0, .95);
  }
}

.status-group {
  display: grid;
  gap: .12rem;
}

.status-label {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--c-fg);
}

.status-meta {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  color: var(--c-silver);
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: .55rem .6rem;
  border: 1px solid rgba(216, 191, 224, .3);
  border-radius: 8px;
  background: rgba(216, 191, 224, .08);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}

.nav-toggle:hover {
  background: rgba(216, 191, 224, .16);
  border-color: rgba(216, 191, 224, .5);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-fg);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 5. 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-accent), var(--c-lilac));
  box-shadow: 0 0 12px rgba(255, 106, 0, .6);
}

/* 6. 主区与页脚 */
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
  margin-left: var(--header-w);
}

.site-main {
  min-height: calc(100vh - 0px);
}

.site-footer {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(106, 44, 115, .28), transparent 45%),
    linear-gradient(180deg, #0D0912 0%, #0B0810 80%);
  border-top: 1px solid rgba(216, 191, 224, .14);
}

.footer-inner {
  max-width: 1340px;
  margin-inline: auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--c-fg);
  text-decoration: none;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.footer-tagline {
  margin-top: .8rem;
  color: var(--c-silver);
  font-size: .82rem;
  letter-spacing: .04em;
}

.footer-address {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: rgba(168, 159, 174, .8);
}

.footer-col-title {
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-lilac);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: .55rem;
}

.footer-links a {
  display: inline-block;
  color: rgba(245, 243, 247, .78);
  font-size: .88rem;
  text-decoration: none;
  transition: color .25s, padding-left .25s;
}

.footer-links a:hover {
  color: var(--c-accent);
  padding-left: .35rem;
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .02em;
  color: rgba(245, 243, 247, .78);
}

.footer-support {
  max-width: 19em;
  margin-top: .85rem;
  font-size: .76rem;
  line-height: 1.7;
  color: rgba(168, 159, 174, .7);
}

.footer-bottom {
  display: grid;
  gap: .9rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 191, 224, .14);
}

.trust-statement {
  display: flex;
  gap: .55rem;
  max-width: 62em;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(168, 159, 174, .85);
}

.trust-statement-mark {
  flex: none;
  margin-top: .2em;
  color: var(--c-accent);
  font-size: .7rem;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  font-size: .78rem;
  color: rgba(168, 159, 174, .55);
}

.footer-divider {
  color: var(--c-primary);
}

/* 7. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background .3s var(--ease),
    box-shadow .3s var(--ease),
    transform .2s var(--ease),
    border-color .3s var(--ease),
    color .3s var(--ease);
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-dark);
  box-shadow: 0 6px 22px rgba(255, 106, 0, .34);
}

.btn-primary:hover {
  background: #FF7D1D;
  color: var(--c-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 106, 0, .46);
}

.btn-ghost {
  background: rgba(216, 191, 224, .04);
  border-color: rgba(216, 191, 224, .32);
  color: var(--c-fg);
}

.btn-ghost:hover {
  background: rgba(216, 191, 224, .12);
  border-color: rgba(216, 191, 224, .6);
  color: var(--c-fg);
  transform: translateY(-2px);
}

/* 8. 面包屑 */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--c-silver);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: .6rem;
  color: rgba(168, 159, 174, .5);
}

.breadcrumb-link {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

.breadcrumb-link:hover {
  color: var(--c-accent);
}

.breadcrumb-item[aria-current] {
  color: var(--c-lilac);
}

/* 9. 正文容器与编辑排版 */
.page-wrap {
  max-width: 1340px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.25rem) clamp(1.4rem, 4.5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem);
}

.page-hero {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.08;
  max-width: 15em;
}

.page-lead {
  max-width: 46em;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-silver);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 1.2rem 0 0;
  padding-top: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(168, 159, 174, .75);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(0, 2.28fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  margin-top: 2rem;
}

.rail-note {
  position: sticky;
  top: 2rem;
  align-self: start;
  margin: .3em 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--c-primary);
  font-size: .84rem;
  line-height: 1.75;
  color: var(--c-silver);
}

.rail-note strong {
  color: var(--c-lilac);
  font-weight: 600;
}

/* 10. 章节标题 */
.section-index {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .05em;
}

.section-desc {
  max-width: 38em;
  margin-top: .45rem;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--c-silver);
}

/* 11. 控制台与面板 */
.console-panel {
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(216, 191, 224, .18);
  border-radius: var(--radius);
  background: var(--grad-console);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(216, 191, 224, .1);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.console-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-lilac);
}

.console-state {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .73rem;
  color: var(--c-accent);
}

.console-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px rgba(255, 106, 0, .8);
}

.section-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(216, 191, 224, .12);
  border-radius: var(--radius);
  background: rgba(216, 191, 224, .05);
}

/* 12. 卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(216, 191, 224, .14);
  border-radius: var(--radius);
  background: var(--grad-panel);
  transition:
    transform .3s var(--ease),
    border-color .3s var(--ease),
    box-shadow .3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 191, 224, .34);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(106, 44, 115, .35);
}

.card-title {
  margin-bottom: .5rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.card-text {
  margin-bottom: .9rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--c-silver);
}

.card-link {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-accent);
  text-decoration: none;
  transition: color .25s;
}

.card-link:hover {
  color: var(--c-lilac);
}

/* 13. 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border: 1px solid rgba(216, 191, 224, .25);
  border-radius: 999px;
  background: rgba(216, 191, 224, .06);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--c-lilac);
}

.badge-hot {
  border-color: rgba(255, 106, 0, .45);
  background: rgba(255, 106, 0, .12);
  color: var(--c-accent);
  box-shadow: 0 0 14px rgba(255, 106, 0, .16);
}

.badge-hot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px currentColor;
}

/* 14. 数据表 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .86rem;
}

.data-table th,
.data-table td {
  padding: .75rem .85rem;
  border-bottom: 1px solid rgba(216, 191, 224, .12);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c-lilac);
}

.data-table td {
  color: rgba(245, 243, 247, .85);
}

.data-table tbody tr:hover td {
  background: rgba(216, 191, 224, .05);
}

/* 15. 图片容器 */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(216, 191, 224, .14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 22%, rgba(106, 44, 115, .4), transparent 55%),
    linear-gradient(135deg, rgba(62, 26, 68, .55), rgba(11, 8, 16, .85));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-placeholder {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--c-silver);
}

/* 16. 显现动效 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* 17. 响应式 */
@media (max-width: 900px) {
  :root {
    --header-w: 0px;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 191, 224, .14);
    background: rgba(11, 8, 16, .93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }

  .header-top {
    flex: 1;
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    max-height: calc(100vh - 58px);
    padding: .6rem .85rem 1rem;
    overflow-y: auto;
    border-bottom: 1px solid rgba(216, 191, 224, .16);
    background: linear-gradient(135deg, #0B0810 0%, #3E1A44 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity .3s var(--ease),
      transform .3s var(--ease),
      visibility .3s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .header-status {
    display: none;
  }

  .site-main,
  .site-footer {
    margin-left: 0;
  }

  #main-content {
    scroll-margin-top: 5.5rem;
  }

  .brand-name {
    font-size: .98rem;
  }

  .brand-tagline {
    font-size: .64rem;
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .rail-note {
    position: static;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .page-wrap {
    padding-inline: 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* 18. 低动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

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