/* =========================================================
   卡卡湾电投简 · CN 官方主站
   共享样式表 /assets/site.css
   结构：reset → 变量 → 排版 → 容器 → 焦点 → 按钮 →
        头部 → 移动导航 → 标签条 → 页脚 → 通用组件 → 响应式
   ========================================================= */

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

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

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

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

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 载体色 */
  --void: #0B1220;
  --panel: #101B33;
  --panel-deep: #0C1528;
  --line: #1B2A4A;
  --deep: #05080F;

  /* 强调色 */
  --cyan: #2FE3D0;
  --mist: #7FF2E6;
  --coral: #FF6B4A;
  --amber: #FFA35C;

  /* 文字色 */
  --ink: #E8EDF7;
  --muted: #9AA9C4;

  /* 透明度派生 */
  --line-cyan: rgba(47, 227, 208, 0.18);
  --line-cyan-strong: rgba(47, 227, 208, 0.45);
  --cyan-wash: rgba(47, 227, 208, 0.12);
  --cyan-faint: rgba(47, 227, 208, 0.06);
  --coral-wash: rgba(255, 107, 74, 0.12);

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", "Courier New", monospace;

  /* 尺寸 */
  --shell-max: 1440px;
  --content-max: 1080px;
  --pad-x: 28px;

  /* 动效 */
  --dur: 160ms;
  --ease: ease-out;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(47, 227, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 227, 208, 0.035) 1px, transparent 1px),
    radial-gradient(1100px 560px at 10% -12%, rgba(47, 227, 208, 0.10), transparent 62%),
    radial-gradient(880px 480px at 100% 0%, rgba(255, 107, 74, 0.07), transparent 58%);
  background-size: 120px 120px, 120px 120px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}

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

h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 700; line-height: 1.4; }

p { max-width: 72ch; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover { color: var(--mist); }

strong { font-weight: 800; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

/* ---------- 4. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.content-shell {
  width: 100%;
  max-width: var(--content-max);
}

.prose p { max-width: 68ch; }

.prose p + p { margin-top: 1em; }

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 66ch;
}

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

.section { margin: 72px 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 5. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 0;
}

.btn-primary:focus-visible,
.to-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px rgba(11, 18, 32, 0.9), inset 0 0 0 4px var(--cyan);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
  color: #12100E;
  background-image: linear-gradient(100deg, var(--coral), #FF8A63);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  color: #12100E;
  background-image: linear-gradient(100deg, #FF8A63, var(--amber));
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--mist);
  background-color: rgba(47, 227, 208, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
}

.btn-ghost:hover {
  color: var(--ink);
  background-color: rgba(47, 227, 208, 0.12);
  box-shadow: inset 0 0 0 1px var(--line-cyan-strong);
}

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--void);
  background-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.6);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--void);
}

/* ---------- 8. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0 10px;
  transition: padding var(--dur) var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.96) 0%,
    rgba(11, 18, 32, 0.78) 58%,
    rgba(11, 18, 32, 0) 100%
  );
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--cyan), var(--coral));
  transition: width 90ms linear;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand-island,
.nav-island {
  background-color: rgba(16, 27, 51, 0.88);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  transition: box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    padding var(--dur) var(--ease);
}

.brand-island,
.nav-island {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.brand-island {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 20px;
}

.brand-island:hover,
.nav-island:hover { box-shadow: inset 0 0 0 1px rgba(47, 227, 208, 0.34); }

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-link:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--void);
  background-color: var(--cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease),
    font-size var(--dur) var(--ease);
}

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

.brand-line {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 9. 导航岛 ---------- */
.nav-island {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 8px 18px;
}

.nav-panel {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background-color: var(--cyan-faint);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background-color: var(--coral);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  background-color: rgba(47, 227, 208, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background-color: rgba(47, 227, 208, 0.14);
  box-shadow: inset 0 0 0 1px var(--line-cyan-strong);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background-color: var(--cyan);
  transition: transform var(--dur) var(--ease);
}

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

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

/* ---------- 10. 浏览路径标签条 ---------- */
.tag-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--shell-max);
  max-height: 42px;
  margin: 14px auto 0;
  padding: 0 var(--pad-x);
  overflow-x: auto;
  scrollbar-width: none;
  transition: max-height 200ms var(--ease), opacity 140ms var(--ease),
    margin-top 200ms var(--ease);
}

.tag-strip::-webkit-scrollbar { display: none; }

.tag-strip-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.tag-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--cyan);
  opacity: 0.55;
}

.tag-chip:hover {
  color: var(--ink);
  background-color: var(--cyan-faint);
  box-shadow: inset 0 0 0 1px var(--line-cyan-strong);
}

/* 滚动后的收窄状态 */
.site-header[data-scrolled] { padding-top: 8px; padding-bottom: 8px; }

.site-header[data-scrolled] .brand-island,
.site-header[data-scrolled] .nav-island { padding-top: 4px; padding-bottom: 4px; }

.site-header[data-scrolled] .brand-mark { width: 28px; height: 28px; font-size: 11px; }

.site-header[data-scrolled] .tag-strip {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background-color: var(--deep);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(
    92deg,
    transparent 0%,
    rgba(47, 227, 208, 0.55) 22%,
    rgba(255, 107, 74, 0.35) 58%,
    rgba(47, 227, 208, 0.12) 80%,
    transparent 100%
  );
}

.footer-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 56px var(--pad-x) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.9fr);
  gap: 56px;
}

.footer-brand-line {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;
}

.footer-brand-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  max-width: none;
}

.footer-status {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.footer-status li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 1px;
  background-color: rgba(47, 227, 208, 0.5);
  transition: width var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 19px;
}

.footer-links a:hover::before { width: 12px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-item {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 78ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-icp,
.footer-copy { max-width: none; }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cyan);
  background-color: rgba(16, 27, 51, 0.94);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { box-shadow: inset 0 0 0 1px var(--line-cyan-strong); }

.to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

/* ---------- 12. 通用组件 ---------- */
/* 面包屑 */
.breadcrumbs { margin: 28px 0 12px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

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

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(47, 227, 208, 0.45);
}

.breadcrumb-list a { color: var(--muted); }

.breadcrumb-list a:hover { color: var(--cyan); }

.breadcrumb-list [aria-current="page"] { color: var(--ink); }

/* 章节头 */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 26px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--coral);
  white-space: nowrap;
}

.section-title { margin: 0; max-width: none; }

.section-rule {
  position: relative;
  flex: 1 1 140px;
  height: 1px;
  min-width: 80px;
  background-image: linear-gradient(90deg, var(--line), transparent);
}

.section-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 84px;
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(47, 227, 208, 0.55) 0 6px,
    transparent 6px 12px
  );
}

/* 斜向轨迹分隔 */
.divider-slant {
  height: 1px;
  margin: 56px 0;
  background-image: linear-gradient(
    94deg,
    transparent 0%,
    rgba(47, 227, 208, 0.30) 35%,
    rgba(255, 107, 74, 0.22) 70%,
    transparent 100%
  );
}

/* 斜切面板 */
.panel {
  position: relative;
  padding: 22px 22px 20px;
  background-color: var(--panel);
  background-image: linear-gradient(140deg, rgba(47, 227, 208, 0.05), rgba(47, 227, 208, 0) 46%);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.panel:hover {
  box-shadow: inset 0 0 0 1px var(--line-cyan-strong);
  transform: translateY(-2px);
}

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

.panel--current {
  background-color: var(--panel-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 227, 208, 0.5),
    inset 0 0 34px rgba(47, 227, 208, 0.10);
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.panel-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  max-width: none;
}

.panel-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: none;
}

/* 首屏路径卡 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
}

.path-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* 索引列表 */
.index-list {
  border-top: 1px solid var(--line);
}

.index-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: baseline;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}

.index-item:hover { background-color: rgba(47, 227, 208, 0.06); }

.index-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
}

.index-key {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.index-meta {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* 关键索引词高亮 */
.key-index {
  padding: 0 3px;
  color: inherit;
  background-color: var(--cyan-wash);
  border-bottom: 1px solid rgba(47, 227, 208, 0.45);
}

/* 视觉容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--panel-deep);
  background-image: linear-gradient(160deg, rgba(47, 227, 208, 0.07), rgba(11, 18, 32, 0) 60%);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.media-frame img,
.media-frame svg,
.media-frame video,
.media-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 70ch;
}

/* 页面级纹理绘制宿主 */
.visual-block {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background-color: var(--panel-deep);
  background-image:
    linear-gradient(rgba(47, 227, 208, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 227, 208, 0.06) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  box-shadow: inset 0 0 0 1px var(--line-cyan);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(47, 227, 208, 0.65), transparent);
  opacity: 0.7;
}

.visual-legend {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 状态 */
.status-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  background-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-wash);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 163, 92, 0.35);
}

.badge-rev {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background-color: var(--cyan-faint);
  box-shadow: inset 0 0 0 1px var(--line-cyan);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1279px) {
  :root { --pad-x: 22px; }

  .nav-island { padding-left: 14px; }

  .nav-link { padding: 8px 9px; font-size: 13px; }

  .nav-actions .btn-ghost { display: none; }

  .footer-top { gap: 40px; }
}

@media (max-width: 1023px) {
  .site-header { padding-top: 10px; }

  .header-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand-island { align-self: flex-start; }

  .nav-island {
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
  }

  .nav-toggle {
    order: 1;
    display: inline-flex;
    margin-left: auto;
  }

  .nav-panel {
    order: 2;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .nav-island[data-open] .nav-panel { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link[aria-current="page"]::after {
    left: 8px;
    right: auto;
    bottom: 6px;
    width: 26px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-actions .btn-ghost { display: inline-flex; }

  .tag-strip { margin-top: 12px; padding-bottom: 4px; }

  .split,
  .split--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .path-card { grid-column: span 6; }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --pad-x: 18px; }

  body { font-size: 15.5px; }

  .section { margin: 56px 0; }

  .divider-slant { margin: 40px 0; }

  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }

  .path-card { grid-column: span 12; }

  .index-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .index-meta {
    grid-column: 2 / -1;
    text-align: left;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-contact { grid-template-columns: minmax(0, 1fr); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 479px) {
  .brand-sub { display: none; }

  .brand-island { padding: 8px 14px; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .panel { padding: 18px 16px; }

  .nav-actions .btn { width: 100%; }
}

/* ---------- 14. 动效偏好 ---------- */
@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;
  }

  .panel:hover,
  .btn-primary:hover { transform: none; }
}
