/* ==========================================================================
   LitEntropy 官网 · 设计系统
   纯静态、零外部依赖：不引用任何 CDN / 网络字体 / 第三方脚本。
   主题：浅色「极光」为默认，可切换深色（跟随系统 + 手动记忆）。
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  color-scheme: light;

  /* 品牌色 */
  --navy: #0b1626;
  --navy-2: #17304f;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-soft: #dbe7ff;
  --teal: #00b8a9;
  --teal-2: #2ed3c0;
  --amber: #e2a93c;
  --amber-2: #ffd98a;

  /* 语义色（浅色） */
  --bg: #f3f7fd;
  --bg-deep: #e8f0fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.55);
  --border: rgba(23, 48, 79, 0.1);
  --border-strong: rgba(23, 48, 79, 0.18);
  --text: #0e1b2e;
  --text-2: #33445f;
  --muted: #5f7391;
  --accent: var(--blue);
  --accent-contrast: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 40, 72, 0.05), 0 4px 14px rgba(17, 40, 72, 0.05);
  --shadow-md: 0 10px 30px rgba(23, 48, 79, 0.08), 0 2px 8px rgba(23, 48, 79, 0.05);
  --shadow-lg: 0 24px 60px rgba(23, 48, 79, 0.14);
  --glow-teal: rgba(46, 211, 192, 0.35);
  --glow-blue: rgba(59, 130, 246, 0.28);
  --glow-amber: rgba(226, 169, 60, 0.26);
  --grid-line: rgba(23, 48, 79, 0.055);

  /* 尺寸 */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-h: 68px;

  /* 字体（全部使用本机字体，离线可用） */
  --font-sans: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #060d18;
  --bg-deep: #08172b;
  --surface: rgba(16, 30, 51, 0.68);
  --surface-solid: #101e33;
  --surface-2: rgba(20, 37, 62, 0.55);
  --border: rgba(148, 180, 214, 0.14);
  --border-strong: rgba(148, 180, 214, 0.26);
  --text: #e8f0fb;
  --text-2: #c2d1e6;
  --muted: #8fa3bf;
  --accent: #5b9bff;
  --accent-contrast: #04101f;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --grid-line: rgba(148, 180, 214, 0.06);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}

a:hover {
  color: var(--blue-2);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

p {
  margin: 0 0 1em;
  color: var(--text-2);
}

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

li {
  margin: 0.28em 0;
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4rem 0;
}

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

::selection {
  background: rgba(59, 130, 246, 0.22);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  transform: translate(-50%, -160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

/* ---------- 3. 背景层：极光 + 网格 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
}

.bg-layer::before,
.bg-layer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}

.bg-layer::before {
  width: 62vw;
  height: 62vw;
  top: -22vw;
  right: -16vw;
  background: radial-gradient(circle at 50% 50%, var(--glow-teal), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.bg-layer::after {
  width: 58vw;
  height: 58vw;
  bottom: -24vw;
  left: -18vw;
  background: radial-gradient(circle at 50% 50%, var(--glow-blue), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5vw, 5vh, 0) scale(1.12);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  to {
    transform: translate3d(4vw, -4vh, 0) scale(1);
  }
}

/* ---------- 4. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

main {
  display: block;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(36px, 5vw, 64px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--blue-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 0;
}

.grad-text {
  background: linear-gradient(112deg, var(--teal) 0%, var(--blue-2) 46%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. 页头 / 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  flex: 0 0 auto;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(11, 22, 38, 0.22);
}

.brand .brand-sub {
  display: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--text-2);
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--blue-soft);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: transform 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue) 55%, #1e4fd8 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .hero-line-2 {
  display: block;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.78;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-sub strong {
  color: var(--text-2);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex: 0 0 auto;
}

/* 降熵动效舞台 */
.entropy-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  max-width: 520px;
  margin-left: auto;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .entropy-stage {
  background: linear-gradient(160deg, rgba(23, 48, 79, 0.5), rgba(6, 13, 24, 0.4));
}

.entropy-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 72% 18%, var(--glow-teal), transparent 58%);
  pointer-events: none;
}

#entropy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.stage-caption b {
  color: var(--teal);
  font-weight: 650;
}

/* ---------- 8. 数据带 ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat {
  padding: 26px 24px;
  background: var(--surface-solid);
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- 9. 卡片 ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid > *,
.split > *,
.flow > *,
.stat-band > * {
  min-width: 0;
}

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

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

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

.card {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-2), var(--blue-2), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--blue-soft);
  border: 1px solid var(--border);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.teal {
  color: #00897b;
  background: rgba(0, 184, 169, 0.12);
}

[data-theme="dark"] .card-icon.teal {
  color: var(--teal-2);
  background: rgba(46, 211, 192, 0.14);
}

.card-icon.amber {
  color: #b07d1c;
  background: rgba(226, 169, 60, 0.14);
}

[data-theme="dark"] .card-icon.amber {
  color: var(--amber-2);
  background: rgba(226, 169, 60, 0.16);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--muted);
}

.card-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--blue-soft);
  border-radius: var(--radius-pill);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.87rem;
  font-weight: 600;
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* ---------- 10. 工作流 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--blue-soft);
  border: 1px solid var(--border);
}

.flow-step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.flow-step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.66;
  color: var(--muted);
}

/* ---------- 11. 截图 ---------- */
.shots-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.shots-tab {
  padding: 8px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.shots-tab:hover {
  color: var(--text);
}

.shots-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

[data-theme="dark"] .shots-tab[aria-selected="true"] {
  color: #04101f;
}

.shots-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shot-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
  cursor: zoom-in;
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(23, 48, 79, 0.08);
  pointer-events: none;
}

.shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.shot figcaption b {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(6, 13, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-cap {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 12. 分栏（WPS / 合规） ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-2);
}

.check-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--teal);
}

/* ---------- 12b. 参考文献表演示（首页 WPS 区） ---------- */
.refcard {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  overflow: hidden;
}

.refcard::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-teal), transparent 68%);
  pointer-events: none;
}

.refcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.refcard-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.refcard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.refcard-tabs span {
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.refcard-tabs .is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.26);
}

[data-theme="dark"] .refcard-tabs .is-active {
  color: #04101f;
}

.ref-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 1.35em;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-2);
}

.ref-list li {
  margin-bottom: 12px;
  padding-left: 2px;
}

.ref-list li::marker {
  color: var(--accent);
  font-weight: 600;
}

.ref-list em {
  font-style: italic;
}

.refcard-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.8rem;
  color: var(--muted);
}

.refcard-foot b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- 12c. 功能页内嵌截图 ---------- */
.module-shot {
  margin: 22px 0 0;
  max-width: 460px;
}

.module-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}

.module-shot.is-portrait {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.module-shot figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 13. 提示条 / 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 650;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  white-space: nowrap;
}

.badge-teal {
  color: #00897b;
  background: rgba(0, 184, 169, 0.12);
  border-color: rgba(0, 184, 169, 0.28);
}

[data-theme="dark"] .badge-teal {
  color: var(--teal-2);
}

.badge-amber {
  color: #96660f;
  background: rgba(226, 169, 60, 0.14);
  border-color: rgba(226, 169, 60, 0.3);
}

[data-theme="dark"] .badge-amber {
  color: var(--amber-2);
}

.badge-blue {
  color: var(--accent);
  background: var(--blue-soft);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  background: var(--surface);
  font-size: 0.92rem;
}

.callout p {
  margin: 0;
  color: var(--text-2);
}

.callout strong {
  color: var(--text);
}

.callout.info {
  border-left-color: var(--blue-2);
}

/* ---------- 14. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-2);
}

td code,
p code,
li code {
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--blue-soft);
  color: var(--text);
}

/* ---------- 15. 版本时间线 ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--teal-2), var(--blue-2), transparent);
  opacity: 0.5;
}

.timeline > li {
  position: relative;
  margin: 0 0 26px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.version-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.version-head time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- 16. 法务正文 ---------- */
.legal {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
}

.legal-card {
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-card h2 {
  margin-top: 2.2em;
  font-size: 1.3rem;
  padding-top: 0.2em;
}

.legal-card h2:first-of-type {
  margin-top: 1em;
}

.legal-card h3 {
  margin-top: 1.6em;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  color: var(--text-2);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.86rem;
  color: var(--muted);
}

.legal-meta b {
  color: var(--text);
  font-weight: 600;
}

.legal-toc {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  margin-bottom: 12px;
}

.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.legal-toc a {
  color: var(--text-2);
}

.legal-toc a:hover {
  color: var(--accent);
}

/* ---------- 17. 内页 Hero ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(24px, 4vw, 44px);
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 14px;
}

.page-hero .lead {
  max-width: 62ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

/* ---------- 18. 功能页模块 ---------- */
.module {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
}

.module:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.module-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.module-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--blue-soft);
  border: 1px solid var(--border);
}

.feature-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-2col li {
  display: flex;
  gap: 10px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.feature-2col svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--blue-2);
}

.feature-2col b {
  font-weight: 600;
  color: var(--text);
}

/* ---------- 19. 下载页 ---------- */
.dl-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.dl-card + .dl-card {
  margin-top: 14px;
}

.dl-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-2), var(--blue-2));
  color: #04101f;
  flex: 0 0 auto;
}

.dl-icon svg {
  width: 26px;
  height: 26px;
}

.dl-body {
  flex: 1 1 260px;
  min-width: 0;
}

.dl-body h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.dl-meta code {
  font-size: 0.78rem;
}

.hash {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.6;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.steps > li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--blue-soft);
  border: 1px solid var(--border);
}

/* ---------- 20. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

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

.footer-col li {
  margin: 0 0 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-2);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- 21. 出场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.no-anim .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .entropy-stage {
    margin: 0 auto;
    max-width: 440px;
  }

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

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

  .flow-step::after {
    display: none;
  }

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

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .split.reverse {
    direction: ltr;
  }

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

  .feature-2col {
    grid-template-columns: 1fr;
  }

  .legal-toc ol {
    columns: 1;
  }

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

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 12px 18px 18px;
    background: var(--surface-solid);
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .container,
  .header-inner {
    padding: 0 18px;
  }

  .brand .brand-sub {
    display: none;
  }

  .hero {
    padding-top: 32px;
  }

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

  .stat {
    padding: 20px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .shots-tabs {
    width: 100%;
  }

  .shots-tab {
    flex: 1;
    padding: 8px 10px;
  }

  .dl-card {
    padding: 20px;
  }

  .legal-card {
    padding: 20px 18px;
  }
}

/* ---------- 23. 无障碍 / 打印 ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .bg-layer,
  .bg-grid,
  .site-header,
  .site-footer,
  .lightbox,
  .cta-banner {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .legal-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
