/* ==========================================================================
   365Lab 计划表 - 主样式表
   设计风格：现代、清爽、专业，融合商务蓝与暖色调
   深度美化版：玻璃拟态、渐变动画、微交互、装饰元素
   ========================================================================== */

/* ---------- 设计令牌（CSS 变量） ---------- */
:root {
  /* 主色调 - 信赖感蓝 */
  --c-primary: #2563eb;
  --c-primary-dark: #1d4ed8;
  --c-primary-light: #3b82f6;
  --c-primary-soft: #dbeafe;
  --c-primary-50: #eff6ff;

  /* 辅助色 */
  --c-accent: #f59e0b;
  --c-accent-dark: #d97706;
  --c-success: #10b981;
  --c-danger: #ef4444;
  --c-danger-dark: #dc2626;
  --c-purple: #8b5cf6;

  /* 中性色 */
  --c-bg: #f8fafc;
  --c-bg-alt: #f1f5f9;
  --c-surface: #ffffff;
  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;

  /* 字体 */
  --ff-sans: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* 阴影 */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
  --sh-xl: 0 20px 50px rgba(15, 23, 42, 0.15);
  --sh-glow: 0 0 20px rgba(37, 99, 235, 0.15);
  --sh-glow-accent: 0 0 20px rgba(245, 158, 11, 0.15);

  /* 间距系统 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* 布局 */
  --header-h: 64px;
  --max-w: 1600px;
  --max-w-narrow: 800px;
  --max-w-content: 1200px;

  /* 过渡 */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--sp-3); }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--c-primary-light);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- 全局装饰背景 ---------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.03), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(16, 185, 129, 0.03), transparent);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.04), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(16, 185, 129, 0.03), transparent);
}

/* ---------- 工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

.container-content {
  max-width: var(--max-w-content);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.hidden { display: none !important; }

/* 跳转链接 - 无障碍 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-primary);
  color: white;
  padding: var(--sp-2) var(--sp-4);
  z-index: 2000;
  border-radius: 0 0 var(--r-md) 0;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 0;
  color: white;
}

/* ==========================================================================
   顶部导航 - 玻璃拟态增强
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  height: auto;
  min-height: var(--header-h);
  transition: all 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.82);
  border-bottom-color: rgba(51, 65, 85, 0.6);
}

/* 滚动时增强阴影 */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-text);
  flex-shrink: 0;
  transition: all var(--t-fast);
}

.logo:hover {
  color: var(--c-primary);
  transform: scale(1.02);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  transition: transform var(--t-spring);
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--c-primary);
}

/* Logo 容器：图标 + 文字块垂直排列 */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-spring);
}

.logo-wrapper:hover {
  transform: scale(1.02);
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--c-text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-top: 1px;
  padding: 1px 6px;
  background: var(--c-primary-soft);
  border-radius: 3px;
  color: var(--c-primary);
  display: inline-block;
  width: fit-content;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  padding: var(--sp-2) var(--sp-3);
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--c-primary);
  border-radius: var(--r-full);
  transition: transform var(--t-base);
}

.nav-link:hover {
  color: var(--c-primary);
  background: var(--c-primary-50);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* 右侧操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* 语言切换 - 玻璃拟态 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
  transition: all var(--t-fast);
}

.lang-switch:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--sh-glow);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.lang-btn.active {
  background: var(--c-surface);
  color: var(--c-primary);
  box-shadow: var(--sh-sm);
}

/* 深色模式切换按钮 */
/* 菜单按钮（移动端） */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all var(--t-fast);
}

.menu-toggle:hover {
  border-color: var(--c-primary-light);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   按钮系统 - 渐变增强
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: var(--sh-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
}
.btn-ghost:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}

.btn-danger {
  background: transparent;
  color: var(--c-danger);
  border-color: transparent;
}
.btn-danger:hover:not(:disabled) {
  background: #fef2f2;
}

[data-theme="dark"] .btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
}

.btn-accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
.btn-accent:hover:not(:disabled) {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-icon {
  padding: 8px;
  width: 38px;
  height: 38px;
  justify-content: center;
}

/* 涟漪效果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   通用页面布局
   ========================================================================== */
main {
  flex: 1;
}

.page-section {
  padding: var(--sp-7) 0;
  position: relative;
}

/* Hero 区 - 动态渐变背景 */
.section-hero {
  background: linear-gradient(135deg, var(--c-primary-50) 0%, #f0f9ff 30%, #faf5ff 60%, #fff7ed 100%);
  padding: var(--sp-8) 0 var(--sp-7);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .section-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 0.5) 30%, rgba(139, 92, 246, 0.05) 60%, rgba(245, 158, 11, 0.03) 100%);
}

.section-hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}

.section-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-slow 10s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* 浮动装饰点 */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: 0.12;
  animation: float-dot 6s ease-in-out infinite;
}

.hero-dot:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-dot:nth-child(2) { top: 25%; left: 85%; animation-delay: 1s; width: 8px; height: 8px; background: var(--c-purple); }
.hero-dot:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; background: var(--c-success); }
.hero-dot:nth-child(4) { top: 70%; left: 75%; animation-delay: 3s; width: 5px; height: 5px; background: var(--c-accent); }
.hero-dot:nth-child(5) { top: 40%; left: 50%; animation-delay: 4s; width: 10px; height: 10px; opacity: 0.06; }
.hero-dot:nth-child(6) { top: 80%; left: 40%; animation-delay: 1.5s; background: var(--c-danger); width: 4px; height: 4px; }

@keyframes float-dot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
  50% { transform: translateY(-15px) scale(1.3); opacity: 0.2; }
}

.section-title {
  text-align: center;
  margin-bottom: var(--sp-2);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto var(--sp-6);
}

.eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-primary-soft), rgba(139, 92, 246, 0.1));
  color: var(--c-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
  border: 1px solid rgba(37, 99, 235, 0.1);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
}

/* ==========================================================================
   卡片 - 玻璃拟态增强
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-purple), var(--c-accent));
  opacity: 0;
  transition: opacity var(--t-base);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-primary-light);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  transition: transform var(--t-spring);
}

.card-hover:hover .feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* ==========================================================================
   统计数字动画
   ========================================================================== */
.stat-item {
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  position: relative;
}

.stat-item:hover {
  background: var(--c-primary-50);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary), var(--c-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   页脚 - 深色增强
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  padding: var(--sp-7) 0 var(--sp-4);
  margin-top: var(--sp-7);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-purple), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--sp-3);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: var(--sp-2);
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all var(--t-fast);
  position: relative;
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}
.footer-bottom a:hover { color: white; }

/* ==========================================================================
   提示/Toast - 增强动画
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
  width: 100%;
  max-width: 400px;
  padding: 0 var(--sp-4);
}

.toast {
  background: var(--c-text);
  color: white;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.success {
  background: linear-gradient(135deg, var(--c-success), #059669);
}
.toast.error {
  background: linear-gradient(135deg, var(--c-danger), #dc2626);
}
.toast.info {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   模态框 - 增强效果
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--c-border);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.modal-close:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--sp-5);
}

.modal-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
}

/* ==========================================================================
   表单 - 增强交互
   ========================================================================== */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 0.95rem;
  transition: all var(--t-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft), var(--sh-sm);
}

.form-control:hover:not(:focus) {
  border-color: var(--c-primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

/* 颜色选择 */
.color-picker {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border);
  cursor: pointer;
  transition: all var(--t-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected {
  border-color: var(--c-text);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px white inset;
}

/* 透明无颜色选项 */
.color-swatch-transparent {
  background: white !important;
  border: 2px dashed var(--c-border-strong, #94a3b8) !important;
}
.color-swatch-transparent .transparent-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text-muted, #64748b);
  line-height: 1;
}
.color-swatch-transparent.selected {
  border-color: var(--c-text) !important;
  box-shadow: 0 0 0 2px white inset;
}

/* ==========================================================================
   搜索框
   ========================================================================== */
.search-box {
  position: relative;
  margin-bottom: var(--sp-3);
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-bg-alt);
  font-size: 0.85rem;
  transition: all var(--t-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-light);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ==========================================================================
   文档内容样式（隐私政策、指南等）
   ========================================================================== */
.prose {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.prose h2 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-primary-soft);
}

.prose h3 {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.prose p,
.prose li {
  color: var(--c-text);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.prose ul,
.prose ol {
  margin: var(--sp-3) 0;
  padding-left: var(--sp-5);
}

.prose ul li {
  list-style: disc;
  margin-bottom: var(--sp-2);
}

.prose ol li {
  list-style: decimal;
  margin-bottom: var(--sp-2);
}

.prose a {
  font-weight: 500;
}

.prose code {
  background: var(--c-bg-alt);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-family: var(--ff-mono);
  font-size: 0.9em;
  color: var(--c-primary-dark);
}

.prose strong {
  font-weight: 700;
  color: var(--c-text);
}

.callout {
  background: var(--c-primary-50);
  border-left: 4px solid var(--c-primary);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  margin: var(--sp-4) 0;
}

.callout-title {
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--c-primary-dark);
}

/* ==========================================================================
   页面进入动画
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-3);
    gap: var(--sp-1);
    box-shadow: var(--sh-lg);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-150%);
    transition: transform var(--t-base);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-link {
    padding: var(--sp-3) var(--sp-4);
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-hero {
    padding: var(--sp-5) 0;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 减弱动画 - 尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印隐藏类 */
.print-only { display: none; }

/* ==========================================================================
   滚动条美化
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: var(--r-full);
}

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

/* Firefox 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}
