/**
 * Magic Report Website - Purple Theme (Kiro IDE inspired)
 *
 * Color System:
 * Primary:    #7B61FF (Vivid purple)
 * Secondary:  #6366F1 (Indigo)
 * Accent:     #A78BFA (Light purple)
 * Dark:       #1E1B4B (Deep indigo)
 * Surface:    #F5F3FF (Light purple tint)
 */

/* ==================== CSS Variables ==================== */
:root {
  --primary: #7B61FF;
  --primary-dark: #6347E6;
  --primary-light: #9B85FF;
  --primary-bg: #F5F3FF;
  --primary-bg-hover: #EDE9FE;

  --secondary: #6366F1;
  --accent: #A78BFA;
  --accent-light: #C4B5FD;

  --dark: #1E1B4B;
  --dark-800: #2E2A5E;
  --dark-700: #3E3A6E;

  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-purple: 0 4px 14px rgba(123,97,255,0.25);

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

  --header-height: 64px;
  --sidebar-width: 260px;
}

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

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

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-dark);
}

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

code {
  font-family: var(--font-mono);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

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

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123,97,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.btn-icon.btn-danger:hover {
  background: #FEF2F2;
  color: var(--danger);
}

/* ==================== Header ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-cn { display: none; }
.logo-sep {
  width: 1px;
  height: 16px;
  background: rgba(123,97,255,0.25);
  flex-shrink: 0;
}
.logo-slogan {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #7B61FF, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  line-height: 1;
}
.logo-slogan-svg {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  /* 文字到达后字体加载能平滑过渡 */
  font-display: swap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 24px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  padding: 12px 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 480px) {
  .logo-sep, .logo-slogan-svg { display: none; }
}

/* ==================== Main Content ==================== */
main {
  padding-top: var(--header-height);
  min-height: calc(100vh - 200px);
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #2D2666 50%, #3B2D7B 100%);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,97,255,0.3) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px;
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--accent-light);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #E0CCFF, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ==================== Sections ==================== */
.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-top: -4px;
  margin-bottom: 0;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-500);
}

/* ==================== Features Grid ==================== */
.features-section {
  background: var(--gray-50);
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ==================== Workflow Steps ==================== */
.workflow-steps {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.workflow-step {
  flex: 1;
  text-align: center;
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .workflow-steps { flex-direction: column; gap: 24px; }
}

/* ==================== CTA Section ==================== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--dark) 0%, #2D2666 50%, #3B2D7B 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  color: #fff;
}

.cta-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
}

.footer-slogan-cta {
  font-size: 17px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ==================== Product Page ==================== */

/* -- Shared badge pill used on product page sections -- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

/* ── Hero ─────────────────────────────────────────── */
.pd-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: linear-gradient(135deg, var(--dark) 0%, #2D2666 60%, #1a1a3e 100%);
  color: #fff;
}
.pd-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.pd-hero-left { z-index: 1; position: relative; }
.pd-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin: 12px 0 6px;
}
.pd-hero-cn {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.pd-hero-tagline {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: 0.04em;
}
.pd-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 440px;
  margin-bottom: 28px;
}
.pd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  flex-wrap: wrap;
}
.pd-hero-right { z-index: 1; position: relative; }

/* ── Designer Mockup (hero right) ─────────────────── */
.pd-designer-mockup {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  font-size: 12px;
}
.pdm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #1e1b4b;
  color: #fff;
}
.pdm-dots { display: flex; gap: 5px; }
.pdm-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #64748b;
}
.pdm-dots span:nth-child(1) { background: #ef4444; }
.pdm-dots span:nth-child(2) { background: #f59e0b; }
.pdm-dots span:nth-child(3) { background: #22c55e; }
.pdm-title { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,0.6); }
.pdm-btns { display: flex; gap: 6px; }
.pdm-btn-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}
.pdm-btn-primary { background: var(--primary); color: #fff; }

.pdm-body { display: flex; }

.pdm-sidebar {
  width: 68px;
  background: #f8f8fc;
  border-right: 1px solid #e5e7eb;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdm-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  font-size: 10px;
  color: #94a3b8;
  cursor: default;
  border-radius: 6px;
  margin: 0 4px;
}
.pdm-side-item.active { background: var(--primary-bg); color: var(--primary); }

.pdm-canvas { flex: 1; overflow: hidden; }
.pdm-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.pdm-tool {
  padding: 2px 6px;
  border-radius: 4px;
  color: #475569;
  cursor: default;
  font-size: 11px;
  line-height: 1.6;
}
.pdm-tool:hover { background: #e5e7eb; }
.pdm-tool-active { background: var(--primary-bg); color: var(--primary); }
.pdm-tool-sep { width: 1px; height: 14px; background: #e5e7eb; margin: 0 2px; }

.pdm-grid { padding: 4px; }
.pdm-col-header {
  display: grid;
  grid-template-columns: 28px repeat(5, 1fr);
  gap: 1px;
  margin-bottom: 1px;
}
.pdm-col-header span {
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 0;
  border-radius: 2px;
}
.pdm-row {
  display: grid;
  grid-template-columns: 28px repeat(5, 1fr);
  gap: 1px;
  margin-bottom: 1px;
}
.pdm-rh {
  font-size: 10px;
  color: #94a3b8;
  background: #f1f5f9;
  text-align: center;
  padding: 4px 0;
  border-radius: 2px;
}
.pdm-cell {
  font-size: 10px;
  padding: 4px 5px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #fff;
  color: #374151;
  overflow: hidden;
  white-space: nowrap;
}
.pdm-cell-title {
  grid-column: span 5;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  background: #1e1b4b;
  color: #fff;
  border-color: #1e1b4b;
}
.pdm-cell-h { background: #ede9fe; color: #4c1d95; font-weight: 600; border-color: #ddd6fe; }
.pdm-cell-tag { background: #fef9c3; color: #854d0e; font-style: italic; border-color: #fde68a; }
.pdm-cell-formula { background: #f0fdf4; color: #166534; font-style: italic; border-color: #bbf7d0; }
.pdm-cell-bold { font-weight: 700; }
.pdm-cell-sum { background: #f0fdf4; color: #166534; font-weight: 600; border-color: #bbf7d0; }
.pdm-row-sum .pdm-rh { background: #dcfce7; }

.pdm-statusbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #f1f5f9;
  border-top: 1px solid #e5e7eb;
  font-size: 10px;
  color: #64748b;
}
.pdm-status-sep { color: #cbd5e1; }
.pdm-status-ai { color: #7c3aed; font-weight: 500; display: flex; align-items: center; gap: 3px; }

/* ── Stats Strip ───────────────────────────────────── */
.pd-stats-strip {
  background: #fff;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 0;
}
.pd-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.pd-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.pd-stat-div {
  width: 1px;
  height: 40px;
  background: var(--gray-100);
}
.pd-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pd-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ── Feature Grid (6 cards) ────────────────────────── */
.pd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pd-fg-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pd-fg-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(123,97,255,0.1);
  transform: translateY(-2px);
}
.pd-fg-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pd-fg-card h3 { font-size: 16px; font-weight: 650; color: var(--dark); margin-bottom: 8px; }
.pd-fg-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; }

/* ── Feature Deep Dive Row ─────────────────────────── */
.pd-fdr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pd-fdr-reverse { direction: rtl; }
.pd-fdr-reverse > * { direction: ltr; }

.pd-fdr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.pd-fdr-text h2 {
  font-size: 32px;
  font-weight: 750;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.pd-fdr-text > p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.pd-fdr-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-fdr-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

/* ── Report Preview Mockup ─────────────────────────── */
.pd-report-preview {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.prp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--dark);
  color: #fff;
}
.prp-title { font-size: 13px; font-weight: 600; }
.prp-actions { display: flex; gap: 6px; }
.prp-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}
.prp-badge-g { background: rgba(16,185,129,0.25); color: #34d399; }

.prp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.prp-table th {
  background: #f8f9fa;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
}
.prp-table td { padding: 7px 12px; border-bottom: 1px solid #f1f5f9; color: #374151; }
.prp-group-row { background: #f8f7ff; }
.prp-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.prp-child td { font-size: 11.5px; color: #64748b; }
.prp-table th:first-child,
.prp-table td:first-child { white-space: nowrap; }
.prp-indent { width: 20px; }
.prp-num { text-align: right; font-variant-numeric: tabular-nums; }
.prp-sub { font-weight: 600; color: var(--dark) !important; }
.prp-up { color: #059669; font-weight: 500; }
.prp-dn { color: #dc2626; font-weight: 500; }
.prp-footer-row { background: #ede9fe; }
.prp-footer-row td { border-top: 2px solid var(--primary-light); }
.prp-expand-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--primary-bg);
  font-size: 11px;
  color: var(--primary);
  border-top: 1px solid var(--accent-light);
}

/* ── Data Source Mockup ────────────────────────────── */
.pd-ds-mockup {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  font-size: 13px;
}
.pdsm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.pdsm-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.pdsm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  cursor: default;
  transition: border-color 0.15s, background 0.15s;
}
.pdsm-active { border-color: var(--primary-light) !important; background: var(--primary-bg); }
.pdsm-db-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pdsm-info { flex: 1; min-width: 0; }
.pdsm-name { display: block; font-weight: 550; color: var(--dark); font-size: 12.5px; }
.pdsm-host { display: block; font-size: 10.5px; color: var(--gray-500); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdsm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pdsm-online { background: #22c55e; box-shadow: 0 0 0 2px #dcfce7; }
.pdsm-offline { background: #94a3b8; }
.pdsm-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  margin: 4px 8px 0;
  border: 1.5px dashed var(--primary-light);
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  cursor: default;
}
.pdsm-plugin-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  color: var(--gray-500);
  font-size: 11px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}

/* ── AI Mockup ─────────────────────────────────────── */
.pd-ai-mockup {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  font-size: 13px;
}
.paim-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(90deg, #fff7ed 0%, #fff 100%);
}
.paim-model-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: #fff7ed;
  color: #EA580C;
  border: 1px solid #fed7aa;
}
.paim-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.paim-user-msg {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 12.5px;
  max-width: 85%;
}
.paim-ai-reply { display: flex; gap: 8px; align-items: flex-start; }
.paim-ai-avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.paim-ai-content {
  flex: 1;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 4px 16px 16px 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paim-section-title { font-size: 12px; font-weight: 600; color: var(--dark); }
.paim-bars { display: flex; flex-direction: column; gap: 5px; }
.paim-bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 46px;
  align-items: center;
  gap: 6px;
}
.paim-bar-label { font-size: 11px; color: var(--gray-600); white-space: nowrap; }
.paim-bar-track { height: 6px; background: var(--gray-100); border-radius: 99px; overflow: hidden; }
.paim-bar-fill { height: 100%; border-radius: 99px; }
.paim-bar-val { font-size: 11px; font-weight: 600; text-align: right; white-space: nowrap; }
.paim-bar-val.up { color: #059669; }
.paim-bar-val.dn { color: #dc2626; }
.paim-alert {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.5;
}
.paim-tip {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  background: var(--primary-bg);
  border: 1px solid var(--accent-light);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: var(--primary-dark);
  line-height: 1.5;
}
.paim-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.paim-input-placeholder {
  flex: 1;
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.paim-send-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
  flex-shrink: 0;
}

/* ── AI Generate Mockup ────────────────────────────── */
.pd-aigen-mockup {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  font-size: 12.5px;
}
.paig-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e1b4b 0%, #2563EB 100%);
  color: #fff;
}
.paig-ai-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.paig-header-titles { display: flex; flex-direction: column; gap: 1px; }
.paig-header-title { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1; }
.paig-header-sub { font-size: 10px; color: rgba(255,255,255,0.6); }
.paig-header-acts { display: flex; gap: 5px; margin-left: auto; }
.paig-act-btn {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: default;
}
.paig-tabbar {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
  background: #fafafa;
  padding: 0 14px;
  gap: 0;
}
.paig-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: default;
  margin-bottom: -1px;
}
.paig-tab-active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 600;
}
.paig-form {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: hidden;
}
.paig-field { display: flex; flex-direction: column; gap: 3px; }
.paig-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 4px;
}
.paig-optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 3px;
}
.paig-type-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.paig-type-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: default;
}
.paig-type-active {
  border-color: #2563EB;
  background: #eff6ff;
  color: #2563EB;
  font-weight: 600;
}
.paig-code-input {
  background: #1e1b4b;
  color: #a5b4fc;
  font-size: 10.5px;
  font-family: 'Consolas', monospace;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.55;
}
.paig-desc-input {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.paig-two-col {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.paig-text-input {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10.5px;
  color: var(--gray-400);
}
.paig-dir-btns { display: flex; gap: 4px; }
.paig-dir {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  cursor: default;
  white-space: nowrap;
}
.paig-dir-active { border-color: #2563EB; color: #2563EB; background: #eff6ff; font-weight: 600; }
.paig-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.paig-color {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: default;
}
.paig-color-active {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, #fff);
  color: var(--c);
  font-weight: 600;
}
.paig-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.paig-color-add {
  color: var(--gray-400);
  border-style: dashed;
}
.paig-chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.paig-chips-wrap { flex-wrap: wrap; }
.paig-chip {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  cursor: default;
  white-space: nowrap;
}
.paig-chip-on {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.paig-chip-h {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #EA580C;
  font-weight: 600;
}
.paig-chip-add {
  border-color: var(--gray-200);
  border-style: dashed;
  color: var(--gray-400);
}
.paig-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: var(--gray-500);
  line-height: 1.6;
  font-style: italic;
}
.paig-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--gray-100);
  background: #fafafa;
}
.paig-gen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #2563EB, #7B61FF);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
  letter-spacing: 0.02em;
}

/* ── Print Plugin Mockup ───────────────────────────── */
.pdp-mockup {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  font-size: 12.5px;
}
.pdp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  color: #fff;
}
.pdp-header-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pdp-header-title { font-size: 12.5px; font-weight: 700; color: #fff; }
.pdp-mode-tabs {
  display: flex;
  gap: 3px;
  margin-left: auto;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 2px;
}
.pdp-tab {
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  cursor: default;
}
.pdp-tab-active {
  background: rgba(255,255,255,0.95);
  color: #1e40af;
  font-weight: 700;
}
.pdp-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  font-size: 11px;
}
.pdp-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  flex-shrink: 0;
}
.pdp-status-text { color: #15803d; }
.pdp-status-addr {
  margin-left: 4px;
  padding: 1px 6px;
  background: #dcfce7;
  border-radius: 3px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: #166534;
}
.pdp-status-ver {
  margin-left: auto;
  font-size: 10px;
  color: #86efac;
  background: #166534;
  padding: 1px 6px;
  border-radius: 3px;
}
.pdp-form {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-field { display: flex; flex-direction: column; gap: 3px; }
.pdp-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
}
.pdp-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 11px;
  color: var(--gray-700);
}
.pdp-radio-row { display: flex; gap: 10px; }
.pdp-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-600);
  cursor: default;
}
.pdp-radio-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #2563EB;
  background: #2563EB;
  box-shadow: inset 0 0 0 2px #fff;
  flex-shrink: 0;
}
.pdp-radio-dot-off {
  background: transparent;
  border-color: var(--gray-300);
  box-shadow: none;
}
.pdp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pdp-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.pdp-cnt-btn {
  padding: 3px 10px;
  background: var(--gray-50);
  font-size: 14px;
  color: var(--gray-500);
  cursor: default;
  border-right: 1px solid var(--gray-200);
}
.pdp-cnt-btn:last-child { border-right: none; border-left: 1px solid var(--gray-200); }
.pdp-cnt-val {
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}
.pdp-dir-row { display: flex; gap: 4px; }
.pdp-dir {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  cursor: default;
  white-space: nowrap;
}
.pdp-dir-active { border-color: #2563EB; color: #2563EB; background: #eff6ff; font-weight: 600; }
.pdp-queue {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  padding: 6px 8px;
}
.pdp-queue-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--gray-600);
}
.pdp-queue-done { background: #f0fdf4; color: #166534; }
.pdp-queue-ing { background: #eff6ff; color: #1d4ed8; }
.pdp-queue-wait { color: var(--gray-400); }
.pdp-q-size, .pdp-q-wait {
  margin-left: auto;
  font-size: 10px;
  color: var(--gray-400);
}
.pdp-q-prog {
  margin-left: auto;
  font-size: 10px;
  color: #2563EB;
  font-weight: 600;
}
.pdp-footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--gray-100);
  background: #fafafa;
}
.pdp-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  border: none;
}
.pdp-btn-primary {
  background: linear-gradient(135deg, #1e40af, #2563EB);
  color: #fff;
  flex: 1;
  justify-content: center;
}
.pdp-btn-ghost {
  background: #fff;
  border: 1px solid var(--gray-200) !important;
  color: var(--gray-600);
}

/* ── Use Cases ─────────────────────────────────────── */
.pd-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pd-usecase-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pd-usecase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pd-uc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pd-usecase-card h3 { font-size: 17px; font-weight: 650; color: var(--dark); margin-bottom: 10px; }
.pd-usecase-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px; }
.pd-uc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-uc-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

/* ── Tech Specs ────────────────────────────────────── */
.pd-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pd-spec-group {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pd-sg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.pd-sg-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-sg-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}
.pd-sl-label { color: var(--gray-500); white-space: nowrap; flex-shrink: 0; }
.pd-sl-val { color: var(--dark); font-weight: 500; text-align: right; }

/* Comparison Table */
.comparison-section { background: var(--gray-50); }
.comparison-table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th, .comparison-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
}
.comparison-table thead th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.comparison-table thead th.highlight { background: var(--primary); }
.comparison-table td.highlight { color: var(--primary); font-weight: 600; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .pd-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .pd-hero-title { font-size: 38px; }
  .pd-designer-mockup { display: none; }
  .pd-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-fdr, .pd-fdr-reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .pd-usecase-grid { grid-template-columns: 1fr; }
  .pd-specs-grid { grid-template-columns: 1fr; }
  .pd-stats-grid { flex-wrap: wrap; }
  .pd-stat { min-width: 110px; }
}
@media (max-width: 640px) {
  .pd-feature-grid { grid-template-columns: 1fr; }
  .pd-fdr-text h2 { font-size: 24px; }
}

/* ==================== Docs Page ==================== */
/* ── Docs Shell (full-height two-panel layout) ──────────── */
body:has(.docs-shell) {
  overflow: hidden;
}
.docs-shell {
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
}

/* ── Left tree sidebar ────── */
.docs-tree {
  width: 256px;
  min-width: 256px;
  border-right: 1px solid var(--gray-200);
  background: #f8f9fc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.docs-tree-head {
  padding: 12px 12px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.docs-tree-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 700;
}
.docs-tree-logo:hover { color: var(--primary); }
.docs-tree-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: text;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
/* .docs-tree-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
} */
.docs-tree-search > i { color: var(--gray-400); flex-shrink: 0; transition: color 0.15s; }
.docs-tree-search:focus-within > i { color: var(--primary); }
.docs-tree-search-input,
.docs-tree-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--gray-700);
}
.docs-tree-search-input::placeholder,
.docs-tree-search input::placeholder { color: var(--gray-400); }
.docs-tree-search kbd {
  flex-shrink: 0;
  font-size: 10px;
  padding: 1px 5px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--gray-400);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.docs-tree-search:focus-within kbd { display: none; }
.docs-tree-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0 40px;
}
.docs-tree-body::-webkit-scrollbar { width: 4px; }
.docs-tree-body::-webkit-scrollbar-track { background: transparent; }
.docs-tree-body::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* Tree group (category) */
.tree-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  transition: background 0.12s;
}
.tree-group-header:hover { background: var(--gray-100); }
.tree-group-header > i { flex-shrink: 0; }
.tree-chevron {
  color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.tree-group.open .tree-chevron { transform: rotate(90deg); }
.tree-folder-icon { color: var(--gray-500); }
.tree-count {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--gray-400);
  background: var(--gray-200);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 400;
}
.tree-children {
  list-style: none;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.tree-group.open .tree-children { max-height: 4000px; }
.tree-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 12px 5px 28px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background 0.1s, color 0.1s;
  position: relative;
}
.tree-item::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
  margin-right: 8px;
  transition: background 0.1s, transform 0.1s;
}
.tree-item:hover { background: #eef2ff; color: var(--primary); }
.tree-item:hover::before { background: var(--primary-light); }
.tree-item-active {
  background: #ede9ff;
  color: var(--primary);
  font-weight: 500;
  border-left-color: var(--primary);
}
.tree-item-active::before {
  background: var(--primary);
  transform: scale(1.3);
}
.tree-empty {
  padding: 4px 12px 4px 30px;
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
}
.tree-section {
  padding: 4px 0 2px;
}
.tree-section-label {
  padding: 8px 14px 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  user-select: none;
}
.tree-section-docs {
  list-style: none;
  padding: 0;
}
.tree-subgroup-li {
  list-style: none;
}
.tree-folder-icon { display: none; }
/* ── Right main area ────── */
.docs-main {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  background: #fff;
}
.docs-main::-webkit-scrollbar { width: 6px; }
.docs-main::-webkit-scrollbar-track { background: transparent; }
.docs-main::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

/* Docs overview page (index) */
.docs-overview-body {
  padding: 0 36px 56px;
  max-width: 1060px;
}
.docs-welcome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #7B61FF 0%, #6C5CE7 40%, #8B7BF7 100%);
  border-radius: 16px;
  padding: 32px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  border: none;
}
.docs-welcome::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.docs-welcome::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.docs-welcome-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.docs-welcome-text { position: relative; z-index: 1; }
.docs-welcome-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.docs-welcome-text p {
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.6;
}
.docs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.docs-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
}
.docs-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  max-width: 520px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.docs-search-bar:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.1);
}
.docs-search-bar i { color: var(--gray-400); flex-shrink: 0; }
.docs-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--gray-700);
  background: transparent;
}
.docs-search-bar input::placeholder { color: var(--gray-400); }
.docs-search-bar kbd {
  font-size: 11px;
  color: var(--gray-400);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  white-space: nowrap;
}
.docs-search-results {
  margin-bottom: 24px;
}
.docs-main {
  padding-top: 0;
}
.docs-main > .docs-search-results {
  padding: 20px 36px 24px;
  max-width: 860px;
  margin-bottom: 0;
}
.docs-search-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.docs-search-count::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.docs-search-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.docs-search-list li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: var(--gray-50, #f9f9fb);
  border-radius: 10px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.docs-search-list li a:hover {
  background: #f0edff;
  border-left-color: var(--primary);
}
.dsr-body { flex: 1; min-width: 0; }
.dsr-title { font-size: 14px; font-weight: 600; color: var(--dark); }
.dsr-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dsr-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  background: #ede9ff;
  padding: 1px 8px;
  border-radius: 20px;
}
.dsr-snippet {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dsr-arrow {
  color: var(--gray-300);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.15s, transform 0.15s;
}
.docs-search-list li a:hover .dsr-arrow {
  color: var(--primary);
  transform: translateX(2px);
}
.docs-search-empty { text-align: center; padding: 48px 0 32px; color: var(--gray-400); }
.docs-search-empty p { margin-top: 8px; font-size: 14px; }
.docs-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.docs-cat-card {
  --card-accent: var(--primary);
  --card-accent-bg: #F5F3FF;
  --card-accent-bg2: #EDE9FE;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.docs-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.docs-cat-card:hover {
  border-color: var(--card-accent-bg2);
  box-shadow: 0 8px 30px -8px rgba(123,97,255,0.12);
  transform: translateY(-3px);
}
.docs-cat-card:hover::before { opacity: 1; }

/* Per-card accent colors */
.docs-cat-card:nth-child(1)  { --card-accent: #7B61FF; --card-accent-bg: #F5F3FF; --card-accent-bg2: #EDE9FE; }
.docs-cat-card:nth-child(2)  { --card-accent: #2563EB; --card-accent-bg: #EFF6FF; --card-accent-bg2: #DBEAFE; }
.docs-cat-card:nth-child(3)  { --card-accent: #059669; --card-accent-bg: #ECFDF5; --card-accent-bg2: #D1FAE5; }
.docs-cat-card:nth-child(4)  { --card-accent: #EA580C; --card-accent-bg: #FFF7ED; --card-accent-bg2: #FFEDD5; }
.docs-cat-card:nth-child(5)  { --card-accent: #7C3AED; --card-accent-bg: #F5F3FF; --card-accent-bg2: #EDE9FE; }
.docs-cat-card:nth-child(6)  { --card-accent: #0891B2; --card-accent-bg: #ECFEFF; --card-accent-bg2: #CFFAFE; }
.docs-cat-card:nth-child(7)  { --card-accent: #DC2626; --card-accent-bg: #FEF2F2; --card-accent-bg2: #FEE2E2; }
.docs-cat-card:nth-child(8)  { --card-accent: #CA8A04; --card-accent-bg: #FEFCE8; --card-accent-bg2: #FEF9C3; }

.docs-cat-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.docs-cat-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--card-accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--card-accent);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.docs-cat-card:hover .docs-cat-card-icon {
  background: var(--card-accent-bg2);
  transform: scale(1.05);
}
.docs-cat-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.docs-cat-card-desc {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.5;
}
.docs-cat-card-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 1px solid var(--gray-100);
  padding-top: 10px;
}
.docs-cat-card-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}
.docs-cat-card-links li a i,
.docs-cat-card-links li a svg { color: var(--gray-400); transition: color 0.15s; }
.docs-cat-card-links li a:hover {
  color: var(--card-accent);
  background: var(--card-accent-bg);
  padding-left: 12px;
}
.docs-cat-card-links li a:hover i,
.docs-cat-card-links li a:hover svg { color: var(--card-accent); }
.docs-cat-more a {
  color: var(--card-accent) !important;
  font-weight: 600;
  font-size: 12.5px;
}
.docs-cat-empty {
  font-size: 12.5px;
  color: var(--gray-400);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

/* Article page */
.docs-article-body {
  padding: 24px 44px 64px;
  max-width: 900px;
}
.docs-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.docs-article-breadcrumb a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-500);
  text-decoration: none;
}
.docs-article-breadcrumb a:hover { color: var(--primary); }
.docs-article-breadcrumb span { color: var(--gray-300); }
.docs-article-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.docs-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.docs-article-meta i { width: 12px; height: 12px; }
.docs-article-summary {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}
.doc-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.doc-nav-prev, .doc-nav-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 13px;
  max-width: 46%;
  transition: all 0.15s;
}
.doc-nav-prev:hover, .doc-nav-next:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-bg);
}
.doc-nav-prev small, .doc-nav-next small {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.doc-nav-next { margin-left: auto; }
.doc-nav-next span { text-align: right; }
.rich-content {
  line-height: 1.8;
  color: var(--gray-700);
}
.rich-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin: 20px 0 10px;
  padding-top: 6px;
}
.rich-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}
.rich-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 8px;
}
.rich-content p {
  margin-bottom: 16px;
}
.rich-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 16px 0;
}
.rich-content pre {
  background: #f6f8fa;
  color: #24292f;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary-light);
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.7;
}
.rich-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  background: var(--primary-bg);
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.rich-content table th, .rich-content table td {
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  font-size: 14px;
}
.rich-content table th {
  background: var(--gray-50);
  font-weight: 600;
}
.rich-content ul, .rich-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.rich-content li {
  margin-bottom: 6px;
}

/* Doc Navigation */
.doc-nav-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.doc-nav-prev, .doc-nav-next {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  transition: all 0.2s;
  text-decoration: none;
}
.doc-nav-prev:hover, .doc-nav-next:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.doc-nav-next {
  text-align: right;
  justify-content: flex-end;
}
.doc-nav-prev span, .doc-nav-next span {
  display: flex;
  flex-direction: column;
}
.doc-nav-prev small, .doc-nav-next small {
  font-size: 12px;
  color: var(--gray-400);
}

.doc-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .docs-article-page .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -280px;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: #fff;
    z-index: 999;
    padding: 20px;
    transition: left 0.3s;
    box-shadow: var(--shadow-xl);
  }
  .docs-sidebar.open { left: 0; }
  .sidebar-close { display: block; }
  .sidebar-toggle { display: block; }
}

/* ==================== Downloads Page ==================== */
/* ── Downloads Page ───────────────────────────────── */
.downloads-page { background: var(--gray-50); }

/* ---- Hero ---- */
.dl-hero {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  padding: 52px 0 48px;
  margin-bottom: 0;
  overflow: hidden;
}
.dl-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  pointer-events: none;
}
.dl-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 15%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(139,92,246,0.1);
  pointer-events: none;
}
.dl-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.dl-hero-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
}
.dl-hero-text h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.dl-hero-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 5px 0 0;
}
.dl-hero-badges {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 99px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.dl-badge:hover {
  background: rgba(255,255,255,0.18);
}

/* ---- Body ---- */
.dl-body {
  padding: 40px 0 80px;
}

/* ---- Section ---- */
.dl-section {
  margin-bottom: 44px;
}
.dl-section:last-child { margin-bottom: 0; }
.dl-category-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl-category-title::before {
  content: '';
  width: 4px; height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
  display: inline-block;
}
.dl-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
  margin-left: 4px;
}

/* ---- Cards grid ---- */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* ---- Card ---- */
.dl-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.dl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.dl-card:hover {
  border-color: #ddd5ff;
  box-shadow: 0 8px 32px -6px rgba(123,97,255,0.13);
  transform: translateY(-3px);
}
.dl-card:hover::before { opacity: 1; }

.dl-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
.dl-card:hover .dl-card-icon {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  transform: scale(1.06);
}
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}
.dl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.dl-version {
  padding: 2px 9px;
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE);
  color: var(--primary);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
}
.dl-size {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--gray-400);
}
.dl-desc {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
}

/* ---- Action buttons ---- */
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  justify-content: center;
  cursor: pointer;
}
.dl-btn-local {
  background: linear-gradient(135deg, var(--primary) 0%, #6C5CE7 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(123,97,255,0.25);
}
.dl-btn-local:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(123,97,255,0.35);
  filter: brightness(1.05);
}
.dl-btn-baidu {
  background: #fff;
  color: #1677ff;
  border: 1.5px solid #d4e4ff;
}
.dl-btn-baidu:hover {
  background: #f0f7ff;
  color: #1677ff;
  border-color: #a3c4ff;
}
.dl-code {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  background: #e8f4ff;
  color: #1677ff;
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.dl-btn-ext {
  background: #fff;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.dl-btn-ext:hover {
  background: var(--gray-50);
  color: var(--dark);
  border-color: var(--gray-300, #D4D4D4);
}
.dl-btn-soon {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--gray-50);
  color: var(--gray-400);
  text-align: center;
  border: 1.5px dashed var(--gray-200);
}

/* Empty */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-400);
}
.empty-state p { margin-top: 12px; font-size: 15px; }

/* ==================== Error Page ==================== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 200px);
}

.error-content {
  text-align: center;
}

.error-code {
  font-size: 100px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 8px;
}

.error-content p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ==================== Footer ==================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 20px 0;
}

/* ---- slim footer ---- */
.footer-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-slim-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.footer-slim-sep {
  color: rgba(255,255,255,0.2);
  font-size: 16px;
}
.footer-slim-slogan {
  font-size: 12px;
  color: rgba(167,139,250,0.75);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.footer-slim-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-slim-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.footer-slim-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.footer-wechat-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.footer-wechat-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.footer-slim-bottom {
  padding: 12px 0 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
@media (max-width: 640px) {
  .footer-slim { flex-direction: column; align-items: flex-start; }
  .footer-slim-nav { justify-content: flex-start; }
  .footer-slim-slogan { display: none; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* ==================== Admin Styles ==================== */
.admin-body main {
  padding-top: var(--header-height);
}

.admin-page {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--dark);
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 20px 20px 12px;
}
.admin-sidebar-header h3 {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-nav {
  padding: 0 12px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all 0.15s;
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.admin-nav a.active {
  background: var(--primary);
  color: #fff;
}
.admin-nav .logout-link:hover {
  background: rgba(239,68,68,0.2);
  color: #ff6b6b;
}
.admin-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.admin-main {
  flex: 1;
  background: var(--gray-50);
  min-width: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.admin-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}
.header-actions {
  display: flex;
  gap: 8px;
}

.admin-content {
  padding: 24px 32px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gray-200);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}
.stat-card-label {
  font-size: 13px;
  color: var(--gray-500);
}

/* Quick Actions */
.quick-actions h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

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

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  transition: all 0.2s;
  text-decoration: none;
}
.action-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.action-card span {
  font-weight: 500;
  font-size: 14px;
}

/* Data Table */
.data-table-wrap {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

.action-cell {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.empty-cell {
  text-align: center;
  padding: 40px !important;
  color: var(--gray-400);
}

.text-muted { color: var(--gray-400); }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }

/* ==================== Forms ==================== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--gray-800);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.15);
}

.form-row {
  display: flex;
  gap: 16px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.form-hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

.input-group {
  display: flex;
  gap: 8px;
}
.input-group input {
  flex: 1;
}

/* Upload progress */
.upload-progress {
  display: none;
  margin-top: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px;
  gap: 10px;
  align-items: center;
}
.upload-progress.active { display: flex; }
.upload-progress-bar-wrap {
  flex: 1;
  background: var(--gray-200);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  transition: width 0.2s ease;
}
.upload-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  min-width: 38px;
  text-align: right;
}
.upload-abort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.upload-abort-btn:hover { background: #fee2e2; color: #dc2626; }
.upload-abort-btn svg { pointer-events: none; }

.form-fieldset {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.form-fieldset legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  padding: 0 8px;
}

/* ==================== Modal ==================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-lg { max-width: 700px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
}
.modal-close:hover { color: var(--gray-700); }

.modal-body {
  padding: 24px;
}

.modal form {
  padding: 24px;
}

/* ==================== Login Page ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--dark), #2D2666, #3B2D7B);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.login-header p {
  color: var(--gray-500);
  font-size: 14px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}
.login-footer a {
  color: var(--gray-500);
  font-size: 13px;
}

/* Alert */
.alert {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* ==================== Editor Page ==================== */
.editor-content .editor-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 24px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-400);
}
.empty-state p {
  margin-top: 12px;
}

/* ==================== Scroll Bar ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ==================== Print Styles ==================== */
@media print {
  .site-header, .site-footer, .docs-sidebar, .admin-sidebar { display: none; }
  main { padding-top: 0; }
}


/* ============================================================
   NEW HOMEPAGE & GLOBAL ENHANCEMENTS
   ============================================================ */

/* ---------- Logo Image ---------- */
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* ---------- Nav Contact Button ---------- */
.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
  font-family: var(--font-family);
  text-decoration: none;
}
.nav-contact-btn:hover { background: var(--primary-dark); transform: translateY(-1px); text-decoration: none; }

/* ---------- Hero Split Layout ---------- */
.hero-split { padding: 100px 0 80px; }
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left { text-align: left; }
.hero-left .hero-badge { justify-content: flex-start; }
.hero-left .hero-actions { justify-content: flex-start; }

.hero-glow-2 {
  left: -200px;
  right: auto;
  bottom: -100px;
  top: auto;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(196,181,253,0.5);
  animation: particle-float 8s ease-in-out infinite;
}
.hero-particles span:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s;   animation-duration: 7s; }
.hero-particles span:nth-child(2)  { left: 25%; top: 70%; animation-delay: 1s;   animation-duration: 9s; }
.hero-particles span:nth-child(3)  { left: 60%; top: 15%; animation-delay: 2s;   animation-duration: 6s; }
.hero-particles span:nth-child(4)  { left: 80%; top: 60%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particles span:nth-child(5)  { left: 45%; top: 85%; animation-delay: 3s;   animation-duration: 10s; }
.hero-particles span:nth-child(6)  { left: 15%; top: 45%; animation-delay: 1.5s; animation-duration: 7s; }
.hero-particles span:nth-child(7)  { left: 70%; top: 35%; animation-delay: 2.5s; animation-duration: 9s; width: 6px; height: 6px; }
.hero-particles span:nth-child(8)  { left: 90%; top: 80%; animation-delay: 0.8s; animation-duration: 8s; }
.hero-particles span:nth-child(9)  { left: 35%; top: 30%; animation-delay: 4s;   animation-duration: 6s; }
.hero-particles span:nth-child(10) { left: 55%; top: 55%; animation-delay: 1.2s; animation-duration: 11s; width: 3px; height: 3px; }

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
}

/* Glass button */
.btn-glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Hero Trust Strip */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

/* ---------- Product Preview Window ---------- */
.hero-right {
  position: relative;
}
.preview-window {
  background: #1A1740;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(123,97,255,0.35);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: visible;
  position: relative;
  animation: preview-float 8s ease-in-out infinite;
}
@keyframes preview-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #110E30;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.preview-dots { display: flex; gap: 6px; }
.dot-r { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dot-y { width: 12px; height: 12px; border-radius: 50%; background: #FEBC2E; }
.dot-g { width: 12px; height: 12px; border-radius: 50%; background: #28C840; }
.preview-app-title {
  flex: 1;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-window-btns { display: flex; gap: 5px; }
.pwb-pill {
  padding: 2px 8px;
  background: rgba(123,97,255,0.25);
  border-radius: 99px;
  font-size: 10px;
  color: var(--accent-light);
  border: 1px solid rgba(123,97,255,0.3);
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: #1E1950;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ptb-left { display: flex; gap: 2px; }
.ptb-item {
  padding: 3px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.ptb-active {
  background: rgba(123,97,255,0.25);
  color: var(--accent-light);
}
.ptb-badge {
  font-size: 10px;
  background: rgba(16,185,129,0.15);
  color: #34D399;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(16,185,129,0.25);
}
.preview-content {
  padding: 14px 16px 10px;
}
.preview-report-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.preview-table th {
  background: rgba(123,97,255,0.2);
  color: var(--accent-light);
  padding: 5px 6px;
  text-align: left;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.preview-table td { padding: 4px 6px; color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.04); }
.preview-table tr:hover td { background: rgba(255,255,255,0.03); }
.td-name { color: rgba(255,255,255,0.9) !important; font-weight: 500; }
.td-num { font-variant-numeric: tabular-nums; color: #C4B5FD !important; }
.td-up { color: #34D399 !important; font-weight: 600; }
.td-dn { color: #F87171 !important; font-weight: 600; }
.td-bar { position: relative; min-width: 60px; }
.td-bar em { font-style: normal; font-size: 10px; color: rgba(255,255,255,0.5); margin-left: 4px; position: relative; z-index: 1; }
/* Preview KPI mini row */
.preview-kpi-row { display: flex; align-items: center; gap: 0; margin-bottom: 7px; padding: 4px 8px; background: rgba(123,97,255,0.08); border-radius: 6px; border: 1px solid rgba(123,97,255,0.12); }
.pkv-item { display: flex; flex-direction: column; flex: 1; align-items: center; }
.pkv-label { font-size: 9px; color: rgba(255,255,255,0.35); line-height: 1.4; }
.pkv-val { font-size: 11px; font-weight: 700; color: #C4B5FD; font-variant-numeric: tabular-nums; }
.pkv-up { color: #34D399 !important; }
.pkv-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.08); margin: 0 2px; flex-shrink: 0; }
/* Rank badge */
.td-rank { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.rank-1 { background: linear-gradient(135deg,#FBBF24,#F59E0B); color: #1E1B4B; }
.rank-2 { background: rgba(196,181,253,0.2); color: #C4B5FD; }
.rank-3 { background: rgba(251,191,36,0.15); color: #FBBF24; }
.td-best-badge { font-size: 9px; color: #FBBF24; margin-left: 2px; vertical-align: middle; }
.bar-fill {
  display: inline-bloc;
  height: 14px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 2px;
  opacity: 0.8;
}
.preview-sum-row td {
  background: rgba(123,97,255,0.12);
  font-weight: 600;
  border-top: 1px solid rgba(123,97,255,0.25);
}
/* Mini bar chart */
.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-top: 12px;
  padding: 0 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}
.pc-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), #9B85FF);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: opacity 0.2s;
  opacity: 0.8;
  min-height: 10px;
}
.pc-bar-hi { background: linear-gradient(to top, #059669, #34D399); opacity: 0.9; }
.pc-bar-warn { background: linear-gradient(to top, #D97706, #FBBF24); opacity: 0.8; }
.pc-bar span {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
/* Floating tags on preview */
.preview-float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(30,27,75,0.95);
  border: 1px solid rgba(123,97,255,0.4);
  border-radius: 99px;
  font-size: 11px;
  color: var(--accent-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: tag-bob 4s ease-in-out infinite;
}
.pft-1 { top: -14px; left: 24px; animation-delay: 0s; }
.pft-2 { bottom: -14px; right: 24px; animation-delay: 2s; }
@keyframes tag-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { text-align: center; }
  .hero-left .hero-badge { justify-content: center; }
  .hero-left .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .preview-window { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero-split { padding: 60px 0 48px; }
  .preview-window { font-size: 10px; }
  .nav-contact-btn { display: none; }
  .pft-1, .pft-2 { display: none; }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-block {
  text-align: center;
  padding: 12px 48px;
}
.sb-value {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.sb-plus { color: var(--accent); font-size: 24px; }
.sb-unit { color: var(--accent); font-size: 24px; }
.sb-sub {
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent-light), #E0CCFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sb-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  color: rgba(167,139,250,0.55);
}
.sb-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.stat-sep {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .stat-block { padding: 12px 24px; }
  .sb-value { font-size: 28px; }
  .stat-sep { display: none; }
}

/* ---------- Section Label ---------- */
.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---------- Feature Spotlight (3 big cards: AI / Platform / Open) ---------- */
.feature-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.fspot-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.28s, box-shadow 0.28s;
}
.fspot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.fspot-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.fspot-ai       .fspot-accent { background: linear-gradient(90deg, #7B61FF, #a78bfa); }
.fspot-platform .fspot-accent { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.fspot-open     .fspot-accent { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.fspot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fspot-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fspot-ai       .fspot-icon { background: #F5F3FF; color: #7B61FF; }
.fspot-platform .fspot-icon { background: #FFFBEB; color: #D97706; }
.fspot-open     .fspot-icon { background: #EFF6FF; color: #3B82F6; }
.fspot-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  line-height: 1.5;
}
.fspot-ai       .fspot-badge { background: #F5F3FF; color: #7B61FF; }
.fspot-platform .fspot-badge { background: #FFFBEB; color: #D97706; }
.fspot-open     .fspot-badge { background: #EFF6FF; color: #3B82F6; }
.fspot-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.fspot-card p  { font-size: 13.5px; color: var(--gray-600); line-height: 1.72; margin-bottom: 20px; }
.fspot-tags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fspot-tags li {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  background: #FAFAFA;
}
.fspot-ai       .fspot-tags li i { color: #7B61FF; }
.fspot-platform .fspot-tags li i { color: #D97706; }
.fspot-open     .fspot-tags li i { color: #3B82F6; }

/* ---------- Features divider ---------- */
.features-divider {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.features-divider::before,
.features-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--gray-200);
}
.features-divider span {
  font-size: 12px; font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Features V2 ---------- */
.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card-v2 {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 24px 36px;
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
  overflow: hidden;
  cursor: default;
}
.feature-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--radius-lg);
}
.feature-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.feature-card-v2:hover::before { opacity: 1; }
.feature-card-v2:hover .fc-arrow { opacity: 1; transform: translateX(0); }
.fc-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card-v2 h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; color: var(--dark); }
.feature-card-v2 p  { font-size: 13px; color: var(--gray-600); line-height: 1.65; }
.fc-arrow {
  position: absolute;
  bottom: 16px; right: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
  color: var(--gray-400);
}
/* Color variants */
.fc-purple .fc-icon-wrap { background: #F5F3FF; color: var(--primary); }
.fc-purple:hover::before { background: linear-gradient(135deg, rgba(123,97,255,0.03) 0%, transparent 100%); }
.fc-blue   .fc-icon-wrap { background: #EFF6FF; color: #3B82F6; }
.fc-green  .fc-icon-wrap { background: #F0FDF4; color: #16A34A; }
.fc-orange .fc-icon-wrap { background: #FFF7ED; color: #EA580C; }
.fc-teal   .fc-icon-wrap { background: #F0FDFA; color: #0D9488; }
.fc-indigo .fc-icon-wrap { background: #EEF2FF; color: #4F46E5; }
.fc-rose   .fc-icon-wrap { background: #FFF1F2; color: #E11D48; }
.fc-cyan   .fc-icon-wrap { background: #ECFEFF; color: #0891B2; }
.fc-amber  .fc-icon-wrap { background: #FFFBEB; color: #D97706; }

@media (max-width: 1100px) {
  .feature-spotlight { grid-template-columns: 1fr 1fr; }
  .feature-spotlight .fspot-card:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .feature-spotlight { grid-template-columns: 1fr; }
  .feature-spotlight .fspot-card:last-child { grid-column: span 1; }
  .features-grid-v2  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid-v2 { grid-template-columns: 1fr; }
}

/* ---------- Scenarios Section ---------- */
.scenario-section { background: var(--primary-bg); }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.scenario-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.28s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #a78bfa 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

/* ── Featured card (中间) ── */
.scenario-card-featured {
  background: linear-gradient(145deg, #7B61FF 0%, #9333ea 60%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(123,97,255,0.35);
}
.scenario-card-featured::before { display: none; }
.scenario-featured-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.scenario-card-featured h3 { color: #fff; }
.scenario-card-featured p  { color: rgba(255,255,255,0.88); }

/* ── Card top row ── */
.scenario-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.scenario-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-icon-1 { background: #EDE9FF; color: var(--primary); }
.sc-icon-2 { background: #FFF7ED; color: #C2410C; }
.sc-icon-3 { background: #DCFCE7; color: #16A34A; }

/* ── Scenario badge ── */
.scenario-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  line-height: 1.5;
  white-space: nowrap;
}
.sc-badge-1   { background: #EDE9FF; color: var(--primary); }
.sc-badge-2   { background: #FFF7ED; color: #C2410C; }
.sc-badge-3   { background: #DCFCE7; color: #16A34A; }
.sc-badge-featured { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Headings & body ── */
.scenario-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.scenario-card p  { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }

/* ── Feature checklist ── */
.scenario-features {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.scenario-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}
.scenario-features li i { flex-shrink: 0; color: var(--primary); }
.scenario-card-featured .scenario-features li { color: rgba(255,255,255,0.92); }
.scenario-card-featured .scenario-features li i { color: #c4b5fd; }

/* ── Footer row: tags + link ── */
.scenario-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.scenario-card-featured .scenario-footer { border-top-color: rgba(255,255,255,0.18); }
.scenario-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; }
.scenario-tags li {
  padding: 2px 9px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
}
.scenario-card-featured .scenario-tags li {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.scenario-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
  transition: gap 0.2s;
}
.scenario-more:hover { gap: 6px; }
.sc-more-featured { color: #c4b5fd; }
.sc-more-featured:hover { color: #fff; }

/* ── Extra scenarios row (补充4项) ── */
.scenario-extra-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0 8px;
  margin-top: 12px;
  overflow: hidden;
}
.scenario-extra-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 20px 20px;
  transition: background 0.2s;
}
.scenario-extra-item:hover { background: var(--primary-bg); }
.scenario-extra-divider {
  width: 1px;
  height: 44px;
  background: var(--gray-200);
  flex-shrink: 0;
}
.sei-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #EDE9FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sei-icon-b { background: #FEF3C7; color: #D97706; }
.sei-icon-c { background: #DCFCE7; color: #16A34A; }
.sei-icon-d { background: #E0F2FE; color: #0284C7; }
.sei-name { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.sei-desc { font-size: 12px; color: var(--gray-600); }

@media (max-width: 900px) {
  .scenario-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .scenario-extra-row { flex-direction: column; padding: 0; }
  .scenario-extra-item { width: 100%; padding: 16px 20px; }
  .scenario-extra-divider { width: 100%; height: 1px; }
}

/* ---------- Integrations Strip ---------- */
.integrations-section {
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.integrations-title {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.intg-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intg-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intg-domestic-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 20px;
  background: #EDE9FF;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: none;
}
.intg-group-divider {
  height: 1px;
  background: var(--gray-100);
}
.intg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.intg-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.intg-card:hover {
  border-color: rgba(123,97,255,0.3);
  box-shadow: 0 2px 8px rgba(123,97,255,0.08);
}
.intg-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c, #6B7280);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.intg-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ---------- Workflow V2 ---------- */
.workflow-steps-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.wf-step {
  flex: 1;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  position: relative;
}
.wf-step:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.wf-step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}
.wf-step-icon { margin-bottom: 16px; }
.wf-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.wf-step p { font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.wf-step-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.wf-step-link:hover { gap: 8px; }
.wf-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  margin-top: 60px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .workflow-steps-v2 { flex-direction: column; }
  .wf-arrow { transform: rotate(90deg); margin: 4px auto; }
}

/* ---------- Contact Section ---------- */
.contact-section { background: var(--gray-50); }
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-desc { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 28px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-method { display: flex; align-items: center; gap: 14px; }
.cm-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cm-label { font-size: 12px; color: var(--gray-400); margin-bottom: 2px; }
.cm-value { font-size: 14px; font-weight: 600; color: var(--dark); }
.inline-wechat-qr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-200);
  transition: all 0.2s;
}
.inline-wechat-qr:hover { border-color: var(--primary); background: var(--primary-bg); }
.inline-qr-tip { font-size: 12px; color: var(--gray-400); }

/* Contact form */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cf-header {
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--dark), #2D2A60);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.inline-contact-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.icf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icf-field { display: flex; flex-direction: column; gap: 6px; }
.icf-field label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.req { color: var(--danger); }
.icf-field input, .icf-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--dark);
  transition: border-color 0.2s;
  resize: vertical;
}
.icf-field input:focus, .icf-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.12);
}
.icf-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  color: #15803d;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 2px;
  border-radius: 0 4px 4px 0;
}
.icf-success strong { font-weight: 600; }
.icf-success h4 { display: none; }
.icf-success p  { display: none; }
@media (max-width: 900px) {
  .contact-box { grid-template-columns: 1fr; gap: 32px; }
  .icf-row { grid-template-columns: 1fr; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #2D2A66 60%, #3B2D7B 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,97,255,0.2) 0%, transparent 70%);
}
.cta-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.cta-banner-text p { font-size: 16px; color: rgba(255,255,255,0.6); }
.cta-banner-actions { display: flex; gap: 12px; align-items: center; }
@media (max-width: 768px) {
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-text h2 { font-size: 26px; }
  .cta-banner-actions { flex-direction: column; width: 100%; }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer Updates ---------- */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.2s;
}
.footer-social-btn:hover { background: var(--primary-bg); color: var(--primary); }
.footer-icp { color: var(--gray-400); font-size: 12px; margin-top: 4px; }

/* ---------- WeChat / Float Dock ---------- */
.float-dock {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.25s;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.float-btn:hover { transform: translateY(-2px) scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.float-btn svg, .float-btn i  { pointer-events: none; }
.float-btn-wechat {
  background: #07C160;
  padding: 0;
}
.float-btn-msg { background: var(--primary); }
.float-btn-top { background: var(--dark); }
/* WeChat panel */
.float-item { position: relative; }
.wechat-panel {
  display: none;
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  animation: panel-appear 0.2s ease;
}
.wechat-panel.open { display: block; }
@keyframes panel-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wechat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #07C160;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.panel-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.8); display: flex; }
.wechat-qr-wrap { padding: 16px; text-align: center; }
.wechat-tip { font-size: 13px; font-weight: 600; color: var(--dark); margin-top: 10px; }
.wechat-sub { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* QR Placeholder */
.wechat-qr-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: #f9f9f9;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--primary);
  border-style: solid;
}
.qr-tl { top: 6px; left: 6px; border-width: 3px 0 0 3px; }
.qr-tr { top: 6px; right: 6px; border-width: 3px 3px 0 0; }
.qr-bl { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; }
.qr-br { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; }
.qr-center-icon { position: absolute; z-index: 1; }
.qr-dots {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
}
.qd { width: 100%; aspect-ratio: 1; border-radius: 1px; background: transparent; }
.qdon { background: var(--dark); opacity: 0.7; }

/* ---------- Contact Modal ---------- */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal-overlay.open { display: flex; }
.contact-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  animation: modal-appear 0.25s ease;
  overflow: hidden;
}
@keyframes modal-appear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.contact-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.contact-modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.2s;
}
.contact-modal-close:hover { background: var(--gray-200); }
.contact-modal-body { padding: 24px; }
.contact-modal-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cm-field label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.cm-field input, .cm-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--dark);
  transition: border-color 0.2s;
  resize: vertical;
}
.cm-field input:focus, .cm-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.12);
}
.cm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}
.contact-success {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-success h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.contact-success p { color: var(--gray-500); font-size: 14px; }
@media (max-width: 600px) {
  .cm-row { grid-template-columns: 1fr; }
  .cm-actions { flex-direction: column; }
  .cm-actions .btn { width: 100%; justify-content: center; }
}

