/* ================= SmartChat 官网前台样式（明亮 SaaS 风格） ================= */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #eef2ff;
  --text: #0f172a;
  --text-dim: #64748b;
  --border: #e2e8f0;
  --accent: #f43f5e;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 8px 24px rgba(79, 70, 229, .12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: all .2s;
  border: 2px solid transparent;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--bg-alt); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== 导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--text); }
.brand-logo { font-size: 28px; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { color: var(--text-dim); font-weight: 500; font-size: 15.5px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #eef2ff 0%, #fdf2f8 55%, #fff 100%);
  padding: 96px 0 88px; text-align: center;
}
.hero-badge {
  display: inline-block; background: #fff; border: 1px solid var(--border);
  color: var(--primary); font-size: 14px; font-weight: 600;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: 52px; line-height: 1.25; letter-spacing: -1px; margin-bottom: 22px; }
.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-dim); max-width: 640px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 60px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 34px; color: var(--primary); font-weight: 800; }
.stat span { color: var(--text-dim); font-size: 14px; }
/* 自定义页面 Hero（后台"导航管理"创建的页面） */
.hero-page { padding: 72px 0 56px; }
.hero-page h1 { font-size: 40px; margin-bottom: 14px; }
.hero-page .hero-sub { margin-bottom: 0; }

/* ===== 通用区块 ===== */
.section { padding: 84px 0; }
/* 窄容器：自定义页面正文阅读宽度 */
.container-narrow { max-width: 860px; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: 36px; text-align: center; margin-bottom: 12px; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--text-dim); font-size: 17px; margin-bottom: 52px; }

/* ===== 工作原理 ===== */
.flow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.flow-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow-sm); transition: all .25s;
}
.flow-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.flow-icon { font-size: 44px; margin-bottom: 18px; }
.flow-card h3 { font-size: 22px; margin-bottom: 12px; }
.flow-card p { color: var(--text-dim); font-size: 16px; line-height: 2; }

/* ===== 功能卡片 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: all .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-card-full { grid-column: 1 / -1; }
.feature-icon { font-size: 38px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 15px; }
.feature-detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 14.5px !important; }

/* ===== 行业 ===== */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.industry-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; transition: all .25s; box-shadow: var(--shadow-sm);
}
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.industry-icon { font-size: 42px; margin-bottom: 14px; }
.industry-card h3 { font-size: 18px; margin-bottom: 8px; }
.industry-card p { color: var(--text-dim); font-size: 14px; }

.industry-list { display: grid; gap: 26px; }
.industry-detail {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.industry-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.industry-icon-lg { font-size: 52px; }
.industry-head h2 { font-size: 24px; }
.industry-tagline { color: var(--primary); font-weight: 600; font-size: 15px; }
.industry-desc { color: var(--text-dim); margin-bottom: 18px; }
.scenario-list { list-style: none; display: grid; gap: 10px; }
.scenario-list li {
  background: var(--bg-alt); border-radius: 8px; padding: 11px 18px; font-size: 15px;
}

/* ===== 价格 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.pricing-card {
  position: relative; background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 40px 34px; text-align: center; box-shadow: var(--shadow-sm); transition: all .25s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #eef2ff 0%, #fff 30%);
}
.pricing-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 18px; border-radius: 999px; white-space: nowrap;
}
.pricing-card h3 { font-size: 21px; margin-bottom: 14px; }
.price .amount { font-size: 46px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.price .period { color: var(--text-dim); font-size: 15px; margin-left: 4px; }
.original-price { color: var(--text-dim); text-decoration: line-through; font-size: 14px; margin-top: 2px; }
.pricing-desc { color: var(--text-dim); font-size: 14.5px; margin: 16px 0 22px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; display: grid; gap: 11px; flex: 1; }
.pricing-features li { font-size: 15px; color: var(--text); }
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 10px; }

/* ===== CTA ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, #7c3aed 60%, var(--accent) 130%);
  color: #fff; text-align: center; padding: 78px 0;
}
.cta-band h2 { font-size: 34px; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: .92; margin-bottom: 32px; }

/* ===== 下载页 ===== */
.hero-download { padding: 72px 0 56px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.download-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: all .25s;
  display: flex; flex-direction: column; gap: 18px;
}
.download-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.download-head { display: flex; align-items: center; gap: 16px; }
.download-icon { font-size: 40px; line-height: 1; }
.download-head h3 { font-size: 20px; margin-bottom: 4px; }
.download-note { color: var(--text-dim); font-size: 13.5px; }
.download-code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 16px;
}
.code-label { font-size: 13px; color: var(--text-dim); }
.code-value {
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: 18px; font-weight: 700;
  color: var(--primary); letter-spacing: 2px;
}
.download-empty {
  text-align: center; color: var(--text-dim); font-size: 15.5px; line-height: 2;
  background: var(--bg-soft); border-radius: var(--radius); padding: 44px 24px;
  max-width: 640px; margin: 0 auto;
}
.download-steps {
  max-width: 760px; margin: 56px auto 0; background: var(--bg-soft);
  border-radius: var(--radius); padding: 34px 40px;
}
.download-steps h3 { font-size: 20px; margin-bottom: 18px; }
.download-steps ol { margin-left: 20px; display: grid; gap: 12px; }
.download-steps li { font-size: 15px; line-height: 1.7; color: var(--text); }

/* ===== 页头 ===== */
.page-head {
  background: linear-gradient(160deg, #eef2ff 0%, #fff 100%);
  text-align: center; padding: 72px 0 56px; border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: 40px; margin-bottom: 12px; }
.page-head p { color: var(--text-dim); font-size: 17px; }

/* ===== 联系卡片 ===== */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 700px; margin: 0 auto; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; text-align: center; box-shadow: var(--shadow-sm);
}
.contact-card strong { display: block; font-size: 19px; color: var(--primary); margin-bottom: 8px; }
.contact-card span { color: var(--text-dim); font-size: 14px; }

/* ===== 页脚 ===== */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { display: block; color: #94a3b8; margin-bottom: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.8; color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 24px; text-align: center; font-size: 13px; color: #64748b; }

/* ===== 自定义页面富文本（后台"导航管理"编辑的 HTML 内容排版）===== */
.rich-text { font-size: 16.5px; line-height: 2; color: var(--text); }
.rich-text h2 { font-size: 28px; margin: 40px 0 16px; letter-spacing: -.5px; }
.rich-text h3 { font-size: 21px; margin: 32px 0 12px; }
.rich-text h4 { font-size: 18px; margin: 26px 0 10px; }
.rich-text p { margin-bottom: 18px; }
.rich-text h2:first-child, .rich-text h3:first-child, .rich-text p:first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { padding-left: 26px; margin-bottom: 18px; }
.rich-text li { margin-bottom: 8px; }
.rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--primary-dark); }
.rich-text img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 10px 0; }
.rich-text blockquote {
  border-left: 4px solid var(--primary); background: var(--bg-soft);
  padding: 14px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: var(--text-dim);
}
.rich-text table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.rich-text th, .rich-text td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.rich-text th { background: var(--bg-soft); font-weight: 600; }
.rich-text code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; font-size: 14px; }
.rich-text hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-wrap { gap: 18px; height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { margin-left: 0; gap: 18px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 30px; }
  .flow-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 27px; }
}
