/* 多谷报价王官网 —— 全站唯一样式表
   设计规范见《页面开发文档.md》第四章：浅灰底 + 白卡片 + 品牌蓝 #2a6df4。 */

:root {
  --brand: #2a6df4;
  --brand-dark: #1b56cc;
  --brand-soft: #eaf1ff;
  --ink: #0f1b2d;
  --text: #33415c;
  --muted: #5b6b82;
  --line: #e6ebf3;
  --bg: #f6f8fc;
  --surface: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 43, 77, .06);
  --shadow-lg: 0 18px 50px rgba(23, 43, 77, .12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* height:auto 必须写：二维码等图片标签上带 width/height 属性，
   只覆盖 width 会让 height 仍按属性值拉伸，二维码就变形了。 */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- 顶栏 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px rgba(23, 43, 77, .05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  flex: none;
}
.logo:hover { color: var(--ink); }
/* 品牌图标：以前是一个写着「钢」的色块，现在换成 assets/img/logo.png。
   img 标签自带 width/height 属性，这里的 width/height 会盖掉全局 img{height:auto}。 */
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  flex: none;
}
.nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 109, 244, .25);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #cdd8ea; color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- 首屏 */

.hero { padding: 76px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  margin-top: 20px;
  font-size: 46px;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.hero-chips li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  margin-right: 6px;
}

.hero-shots {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.hero-shots img {
  width: 46%;
  max-width: 250px;
  filter: drop-shadow(0 18px 40px rgba(23, 43, 77, .14));
}
.hero-shots img:first-child { transform: translateY(18px); }

/* ---------------------------------------------------------------- 通用区块 */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- 三步 */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- 功能宫格 */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7e1f2; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- 对比表 */

.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td {
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: #fafbfe; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 30%; }
.compare .good { color: var(--ink); font-weight: 600; }
.compare .good::before {
  content: "✓";
  color: var(--brand);
  margin-right: 8px;
  font-weight: 700;
}
.compare .bad { color: var(--muted); }

/* ---------------------------------------------------------------- 场景 */

.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene {
  background: linear-gradient(180deg, #fff, #fbfcff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.scene h3 { font-size: 18px; }
.scene p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- 引导卡片 */

.promo {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.promo-text { flex: 1; }
.promo-text h2 { font-size: 26px; }
.promo-text p { margin-top: 10px; color: var(--muted); }
.promo .btn { flex: none; }

/* ---------------------------------------------------------------- FAQ */

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- 底部转化 */

.cta-band {
  background: linear-gradient(135deg, #1b56cc 0%, #2a6df4 55%, #4f8bff 100%);
  color: #fff;
  padding: 72px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.cta-copy { flex: 1; }
.cta-copy h2 { color: #fff; font-size: 32px; }
.cta-copy p { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 520px; }
.cta-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255,255,255,.9); font-size: 14px; }
.cta-points li::before { content: "✓"; margin-right: 6px; color: #bcd4ff; }
.qr-card {
  flex: none;
  width: 240px;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-card img { width: 100%; border-radius: 10px; }
.qr-card span { display: block; margin-top: 12px; color: var(--text); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  background: #0f1b2d;
  color: #94a3b8;
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h4 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; line-height: 1.9; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #7c8aa0;
}
.footer-bottom a { color: #7c8aa0; }

/* ---------------------------------------------------------------- 二维码弹层 */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 27, 45, .55);
}
.qr-modal.is-open { display: flex; }
.qr-modal-card {
  width: 320px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-modal-card h3 { font-size: 18px; }
.qr-modal-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.qr-modal-card img { width: 240px; max-width: 100%; margin: 18px auto 0; border-radius: 10px; }
/* 弹层里有两张码（小程序 / 加微信），靠 hidden 属性切换。
   img { display: block } 会盖掉浏览器默认的 [hidden]{display:none}，这里显式再写一遍。 */
.qr-modal-card img[hidden] { display: none; }
.qr-close {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- 内页 */

.page-head { padding: 64px 0 8px; text-align: center; }
.page-head h1 { font-size: 38px; }
.page-head p { margin: 16px auto 0; max-width: 640px; color: var(--muted); font-size: 16.5px; }

.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.9; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .updated { margin-top: 8px; font-size: 13px; color: #93a1b5; }

/* 演示页 */
.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.demo-card .step-num { margin-bottom: 14px; }
.demo-card h3 { font-size: 17px; }
.demo-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.sample-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
.sample-table th, .sample-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sample-table th { background: #fafbfe; color: var(--muted); font-weight: 600; font-size: 13px; }
.sample-table tr:last-child td { border-bottom: 0; }
.sample-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f5e2ae;
  color: #7a5a10;
  font-size: 14px;
}

/* 联系我们 */
.contact-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-card img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.contact-copy h2 { font-size: 26px; }
.contact-copy p { margin-top: 12px; color: var(--muted); }
.contact-meta { margin-top: 22px; display: grid; gap: 10px; font-size: 15px; color: var(--text); }
.contact-meta strong { color: var(--ink); font-weight: 600; margin-right: 8px; }

/* ---------------------------------------------------------------- 动效 */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature:hover { transform: none; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 960px) {
  .hero h1 { font-size: 36px; }
  .features, .steps, .scenes, .demo-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: left; }
  .qr-card { align-self: flex-start; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card img { width: 240px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
  }
  .nav.is-open .nav-links { flex-direction: column; gap: 4px; }
  .nav.is-open .nav-links a { display: block; padding: 10px 0; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 16px; }
  .hero-shots img { width: 44%; }
  .section { padding: 56px 0; }
  .section-head h2, .page-head h1 { font-size: 26px; }
  .section-head { margin-bottom: 32px; }
  .features, .steps, .scenes, .demo-steps { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: stretch; padding: 30px 24px; }
  .promo .btn { width: 100%; }
  .cta-copy h2 { font-size: 24px; }
  .qr-card { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 26px 22px; }
  .compare th, .compare td { padding: 14px 16px; }
}
