/* ===== 融虔智能平台 - 共用样式 ===== */

:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #d4a017;
  --accent-light: #f0c040;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1a202c;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); line-height: 1.6; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(26, 54, 93, 0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; }
.nav-logo span { color: var(--white); font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.nav-logo span em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; transition: 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--primary-dark) !important; padding: 8px 20px;
  border-radius: 6px; font-weight: 600; font-size: 14px !important;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ===== 移动端菜单 ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; width: 100%;
    background: var(--primary-dark); flex-direction: column; padding: 20px;
    gap: 16px; border-bottom: 1px solid rgba(212,160,23,0.2);
  }
  .nav-links.open { display: flex; }
}

/* ===== Hero 区域 ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0f2440 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 120px 20px 80px; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 20px; max-width: 700px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.75);
  max-width: 560px; margin-bottom: 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,160,23,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== 通用区域 ===== */
.section { padding: 80px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 60px;
}
.section-title h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 18px; max-width: 600px; margin: 0 auto; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary-dark); }
.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-title p { color: rgba(255,255,255,0.7); }

/* ===== 服务卡片 ===== */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: var(--white); border-radius: 16px; padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; border: 1px solid var(--gray-200);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-card .icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--primary); }
.service-card p { color: var(--text-light); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.service-card .tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.tag-video { background: #dbeafe; color: #1d4ed8; }
.tag-wechat { background: #d1fae5; color: #059669; }

/* ===== 信任卖点 ===== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.trust-item { text-align: center; padding: 32px 20px; }
.trust-item .num { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.trust-item h4 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.trust-item p { font-size: 14px; color: var(--text-light); }

/* ===== 流程步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 32px 16px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
  margin: 0 auto 16px;
}
.step h4 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ===== 定价 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--white); border-radius: 16px; padding: 36px 24px;
  border: 1px solid var(--gray-200); text-align: center; transition: all 0.3s;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 8px 30px rgba(212,160,23,0.15); transform: scale(1.03); position: relative; }
.pricing-card.featured::before {
  content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary-dark); padding: 4px 20px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.pricing-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-light); }
.pricing-card .desc { font-size: 14px; color: var(--text-light); margin: 8px 0 20px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-card ul li { padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--gray-100); }
.pricing-card ul li::before { content: '✅ '; }
.pricing-card .btn { width: 100%; }

/* ===== Demo 微信界面 ===== */
.demo-container {
  max-width: 420px; margin: 0 auto; background: var(--white);
  border-radius: 16px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-200);
}
.demo-header { background: var(--primary); color: var(--white); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.demo-header .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--primary-dark); }
.demo-body { display: flex; min-height: 400px; }
.demo-sidebar { width: 120px; background: var(--gray-50); border-right: 1px solid var(--gray-200); }
.demo-contact { padding: 12px 10px; cursor: pointer; border-bottom: 1px solid var(--gray-100); font-size: 12px; transition: 0.2s; }
.demo-contact.active { background: var(--white); border-left: 3px solid var(--accent); }
.demo-contact .status { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.status-high { background: #22c55e; }
.status-mid { background: #eab308; }
.status-low { background: #94a3b8; }
.demo-chat { flex: 1; display: flex; flex-direction: column; }
.demo-msgs { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg-user { align-self: flex-end; background: var(--primary); color: var(--white); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--gray-100); color: var(--text); border-bottom-left-radius: 4px; }
.msg-ai .typing { display: flex; gap: 4px; padding: 4px 0; }
.msg-ai .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-light); animation: typing 1.4s infinite; }
.msg-ai .typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-ai .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.demo-input { display: flex; padding: 12px; gap: 8px; border-top: 1px solid var(--gray-200); }
.demo-input input { flex: 1; padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: 24px; outline: none; font-size: 14px; }
.demo-input input:focus { border-color: var(--primary); }
.demo-input button { background: var(--primary); color: var(--white); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.demo-input button:hover { background: var(--primary-light); }

/* ===== 联系表单 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--white); padding: 32px; border-radius: 16px; border: 1px solid var(--gray-200); }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; margin-bottom: 16px; outline: none; transition: 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.1); }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-info { padding: 32px; }
.contact-info h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 12px; font-size: 15px; }
.contact-info .qr { width: 200px; height: 200px; background: var(--gray-100); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-top: 16px; color: var(--text-light); font-size: 14px; text-align: center; }

/* ===== 页脚 ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 40px 20px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; transition: 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; text-align: center; font-size: 13px; }

/* ===== 服务详情页 ===== */
.page-hero {
  padding-top: 64px; background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); text-align: center; padding-bottom: 60px;
}
.page-hero h1 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; font-size: 18px; }
.func-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.func-card { background: var(--white); padding: 28px 24px; border-radius: 12px; border: 1px solid var(--gray-200); transition: 0.3s; }
.func-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.func-card .f-icon { font-size: 32px; margin-bottom: 12px; }
.func-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.func-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== 案例卡片 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.case-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-200); transition: 0.3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.case-card .thumb { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; }
.case-card .info { padding: 20px; }
.case-card .info h4 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.case-card .info p { font-size: 13px; color: var(--text-light); }
.case-card .info .tag-sm { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-top: 8px; }

/* ===== 功能标签对比 ===== */
.feat-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.feat-table th, .feat-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.feat-table th { background: var(--gray-50); font-weight: 600; color: var(--primary); }
.feat-table tr:hover { background: var(--gray-50); }
.feat-table .check { color: #22c55e; }
.feat-table .cross { color: #ef4444; }

/* ===== 响应式通用 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .pricing-card.featured { transform: none; }
  .service-cards { grid-template-columns: 1fr; }
}

/* ===== 动画 ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
