/* ============================================================
   pages.css v2 — 定价页 / 案例页 / 对比页专属样式
   设计语言与全局 style.css 联动，全部使用主题变量
   ============================================================ */

/* ---------- 定价页整体紧凑布局 ---------- */
.page-pricing .pricing-hero {
  padding-top: calc(var(--nav-h, 64px) + 36px);
  padding-bottom: 44px;
}
.page-pricing .pricing-hero-head {
  margin-bottom: 0;
}
.page-pricing .pricing-plans-section,
.page-pricing .pricing-compare-section,
.page-pricing .pricing-support-section,
.page-pricing .pricing-why-section {
  padding-top: 56px;
  padding-bottom: 56px;
}
.page-pricing .pricing-section-head {
  margin-bottom: 32px;
}
.page-pricing .pricing-section-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 10px;
}
.page-pricing .pricing-compare-note {
  font-size: 14px;
  max-width: 540px;
  margin-top: 4px;
}
.page-pricing .pricing-compare-panel {
  max-width: 880px;
  margin: 0 auto;
}
.page-pricing .why-free .section-head {
  margin-bottom: 28px;
}
.page-pricing .why-free-grid {
  margin-top: 24px;
  gap: 16px;
}
.page-pricing .why-free-item {
  padding: 22px 18px;
}
.page-pricing .why-free-ico {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}
.page-pricing .why-free-ico svg {
  width: 22px;
  height: 22px;
}
.page-pricing .why-free-item h3 {
  font-size: 15px;
}
.page-pricing .why-free-item p {
  font-size: 12.5px;
}

/* ---------- 定价卡片 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .32s ease, border-color .28s ease, box-shadow .28s ease;
}
.page-pricing .price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 0 1px var(--accent-soft);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 0 0 1px var(--accent-soft);
}

/* 推荐高亮卡 */
.price-card.hl {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 28px 64px rgba(0,0,0,.38);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}
.price-card.hl::before {
  content: "";
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 0 0 4px 4px;
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px var(--accent-glow);
  letter-spacing: .2px;
}

.price-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.2px;
}

.price-best {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.35;
  max-width: 100%;
}

.price-foot {
  margin: 18px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.price-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--txt);
  margin: 10px 0 4px;
  line-height: 1.1;
  letter-spacing: -.4px;
}

.price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.price-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
  min-height: 2.8em;
}

.price-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.price-feat {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--txt);
  line-height: 1.45;
}

.price-feat .pf-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.price-feat-more {
  color: var(--muted);
  font-size: 12px;
  padding-left: 27px;
}
.price-feat-more::before { display: none; }

.price-cta {
  width: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}

/* ---------- 定价功能对比矩阵 ---------- */
.cmp-group { margin-bottom: 0; }
.cmp-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.price-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.price-compare-table th,
.price-compare-table td {
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  vertical-align: middle;
}

.price-compare-table tr:last-child td { border-bottom: none; }

.price-compare-table th:first-child,
.price-compare-table td.cmp-label {
  text-align: left;
  color: var(--txt);
  font-weight: 600;
  width: 46%;
  padding-left: 14px;
  line-height: 1.4;
}

.price-compare-table thead th:not(:first-child),
.price-compare-table .cmp-cell {
  width: 18%;
}

.price-compare-table thead th {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid var(--line);
  background: var(--surface2);
  font-size: 12px;
  letter-spacing: .2px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.price-compare-table tbody td:not(.cmp-label) { color: var(--muted2); }

.price-compare-table .cmp-cell.on {
  color: var(--ok);
  font-weight: 700;
  font-size: 13px;
}

.price-compare-table .cmp-cell.off {
  color: var(--muted2);
  opacity: .55;
  font-size: 12px;
}

.price-compare-table .cmp-section-row td {
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

.price-feat.yes .pf-mark { background: var(--ok-soft); color: var(--ok); }
.price-feat.no .pf-mark { background: rgba(128,128,128,.18); color: var(--muted2); }
.price-feat.no { color: var(--muted); opacity: .75; }

/* ── 商业增值服务卡片 ── */
.support-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.page-pricing .support-svc-grid {
  gap: 14px;
}
.support-svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.page-pricing .support-svc-card:hover {
  transform: translateY(-2px);
}
.support-svc-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-svc-ico svg { width: 20px; height: 20px; color: var(--accent); }
.support-svc-card h3 {
  font-size: 15px;
  font-weight: 660;
  margin-bottom: 8px;
}
.support-svc-card > p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.support-svc-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.support-svc-points li {
  font-size: 12px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.support-svc-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .support-svc-grid { grid-template-columns: 1fr; }
}

/* ---------- 案例卡片 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: transform .32s ease, border-color .28s ease, box-shadow .28s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 24px 56px rgba(0,0,0,.34), 0 0 0 1px var(--accent-soft);
}

.case-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.case-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex: 0 0 46px;
}

.case-icon svg { width: 23px; height: 23px; }

.case-industry { font-size: 18px; font-weight: 700; color: var(--txt); letter-spacing: -.2px; }

.case-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
  margin-bottom: 16px;
}

.case-narrative {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
}

.case-block {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.case-block-pain {
  border-left-color: var(--warn-border);
  background: var(--warn-soft);
}

.case-block-sol {
  border-left-color: var(--ok-border);
  background: var(--ok-soft);
}

.case-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 6px;
}

.case-block-pain .case-block-label { color: var(--warn); }
.case-block-sol .case-block-label { color: var(--ok); }

.case-block-text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--txt);
  margin: 0;
  white-space: normal;
  word-break: normal;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-tag {
  font-size: 12.5px;
  color: var(--accent2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-result { text-align: center; }

.cr-val {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cr-label { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }

.case-note {
  max-width: 920px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted2);
  background: var(--bg2);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
}

/* ---------- 客户证言 ---------- */
.testi-title {
  text-align: center;
  font-size: 24px;
  font-weight: 720;
  color: var(--txt);
  margin-bottom: 26px;
  letter-spacing: -.3px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px 26px 32px;
  position: relative;
  transition: border-color var(--transition);
}
.testi-card:hover { border-color: var(--accent-border); }

.testi-quote {
  color: var(--txt);
  font-size: 15px;
  line-height: 1.78;
}
.testi-by {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.testi-by::before {
  content: "— ";
  color: var(--muted2);
}

.testi-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 14px;
  font-size: 48px;
  line-height: 1;
  color: var(--accent-border);
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .price-grid,
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .page-pricing .price-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }
  .page-pricing .support-svc-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .page-pricing .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .page-pricing .price-card {
    padding: 20px 16px;
  }
  .page-pricing .price-price {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .page-pricing .pricing-hero {
    padding-top: 108px;
    padding-bottom: 36px;
  }
  .page-pricing .pricing-plans-section,
  .page-pricing .pricing-compare-section,
  .page-pricing .pricing-support-section,
  .page-pricing .pricing-why-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .price-price { font-size: 28px; }
  .price-desc { min-height: 0; }
  .case-results { gap: 8px; }
  .cr-val { font-size: 18px; }
  .cr-label { font-size: 11px; }
  .price-card { padding: 22px 18px; }
  .case-card { padding: 24px 20px; }
  .price-compare-table th,
  .price-compare-table td {
    padding: 8px 6px;
    font-size: 11.5px;
  }
  .price-compare-table th:first-child,
  .price-compare-table td.cmp-label {
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card,
  .case-card { transition: none; }
  .price-card:hover,
  .case-card:hover { transform: none; }
}
