/* ==========================================================================
   LQYPack · 礼轻昀科技 设计系统 v6
   现代浅色主题（白/浅灰底 + 专业蓝主色）· 精致克制 · Linear/Vercel 质感
   ========================================================================== */

/* ==========================================================================
   1. 设计令牌 Design Tokens
   ========================================================================== */
:root {
  /* ====== Surface 四级（浅色） ====== */
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-3: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;

  /* ====== Primary 系（专业蓝） ====== */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-subtle: rgba(37, 99, 235, 0.10);

  /* ====== Accent 系（克制紫） ====== */
  --accent: #7C3AED;
  --accent-subtle: rgba(124, 58, 237, 0.10);

  /* ====== Text ====== */
  --text: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  /* ====== 语义色（文字安全 -700） ====== */
  --success: #15803D;
  --success-subtle: rgba(21, 128, 61, 0.10);
  --warning: #B45309;
  --warning-subtle: rgba(180, 83, 9, 0.10);
  --danger: #B91C1C;
  --danger-subtle: rgba(185, 28, 28, 0.10);
  --wechat: #07C160;
  --wechat-hover: #06AD56;
  --wechat-subtle: rgba(7, 193, 96, 0.12);
  --gold: #E3B34C;
  --gold-subtle: rgba(227, 179, 76, 0.16);
  --gold-strong: #A16207;

  /* ====== Border ====== */
  --border-line: #E2E8F0;
  --border-strong: #CBD5E1;

  /* ====== 旧变量兼容映射 ====== */
  --color-bg: var(--bg);
  --color-bg-2: var(--bg-2);
  --color-bg-3: var(--bg-3);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-primary-light: var(--primary-subtle);
  --color-accent: var(--accent);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--text-muted);
  --color-text-muted: var(--text-dim);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-danger: var(--danger);
  --color-border: var(--border-line);
  --color-border-light: rgba(203, 213, 225, 0.6);

  /* ====== 字体 ====== */
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  --font-family-base: var(--font-sans);

  /* ====== 字号层级 ====== */
  --fs-hero: clamp(40px, 5.2vw, 64px);
  --fs-h1: clamp(30px, 3.4vw, 40px);
  --fs-h2: clamp(24px, 2.8vw, 32px);
  --fs-h3: clamp(19px, 2vw, 22px);
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;

  /* ====== 间距 4px 倍数 ====== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* 旧命名兼容映射 */
  --space-xs: var(--space-2);
  --space-sm: var(--space-3);
  --space-md: var(--space-4);
  --space-lg: var(--space-5);
  --space-xl: var(--space-6);
  --space-2xl: var(--space-8);
  --space-3xl: var(--space-12);
  --space-4xl: var(--space-16);
  --space-5xl: var(--space-20);
  --space-6xl: 5rem;

  /* ====== 圆角（精致克制 8-16px） ====== */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 999px;

  /* ====== 阴影（冷灰低透明，浅色适配） ====== */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-2xl: 0 24px 48px -12px rgba(15, 23, 42, 0.16), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-xl: var(--shadow-2xl);

  /* 旧 glow 变量映射（浅色柔和投影） */
  --glow-primary: 0 4px 8px -2px rgba(37, 99, 235, 0.20), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --glow-accent: 0 12px 24px -6px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.06);

  /* ====== Focus ring ====== */
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.28);

  /* ====== 过渡 ====== */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 360ms;
  --transition-fast: var(--dur-fast) var(--ease);
  --transition-base: var(--dur) var(--ease);
  --transition-slow: var(--dur-slow) var(--ease);

  /* ====== 玻璃兼容映射（浅色半透明白） ====== */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.90);
  --glass-bg-dark: var(--bg-2);
  --glass-border: rgba(226, 232, 240, 0.9);
  --glass-border-light: rgba(226, 232, 240, 0.6);
  --glass-border-strong: rgba(203, 213, 225, 0.9);

  /* ====== Navbar ====== */
  --navbar-height: 68px;

  /* ====== Container ====== */
  --container-max: 1200px;
  --container-padding: 24px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(37, 99, 235, 0.04), transparent 55%),
    linear-gradient(rgba(248, 250, 252, 0.80), rgba(241, 245, 249, 0.88)),
    url("../assets/bg-chinese-room.jpg");
  background-repeat: no-repeat;
  background-position: top center, top center, center center;
  background-size: auto, auto, cover;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--primary);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  padding: 2px 6px;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

pre {
  padding: var(--space-4);
  background: var(--bg-3);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  overflow-x: auto;
}

/* ====== Focus Visible (WCAG 2.1 AA) ====== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ====== 滚动条 ====== */
* {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
  transition: background-color var(--dur-fast) var(--ease);
}

*::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ====== Selection ====== */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--text);
}

/* ==========================================================================
   3. Navbar 导航栏
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.90);
  border-bottom-color: var(--border-line);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--text);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-text {
  white-space: nowrap;
}

/* ====== 汉堡菜单按钮 ====== */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.hamburger {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: background-color var(--dur-fast) var(--ease);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease),
              top var(--dur) var(--ease);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-menu.open + .nav-toggle .hamburger,
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ====== Nav Menu ====== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-purchase {
  background: #E3B34C !important;
  color: #0F172A !important;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

.nav-purchase:hover {
  background: #EDBE55 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(227, 179, 76, 0.38);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px !important;
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: var(--radius) !important;
  transition: background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease) !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-cta.active::after {
  display: none;
}

/* ====== Nav Overlay (移动端) ====== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   4. Hero 首屏
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--navbar-height) + var(--space-16));
  padding-bottom: var(--space-20);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% -10%, rgba(37, 99, 235, 0.06), transparent 70%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 30% at 80% 20%, rgba(124, 58, 237, 0.05), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: var(--container-padding);
  margin-left: max(0px, calc((100vw - var(--container-max)) / 2));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* ====== 通用按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.20);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.20);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: rgba(37, 99, 235, 0.30);
  color: var(--text);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-xl);
}

/* ====== Hero Stats ====== */
.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* ====== Hero Visual ====== */
.hero-visual {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding-right: var(--container-padding);
  margin-right: max(0px, calc((100vw - var(--container-max)) / 2));
}

.app-preview {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-line);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}

.app-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-line);
}

.dot {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.preview-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-left: 0;
}

.preview-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 360px;
}

.preview-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border-line);
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  padding: 9px 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.sidebar-item:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
}

.preview-main {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.preview-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border-line);
}

.card-header {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-input {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-line);
}

.preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius);
  margin-top: var(--space-2);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ====== Scroll Hint ====== */
.scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-dim);
  font-size: var(--fs-xs);
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   5. 通用 Section & Container
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-20) 0;
  position: relative;
}

.features,
.docs {
  background: var(--bg-2);
}

.about,
.changelog,
.download {
  background: var(--bg-3);
}

.footer {
  background: var(--bg);
}

/* ====== Section Header ====== */
.section-header {
  max-width: 680px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   6. Features 功能特性
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.28);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}

.icon-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  border-radius: inherit;
}

.icon-bg-blue { background: var(--primary-subtle); }
.icon-bg-green { background: var(--success-subtle); }
.icon-bg-orange { background: var(--gold-subtle); }
.icon-bg-purple { background: var(--accent-subtle); }
.icon-bg-pink { background: var(--danger-subtle); }
.icon-bg-cyan { background: var(--gold-subtle); }

.icon-svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-icon:has(.icon-bg-green) .icon-svg { color: var(--success); }
.feature-icon:has(.icon-bg-orange) .icon-svg { color: var(--warning); }
.feature-icon:has(.icon-bg-purple) .icon-svg { color: var(--accent); }
.feature-icon:has(.icon-bg-pink) .icon-svg { color: var(--danger); }
.feature-icon:has(.icon-bg-cyan) .icon-svg { color: var(--gold-strong); }

.feature-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-list li::after {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

/* ==========================================================================
   7. About 关于我们
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-16);
}

.about-block {
  margin-bottom: var(--space-6);
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-subtitle {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.about-paragraph {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ====== Tech Stack ====== */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.stack-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.28);
}

.stack-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stack-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stack-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.stack-desc {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.3;
}

/* ====== About Contact Grid ====== */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.manager-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.manager-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manager-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.manager-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.manager-card-role {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.manager-photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  background: var(--bg-2);
}

.manager-photo-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.manager-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manager-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #FFFFFF;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.manager-card-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

.manager-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--wechat);
  color: #0F172A;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.manager-card-btn:hover {
  background: var(--wechat-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.manager-card-btn svg {
  flex-shrink: 0;
}

.manager-card-note {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* ====== About Highlights ====== */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.highlight-item {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.highlight-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   8. Changelog 更新日志
   ========================================================================== */
.changelog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.changelog-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-btn.active {
  color: var(--primary);
  background: var(--primary-subtle);
  border-color: rgba(37, 99, 235, 0.28);
  font-weight: 600;
}

.changelog-stats {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ====== Timeline ====== */
.changelog-timeline {
  position: relative;
  padding-left: 36px;
}

.changelog-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-line);
  border-radius: 1px;
}

.version-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
  margin-bottom: var(--space-6);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.version-card::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-3);
  z-index: 1;
}

.version-card.type-minor::before {
  background: var(--success);
}

.version-card.type-patch::before {
  background: var(--gold);
}

.version-card.type-major::before {
  background: var(--accent);
}

.version-card.latest {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--surface) 40%);
  border-color: rgba(37, 99, 235, 0.28);
}

.version-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.version-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-line);
}

.version-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.version-date {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.version-type {
  margin-left: auto;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.type-badge.type-major {
  color: var(--accent);
  background: var(--accent-subtle);
}

.type-badge.type-minor {
  color: var(--success);
  background: var(--success-subtle);
}

.type-badge.type-patch {
  color: var(--gold-strong);
  background: var(--gold-subtle);
}

.version-highlights {
  margin-bottom: var(--space-4);
}

.version-highlights li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.version-highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 12px;
}

.version-changes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.change-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1px;
}

.change-tag.fix {
  color: var(--danger);
  background: var(--danger-subtle);
}

.change-tag.improve {
  color: var(--success);
  background: var(--success-subtle);
}

.change-tag.feature {
  color: var(--primary);
  background: var(--primary-subtle);
}

.change-tag.ui {
  color: var(--gold-strong);
  background: var(--gold-subtle);
}

.changelog-more {
  text-align: center;
  margin-top: var(--space-8);
}

/* ====== Loading ====== */
.changelog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   9. Docs 使用文档
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-7);
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-4));
}

.docs-nav-inner {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
}

.docs-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-left-color var(--dur-fast) var(--ease);
}

.docs-nav-item:hover {
  background: var(--bg-2);
  color: var(--text);
}

.docs-nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary-hover);
  border-left-color: var(--primary);
  font-weight: 600;
}

.docs-nav-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.docs-nav-item.active .docs-nav-icon {
  background: rgba(37, 99, 235, 0.16);
  color: var(--primary);
}

.docs-nav-text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

/* ====== Docs Content ====== */
.docs-panel {
  display: none;
}

.docs-panel.active {
  display: block;
}

.docs-panel-header {
  margin-bottom: var(--space-6);
}

.docs-panel-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.docs-panel-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ====== Accordion ====== */
.docs-accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease);
}

.accordion-item:has(.accordion-header.active) {
  border-color: rgba(37, 99, 235, 0.28);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur) var(--ease);
}

.accordion-header:hover {
  background: var(--surface-2);
}

.accordion-header.active {
  background: var(--primary-subtle);
}

.accordion-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  padding-right: var(--space-4);
}

.accordion-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: transform var(--dur) var(--ease),
              color var(--dur-fast) var(--ease);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}

.accordion-header.active + .accordion-body {
  max-height: 1200px;
}

.accordion-content {
  padding: 0 16px 16px;
}

.accordion-content p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

/* ====== Docs Features Grid ====== */
.docs-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.docs-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.docs-feature-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.docs-feature-item strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.docs-feature-item span:not(.docs-feature-icon) {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.4;
}

.docs-feature-item > div:last-child {
  min-width: 0;
}

/* ====== Docs Steps ====== */
.docs-steps {
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-5);
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.step-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 3px;
}

/* ====== Docs Tip ====== */
.docs-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--warning-subtle);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  margin-top: var(--space-4);
}

.tip-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

.docs-tip > span:last-child {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== Docs List ====== */
.docs-list {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.docs-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  list-style: none;
}

.docs-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 600;
}

.docs-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ====== Docs Table ====== */
.docs-table {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.docs-table-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px;
  border-bottom: 1px solid var(--border-line);
}

.docs-table-row:last-child {
  border-bottom: none;
}

.docs-table-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  width: 40%;
  min-width: 120px;
}

.docs-table-value {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ====== Docs Req List ====== */
.docs-req-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.docs-req-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}

.req-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req-value {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.4;
}

/* ====== Log Badges ====== */
.docs-log-levels {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.log-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.log-info {
  color: var(--primary);
  background: var(--primary-subtle);
}

.log-warn {
  color: var(--warning);
  background: var(--warning-subtle);
}

.log-error {
  color: var(--danger);
  background: var(--danger-subtle);
}

/* ====== Docs Compare ====== */
.docs-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.compare-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
}

.compare-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.compare-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.compare-list li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0;
}

.compare-pro,
.compare-con {
  position: relative;
  padding-left: 22px;
}

.compare-pro::before,
.compare-con::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}

.compare-pro::before {
  content: "\2713";
  color: var(--success);
}

.compare-con::before {
  content: "\2715";
  color: var(--warning);
}

.compare-pro { color: var(--success); }
.compare-con { color: var(--warning); }

/* ==========================================================================
   10. Download 下载区
   ========================================================================== */
.download-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-20);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-line);
  overflow: hidden;
  text-align: center;
}

.download-bg {
  display: none;
}

.download-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.download-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.download-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.download-info {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.version-tag,
.platform-tag,
.size-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border-radius: var(--radius-full);
}

.download-actions {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

.download-note {
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   11. Footer 页脚
   ========================================================================== */
.footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--border-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr 1.5fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.footer-logo:hover {
  color: var(--text);
}

.footer-desc {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-heading {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
  letter-spacing: 0.02em;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.footer-list li {
  padding: 6px 0;
}

.footer-list a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
  line-height: 1.4;
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.qrcode-wrapper {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.qrcode-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qrcode-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  margin: 0 auto;
  background: #fff;
}

.qrcode-tip {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid var(--border-line);
  padding-top: var(--space-5);
  margin-top: var(--space-10);
}

.copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   12. Back to Top 返回顶部
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease),
              visibility var(--dur) var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ==========================================================================
   13. 下载流程页 Download Page
   ========================================================================== */
.download-page {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.download-page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.download-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-2);
}

.download-page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 35% at 50% -5%, rgba(37, 99, 235, 0.08), transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(124, 58, 237, 0.05), transparent 60%);
}

.download-page-glow-1,
.download-page-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.download-page-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.12);
  top: -100px;
  left: 10%;
}

.download-page-glow-2 {
  width: 350px;
  height: 350px;
  background: rgba(124, 58, 237, 0.08);
  bottom: -80px;
  right: 15%;
}

.download-page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-7);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.download-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.download-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.download-page-back:hover {
  background: var(--surface);
}

.download-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

/* ====== Download Progress ====== */
.download-progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-progress-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-line);
  text-align: center;
}

.download-progress-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-2xl);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.download-progress-icon.success {
  background: var(--success-subtle);
  color: var(--success);
}

.download-progress-title {
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.download-progress-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-7);
  line-height: 1.5;
}

/* ====== Progress Bar ====== */
.download-progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-7);
}

.download-progress-bar {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.download-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius-full);
  transition: width 0.15s linear;
}

.download-progress-bar-shine {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: shine 1.6s linear infinite;
  border-radius: var(--radius-full);
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(600%); }
}

.download-progress-percent {
  width: 52px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ====== Progress Info Grid ====== */
.download-progress-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.download-progress-stat {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.download-progress-stat .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-progress-stat .stat-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

/* ====== Progress Tips ====== */
.download-progress-tips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.download-progress-tips .tip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.download-progress-tips .tip-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   14. 下载成功弹窗 & 通用弹窗
   ========================================================================== */
.download-success-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.download-success-modal.active {
  opacity: 1;
  visibility: visible;
}

.download-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.download-success-modal .modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-line);
  text-align: center;
  transform: scale(0.93);
  transition: transform var(--dur-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-success-modal.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-2xl);
  background: var(--success-subtle);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.modal-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.modal-btn-secondary {
  background: var(--surface-2);
  color: var(--text-muted);
}

.modal-btn-secondary:hover {
  background: var(--bg-3);
  color: var(--text);
}

.modal-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.modal-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

/* ====== 通用弹窗 Overlay ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}

.modal-overlay.active,
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border-line);
  text-align: center;
  transform: scale(0.93);
  transition: transform var(--dur-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container,
.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.modal-close:hover {
  background: var(--bg-3);
  color: var(--text);
}

.modal-overlay .modal-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
}

.modal-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  margin-top: var(--space-5);
}

.modal-email {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

.modal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}

.modal-copy-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.modal-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: var(--space-4);
  padding: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}

.modal-mail-btn:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

/* ====== QR Code Modal ====== */
.qrcode-modal-img {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  margin: var(--space-5) auto var(--space-4);
  background: #fff;
}

.qrcode-modal-tip {
  font-size: var(--fs-sm);
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.qrcode-modal-hint {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.5;
}

/* ====== Manager Modal ====== */
.manager-modal-img {
  width: 100%;
  max-width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: var(--space-5) auto var(--space-4);
  display: block;
}

.manager-modal-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.manager-modal-role {
  font-size: var(--fs-sm);
  color: var(--primary);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.manager-modal-tip {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  line-height: 1.5;
}

.manager-modal-hint {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   15. Toast 通知
   ========================================================================== */
.toast-message {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 20000;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-line);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease),
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.25s var(--ease);
  white-space: nowrap;
  max-width: 90vw;
}

.toast-message.show,
.toast-message.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-message.text-primary,
.toast-message[data-type="success"] {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.20);
}

/* ==========================================================================
   16. AOS & Reveal 入场动画
   ========================================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease,
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos][data-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-delay="500"] { transition-delay: 0.5s; }

.feature-card,
.stack-item,
.version-card,
.highlight-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-card.aos-animate,
.stack-item.aos-animate,
.version-card.aos-animate,
.highlight-item.aos-animate,
.features-grid .feature-card,
.tech-stack .stack-item,
.changelog-timeline .version-card,
.about-highlights .highlight-item {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   17. Ripple 涟漪效果
   ========================================================================== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  animation: ripple-anim 0.6s ease-out forwards;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   18. Scroll Progress 滚动进度条（可选）
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   19. Policy Page (privacy-policy / user-agreement)
   ========================================================================== */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border-line);
}

.page-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.topbar-logo:hover {
  color: var(--text);
}

.topbar-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}

.topbar-back:hover {
  color: var(--text);
  background: var(--border-line);
}

.policy-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-line);
}

.policy-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-subtle);
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.policy-wrapper h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.update-time {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.policy-wrapper h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
  scroll-margin-top: 84px;
  line-height: 1.3;
}

.policy-wrapper h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 12px;
  color: var(--text);
  scroll-margin-top: 84px;
  line-height: 1.3;
}

.policy-wrapper p,
.policy-wrapper ul,
.policy-wrapper ol {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.policy-wrapper ul,
.policy-wrapper ol {
  padding-left: 26px;
  list-style: initial;
}

.policy-wrapper li {
  margin-bottom: 8px;
}

.policy-wrapper ul li::marker {
  color: var(--primary);
}

.policy-wrapper strong {
  color: var(--text);
  font-weight: 600;
}

.highlight {
  background: var(--bg-3);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
}

.list-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 10px;
}

/* 简化版页脚 */
.page-footer {
  border-top: 1px solid var(--border-line);
  background: var(--surface);
}

.page-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.page-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.page-footer-links a:hover {
  color: var(--text);
}

/* ==========================================================================
   20. 响应式断点 Responsive
   ========================================================================== */

/* ====== ≤1024px Footer 缩为 2 列 ====== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer-qrcode {
    grid-column: span 2;
    align-items: center;
  }
}

/* ====== ≤992px Hero 单列 / Feature 2 列 ====== */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding-top: calc(var(--navbar-height) + var(--space-12));
    padding-bottom: var(--space-16);
    min-height: auto;
  }

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .app-preview {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .docs-nav {
    position: static;
  }

  .docs-nav-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====== ≤768px 主要断点 ====== */
@media (max-width: 768px) {
  /* 移动端背景降级：取消 fixed 附着避免 iOS 卡顿与缩放异常 */
  body {
    background-attachment: scroll;
  }

  :root {
    --navbar-height: 60px;
    --container-padding: 16px;

    /* 字号缩小 2 级 */
    --fs-hero: clamp(32px, 8vw, 44px);
    --fs-h1: clamp(26px, 6vw, 34px);
    --fs-h2: clamp(22px, 5vw, 28px);
    --fs-h3: clamp(17px, 4vw, 20px);
    --fs-body: 14px;
    --fs-sm: 12px;

    /* 间距缩小 */
    --space-16: 48px;
    --space-20: 56px;
  }

  section {
    padding: var(--space-16) 0;
  }

  /* Navbar 移动端 */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    right: -100%;
    bottom: 0;
    width: 80%;
    max-width: 360px;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-7);
    background: var(--bg-3);
    border-left: 1px solid var(--border-line);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    transition: right 0.35s var(--ease);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--fs-body);
    justify-content: flex-start;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
  }

  .nav-cta {
    justify-content: center;
    margin-top: var(--space-3);
  }

  /* Hero */
  .hero-badge {
    margin-bottom: var(--space-5);
  }

  .hero-title {
    margin-bottom: var(--space-5);
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: var(--space-6);
  }

  .hero-desc br {
    display: none;
  }

  .hero-actions {
    gap: var(--space-3);
    margin-bottom: var(--space-8);
  }

  .hero-stats {
    gap: var(--space-6);
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-suffix {
    font-size: 17px;
  }

  .scroll-hint {
    display: none;
  }

  .preview-body {
    grid-template-columns: 120px 1fr;
    min-height: 300px;
  }

  /* Section */
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: var(--fs-h2);
  }

  /* Features */
  .features-grid {
    gap: var(--space-4);
  }

  .feature-card {
    padding: var(--space-5);
  }

  /* About */
  .about-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .manager-card {
    padding: var(--space-5);
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  /* Changelog */
  .changelog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .changelog-timeline {
    padding-left: 28px;
  }

  .changelog-timeline::before {
    left: 5px;
  }

  .version-card::before {
    left: -27px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 3px var(--bg-3);
  }

  .version-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .version-type {
    margin-left: 0;
  }

  /* Docs */
  .docs-nav-inner {
    grid-template-columns: 1fr 1fr;
  }

  .docs-panel-title {
    font-size: var(--fs-h2);
  }

  .docs-features-grid {
    grid-template-columns: 1fr;
  }

  .docs-req-list {
    grid-template-columns: 1fr;
  }

  .docs-compare {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .docs-table-row {
    flex-direction: column;
    gap: var(--space-1);
  }

  .docs-table-label {
    width: 100%;
  }

  /* Download */
  .download-card {
    padding: var(--space-12) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .download-title {
    font-size: 26px;
  }

  .download-desc {
    font-size: 15px;
  }

  .download-info {
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }

  /* Footer */
  .footer {
    padding-top: var(--space-12);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-qrcode {
    grid-column: span 1;
  }

  .footer-bottom {
    padding-top: var(--space-5);
    margin-top: var(--space-8);
  }

  /* Download Page */
  .download-page-content {
    padding: var(--space-5);
  }

  .download-progress-card {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .download-progress-icon {
    width: 96px;
    height: 96px;
  }

  .download-progress-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-container,
  .download-success-modal .modal-content {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .manager-modal-img {
    max-width: 260px;
    height: 340px;
  }

  .qrcode-modal-img {
    width: 200px;
    height: 200px;
  }

  /* Policy Page */
  .policy-wrapper {
    padding: 32px 18px 64px;
  }

  .policy-wrapper h1 { font-size: 26px; }
  .policy-wrapper h2 { font-size: 19px; margin-top: 28px; }
  .policy-wrapper h3 { font-size: 15px; }
  .policy-wrapper p,
  .policy-wrapper ul,
  .policy-wrapper ol { font-size: 14px; }
}

/* ====== ≤480px 超小屏 ====== */
@media (max-width: 480px) {
  :root {
    --container-padding: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }

  .docs-nav-inner {
    grid-template-columns: 1fr;
  }

  .docs-features-grid {
    grid-template-columns: 1fr;
  }

  .docs-req-list {
    grid-template-columns: 1fr;
  }

  .docs-compare {
    grid-template-columns: 1fr;
  }

  .download-progress-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    text-align: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   21. 无障碍 Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }

  .feature-card,
  .stack-item,
  .version-card,
  .highlight-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-hint {
    animation: none !important;
  }

  .loading-spinner {
    animation: none !important;
  }

  .download-progress-bar-shine {
    animation: none !important;
  }

  .scroll-arrow {
    animation: none !important;
  }
}

/* ==========================================================================
   22. 工具类 Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.h-full { height: 100%; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 内联style fallback变量 */
:root { --color-bg-white: var(--surface); }
body { --color-primary-light: var(--primary-subtle); }

/* ========== v5 缺失类补齐（last patch） ========== */
.about-content { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: stretch; }
@media (max-width: 992px) { .about-content { grid-template-columns: 1fr; } }
.about-text { display: flex; flex-direction: column; gap: var(--space-5); }
.about-visual { display: flex; align-items: center; }

/* 页脚链接类：作为按钮语义入口样式 */
.feedback-link, .business-link { color: inherit; text-decoration: none; cursor: pointer; }
.feedback-link:hover, .business-link:hover { color: var(--primary); }

/* 文档面板 main region（占位 flex:1） */
.docs-content { min-width: 0; }

/* 下载流程 decorative glows → 与暖光顶光合并为 display:none（保持无 AI 装饰） */
.download-page-glow { display: none; }

/* 通用 各 modal 语义 subclass 与 body 宽度约束 */
.qrcode-modal .modal-container { max-width: 360px; padding: var(--space-6); }
.manager-modal .modal-container { max-width: 380px; padding: var(--space-6); }

/* ==========================================================================
   23. v6.1 精修补丁（微交互 / 状态统一 / 排版细节）
   ========================================================================== */

/* --- 按压反馈：通用按钮轻微下压 --- */
.btn:active {
  transform: translateY(1px);
}

.filter-btn:active,
.docs-nav-item:active,
.accordion-header:active,
.modal-btn:active,
.modal-copy-btn:active,
.manager-card-btn:active {
  transform: scale(0.98);
}

/* --- 卡片 hover 边框统一（发丝边框 → 蓝调） --- */
.highlight-item:hover {
  border-color: rgba(37, 99, 235, 0.28);
}

/* --- 功能图标 hover 微放大 --- */
.feature-card:hover .feature-icon {
  transform: scale(1.06);
}

/* --- 文档面板切换入场 --- */
.docs-panel.active {
  animation: panelIn var(--dur) var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* --- 标题排版：均衡换行（渐进增强） --- */
.hero-title,
.section-title,
.download-title,
.docs-panel-title {
  text-wrap: balance;
}

/* --- 客户经理卡片：悬停时浮现「点击查看大图」提示（触屏设备保持常显） --- */
@media (hover: hover) and (pointer: fine) {
  .manager-photo-hint {
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease);
  }

  .manager-photo-wrapper:hover .manager-photo-hint,
  .manager-photo-wrapper:focus-visible .manager-photo-hint {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
