/* ==========================================================
 * 渝知泉 · 喝水成本计算器 / 裂变页 专用样式
 * ========================================================== */

/* ---------- 计算器布局 ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
  margin: 28px 0 20px;
}
.calc-panel {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06);
}
.panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid #0ea5e9;
}

/* ---------- 分段控件 ---------- */
.seg-ctrl {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.seg-btn:hover { color: #0284c7; }
.seg-btn.active {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .35);
}

/* ---------- 表单控件 ---------- */
.form-label {
  display: block;
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-label strong { color: #0ea5e9; font-size: 16px; }
.form-input, .form-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .14);
}
.form-range {
  width: 100%;
  accent-color: #0ea5e9;
  height: 6px;
}
.form-row { margin-bottom: 18px; }
.form-row .form-input + .form-input { margin-top: 10px; }
.form-tip {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 12px 0 0;
  line-height: 1.6;
}

/* ---------- 按钮 ---------- */
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, .3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(14, 165, 233, .42); }
.btn-ghost {
  background: #fff;
  color: #0284c7;
  border-color: #bae6fd;
}
.btn-ghost:hover { background: #f0f9ff; }

/* ---------- 结果区 ---------- */
.result-box { min-height: 200px; }
.result-empty {
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
  padding: 60px 10px;
}
.result-main {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin-bottom: 18px;
}
.result-label { font-size: 13px; opacity: .9; }
.result-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 4px;
  letter-spacing: -1px;
}
.result-sub { font-size: 13px; opacity: .92; }
.result-list { list-style: none; margin: 0 0 16px; padding: 0; }
.result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
  color: #64748b;
}
.result-list li:last-child { border-bottom: 0; }
.result-list b { color: #0f172a; font-weight: 700; }
.result-tip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #0c4a6e;
  line-height: 1.65;
  margin-bottom: 14px;
}
.result-tip.tip-save {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

/* ---------- 留资表单 ---------- */
.lead-form { margin-top: 16px; }
.lead-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.lead-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-top: 12px;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 20px; }
.faq-item {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.faq-item h3 {
  font-size: 16px;
  color: #0f172a;
  margin: 0 0 8px;
  font-weight: 700;
}
.faq-item p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.85;
  margin: 0;
}
.faq-item a { color: #0284c7; }

/* ==========================================================
 * 裂变 / 老带新 页
 * ========================================================== */
.ref-hero {
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 55%, #38bdf8 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 30px;
}
.ref-hero h1 {
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 800;
}
.ref-hero p {
  font-size: 15.5px;
  opacity: .94;
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.8;
}
.ref-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.ref-tier {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.ref-tier:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(14, 165, 233, .13); }
.ref-tier.hot {
  border-color: #f97316;
  box-shadow: 0 8px 26px rgba(249, 115, 22, .2);
}
.ref-tier.hot::after {
  content: "最划算";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
}
.ref-tier .num {
  font-size: 34px;
  font-weight: 800;
  color: #0ea5e9;
  line-height: 1.1;
}
.ref-tier.hot .num { color: #ea580c; }
.ref-tier .unit { font-size: 14px; color: #64748b; margin: 4px 0 10px; }
.ref-tier .desc { font-size: 13.5px; color: #475569; line-height: 1.7; }

.ref-code-box {
  background: #fff;
  border: 2px dashed #bae6fd;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin: 22px 0;
}
.ref-code {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #0369a1;
  font-family: "Courier New", monospace;
  margin: 10px 0;
}
.ref-steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.ref-step {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 20px 22px 20px 66px;
  position: relative;
}
.ref-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.ref-step h3 { margin: 0 0 6px; font-size: 16px; color: #0f172a; }
.ref-step p { margin: 0; font-size: 14px; color: #64748b; line-height: 1.75; }

/* ==========================================================
 * 口碑墙 / 客户案例
 * ========================================================== */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.wall-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.wall-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, .09); }
.wall-top { display: flex; align-items: center; gap: 12px; }
.wall-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.wall-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.wall-role { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }
.wall-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.wall-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.8;
  flex: 1;
  margin: 0;
}
.wall-tag {
  display: inline-block;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}

/* ==========================================================
 * 响应式
 * ========================================================== */
@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .ref-hero { padding: 30px 20px; }
  .ref-hero h1 { font-size: 24px; }
  .ref-code { font-size: 26px; letter-spacing: 4px; }
}
@media (max-width: 560px) {
  .result-price { font-size: 32px; }
  .calc-panel { padding: 20px 16px; }
  .wall-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
 * 博客列表卡片
 * ========================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, .13);
  border-color: #bae6fd;
}
.blog-card h3 {
  font-size: 16.5px;
  color: #0f172a;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.5;
}
.blog-card p {
  font-size: 13.8px;
  color: #64748b;
  line-height: 1.75;
  margin: 0 0 14px;
  flex: 1;
}
.blog-more {
  font-size: 13.5px;
  color: #0284c7;
  font-weight: 600;
}

/* ---------- 文章正文排版 ---------- */
.article-body {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 34px 30px;
  margin: 26px 0;
}
.article-body h2 {
  font-size: 21px;
  color: #0f172a;
  margin: 32px 0 14px;
  font-weight: 700;
  padding-left: 13px;
  border-left: 4px solid #0ea5e9;
  line-height: 1.4;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 17px;
  color: #0f172a;
  margin: 22px 0 10px;
  font-weight: 700;
}
.article-body p {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.95;
  margin: 0 0 16px;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.article-body li {
  font-size: 15px;
  color: #334155;
  line-height: 1.9;
  margin-bottom: 8px;
}
.article-body strong { color: #0f172a; }
.article-body a { color: #0284c7; }
.article-body .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.article-body .info-card {
  background: #f8fafc;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 18px;
}
.article-body .info-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
  color: #0f172a;
}
.article-body .info-card p {
  font-size: 14px;
  margin: 0;
  line-height: 1.8;
  color: #475569;
}
.article-body .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14.5px;
}
.article-body .data-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}
.article-body .data-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  color: #475569;
  line-height: 1.7;
}
.article-body .feature-list {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 700px) {
  .article-body { padding: 24px 18px; }
  .article-body h2 { font-size: 18.5px; }
  .article-body p { font-size: 15px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-body .data-table { font-size: 13px; }
  .article-body .data-table th, .article-body .data-table td { padding: 9px 10px; }
}
