/* ============================================
   律智 AI — 企业级法律SaaS落地页 v2.0
   设计风格：现代办公 + 科技感 + 高级感
   配色：深蓝灰底 + 亮蓝强调
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #ffffff;
  --bg-surface: #f8f9fb;
  --bg-elevated: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fa;

  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.14);

  --text-primary: #1a1d29;
  --text-secondary: #5a6478;
  --text-muted: #9ca3b0;

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dim: rgba(37,99,235,0.08);
  --accent-glow: rgba(37,99,235,0.15);

  --purple: #7c3aed;
  --purple-dim: rgba(124,58,237,0.08);
  --teal: #0d9488;
  --teal-dim: rgba(13,148,136,0.08);
  --amber: #d97706;
  --amber-dim: rgba(217,119,6,0.08);
  --rose: #e11d48;
  --rose-dim: rgba(225,29,72,0.08);
  --indigo: #6366f1;
  --indigo-dim: rgba(99,102,241,0.08);
  --gray: #6b7280;
  --gray-dim: rgba(107,114,128,0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.08);

  --font-sans: 'Noto Sans SC', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 0 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 30px rgba(59,130,246,0.4), 0 4px 12px rgba(59,130,246,0.3);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 16px rgba(59,130,246,0.15);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-container {
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.brand-logo { flex-shrink: 0; }
.brand-text { letter-spacing: 0.5px; }
.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 2px;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active, .nav-links a.active:visited { color: #1e293b; font-weight: 500; }
.nav-links a.active::after { width: 100%; }

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

/* ===== 全局导航栏用户下拉菜单 ===== */
.user-nav-dd { position: relative; cursor: pointer; }
.user-nav-trigger-dd {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; transition: background 0.2s;
}
.user-nav-trigger-dd:hover { background: rgba(0,0,0,0.04); }
.avatar-circle-dd {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.avatar-name-dd { font-size: 13px; color: var(--text-secondary); }
.chevron-dd { color: var(--text-secondary); transition: transform 0.2s; flex-shrink: 0; }
.user-nav-dd:hover .chevron-dd { transform: rotate(180deg); }
.dropdown-menu-dd {
  position: absolute; top: 100%; right: 0; margin-top: 8px; width: 240px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 0.2s ease; z-index: 2000; overflow: hidden;
}
.user-nav-dd:hover .dropdown-menu-dd {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dd-user-info { padding: 16px; text-align: center; }
.dd-avatar-lg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; margin: 0 auto 8px;
}
.dd-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.dd-id { font-size: 12px; color: #94a3b8; }
.dd-copy-btn {
  border: none; background: #f1f5f9; color: #64748b;
  font-size: 11px; padding: 2px 8px; border-radius: 4px; cursor: pointer; margin-left: 6px;
}
.dd-copy-btn:hover { background: #e2e8f0; }
.dd-divider { height: 1px; background: #f1f5f9; margin: 0 12px; }
.dd-balance {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 13px; color: var(--text-secondary);
}
.dd-bal-val { font-weight: 700; color: #2563eb; }
.dd-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 13px; color: var(--text-primary); text-decoration: none;
  transition: background 0.15s;
}
.dd-item:hover { background: #f8fafc; color: #2563eb; }
.dd-item svg { flex-shrink: 0; color: #94a3b8; }
.dd-logout { border: none; background: none; width: 100%; cursor: pointer; text-align: left; font-family: inherit; }
.dd-logout:hover { background: #fef2f2; color: #ef4444; }
.dd-logout:hover svg { color: #ef4444; }

.btn-icon-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-icon-nav:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  border-bottom: 1px solid var(--border);
  padding: 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 16px; }
.mobile-link {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Grid Overlay & Glow ---------- */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite;
}
.glow-1 {
  width: 600px; height: 400px;
  top: -100px; left: 10%;
  background: rgba(59,130,246,0.1);
}
.glow-2 {
  width: 500px; height: 400px;
  top: 100px; right: 5%;
  background: rgba(139,92,246,0.08);
  animation-delay: -3s;
}
.glow-3 {
  width: 800px; height: 300px;
  bottom: -100px; left: 20%;
  background: rgba(59,130,246,0.12);
}

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

/* ---------- Particle Field ---------- */
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--accent); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.title-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--purple), var(--accent-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 24px 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-light);
}
.stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-hover); }

/* ---------- Hero Preview ---------- */
.hero-preview {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-top: 48px;
}

.preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 80px rgba(59,130,246,0.08);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }
.window-title { font-size: 12px; color: var(--text-muted); margin-left: 12px; font-family: var(--font-mono); }

.window-body { display: flex; min-height: 320px; }

.preview-sidebar {
  width: 200px;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  flex-shrink: 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  cursor: default;
  transition: var(--transition);
}
.sidebar-item:hover { background: rgba(255,255,255,0.03); }
.sidebar-item.active { background: var(--accent-dim); color: var(--accent-light); }
.sidebar-icon { width: 16px; height: 16px; flex-shrink: 0; }

.preview-main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
}
.preview-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-blue { border-left: 3px solid var(--accent); }
.card-purple { border-left: 3px solid var(--purple); }
.card-teal { border-left: 3px solid var(--teal); }

.p-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.p-card-icon { width: 18px; height: 18px; flex-shrink: 0; }
.p-card-title { font-size: 13px; font-weight: 600; }

.p-card-body { font-size: 11px; color: var(--text-muted); }
.p-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.p-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 4px; animation: barGrow 2s ease forwards; }
.p-bar-purple { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.p-bar-teal { background: linear-gradient(90deg, var(--teal), #5eead4); }
@keyframes barGrow { from { width: 0 !important; } }
.p-bar-label { font-size: 10px; color: var(--text-muted); }

.preview-ai-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ai-msg { display: flex; align-items: flex-start; gap: 8px; }
.ai-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ai-avatar-user { background: var(--bg-elevated); }
.ai-bubble {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  max-width: 80%;
}
.ai-bot .ai-bubble {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.ai-user { justify-content: flex-end; }
.ai-user .ai-bubble {
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.2);
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent-light);
  margin-left: 1px;
  vertical-align: middle;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- Trust Section ---------- */

/* ---------- Hero Section - Aliyun Style ---------- */
.hero-section {
  padding: 96px 24px 60px;
  background:
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(124,58,237,0.06) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  max-width: 1600px;
  margin: 0 0 0 60px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  max-width: 600px;
  margin-top: 0;
}

.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 16px;
}

.hero-title-new {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #1a1d29;
  white-space: nowrap;
}

.title-gradient-new {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc-new {
  font-size: 18px;
  color: #5a6478;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta-new {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-new.btn-primary-new {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-new.btn-primary-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

.btn-new.btn-outline-new {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-new.btn-outline-new:hover {
  background: rgba(37,99,235,0.05);
}

.hero-stats-new {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #eef2ff, #f0f4ff);
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.1);
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}

.stat-item-new {
  text-align: center;
  flex: 1;
}

.stat-num-new {
  font-family: 'Space Grotesk', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
  display: block;
}

.stat-unit {
  font-size: 16px;
  font-weight: 500;
}

.stat-label-new {
  display: block;
  font-size: 12px;
  color: #9ca3b0;
  margin-top: 2px;
}

.stat-divider-new {
  width: 1px;
  height: 40px;
  background: #e5e7eb;
}

/* Hero Right - Preview Window */
.hero-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* 宽屏下轮播图向右偏移 */
@media (min-width: 1400px) {
  .carousel-container {
    transform: translateX(80px);
  }
}

/* ---------- 轮播图 ---------- */
.carousel-container {
  position: relative;
  width: 620px;
  height: 420px;
  background: #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.carousel-dots {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  color: #334155;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.carousel-container:hover .carousel-btn {
  opacity: 1;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.preview-window-new {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.window-bar-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8f9fb;
  border-bottom: 1px solid #e5e7eb;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot-new {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.window-title-new {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.window-body-new {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 400px;
}

.preview-sidebar-new {
  padding: 16px;
  border-right: 1px solid #f0f0f0;
  background: #fafbfc;
}

.sidebar-item-new {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-item-new:hover {
  background: rgba(37,99,235,0.05);
  color: #2563eb;
}

.sidebar-item-new.active {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  font-weight: 500;
}

.preview-main-new {
  padding: 20px;
}

.preview-cards-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preview-card-new {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.preview-card-new.card-blue-new {
  background: rgba(59,130,246,0.05);
  border-color: rgba(59,130,246,0.15);
}

.preview-card-new.card-purple-new {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.15);
}

.preview-card-new.card-teal-new {
  background: rgba(20,184,166,0.05);
  border-color: rgba(20,184,166,0.15);
}

.p-card-header-new {
  margin-bottom: 8px;
}

.p-card-title-new {
  font-size: 13px;
  font-weight: 600;
  color: #1a1d29;
}

.p-card-body-new {
  font-size: 11px;
  color: #6b7280;
}

.p-bar-new {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}

.p-bar-fill-new {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
}

.p-bar-purple-new { background: #8b5cf6; }
.p-bar-teal-new { background: #14b8a6; }

.p-bar-label-new {
  font-size: 11px;
  color: #9ca3b0;
}

.preview-ai-chat-new {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg-new {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-msg-new.ai-user-new {
  flex-direction: row-reverse;
}

.ai-avatar-new {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.ai-avatar-user-new {
  background: #1e293b;
}

.ai-bubble-new {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 80%;
}

.ai-bot-new .ai-bubble-new {
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.ai-user-new .ai-bubble-new {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-left {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-cta-new {
    justify-content: center;
  }
  
  .hero-stats-new {
    justify-content: center;
  }

  .carousel-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 88px 16px 48px;
  }
  
  .window-body-new {
    grid-template-columns: 1fr;
  }
  
  .preview-sidebar-new {
    display: none;
  }
  
  .hero-stats-new {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }
  
  .stat-divider-new {
    display: none;
  }

  .carousel-container {
    height: 280px;
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}


.trust-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.trust-header { text-align: center; margin-bottom: 32px; }
.trust-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
  transition: var(--transition-slow);
  filter: grayscale(1);
}
.trust-logo-item:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

/* ---------- Section Common ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.title-glow {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: titleGlow 4s ease-in-out infinite;
}
@keyframes titleGlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---------- Features - 左右分栏 ---------- */
.features { padding: 100px 0; }

.features-split {
  display: grid;
  grid-template-columns: 3.5fr 2.2fr;
  gap: 48px;
  align-items: start;
}

.split-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  background: var(--bg-surface);
  transition: var(--transition-slow);
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.split-col:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.split-personal {
  border-top: 3px solid var(--accent);
  position: relative;
  left: -48px;
}
.split-enterprise {
  border-top: 3px solid var(--rose);
  margin-left: 32px;
}

.split-col-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

.split-col-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-light);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.split-col-tag.tag-rose {
  color: var(--rose);
  background: var(--rose-dim);
}

.split-col-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.split-col-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.split-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split-feature-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.split-feature-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.enterprise-card-alt:hover {
  transform: translateX(-4px);
}

.sf-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.split-feature-card:hover .sf-icon-wrap { transform: scale(1.1); }

.sf-content { flex: 1; min-width: 0; }

.sf-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sf-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sf-risk-demo {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.risk-item:hover { transform: translateX(4px); }
.risk-high { background: rgba(239,68,68,0.08); border-left: 3px solid #ef4444; }
.risk-mid { background: rgba(245,158,11,0.08); border-left: 3px solid #f59e0b; }
.risk-low { background: rgba(34,197,94,0.08); border-left: 3px solid #22c55e; }
.risk-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.risk-high .risk-tag { background: rgba(239,68,68,0.15); color: #f87171; }
.risk-mid .risk-tag { background: rgba(245,158,11,0.15); color: #fbbf24; }
.risk-low .risk-tag { background: rgba(34,197,94,0.15); color: #4ade80; }

.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent-light); }

.bento-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bento-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.bento-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
}

.sf-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 4px;
  transition: var(--transition);
}
.mini-card:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); transform: translateY(-2px); }
.mini-card svg { color: var(--accent-light); }
.mini-title { font-size: 11px; font-weight: 600; }
.mini-desc { font-size: 10px; color: var(--text-muted); }

/* ---------- AI 辅助办案 · 三栏式流程 ---------- */
.workflow-flow {
  display: flex;
  gap: 0;
  position: relative;
  align-items: stretch;
}

/* 三栏布局 */
.flow-side-left,
.flow-side-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-side-left {
  align-items: stretch;
}
.flow-side-right {
  align-items: stretch;
}

.flow-side-left .flow-card,
.flow-side-right .flow-card {
  width: auto;
  margin-left: 16px;
  margin-right: 16px;
  height: 128px;
}

.flow-side-left .flow-card:first-child {
  margin-top: 68px;
}

.flow-side-spacer {
  flex: 1;
  min-height: 10px;
}

/* 固定左侧第一个spacer（第2个child）高度 */
.flow-side-left .flow-side-spacer:nth-child(2) {
  flex: 0 0 28px;
  min-height: 28px;
}

/* 固定右侧顶部spacer高度，使专属知识库与案例智检水平对齐 */
.flow-side-right .flow-side-spacer:first-child {
  flex: 0 0 224px;
  min-height: 224px;
}

/* 连接箭头：结案归档右边中点 → 向右 → 向上 → 专属知识库中间 */
#flowConnector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(37,99,235,0.4));
}



/* 中间列 */
.flow-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 步骤卡片 */
.flow-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  width: 100%;
  height: 108px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.flow-card:hover {
  background: #f8f9fb;
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.flow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 0;
  min-height: 24px;
  flex-shrink: 0;
}
.flow-step-num {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 1px;
}
.flow-card-tag {
  font-size: 10px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 2px 10px;
  border-radius: 999px;
}

.flow-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px;
}

.flow-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(59,130,246,0.08);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.flow-card:hover .flow-card-icon { transform: scale(1.06); }

.flow-card-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.flow-card-content p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 进行中卡片 */
.flow-card-active {
  border-color: rgba(139,92,246,0.3);
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(99,102,241,0.02) 100%);
}
.flow-card-active .flow-card-icon {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
}

/* 最终卡片 */
.flow-card-final {
  border-color: rgba(245,158,11,0.2);
  background: linear-gradient(135deg, rgba(245,158,11,0.03) 0%, rgba(245,158,11,0.01) 100%);
}
.flow-card-final .flow-card-icon {
  background: rgba(245,158,11,0.1);
  color: #fbbf24;
}

/* 浅黄色卡片（庭审纪实） */
.flow-card-yellow {
  border-color: rgba(250,204,21,0.3);
  background: linear-gradient(135deg, rgba(250,204,21,0.08) 0%, rgba(250,204,21,0.02) 100%);
}
.flow-card-yellow .flow-card-icon {
  background: rgba(250,204,21,0.12);
  color: #facc15;
}
.flow-card-yellow:hover {
  border-color: rgba(250,204,21,0.45);
  box-shadow: 0 4px 20px rgba(250,204,21,0.12);
}

/* 浅红色卡片（结案归档） */
.flow-card-red {
  border-color: rgba(244,63,94,0.3);
  background: linear-gradient(135deg, rgba(244,63,94,0.08) 0%, rgba(244,63,94,0.02) 100%);
}
.flow-card-red .flow-card-icon {
  background: rgba(244,63,94,0.12);
  color: #f43f5e;
}
.flow-card-red:hover {
  border-color: rgba(244,63,94,0.45);
  box-shadow: 0 4px 20px rgba(244,63,94,0.12);
}

/* 个人版/企业版 双卡片布局 */
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

.agent-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: #fff;
  transition: all 0.3s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.agent-card-header {
  margin-bottom: 24px;
}

.agent-card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59,130,246,0.1);
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.agent-badge-teal {
  background: rgba(20,184,166,0.1);
  color: #0d9488;
}

.agent-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.agent-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agent-card-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.flow-step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.1);
  border-radius: 10px;
}

.flow-step-icon-teal {
  background: rgba(20,184,166,0.1);
}

.flow-arrow svg {
  color: #94a3b8;
}

.agent-card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.agent-card-features.enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.enterprise-features .feature-item {
  background: #fff;
  border: 1px solid rgba(13,148,136,0.12);
  border-radius: 16px;
  padding: 20px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(13,148,136,0.04);
  transition: all 0.3s ease;
}

.enterprise-features .feature-item:hover {
  box-shadow: 0 4px 16px rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.2);
}

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

.feature-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-check {
  color: #2563eb;
  font-weight: 600;
}

.feature-item-teal .feature-check {
  color: #0d9488;
}

.agent-card-action {
  text-align: center;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-card-flow {
    flex-wrap: wrap;
  }
}

/* 浅蓝色卡片（个人版） */
.agent-card-blue {
  border-color: rgba(59,130,246,0.18);
  background: linear-gradient(135deg, rgba(59,130,246,0.02) 0%, #ffffff 100%);
}
.agent-card-blue:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}

/* 浅青色卡片（企业版） */
.agent-card-teal {
  border-color: rgba(20,184,166,0.18);
  background: linear-gradient(135deg, rgba(20,184,166,0.02) 0%, #ffffff 100%);
}
.agent-card-teal:hover {
  border-color: rgba(20,184,166,0.35);
  box-shadow: 0 12px 40px rgba(20,184,166,0.12);
}
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}
.flow-card-knowledge:hover {
  border-color: rgba(99,102,241,0.45);
  box-shadow: 0 4px 20px rgba(99,102,241,0.12);
}

/* AI 辅助卡片配色 */
.agent-card-purple {
  border-color: rgba(139,92,246,0.18);
  background: linear-gradient(135deg, rgba(139,92,246,0.04) 0%, rgba(139,92,246,0.01) 100%);
}
.agent-card-purple .flow-card-icon {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
}
.agent-card-purple:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 4px 20px rgba(139,92,246,0.1);
}

/* 浅绿色卡片（案情智谋） */
.agent-card-green {
  border-color: rgba(34,197,94,0.18);
  background: linear-gradient(135deg, rgba(34,197,94,0.04) 0%, rgba(34,197,94,0.01) 100%);
}
.agent-card-green .flow-card-icon {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
}
.agent-card-green:hover {
  border-color: rgba(34,197,94,0.35);
  box-shadow: 0 4px 20px rgba(34,197,94,0.1);
}

.agent-card-blue {
  border-color: rgba(59,130,246,0.18);
  background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(59,130,246,0.01) 100%);
}
.agent-card-blue .flow-card-icon {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}
.agent-card-blue:hover {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 4px 20px rgba(59,130,246,0.1);
}

/* 个人版8卡布局 */
.cap-grid {
  display: grid;
  grid-template-columns: minmax(210px,330px) 24px minmax(210px,330px) 24px minmax(210px,330px);
  grid-template-rows: auto auto auto;
  gap: 20px 2px;
  align-items: start;
  justify-items: center;
  margin: 16px 0;
  overflow: visible;
}
.cap-card {
  width: 100%;
  padding: 16px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}
.cap-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.cc-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; white-space: nowrap; }
.cc-desc { font-size: 12px; font-weight: 400; color: #6b7280; line-height: 1.5; white-space: normal; word-break: break-word; }
.cap-arrow { display: flex; align-items: center; justify-content: center; }

.agent-card-teal {
  border-color: rgba(20,184,166,0.18);
  background: linear-gradient(135deg, rgba(20,184,166,0.04) 0%, rgba(20,184,166,0.01) 100%);
}
.agent-card-teal .flow-card-icon {
  background: rgba(20,184,166,0.12);
  color: #5eead4;
}
.agent-card-teal:hover {
  border-color: rgba(20,184,166,0.35);
  box-shadow: 0 4px 20px rgba(20,184,166,0.1);
}

/* 垂直连接箭头 */
.flow-vline {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  position: relative;
  z-index: 1;
  color: #2563eb;
  filter: drop-shadow(0 0 8px rgba(37,99,235,0.4));
}

/* 紧凑箭头（案例智检→庭前智演） */
.flow-vline-compact {
  height: 28px;
  flex: 0 0 28px;
}

/* 分支箭头：垂直箭头居中，水平箭头绝对定位延伸 */
.flow-vline-branch,
.flow-vline-branch-2 {
  overflow: visible;
}
.flow-vline-branch .vline-arrow-h,
.flow-vline-branch-2 .vline-arrow-h {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 7px;
}
.flow-vline-branch-2 .vline-arrow-hr {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 7px;
}

/* 效能指标 */
.flow-metrics {
  display: flex;
  justify-content: space-around;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.flow-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-metric-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.flow-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 20px;
  font-size: 60px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-info {
  display: flex;
  flex-direction: column;
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ---------- Products / Pricing ---------- */
.products {
  padding: 60px 0;
  background: var(--bg-base);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1550px;
  margin: 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(59,130,246,0.1);
  background: linear-gradient(180deg, rgba(59,130,246,0.03), var(--bg-card));
}
.pricing-featured:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 60px rgba(59,130,246,0.15), 0 8px 32px rgba(0,0,0,0.3);
}

.pricing-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.pricing-header { margin-bottom: 24px; }
.pricing-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pricing-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pricing-target { font-size: 13px; color: var(--text-muted); }

.pricing-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-row:last-child { margin-bottom: 0; }
.price-amount { font-family: var(--font-mono); font-size: 40px; font-weight: 700; }
.price-currency { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.price-period { font-size: 14px; color: var(--text-muted); margin-left: 4px; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 14px;
}
.pricing-features li { display: flex; align-items: center; gap: 10px; }
.check { color: var(--accent-light); font-weight: 700; }
.cross { color: var(--text-muted); }
.pricing-note { list-style: none; padding-left: 0; }

/* ---------- How It Works ---------- */
.how-it-works { padding: 80px 0; }

.steps {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 24px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 16px;
}

.step-line {
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  position: absolute;
  top: 30px;
  right: -30%;
}
.step:last-child .step-line { display: none; }

.step-icon-wrap {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.step:hover .step-icon-wrap {
  background: rgba(59,130,246,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
}

.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Security ---------- */
.security {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}
.security-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.sec-icon { margin-bottom: 16px; }
.security-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.security-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.security-card-highlight {
  background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(139,92,246,0.05));
  border-color: rgba(59,130,246,0.2);
}
.sec-score {
  margin-bottom: 12px;
}
.sec-score-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-light);
  text-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.sec-score-suffix {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; position: relative; z-index: 1; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-about { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-top: 16px; }

.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); transform: translateX(4px); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ---------- Animations ---------- */
.anim-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-fade.visible { opacity: 1; transform: translateY(0); }

.anim-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger delay for children */
.stagger-children .anim-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .anim-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .anim-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .anim-up:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .anim-up:nth-child(5) { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-split { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 120px 20px 40px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 12px; }

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

  .preview-sidebar { display: none; }
  .preview-cards { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 32px; }
  .step-line { display: none; }

  .security-grid { grid-template-columns: 1fr; }
  .sf-mini-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-logos { gap: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .stat-num { font-size: 28px; }
  .split-col { padding: 20px; }
  .split-feature-card { flex-direction: column; }
  .trust-logos { gap: 16px; }
  .trust-logo-item { font-size: 12px; }
}

/* ============================================
   登录/注册弹窗 — 四面板设计
   ============================================ */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; }

.auth-modal {
  position: relative;
  width: 440px;
  max-width: 94vw;
  max-height: 90vh;
  overflow: visible;
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 40px 36px;
  box-shadow: 0 30px 80px rgba(15,23,42,0.12), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(20px) scale(0.97);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-overlay.open .auth-modal { transform: translateY(0) scale(1); }
.auth-modal::-webkit-scrollbar { width: 4px; }
.auth-modal::-webkit-scrollbar-track { background: transparent; }
.auth-modal::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.auth-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.auth-close:hover { background: #e2e8f0; color: #475569; transform: rotate(90deg); }

/* ---------- 面板 ---------- */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ---------- 面板头部 ---------- */
.auth-panel-header { text-align: center; margin-bottom: 28px; }
.auth-panel-icon {
  display: inline-flex;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(59,130,246,0.2));
}
.auth-panel-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.auth-panel-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ---------- 表单 ---------- */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-forgot {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.form-forgot:hover { color: #2563eb; text-decoration: underline; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
  outline: none;
}
.form-input:hover { border-color: #cbd5e1; }
.form-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-input::placeholder { color: #94a3b8; }

/* ---------- 手机号输入（+86 区号） ---------- */
.phone-input-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.country-code-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}
.country-code-text { line-height: 1; }
.phone-input-wrapper .form-input {
  border-radius: 0 10px 10px 0;
  border-left: none;
}
.phone-input-wrapper .form-input:focus {
  border-left: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ---------- 验证码输入行 ---------- */
.sms-code-row {
  display: flex;
  gap: 10px;
}
.sms-code-row .form-input { flex: 1; }
.btn-sms {
  padding: 12px 18px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-sms:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
  transform: translateY(-1px);
}
.btn-sms:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 密码切换 ---------- */
.pwd-wrapper { position: relative; }
.pwd-wrapper .form-input { padding-right: 44px; }
.pwd-toggle {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: none;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.pwd-toggle:hover { background: #f1f5f9; color: #64748b; }

/* ---------- 服务协议 ---------- */
.form-agreement { margin-top: -4px; }
.agree-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.agree-checkbox input { display: none; }
.agree-checkmark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
}
.agree-checkbox input:checked + .agree-checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}
.agree-text { flex: 1; }
.agree-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.agree-text a:hover { text-decoration: underline; }

/* ---------- 提交按钮 ---------- */
.auth-submit {
  margin-top: 6px;
  padding: 14px 24px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
}
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- TAB标签栏 ---------- */
.auth-tabs {
  display: flex;
  margin: 24px 0 20px;
  border-bottom: 1.5px solid #f1f5f9;
  gap: 0;
}
.auth-tab {
  flex: 1;
  padding: 10px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 2.5px;
  background: #3b82f6;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.auth-tab.active { color: #3b82f6; }
.auth-tab.active::after { transform: translateX(-50%) scaleX(1); }
.auth-tab:hover { color: #64748b; }
.auth-tab.active:hover { color: #3b82f6; }

.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }
.auth-tab-content.active .auth-form { margin-top: 6px; }

/* ---------- 切换链接 ---------- */
.auth-switch-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 4px;
}
.auth-switch-links a {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-switch-links a:hover { color: #3b82f6; }

/* ---------- 分割线 ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 16px;
  gap: 16px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}
.auth-divider span {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  font-weight: 500;
}

/* ---------- 社交登录 ---------- */
.auth-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-btn {
  width: 44px; height: 44px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-btn:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

/* ---------- 版本选择 ---------- */
.plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.plan-option:hover { border-color: #cbd5e1; background: #f1f5f9; }
.plan-option.active {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.05);
}
.plan-option input { display: none; }
.plan-option .plan-icon {
  width: 22px; height: 22px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-option.active .plan-icon { color: #3b82f6; }
.plan-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.plan-desc { font-size: 11px; color: #94a3b8; }
.plan-option.active .plan-desc { color: #3b82f6; }

/* ---------- Toast ---------- */
.auth-toast {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}
.auth-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.auth-toast.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.auth-toast.error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.auth-toast.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }

/* ---------- 滑块验证码 ---------- */
.captcha-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 10001;
  align-items: center; justify-content: center;
}
.captcha-box {
  background: #fff; border-radius: 16px; padding: 24px;
  width: 360px; box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.captcha-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 15px; font-weight: 600; color: #1a1d29;
}
.captcha-close {
  border: none; background: none; font-size: 20px; cursor: pointer; color: #9ca3b0;
}
.captcha-canvas-wrap {
  width: 300px; height: 160px; margin: 0 auto 16px;
  border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; position: relative;
}
.captcha-slider-wrap { margin-bottom: 12px; }
.captcha-slider-track {
  height: 40px; background: #f1f5f9; border-radius: 20px;
  position: relative; display: flex; align-items: center; justify-content: center;
  user-select: none; overflow: hidden;
}
.captcha-slider-text { font-size: 13px; color: #9ca3b0; }
.captcha-slider-btn {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  background: #2563eb; border-radius: 20px; cursor: grab;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.captcha-slider-btn:active { cursor: grabbing; }
.captcha-actions { text-align: center; }
.captcha-refresh {
  border: none; background: none; font-size: 13px; color: #2563eb; cursor: pointer;
}
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .auth-modal { padding: 40px 28px 28px; border-radius: 16px; }
  .auth-panel-title { font-size: 20px; }
  .country-code-selector { padding: 0 10px; font-size: 13px; }
  .plan-option { padding: 12px 8px; }
  .auth-social { gap: 12px; }
  .social-btn { width: 40px; height: 40px; }
}

/* Icon color classes */
.icon-blue { background: var(--accent-dim); color: var(--accent-light); }
.icon-purple { background: var(--purple-dim); color: var(--purple); }
.icon-teal { background: var(--teal-dim); color: var(--teal); }
.icon-amber { background: var(--amber-dim); color: var(--amber); }
.icon-rose { background: var(--rose-dim); color: var(--rose); }
.icon-indigo { background: var(--indigo-dim); color: var(--indigo); }
.icon-indigo-sm { background: var(--indigo-dim); }
.icon-blue-sm { background: var(--accent-dim); }
.icon-purple-sm { background: var(--purple-dim); }
.icon-gray-sm { background: var(--gray-dim); }

/* ---------- Features Section - Aliyun Style ---------- */
.features-new {
  padding: 60px 24px;
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
  overflow-x: visible;
}

.features-container {
  max-width: 1600px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag-new {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title-new {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-desc-new {
  font-size: 16px;
  color: #6b7280;
}

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card-new {
  padding: 32px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card-new:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37,99,235,0.12);
  transform: translateY(-4px);
}

.feature-icon-new {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-new.icon-blue {
  background: rgba(59,130,246,0.1);
  color: #2563eb;
}

.feature-icon-new.icon-purple {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}

.feature-icon-new.icon-teal {
  background: rgba(20,184,166,0.1);
  color: #0d9488;
}

.feature-icon-new.icon-rose {
  background: rgba(244,63,94,0.1);
  color: #f43f5e;
}

.feature-title-new {
  font-size: 20px;
  font-weight: 600;
  color: #1a1d29;
  margin-bottom: 12px;
}

.feature-desc-new {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list-new {
  list-style: none;
}

.feature-list-new li {
  font-size: 13px;
  color: #9ca3af;
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.feature-list-new li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 全局导航栏通知铃铛 ---------- */
.nav-bell-wrapper {
  position: relative;
  margin-right: 4px;
}
.nav-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-bell-btn:hover {
  background: rgba(0,0,0,0.04);
  color: #3b82f6;
}
.nav-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
/* 铃铛下拉面板 */
.nav-bell-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 360px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 2000;
  overflow: hidden;
}
.nav-bell-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nbd-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
  font-size: 15px; font-weight: 600; color: #1a1d29;
}
.nbd-readall {
  border: none; background: none; font-size: 12px; color: #3b82f6; cursor: pointer;
}
.nbd-readall:hover { text-decoration: underline; }
.nbd-list { max-height: 340px; overflow-y: auto; }
.nbd-loading, .nbd-empty {
  text-align: center; padding: 40px 20px; color: #9ca3b0; font-size: 13px;
}
.nbd-item {
  display: flex; gap: 10px; padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid #f8fafc; transition: background 0.15s;
}
.nbd-item:hover { background: #f8fafc; }
.nbd-item.nbd-unread { background: #f0f4ff; }
.nbd-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.nbd-body { flex: 1; min-width: 0; }
.nbd-title { font-size: 13px; font-weight: 600; color: #1a1d29; margin-bottom: 2px; }
.nbd-msg { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbd-time { font-size: 11px; color: #9ca3b0; margin-top: 4px; }
.nbd-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; padding-top: 2px; }
.nbd-accept, .nbd-reject {
  padding: 4px 10px; font-size: 11px; font-weight: 500; border: none;
  border-radius: 5px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nbd-accept { background: #10b981; color: #fff; }
.nbd-accept:hover { background: #059669; transform: scale(1.05); }
.nbd-reject { background: #f1f5f9; color: #64748b; }
.nbd-reject:hover { background: #fee2e2; color: #ef4444; }

@media (max-width: 640px) {
  .features-new {
    padding: 60px 16px;
  }
  
  .features-grid-new {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card-new {
    padding: 24px 20px;
  }
}
