/* ============================================================
   银河主页 · 共享站点样式 /assets/site.css
   深空蓝底 · 银河紫结构 · 星云粉焦点 · 脉冲青交互
   ============================================================ */

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

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

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

ul, ol { padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--paper);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--pulse); }

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #07101F;
  --space: #0B1B3A;
  --cabin: #122449;
  --edge: #22406F;
  --violet: #6C4AB6;
  --lilac: #9C8AD8;
  --nebula: #F06AA6;
  --pulse: #3ED6C4;
  --paper: #F5F1E8;
  --dust: #A9B4CC;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --radius-pill: 999px;

  --edge-line: 1px solid var(--edge);
  --gap: clamp(20px, 3vw, 40px);
  --shell-max: 1320px;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--space);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(108, 74, 182, 0.38), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(62, 214, 196, 0.12), transparent 40%),
    radial-gradient(circle at 50% 118%, rgba(240, 106, 166, 0.1), transparent 52%);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body ::selection {
  background: rgba(240, 106, 166, 0.36);
  color: var(--paper);
}

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

p { text-wrap: pretty; }

/* ---------- 4. 通用容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 44px);
}

.section {
  padding-block: clamp(56px, 8vw, 120px);
}

.link-inline {
  color: var(--pulse);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 214, 196, 0.45);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-inline:hover {
  color: #7CEBDE;
  border-bottom-color: var(--pulse);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

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

/* ---------- 6. 头部：悬浮胶囊 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px clamp(10px, 2.4vw, 26px) 10px;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.96) 0%, rgba(11, 27, 58, 0.9) 62%, rgba(11, 27, 58, 0) 100%);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 9px clamp(12px, 1.6vw, 18px);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(18, 36, 73, 0.95), rgba(11, 27, 58, 0.9));
  box-shadow: inset 0 1px 0 rgba(156, 138, 216, 0.16), 0 18px 40px -32px rgba(0, 0, 0, 0.95);
  transition: padding 0.2s ease;
}

.head-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--pulse) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.92;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 3px rgba(62, 214, 196, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--paper);
}

.brand-sub {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dust);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle-bar {
  position: relative;
  width: 14px;
  height: 1.5px;
  background: var(--pulse);
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: var(--pulse);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-bar::before { top: -4.5px; }
.nav-toggle-bar::after { top: 4.5px; }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--pulse);
  background: rgba(62, 214, 196, 0.12);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-4.5px) rotate(-45deg); }

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--dust);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nav-pin {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
  border-color: var(--edge);
  background: rgba(34, 64, 111, 0.38);
}

.nav-link:hover .nav-pin {
  background: var(--pulse);
  border-color: var(--pulse);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  border-color: rgba(156, 138, 216, 0.45);
  background: rgba(108, 74, 182, 0.24);
}

.nav-link[aria-current="page"] .nav-pin {
  background: var(--nebula);
  border-color: var(--nebula);
  box-shadow: 0 0 0 3px rgba(240, 106, 166, 0.22);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.search-open-mark {
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid var(--pulse);
  border-radius: 50%;
  flex: 0 0 auto;
}

.search-open-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--pulse);
  transform: rotate(45deg);
}

.search-open:hover {
  background: rgba(62, 214, 196, 0.12);
  border-color: var(--pulse);
}

.search-open[aria-expanded="true"] {
  background: rgba(62, 214, 196, 0.16);
  border-color: var(--pulse);
}

/* 滚动收窄 */
.site-head[data-compact="true"] .head-inner {
  padding-block: 4px;
}

.site-head[data-compact="true"] .brand-sub { display: none; }

.site-head[data-compact="true"] .brand-name { font-size: 15px; }

.site-head[data-compact="true"] .nav-link {
  padding: 6px 12px;
  font-size: 13.5px;
}

.site-head[data-compact="true"] .search-open {
  padding: 6px 12px;
  font-size: 13px;
}

/* ---------- 7. 检索浮层 ---------- */
.search-deck {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(var(--shell-max), calc(100% - 2 * clamp(10px, 2.4vw, 26px)));
  padding: 18px clamp(14px, 2vw, 22px) 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(18, 36, 73, 0.99), rgba(11, 27, 58, 0.99));
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.96);
}

.search-deck[hidden] { display: none; }

.search-deck::before {
  content: "";
  position: absolute;
  left: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lilac), var(--pulse), transparent);
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lilac);
}

.search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-s);
  background: rgba(7, 16, 31, 0.72);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input::placeholder { color: #6C7B99; }

.search-input:focus {
  outline: none;
  border-color: var(--pulse);
  box-shadow: 0 0 0 3px rgba(62, 214, 196, 0.16);
}

.search-hint {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dust);
}

.search-results {
  display: grid;
  gap: 6px;
  max-height: min(46vh, 320px);
  margin-top: 12px;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-s);
  background: rgba(34, 64, 111, 0.24);
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.search-hit:hover {
  border-color: var(--pulse);
  background: rgba(62, 214, 196, 0.1);
}

.search-hit-title { min-width: 0; }

.search-hit mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(62, 214, 196, 0.3);
  color: var(--paper);
}

.search-hit-type {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dust);
}

.search-empty {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--dust);
}

.search-empty[hidden] { display: none; }

/* ---------- 8. 页脚 ---------- */
.site-foot {
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--ink);
  border-top: 1px solid var(--edge);
  color: var(--dust);
}

.dock-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
}

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

.dock-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.dock-lede {
  margin-top: 14px;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--dust);
}

.dock-note {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #7E8CAA;
}

.dock-title {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(34, 64, 111, 0.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lilac);
}

.dock-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--violet);
}

.dock-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
}

.dock-link {
  position: relative;
  display: inline-block;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.18s ease;
}

.dock-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--pulse);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.dock-link:hover { color: var(--paper); }
.dock-link:hover::after { transform: scaleX(1); }

.dock-key {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #7E8CAA;
}

.dock-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-all;
}

.dock-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-block: 16px 28px;
  border-top: 1px solid rgba(34, 64, 111, 0.7);
  font-size: 12.5px;
  color: #7E8CAA;
}

.dock-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.dock-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.dock-top {
  color: var(--pulse);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
}

.dock-top:hover { color: #7CEBDE; }

/* ---------- 9. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lilac);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet);
}

.lede {
  margin: 0;
  font-size: clamp(30px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--paper);
  text-wrap: balance;
}

.lede em {
  font-style: normal;
  color: var(--nebula);
}

.prose {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: #DCE3F2;
}

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

.prose h2 {
  margin-top: 2em;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 32px);
}

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-sans);
  font-size: 20px;
}

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

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

.prose a {
  color: var(--pulse);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 214, 196, 0.5);
}

.prose a:hover { border-bottom-color: var(--pulse); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 20px;
  border-left: 2px solid var(--violet);
  color: var(--dust);
  font-size: 16.5px;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(34, 64, 111, 0.6);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.plate {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--edge);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(18, 36, 73, 0.92), rgba(11, 27, 58, 0.86));
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.plate:hover {
  border-color: var(--lilac);
  transform: translateY(-2px);
}

.plate-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.plate-title {
  margin-top: 8px;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--paper);
}

.plate-text {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dust);
}

.plate-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(34, 64, 111, 0.35);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--dust);
}

.tag--violet {
  color: #EDE6FF;
  border-color: rgba(156, 138, 216, 0.5);
  background: rgba(108, 74, 182, 0.28);
}

.tag--pink {
  color: #FFD9E9;
  border-color: rgba(240, 106, 166, 0.55);
  background: rgba(240, 106, 166, 0.16);
}

.tag--cyan {
  color: #C7FBF3;
  border-color: rgba(62, 214, 196, 0.5);
  background: rgba(62, 214, 196, 0.14);
}

.starline {
  position: relative;
  height: 1px;
  margin-block: clamp(32px, 5vw, 64px);
  border: 0;
  background: linear-gradient(90deg, transparent, var(--edge) 12%, var(--lilac) 50%, var(--edge) 88%, transparent);
}

.starline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nebula);
  transform: translate(-50%, -50%);
}

/* 可复用视觉容器（页面阶段放 <img> 或内联 <svg>） */
.media-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-m);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 28% 18%, rgba(108, 74, 182, 0.48), transparent 56%),
    radial-gradient(circle at 80% 80%, rgba(62, 214, 196, 0.22), transparent 52%);
}

.media-frame > img,
.media-frame > video,
.media-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-caption {
  position: relative;
  z-index: 1;
  padding: 4px 11px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: rgba(7, 16, 31, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dust);
}

.note-fold {
  padding: 12px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-s);
  background: rgba(18, 36, 73, 0.6);
}

.note-fold > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper);
}

.note-fold > summary::-webkit-details-marker { display: none; }

.note-fold > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--pulse);
  border-bottom: 1.5px solid var(--pulse);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.note-fold[open] > summary::before { transform: rotate(-135deg); }

.note-fold p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--dust);
}

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

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dust);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--solid {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.btn--solid:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--ghost:hover {
  border-color: var(--pulse);
  background: rgba(62, 214, 196, 0.1);
  transform: translateY(-2px);
}

/* ---------- 11. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--dust);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--edge);
}

.crumbs a {
  color: var(--dust);
  text-decoration: none;
  transition: color 0.18s ease;
}

.crumbs a:hover { color: var(--pulse); }

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 940px) {
  .dock-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-head { padding: 10px 12px 6px; }

  .head-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-l);
  }

  .brand { order: 1; }

  .head-tools {
    order: 2;
    margin-left: auto;
  }

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

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    padding-right: 4px;
  }

  .nav-link {
    padding: 7px 12px;
    font-size: 14px;
  }

  .search-deck {
    width: calc(100% - 24px);
    border-radius: var(--radius-m);
  }

  .site-head[data-compact="true"] .nav-link {
    padding: 7px 12px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .brand-sub { display: none; }

  .search-open-label { display: none; }

  .search-open {
    padding: 8px 11px;
  }

  .dock-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dock-base {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ---------- 13. 降低动效 ---------- */
@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;
  }

  .plate:hover,
  .btn:hover {
    transform: none;
  }
}
