/* ==========================================
   UNMH_ERP 营销站点样式 v3
   专业 SaaS 营销页面（修复版）
   ========================================== */

:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1452;
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --gradient: linear-gradient(135deg, #1a237e, #4f46e5);
  --gradient-hero: linear-gradient(135deg, #0a0f2e 0%, #13205c 35%, #1a237e 60%, #3730a3 85%, #4f46e5 100%);
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --bg-dark: #0c1222;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); line-height: 1.7; background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-in { animation: fadeUp 0.7s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.62s; }
.animate-up { animation: fadeUp 0.8s ease-out both; }

.scroll-animate {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.scroll-animate.visible {
  opacity: 1; transform: translateY(0);
}


/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 48px; width: auto;
  display: block; min-width: 48px;
}
.logo-brand {
  display: flex; align-items: baseline; gap: 6px;
}
.logo-text, .logo-brand {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
  color: #0f172a;
}
.logo-accent {
  background: linear-gradient(135deg, #1a237e, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
  color: #64748b; background: #f1f5f9;
  padding: 2px 8px; border-radius: 4px;
  line-height: 1.4;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #475569;
  position: relative; padding: 4px 0; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--gradient); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 8px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.86rem;
  background: var(--gradient) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(26,35,126,0.25);
  transition: all 0.25s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,35,126,0.35) !important; }
.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2.2px;
  background: #334155; border-radius: 2px; transition: all 0.3s;
}
/* 汉堡变 X */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative; padding: 150px 0 90px;
  background: var(--gradient-hero); color: #fff; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
}

/* Hero Background Effects */
.hero-bg-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;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -200px; right: -100px;
  animation: pulse-glow 8s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: -100px; left: -50px;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; margin-bottom: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 8px #34d399;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: 3.6rem; font-weight: 900; line-height: 1.12;
  margin-bottom: 24px; letter-spacing: -1.5px;
}
.gradient-text {
  background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 50%, #ddd6fe 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.13rem; line-height: 1.75; opacity: 0.82;
  max-width: 580px; margin: 0 auto 40px; color: #e2e8f0;
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 11px;
  font-size: 1rem; font-weight: 650; cursor: pointer;
  border: none; text-decoration: none; transition: all 0.28s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  font-family: inherit;
}
.btn-lg { padding: 16px 36px; font-size: 1.04rem; border-radius: 12px; }
.btn-primary {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.2) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.25), 0 0 0 1px rgba(255,255,255,0.3) inset;
}
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.3);
}
.btn-ghost-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-1px);
}
.btn-accent {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.45);
}

/* Hero Stats */
.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 48px;
  padding-top: 44px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-num {
  display: inline; font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: #fff;
}
.stat-suffix { font-size: 1.6rem; font-weight: 700; color: #93c5fd; }
.stat-label {
  font-size: 0.83rem; opacity: 0.6; margin-top: 4px; color: #cbd5e1;
}
.stat-divider {
  width: 1px; height: 44px; background: rgba(255,255,255,0.12); flex-shrink: 0;
}

/* Hero Preview (ERP Mockup) */
.hero-preview {
  margin-top: 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; overflow: hidden;
  text-align: left;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.preview-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: #475569;
}
.preview-dots i:nth-child(1){background:#ef4444;}
.preview-dots i:nth-child(2){background:#eab308;}
.preview-url {
  font-size: 0.76rem; color: #94a3b8; font-family: 'DM Mono', monospace;
}
.preview-body {
  display: flex; padding: 16px; gap: 16px; min-height: 200px;
}
.preview-sidebar {
  width: 160px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.preview-nav-item {
  height: 26px; border-radius: 6px; background: rgba(255,255,255,0.05);
}
.preview-nav-item.active { background: rgba(99,102,241,0.3); width: 85%; }
.preview-nav-item.gap { flex: 1; }

.preview-main { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.preview-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.preview-card {
  padding: 14px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}
.pc-icon { font-size: 1.2rem; margin-bottom: 8px; }
.pc-lines { display: flex; flex-direction: column; gap: 6px; }
.pc-lines i {
  display: block; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
}
.pc-lines i:nth-child(1){width:60%;}
.pc-lines i:nth-child(2){width:45%;height:5px;}
.pc-lines i:nth-child(3){width:30%;height:5px;}

.preview-table { flex: 1; }
.pt-head {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr; gap: 6px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pt-head i, .pt-row i {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08);
}
.pt-head i:first-child{background:rgba(255,255,255,0.14);}
.pt-row {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr; gap: 6px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pt-row-fade i { opacity: 0.4; }


/* ==========================================
   TRUST BAR
   ========================================== */
.trust-bar {
  position: relative; z-index: 3;
  background: #fff; border-bottom: 1px solid var(--border-light);
  padding: 28px 0; margin-top: -1px;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
}
.trust-icon { font-size: 1.5rem; }
.trust-item span {
  font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4;
}
.trust-item small {
  font-weight: 400; color: var(--text-light);
}
.trust-divider {
  width: 1px; height: 32px; background: var(--border); flex-shrink: 0;
}


/* ==========================================
   SECTIONS COMMON
   ========================================== */
.section { padding: 100px 0; }
.section-gray { background: var(--bg-gray); }
.section-header {
  text-align: center; margin-bottom: 64px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.section-tag {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  padding: 5px 14px; background: #eef2ff; border-radius: 100px;
}
.section-header h2 {
  font-size: 2.35rem; font-weight: 850; line-height: 1.2;
  letter-spacing: -0.8px; margin-bottom: 14px; color: #0f172a;
}
.section-header p {
  font-size: 1.07rem; color: var(--text-light); line-height: 1.7; }


/* ==========================================
   MODULES GRID (核心功能模块)
   ========================================== */
.section-modules { background: #fff; }
.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.module-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.module-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* 使用 CSS 变量 + rgba 替代 oklch()，兼容性更好 */
.module-card-top {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--mc-color-alpha), var(--mc-color-faint));
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.module-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--mc-color-semi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.module-index {
  font-size: 2.5rem; font-weight: 900; color: var(--mc-color-pale);
  line-height: 1;
}

.module-card-body { padding: 22px 28px 28px; }
.module-card-body h3 {
  font-size: 1.2rem; font-weight: 750; margin-bottom: 4px; color: #0f172a;
}
.module-card-body p {
  font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px;
}
.module-card-body ul { list-style: none; }
.module-card-body ul li {
  font-size: 0.85rem; color: #475569; padding: 5px 0;
  padding-left: 20px; position: relative; line-height: 1.5;
}
.module-card-body ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
}

/* Finance Module Card (Wide) */
.module-card-wide { grid-column: 1 / -1; }
.module-card-finance {
  border-color: rgba(220,38,38,0.15);
}
.module-card-finance:hover { border-color: rgba(220,38,38,0.4); }
.finance-banner {
  padding: 32px 36px; text-align: center;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border-bottom: 1px solid rgba(220,38,38,0.1);
}
.finance-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff; font-size: 0.73rem; font-weight: 700;
  margin-bottom: 14px;
}
.finance-banner h3 {
  font-size: 1.5rem; font-weight: 800; color: #7f1d1d; margin-bottom: 6px;
}
.finance-banner p { font-size: 0.92rem; color: #991b1b; }

.finance-items {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 36px;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
}
.fi-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.fi-item:last-child { border-bottom: none; }
.fi-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.fi-item strong {
  display: block; font-size: 0.91rem; font-weight: 700; color: #0f172a; margin-bottom: 2px;
}
.fi-item span { font-size: 0.81rem; color: var(--text-light); line-height: 1.4; }


/* ==========================================
   WORKFLOW SECTION
   ========================================== */
.workflow-wrapper { max-width: 900px; margin: 0 auto; }

.wf-track {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px; margin-bottom: 24px;
  transition: all 0.3s;
}
.wf-track:hover { box-shadow: var(--shadow); }
.wf-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-light);
  margin-bottom: 20px; padding-left: 4px;
}
.wf-chain {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.wf-node {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; min-width: 72px;
  transition: all 0.25s;
}
.wf-node:hover { border-color: var(--accent); transform: translateY(-2px); }
.wf-node.wf-active {
  border-color: var(--accent); background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.wf-icon { font-size: 1.4rem; }
.wf-name { font-size: 0.77rem; font-weight: 650; color: #334155; white-space: nowrap; }

.wf-arrow {
  font-size: 1.2rem; color: #cbd5e1; font-weight: 300;
  padding: 0 2px;
}

/* Split node for cancel/return */
.wf-node.wf-split {
  flex-direction: row; gap: 10px; padding: 10px 14px; min-width: unset; border-style: dashed;
  background: #fafafa;
}
.wf-sub {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px;
  border-radius: 8px; border: 1px solid var(--border); background: #fff;
  transition: all 0.2s;
}
.wf-sub:hover { border-color: #f87171; background: #fef2f2; }
.wf-sub .wf-icon { font-size: 1.1rem; }
.wf-name-sm { font-size: 0.7rem; font-weight: 600; color: #64748b; }
.wf-or {
  font-size: 0.7rem; font-weight: 700; color: #94a3b8; align-self: center;
}

.wf-note {
  margin-top: 16px; padding: 10px 16px;
  background: #f8fafc; border-radius: 8px; border-left: 3px solid var(--accent);
  font-size: 0.8rem; color: var(--text-light); line-height: 1.5;
}

/* Track colors */
.wf-purchase .wf-label { color: #059669; }
.wf-sales .wf-label { color: #2563eb; }
.wf-finance .wf-label { color: #7c3aed; }
.wf-purchase .wf-active { border-color: #059669; background: #ecfdf5; box-shadow: 0 0 0 3px rgba(5,150,105,0.06); }
.wf-sales .wf-active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,0.06); }
.wf-finance .wf-active { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(124,58,237,0.06); }


/* ==========================================
   WHY US SECTION
   ========================================== */
.section-why { background: #fff; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.why-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border);
  transition: all 0.35s;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  opacity: 0; transition: opacity 0.3s;
}
.why-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.why-card:hover::before { opacity: 1; }

.why-number {
  font-size: 2.2rem; font-weight: 900; color: var(--accent);
  opacity: 0.15; line-height: 1; margin-bottom: 12px;
}
.why-card h3 {
  font-size: 1.1rem; font-weight: 750; margin-bottom: 10px; color: #0f172a;
}
.why-card p {
  font-size: 0.87rem; color: var(--text-light); line-height: 1.7;
}


/* ==========================================
   PRICING SECTION
   ========================================== */
.section-pricing { background: var(--bg-gray); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
/* 4列定价布局 */
.pricing-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  align-items: start;
}

.pricing-card {
  padding: 40px 32px; border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--border);
  transition: all 0.35s; position: relative;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
}

.pricing-popular {
  border-color: var(--accent);
  box-shadow: 0 8px 48px rgba(79,70,229,0.12);
  transform: scale(1.03); z-index: 2;
}
.pricing-popular:hover { transform: scale(1.04); }

/* PLUS 高级版卡片 */
.pricing-card-plus {
  border-color: #b45309;
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
  position: relative;
}
.pricing-card-plus:hover {
  border-color: #d97706;
  box-shadow: 0 8px 48px rgba(180,83,9,0.15);
}
.pc-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px; border-radius: 100px;
  background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff;
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
}

.popular-tag {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px; border-radius: 100px;
  background: var(--gradient); color: #fff;
  font-size: 0.76rem; font-weight: 700; white-space: nowrap;
}

.pc-name {
  font-size: 1.15rem; font-weight: 750; margin-bottom: 6px; color: #0f172a;
}
.pc-price {
  font-size: 3rem; font-weight: 900; color: var(--primary);
  margin: 14px 0 4px; line-height: 1;
}
.currency { font-size: 1.4rem; font-weight: 700; vertical-align: top; margin-right: 2px; }
.period {
  font-size: 1rem; font-weight: 400; color: var(--text-light);
  vertical-align: baseline;
}
.pc-desc {
  font-size: 0.87rem; color: var(--text-light); margin-bottom: 24px;
}
.pricing-card ul { list-style: none; margin-bottom: 32px; }
.pricing-card ul li {
  padding: 9px 0; font-size: 0.89rem; color: #475569;
  display: flex; align-items: center; gap: 10px;
}
.pricing-card ul li::before {
  content: '✓'; color: #16a34a; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center; margin-top: 32px;
  padding: 16px 24px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-light);
}

/* 源码授权声明 */
.source-license-note {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 36px; padding: 24px 28px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fcd34d; border-radius: var(--radius-lg);
  border-left: 4px solid #f59e0b;
}
.license-icon { font-size: 2rem; flex-shrink: 0; }
.license-content h4 {
  font-size: 1rem; font-weight: 700; color: #92400e; margin-bottom: 8px;
}
.license-content p {
  font-size: 0.87rem; color: #b45309; line-height: 1.7; margin-bottom: 6px;
}
.license-content p:last-child { margin-bottom: 0; }
.license-content strong { color: #92400e; }

/* 用户协议提醒 */
.pricing-agreement-note {
  text-align: center; margin-top: 16px;
  padding: 12px 20px; background: #f1f5f9;
  border-radius: var(--radius); border: 1px solid var(--border-light);
  font-size: 0.82rem; color: var(--text-light);
}


/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  position: relative; padding: 90px 0;
  background: var(--gradient-hero); color: #fff; overflow: hidden;
  text-align: center;
}
.cta-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59,130,246,0.12) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; }
.cta-section h2 {
  font-size: 2.6rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -0.8px;
}
.cta-section p {
  font-size: 1.1rem; opacity: 0.8; margin-bottom: 36px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ==========================================
   FOOTER
   ========================================== */
footer { background: var(--bg-dark); color: #94a3b8; padding: 64px 0 0; }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
}
.f-logo-img {
  height: auto; max-height: none;
  margin-bottom: 16px;
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.85rem; line-height: 1.75; margin-bottom: 16px; max-width: 300px;
}
.f-license {
  display: inline-block; padding: 5px 12px;
  background: rgba(255,255,255,0.05); border-radius: 6px;
  font-size: 0.78rem; color: #64748b;
}
.footer-col h4 {
  color: #e2e8f0; font-size: 0.9rem; font-weight: 700; margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.85rem; transition: color 0.2s; color: #94a3b8;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 48px; padding: 24px 0;
  text-align: center; font-size: 0.8rem; color: #475569;
}


/* ==========================================
   SUB-PAGES: Hero Mini (子页面顶部标题区)
   ========================================== */
.hero-mini {
  padding: 130px 0 60px;
  background: var(--gradient-hero);
  color: #fff; text-align: center;
}
.hero-mini h1 {
  font-size: 2.4rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 12px; letter-spacing: -0.6px;
}
.hero-mini p {
  font-size: 1.07rem; opacity: 0.75; max-width: 520px;
  margin: 0 auto; color: #cbd5e1;
}


/* ==========================================
   SUB-PAGE: Features (功能介绍页)
   ========================================== */
.feature-detail { background: var(--bg-gray); min-height: calc(100vh - 72px); }

.feature-detail .module-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 60px 0;
}

.feature-detail .module-card .module-header {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-bottom: 1px solid var(--border-light);
}
.feature-detail .module-header h3 {
  font-size: 1.15rem; font-weight: 750; color: #0f172a;
}
.feature-detail .module-card .module-body {
  padding: 22px 28px 28px;
}
.feature-detail .module-card .module-body ul { list-style: none; }
.feature-detail .module-card .module-body ul li {
  font-size: 0.88rem; color: #475569; padding: 5px 0;
  padding-left: 20px; position: relative; line-height: 1.55;
}
.feature-detail .module-card .module-body ul li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
}

/* 子页面 module-card 复用首页样式但去掉顶部渐变色依赖 */
.feature-detail .module-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s;
}
.feature-detail .module-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}


/* ==========================================
   SUB-PAGE: Pricing Page (定价页专用)
   ========================================== */
.pricing-page { background: var(--bg-gray); min-height: calc(100vh - 72px); }
.pricing-page .pricing-grid {
  padding: 50px 0 30px;
}
.pricing-page .pricing-card h3 {
  font-size: 1.2rem; font-weight: 750; margin-bottom: 6px; color: #0f172a;
}
.pricing-page .price {
  font-size: 3rem; font-weight: 900; color: var(--primary);
  margin: 14px 0 4px; line-height: 1;
}
.pricing-page .price .period {
  font-size: 1rem; font-weight: 400; color: var(--text-light);
}
.pricing-page .desc {
  font-size: 0.88rem; color: var(--text-light); margin-bottom: 24px;
}
.pricing-page .popular-badge {
  display: inline-block; padding: 5px 20px; border-radius: 100px;
  background: var(--gradient); color: #fff;
  font-size: 0.76rem; font-weight: 700; margin-bottom: 12px;
}
.pricing-page .featured {
  border-color: var(--accent);
  box-shadow: 0 8px 48px rgba(79,70,229,0.12);
  transform: scale(1.03); z-index: 2;
}
.pricing-page .featured:hover { transform: scale(1.04); }

/* FAQ Section */
.faq-grid {
  padding: 40px 0 70px;
  max-width: 760px; margin: 0 auto;
}
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
  overflow: hidden; transition: all 0.25s;
  cursor: pointer;
}
.faq-item:hover { border-color: var(--accent-light); }
.faq-item h4 {
  padding: 18px 24px; font-size: 0.95rem; font-weight: 650;
  color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item h4::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  font-weight: 300; transition: transform 0.3s;
}
.faq-item.open h4::after { transform: rotate(45deg); }
.faq-item > *:last-child { margin-bottom: 0; }
.faq-item p {
  padding: 0 24px 18px; font-size: 0.88rem;
  color: var(--text-light); line-height: 1.7;
  display: none;
}
.faq-item.open p { display: block; }


/* ==========================================
   SUB-PAGE: Contact (联系页)
   ========================================== */
.contact-page { background: var(--bg-gray); min-height: calc(100vh - 72px); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  padding: 50px 0 70px;
  align-items: start;
}
.contact-info { }
.contact-info h3 {
  font-size: 1.3rem; font-weight: 750; margin-bottom: 24px; color: #0f172a;
}
.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.info-item:last-child { border-bottom: none; }
.info-item .icon {
  font-size: 1.5rem; width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; border-radius: 12px;
}
.info-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 2px; }
.info-item p { font-size: 1rem; font-weight: 500; color: #0f172a; }

.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-size: 1.2rem; font-weight: 750; margin-bottom: 24px; color: #0f172a;
}
.contact-form label {
  display: block; font-size: 0.86rem; font-weight: 600;
  color: #334155; margin-bottom: 6px; margin-top: 16px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.92rem;
  font-family: inherit; color: var(--text);
  transition: border-color 0.2s;
  outline: none; background: #fafafa;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.contact-form textarea { min-height: 120px; resize: vertical; }


/* ==========================================
   SUB-PAGE: Help (帮助文档页)
   ========================================== */
.help-page { background: var(--bg-gray); min-height: calc(100vh - 72px); }
.help-wrap {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 50px 0 70px;
}
.help-sidebar {
  position: sticky; top: 92px; align-self: start;
}
.help-sidebar h4 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 16px;
}
.help-sidebar ul { list-style: none; }
.help-sidebar ul li { margin-bottom: 2px; }
.help-sidebar ul a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 0.87rem; color: #475569; transition: all 0.2s;
}
.help-sidebar ul a:hover,
.help-sidebar ul a.active {
  background: #eef2ff; color: var(--primary); font-weight: 600;
}

.help-content {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.help-content section { margin-bottom: 40px; }
.help-content section:last-child { margin-bottom: 0; }
.help-content h2 {
  font-size: 1.5rem; font-weight: 800; color: #0f172a;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}
.help-content h3 {
  font-size: 1.1rem; font-weight: 700; color: #1e293b;
  margin: 20px 0 10px;
}
.help-content p {
  font-size: 0.92rem; color: var(--text-light); line-height: 1.8; margin-bottom: 10px;
}
.help-content ol, .help-content ul {
  padding-left: 20px; margin: 10px 0 16px;
}
.help-content ol li, .help-content ul li {
  font-size: 0.91rem; color: #475569; line-height: 1.7; margin-bottom: 6px;
}
.tip {
  display: block; padding: 14px 18px; margin: 16px 0;
  background: #fefce8; border-left: 3px solid #eab308;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem; color: #854d0e; line-height: 1.6;
}
.help-content a { color: var(--accent); font-weight: 500; }
.help-content a:hover { text-decoration: underline; }


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-detail .module-grid,
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-card-wide { grid-column: 1 / -1; }
  .finance-items { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .preview-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .help-wrap { grid-template-columns: 1fr; }
  .help-sidebar { display: none; }

  /* 4列定价在平板变为2列 */
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
  }
  .nav-links.open { display: flex; z-index: 999; }
  .mobile-toggle { display: flex; }
  .logo-tag { display: none; }

  .hero { padding: 120px 0 70px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 24px; padding-top: 32px; }
  .stat-divider { width: 60px; height: 1px; }
  .hero-preview { display: none; } /* Mobile: hide mockup */

  .trust-inner { flex-direction: column; gap: 20px; }
  .trust-divider { width: 60px; height: 1px; }

  .section { padding: 70px 0; }
  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: 1.8rem; }

  .modules-grid, .pricing-grid, .pricing-grid-4 { grid-template-columns: 1fr; }
  .feature-detail .module-grid,
  .module-grid { grid-template-columns: 1fr; }
  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: none; }

  /* 源码授权声明在小屏幕上纵向排列 */
  .source-license-note { flex-direction: column; gap: 12px; text-align: center; }

  .why-grid { grid-template-columns: 1fr; }

  .wf-chain { gap: 6px; }
  .wf-node { padding: 10px 12px; min-width: 60px; }
  .wf-node.wf-split { flex-direction: column; padding: 8px; }
  .wf-arrow { font-size: 1rem; }
  .br-m { display: block; }
  .br-d { display: none; }

  /* Sub-page hero mini responsive */
  .hero-mini { padding: 110px 0 45px; }
  .hero-mini h1 { font-size: 1.8rem; }

  .cta-section h2 { font-size: 2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .preview-sidebar { display: none; }

  .faq-grid { padding: 30px 0 50px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-mini h1 { font-size: 1.55rem; }
}


/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(26,35,126,0.3);
  opacity: 0; transform: translateY(20px);
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,35,126,0.45);
}


/* ==========================================
   VISUAL POLISH / DETAILS
   ========================================== */

/* Selection color */
::selection {
  background: rgba(79,70,229,0.2);
  color: #1a237e;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth image rendering */
img { image-rendering: -webkit-optimize-contrast; }

/* Link hover underline animation for footer */
.footer-col ul a {
  position: relative;
}
.footer-col ul a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px;
  background: #fff; transition: width 0.25s ease;
}
.footer-col ul a:hover::after { width: 100%; }

/* Pricing card checkmark alignment fix */
.pricing-card ul li::before {
  content: '✓'; color: #16a34a; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}

/* Trust bar item subtle hover */
.trust-item { transition: transform 0.2s; }
.trust-item:hover { transform: translateY(-2px); }

/* Module card icon hover glow effect */
.module-icon-wrap span { transition: transform 0.3s ease; }
.module-card:hover .module-icon-wrap span { transform: scale(1.15) rotate(-5deg); }

/* CTA section button icon spacing */
.btn-white svg, .btn-ghost-white svg { margin-right: 4px; }

/* Scrollbar styling (webkit) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1; border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }


/* ==========================================
   FLOATING WECHAT SERVICE (悬浮微信客服)
   ========================================== */
.wechat-float {
  position: fixed; right: 24px; bottom: 90px; z-index: 950;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0;
}
.wechat-trigger {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #06ae56);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(7,193,96,0.35), 0 0 0 1px rgba(255,255,255,0.15) inset;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.wechat-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(7,193,96,0.45);
}
.wechat-trigger svg { width: 28px; height: 28px; fill: #fff; }

/* Pulse dot on trigger */
.wechat-trigger::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff4757; border: 2px solid #fff;
  animation: wechat-pulse 2s ease-in-out infinite;
}
@keyframes wechat-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* Popup panel */
.wechat-panel {
  position: absolute; right: 70px; bottom: 0;
  width: 280px; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden; opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
}
.wechat-float.active .wechat-panel {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

/* Panel header */
.wechat-panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 14px; background: linear-gradient(135deg, #07c160, #06ae56);
  color: #fff;
}
.wechat-panel-header svg { width: 22px; height: 22px; flex-shrink: 0; }
.wechat-panel-header span {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3px;
}

/* QR code area */
.wechat-qrcode-wrap {
  padding: 20px; text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.wechat-qrcode-img {
  width: 180px; height: 180px; border-radius: 10px;
  border: 1px solid #e2e8f0; padding: 6px;
  display: inline-block;
}
.wechat-qrcode-hint {
  margin-top: 10px; font-size: 0.78rem; color: var(--text-light);
}

/* Online service link */
.wechat-online {
  display: block; text-align: center;
  padding: 14px 20px; font-size: 0.88rem;
  font-weight: 600; color: #07c160; text-decoration: none;
  background: #f0fdf4; border-top: 1px solid #f1f5f9;
  transition: all 0.2s;
}
.wechat-online:hover {
  background: #dcfce7; color: #059669;
}
.wechat-online svg {
  width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px;
}

/* Close button on panel */
.wechat-close-btn {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.85);
  line-height: 1;
  transition: all 0.2s;
}
.wechat-close-btn:hover { background: rgba(255,255,255,0.35); color: #fff; }


/* Responsive: adjust float position for back-to-top */
@media (max-width: 768px) {
  .wechat-float { right: 16px; bottom: 80px; }
  .wechat-trigger { width: 48px; height: 48px; }
  .wechat-trigger svg { width: 24px; height: 24px; }
  .wechat-panel { width: 250px; right: 62px; }
  .wechat-qrcode-img { width: 150px; height: 150px; }
}
