/* 方卡智能外呼官网 - 全站样式 */
:root {
  --c-blue: #1565ac;
  --c-blue-dark: #0e4f88;
  --c-orange: #f08519;
  --c-orange-dark: #d97208;
  --c-green: #7cb52b;
  --c-dark: #333;
  --c-gray: #666;
  --c-light: #999;
  --c-bg: #f6f8fb;
  --c-border: #e5e9f0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(20, 60, 110, .08);
  --maxw: 1140px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--c-dark); line-height: 1.75; background: #fff; font-size: 16px;
}
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-orange); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 10px 26px; border-radius: var(--radius); font-size: 16px; cursor: pointer; border: none; transition: all .2s; text-align: center; }
.btn-primary { background: var(--c-orange); color: #fff !important; }
.btn-primary:hover { background: var(--c-orange-dark); }
.btn-outline { border: 1px solid var(--c-blue); color: var(--c-blue) !important; background: #fff; }
.btn-outline:hover { background: var(--c-blue); color: #fff !important; }
.btn-lg { padding: 13px 36px; font-size: 17px; }

/* ===== 顶部导航 ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo svg { width: 36px; height: 36px; }
.logo-text { font-size: 19px; font-weight: 700; color: var(--c-dark); line-height: 1.15; display: flex; flex-direction: column; }
.logo-text small { font-size: 10px; font-weight: 400; color: var(--c-light); letter-spacing: 2px; }
.main-nav { display: flex; gap: 24px; flex: 1; }
.main-nav a { color: var(--c-dark); font-size: 15.5px; padding: 4px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--c-blue); border-bottom-color: var(--c-orange); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--c-blue); font-size: 16px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-dark); margin: 5px auto; transition: .2s; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #eaf3fc 0%, #f7fbf2 100%); padding: 64px 0 56px; }
.hero h1 { font-size: 34px; line-height: 1.35; margin-bottom: 16px; }
.hero .sub { font-size: 17px; color: var(--c-gray); max-width: 720px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-line { color: var(--c-light); font-size: 14px; }
.trust-line b { color: var(--c-blue); }

/* ===== 通用区块 ===== */
.section { padding: 56px 0; }
.section.alt { background: var(--c-bg); }
.section h2 { font-size: 26px; text-align: center; margin-bottom: 36px; }
.section h2.left { text-align: left; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-dark); }
.card p { color: var(--c-gray); font-size: 15px; }
.card .num { display: inline-block; width: 32px; height: 32px; line-height: 32px; text-align: center; background: var(--c-blue); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 12px; }
.card ul { padding-left: 20px; color: var(--c-gray); font-size: 15px; }
.card ul li { margin-bottom: 6px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 600; }

/* 数据墙 */
.stats { display: flex; justify-content: center; gap: 90px; text-align: center; flex-wrap: wrap; }
.stats .stat b { display: block; font-size: 40px; color: var(--c-blue); font-weight: 800; }
.stats .stat span { color: var(--c-gray); }

/* 图片占位 */
.img-placeholder { background: #f0f4f9; border: 1.5px dashed #b9c6d6; border-radius: var(--radius); color: #8a9bb0; display: flex; align-items: center; justify-content: center; min-height: 220px; font-size: 14px; text-align: center; padding: 16px; }
.product-shot { display: block; max-width: 100%; max-height: 600px; margin: 14px auto 0; border: 1px solid var(--c-border); border-radius: var(--radius); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.cmp th, table.cmp td { border: 1px solid var(--c-border); padding: 11px 14px; text-align: left; }
table.cmp th { background: #eef4fa; color: var(--c-dark); white-space: nowrap; }
table.cmp tr:nth-child(even) td { background: #fafcfe; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.faq-item h3 { font-size: 16.5px; color: var(--c-blue-dark); margin-bottom: 8px; }
.faq-item p { color: var(--c-gray); font-size: 15px; }

/* 合规区 */
.compliance { background: #f4f9ee; border-left: 4px solid var(--c-green); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; }
.compliance ul { padding-left: 20px; color: var(--c-gray); }
.compliance li { margin-bottom: 6px; }

/* 提示框 */
.note-box { background: #fff7ed; border-left: 4px solid var(--c-orange); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--c-gray); font-size: 15px; }

/* CTA 条 */
.cta-strip { background: linear-gradient(120deg, var(--c-blue) 0%, var(--c-blue-dark) 100%); color: #fff; text-align: center; padding: 44px 20px; }
.cta-strip h2 { color: #fff; font-size: 24px; margin-bottom: 20px; }

/* ===== 套餐卡 ===== */
.price-card { position: relative; text-align: center; padding-top: 34px; }
.price-card .tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--c-orange); color: #fff; font-size: 13px; padding: 3px 16px; border-radius: 99px; }
.price-card.featured { border-color: var(--c-orange); border-width: 2px; }
.price-card h3 { font-size: 20px; }
.price-card .for { color: var(--c-light); font-size: 14px; margin-bottom: 14px; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 0 auto 18px; max-width: 270px; }
.price-card ul li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--c-gray); font-size: 15px; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--c-green); font-weight: 700; }
.price-card .trial-line { font-size: 13.5px; color: var(--c-orange); margin-top: 12px; }

/* ===== 留资表单 ===== */
.lead-section { background: linear-gradient(120deg, var(--c-blue-dark) 0%, var(--c-blue) 100%); color: #fff; padding: 52px 0; }
.lead-section h2 { text-align: center; font-size: 26px; margin-bottom: 10px; }
.lead-section .lead-sub { text-align: center; opacity: .92; font-size: 15px; }
.lead-section .lead-note { text-align: center; opacity: .75; font-size: 13.5px; margin-bottom: 26px; }
.lead-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 880px; margin: 0 auto; }
.lead-form input, .lead-form select { padding: 12px 16px; border: none; border-radius: var(--radius); font-size: 15px; min-width: 180px; flex: 1; }
.lead-form button { flex-shrink: 0; }
.form-tip { text-align: center; font-size: 12.5px; opacity: .7; margin-top: 18px; line-height: 1.9; }
.form-msg { text-align: center; margin-top: 16px; font-size: 15px; background: rgba(255,255,255,.14); border-radius: var(--radius); padding: 10px 16px; display: none; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== 页脚 ===== */
.site-footer { background: #21303f; color: #aebbc8; padding: 44px 0 26px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-cols a { display: block; color: #aebbc8; margin-bottom: 8px; }
.footer-cols a:hover { color: #fff; }
.footer-brand .fphone { font-size: 20px; color: #fff; font-weight: 700; margin: 8px 0; }
.qr-placeholder { width: 96px; height: 96px; background: #fff; border-radius: 6px; color: #8a9bb0; font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.5; margin-top: 10px; }
.qr-img { width: 120px; height: 120px; border-radius: 6px; display: block; background: #fff; object-fit: contain; }
.footer-brand .qr-img { margin-top: 10px; width: 150px; height: 150px; }
.float-panel .qr-img { margin: 8px auto 6px; }
#contact .card .qr-img { margin-top: 8px; }
.footer-bottom { border-top: 1px solid #34465a; padding-top: 18px; text-align: center; font-size: 13px; color: #7f8e9d; }
.footer-bottom a { color: #7f8e9d; }

/* ===== 右侧悬浮窗 ===== */
.float-bar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.float-item { position: relative; width: 56px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 9px 4px; cursor: pointer; color: var(--c-dark); font-size: 12px; line-height: 1.3; display: block; }
.float-item svg { width: 22px; height: 22px; display: block; margin: 0 auto 3px; fill: var(--c-blue); }
.float-item:hover { border-color: var(--c-blue); color: var(--c-blue); }
.float-item.trial { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.float-item.trial svg { fill: #fff; }
.float-panel { display: none; position: absolute; right: 64px; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; white-space: nowrap; text-align: center; color: var(--c-dark); }
.float-panel b { color: var(--c-blue); font-size: 17px; }
.float-item:hover .float-panel, .float-item.open .float-panel { display: block; }
.float-panel .qr-placeholder { margin: 8px auto 6px; }

/* ===== 知识库 / 文章 ===== */
.learn-list .card { display: block; color: var(--c-dark); }
.learn-list .card:hover h3 { color: var(--c-blue); }
.learn-list .meta { color: var(--c-light); font-size: 13px; margin-top: 10px; }
.article { max-width: 820px; margin: 0 auto; padding: 48px 20px 56px; }
.breadcrumb { font-size: 13.5px; color: var(--c-light); margin-bottom: 22px; }
.article h1 { font-size: 28px; line-height: 1.4; margin-bottom: 18px; }
.article .lede { font-size: 16.5px; color: var(--c-gray); background: var(--c-bg); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.article h2 { font-size: 21px; margin: 36px 0 14px; padding-left: 12px; border-left: 4px solid var(--c-orange); }
.article p { margin-bottom: 14px; color: #444; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 14px; color: #444; }
.article li { margin-bottom: 7px; }
.article table.cmp { margin: 16px 0 20px; }
.article .img-placeholder { margin: 18px 0; min-height: 180px; }
.article-cta { background: #eef4fa; border: 1px solid #cfe0f0; border-radius: var(--radius); padding: 22px 26px; text-align: center; margin: 36px 0 26px; }
.article-cta p { margin-bottom: 14px; font-weight: 600; color: var(--c-dark); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; flex-wrap: wrap; border-top: 1px solid var(--c-border); padding-top: 18px; }
.article .source-note { font-size: 13px; color: var(--c-light); border-top: 1px dashed var(--c-border); padding-top: 14px; margin-top: 26px; }

/* 页面副标 hero(内页) */
.page-hero { background: linear-gradient(135deg, #eaf3fc 0%, #f7fbf2 100%); padding: 46px 0 40px; }
.page-hero h1 { font-size: 30px; margin-bottom: 12px; }
.page-hero .sub { color: var(--c-gray); max-width: 760px; margin-bottom: 22px; font-size: 16.5px; }

/* ===== 响应式 ===== */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 0; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; border-bottom: 1px solid var(--c-border); }
  .nav-toggle { display: block; }
  .header-cta .header-phone { display: none; }
  .header-inner { gap: 12px; justify-content: space-between; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .page-hero h1 { font-size: 24px; }
  .section h2 { font-size: 22px; }
  .stats { gap: 36px; }
  .stats .stat b { font-size: 30px; }
  .lead-form { flex-direction: column; }
  .lead-form input, .lead-form select { min-width: 0; }
  .float-bar { right: 8px; top: auto; bottom: 16px; transform: none; }
  .float-item { width: 50px; font-size: 11px; }
  .float-panel { right: 58px; }
  .article h1 { font-size: 23px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ===== 微信弹窗 ===== */
.wx-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; }
.wx-modal.open { display: flex; align-items: center; justify-content: center; }
.wx-box { background: #fff; border-radius: 12px; padding: 32px 42px 26px; text-align: center; position: relative; max-width: 92%; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.wx-box h3 { font-size: 19px; margin-bottom: 18px; color: var(--c-dark); }
.wx-box img { width: 220px; height: 220px; display: block; margin: 0 auto; }
.wx-box p { color: var(--c-gray); font-size: 14px; margin-top: 16px; }
.wx-box .wx-phone { color: var(--c-blue); font-weight: 700; font-size: 16px; margin-top: 6px; }
.wx-close { position: absolute; top: 8px; right: 16px; font-size: 28px; color: #bbb; cursor: pointer; line-height: 1; }
.wx-close:hover { color: var(--c-dark); }