/* 南康家具经销商流量中心 — 共享样式 */

:root {
  --brand: #157347;
  --brand-dark: #0f5636;
  --brand-light: #e8f3ed;
  --brand-line: #c5ded2;
  --accent: #c8862a;
  --accent-light: #fdf3e3;
  --text: #17211b;
  --muted: #68746d;
  --line: #dbe5de;
  --bg: #f6f8f6;
  --surface: #ffffff;
  --shadow: 0 18px 46px rgba(34, 50, 40, 0.10);
  --shadow-sm: 0 4px 16px rgba(34, 50, 40, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .2px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; }
.brand-text span { font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .4px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px;
  font-size: 14.5px; color: #33403a; transition: .18s;
}
.nav-links a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-links a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14.5px;
  transition: .18s;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px; font-size: 18px; cursor: pointer; color: var(--text);
}

/* ---------- 通用 ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 52px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--brand); background: var(--brand-light);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.35; margin: 0 0 14px; letter-spacing: -.2px; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; color: #3d4a43; }
.lead { font-size: 17.5px; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15.5px; transition: .18s; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(21,115,71,.22); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand-line); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(900px 400px at 15% -10%, #e6f2ec 0%, transparent 60%),
    radial-gradient(700px 380px at 95% 10%, #fbf0dd 0%, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; margin-bottom: 26px; }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.hero-stats .stat b {
  display: block; font-size: 27px; font-weight: 800; color: var(--brand); letter-spacing: -.5px;
}
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- 递进流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative; transition: .2s; box-shadow: var(--shadow-sm);
}
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.flow-step .num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 13px;
}
.flow-step h3 { font-size: 17.5px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.flow-step .flow-link { font-size: 14px; font-weight: 700; color: var(--brand); }
.flow-step::after {
  content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--brand-line); font-size: 20px; font-weight: 700; z-index: 2;
}
.flow-step:last-child::after { display: none; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--brand-light);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 15px;
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 功能清单 ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; color: #37443d; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* ---------- 痛点/对比 ---------- */
.pain { background: #fff; border-left: 3px solid #e0b9b9; border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 10px; }
.pain b { color: #a94442; }
.solve { background: var(--brand-light); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 10px; }
.solve b { color: var(--brand-dark); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: 14px; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--brand-dark); }

/* ---------- 价格 ---------- */
.price-card {
  background: var(--surface); border: 2px solid var(--brand-line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative;
}
.price-card.featured { border-color: var(--brand); }
.price-card .price { font-size: 36px; font-weight: 800; color: var(--brand); letter-spacing: -1px; line-height: 1.2; }
.price-card .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tag {
  position: absolute; top: -12px; right: 22px; background: var(--accent); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 13px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 11px; overflow: hidden;
}
.faq summary {
  padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: #4a564f; font-size: 14.8px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 20px; padding: 46px 40px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f0f6f2; }

/* ---------- 二维码 ---------- */
.qr-box {
  background: #fff; border: 1px dashed var(--brand-line); border-radius: var(--radius);
  padding: 26px; text-align: center; max-width: 320px;
}
.qr-box .qr-slot {
  width: 190px; height: 190px; margin: 0 auto 16px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #f0f4f1, #f0f4f1 10px, #e6ece8 10px, #e6ece8 20px);
  display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #12211a; color: #b9c7bf; padding: 46px 0 30px; margin-top: 20px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: #b9c7bf; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.copyright {
  border-top: 1px solid #24352c; margin-top: 30px; padding-top: 20px;
  font-size: 13px; color: #7d8d84; text-align: center;
}

/* ---------- 两栏布局 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.split.wide { grid-template-columns: 1.1fr .9fr; gap: 28px; }

/* 手机上把表格叠成卡片（避免横向滚动） */
@media (max-width: 700px) {
  table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td { display: block; width: 100%; }
  table.stack tr {
    border-bottom: 2px solid var(--brand-line);
    padding: 10px 0 12px;
  }
  table.stack tr:last-child { border-bottom: none; }
  table.stack td {
    border: none; padding: 5px 16px;
  }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 3px;
  }
  table.stack td:first-child {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    padding-bottom: 8px;
  }
  table.stack td:first-child::before { display: none; }
}

/* 锚点跳转时不被吸顶导航挡住 */
section[id] { scroll-margin-top: 82px; }

/* ---------- 页面头（内页） ---------- */
.page-head {
  padding: 56px 0 44px;
  background: radial-gradient(800px 340px at 20% -20%, #e6f2ec 0%, transparent 60%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .split, .split.wide { grid-template-columns: 1fr; gap: 26px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step::after { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 18px;
    flex-direction: column; align-items: stretch; gap: 4px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .flow { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 34px 22px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}
