/* ============================================================
   万川官网 · 内页
   product / pricing / security / about / privacy / terms 共用
   ------------------------------------------------------------
   ★ 内页首屏刻意**不用**首页那套深色 hero。
     深色首屏的作用是"第一印象"，只值得用一次；每页都来一遍就成了
     背景板，而且会让页头在每页都要切一次配色。
     内页要的是"快速知道这页讲什么"，浅色紧凑更合适。
   ============================================================ */

.page-hero {
  position: relative;
  padding: 132px 0 68px;   /* 顶部留出 sticky 页头的 68px */
  background: linear-gradient(180deg, var(--bg-subtle), var(--bg) 78%);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 12% 0%, rgba(30,64,175,.07), transparent 62%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 760px; }
.page-title { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 20px; }
.page-lede {
  font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.8;
  color: var(--text-soft);
}
.page-meta {
  margin-top: 26px;
  font-size: 13.5px; color: var(--text-muted);
}

/* ── 流程链路（产品页）──
   ★ 横向 5 步在窄屏必然要竖过来。用 grid 的 auto-flow 切换，
     不做横向滚动——流程图横着滚等于"看不见的步骤不存在"。 */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow-step {
  position: relative;
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.flow-step::after {
  content: "→";
  position: absolute; right: -13px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px; color: var(--slate-300);
  z-index: 1;
}
.flow-step:last-child::after { content: none; }
.flow-num {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--moon-500); margin-bottom: 10px;
}
.flow-title { font-size: 15.5px; margin-bottom: 8px; }
.flow-body { font-size: 13.5px; line-height: 1.72; color: var(--text-muted); }

@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step::after { content: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ── 模块块（产品页）── */
.module {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px; align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.module:first-of-type { border-top: none; padding-top: 0; }
.module-title { font-size: 24px; margin-bottom: 14px; }
.module-lede { font-size: 15.5px; line-height: 1.82; color: var(--text-soft); }
.module-points li {
  position: relative;
  padding: 14px 0 14px 26px;
  font-size: 15px; line-height: 1.75;
  border-bottom: 1px solid var(--border-soft);
}
.module-points li:last-child { border-bottom: none; }
.module-points li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moon-400);
}
.module-points strong { font-weight: 600; }
@media (max-width: 900px) { .module { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── 平台矩阵 ── */
.platform-table td:first-child { font-weight: 600; white-space: nowrap; }
.platform-table .yes { color: var(--green-500); font-weight: 600; }
.platform-table .no  { color: var(--text-muted); }

/* ── 安全页：条目 ── */
.sec-item {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.sec-item-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; margin-bottom: 12px;
}
.sec-item-body { font-size: 14.8px; line-height: 1.82; color: var(--text-soft); }
.sec-item-body + .sec-item-body { margin-top: 12px; }
.sec-item code {
  font-family: var(--font-mono); font-size: .9em;
  padding: 2px 6px; border-radius: 5px;
  background: var(--bg-sunken); color: var(--text);
}

/* 数字条（安全页 / 关于页复用）*/
.figure-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--border);
}
.figure {
  padding: 28px 22px; background: var(--bg-card); text-align: center;
}
.figure-value {
  display: block; font-size: clamp(26px, 3.2vw, 34px); font-weight: 700;
  line-height: 1.1; color: var(--accent); margin-bottom: 8px;
}
.figure-label { font-size: 14px; font-weight: 600; }
.figure-note { margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 900px) { .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .figure-row { grid-template-columns: minmax(0, 1fr); } }

/* ── 定价页 ── */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan {
  padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-card);
}
.plan--credits {
  border-color: rgba(242,180,95,.42);
  background: linear-gradient(168deg, rgba(254,243,199,.26), var(--bg-card) 54%);
}
:root[data-theme="dark"] .plan--credits { background: linear-gradient(168deg, rgba(242,180,95,.08), var(--bg-card) 54%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .plan--credits { background: linear-gradient(168deg, rgba(242,180,95,.08), var(--bg-card) 54%); } }
/* 小标题行：定价页套餐卡与支持页应用卡共用同一条 */
.plan-kicker, .app-kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.plan-title { font-size: 22px; margin-bottom: 12px; }
.plan-lede { font-size: 15px; line-height: 1.8; color: var(--text-soft); margin-bottom: 24px; }
.plan-list li {
  position: relative; padding: 12px 0 12px 26px;
  font-size: 14.8px; line-height: 1.7;
  border-bottom: 1px solid var(--border-soft);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  font-size: 13px; font-weight: 700; color: var(--ink-700);
}
:root[data-theme="dark"] .plan-list li::before { color: #8fb0f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .plan-list li::before { color: #8fb0f7; } }
@media (max-width: 820px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── 法务页正文 ──
   ★ 隐私政策与服务条款是给人读的，也是给平台审核员读的。
     行宽压到 68 字符左右、层级只用两级——法务文本最怕的是
     "看起来很全但找不到那一条"。 */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 21px; margin: 52px 0 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-size: 16.5px; margin: 28px 0 10px; }
.legal p { font-size: 15.5px; line-height: 1.86; color: var(--text-soft); margin-bottom: 14px; }
.legal ul { margin: 0 0 18px; }
.legal ul li {
  position: relative; padding: 7px 0 7px 22px;
  font-size: 15.5px; line-height: 1.8; color: var(--text-soft);
}
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--slate-400);
}
.legal strong { color: var(--text); font-weight: 600; }
.legal .callout {
  padding: 20px 24px; margin: 24px 0;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border-left: 3px solid var(--moon-400);
  font-size: 15px; line-height: 1.8; color: var(--text);
}
.legal .data-table { min-width: 520px; }
.legal .table-scroll { margin: 20px 0 26px; }

/* ── 关于页 ── */
.about-lead { max-width: 720px; }
.about-lead p { font-size: 17px; line-height: 1.86; color: var(--text-soft); margin-bottom: 20px; }
.about-lead p strong { color: var(--text); font-weight: 600; }
.company-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-subtle); border: 1px solid var(--border);
}
.company-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.company-row:last-child { border-bottom: none; }
.company-row dt { color: var(--text-muted); }
.company-row dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .company-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ── 页内 CTA 收尾 ── */
.tail-cta {
  margin-top: 20px;
  padding: 44px; text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(158deg, #0d1a52, #0a1442);
  color: var(--text-onDark);
}
.tail-cta h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; margin-bottom: 14px; }
.tail-cta p { max-width: 560px; margin: 0 auto 26px; font-size: 15.5px; line-height: 1.8; color: #c3cdf0; }

/* 六步流程：5 列改 6 列，窄屏三段式降级（6→3→2→1） */
.flow--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) { .flow--six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .flow--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .flow--six { grid-template-columns: minmax(0, 1fr); } }
/* 换行处的箭头要去掉，否则它指向的是下一行的行首 */
@media (max-width: 1180px) {
  .flow--six .flow-step:nth-child(3n)::after { content: none; }
}
@media (max-width: 780px) {
  .flow--six .flow-step:nth-child(2n)::after { content: none; }
  .flow--six .flow-step::after { content: none; }
}

.flow-loop {
  margin-top: 26px; padding: 20px 26px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border-left: 3px solid var(--moon-400);
  font-size: 15.5px; line-height: 1.8; font-weight: 500;
}

/* 左文右卡的两栏（关于页公司信息、支持页报障清单共用）。
   ★ 原来是 about.html 上的一段内联 style；支持页是第二处出现，按复用纪律抽成类。 */
.grid--split { align-items: start; gap: 56px; }

/* ── 支持页 ──
   联系卡三张并排。按钮与地址钉在卡底（margin-top:auto），三张卡的正文长短不一时
   底部仍然齐平——不齐的话视线会在三个不同高度上找「怎么联系」。 */
.contact-card { display: flex; flex-direction: column; }
.contact-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.contact-title { font-size: 18px; }
.contact-body { font-size: 15px; line-height: 1.8; color: var(--text-soft); }
.contact-foot { margin-top: auto; padding-top: 22px; }
.contact-value {
  font-size: 19px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color .15s ease;
  overflow-wrap: anywhere;
}
.contact-value:hover { text-decoration-color: currentColor; }

/* 报障清单：带序号的五条，序号用暖金，与流程步骤的 .flow-num 同一种记号 */
.checklist-card {
  padding: 30px 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.checklist { counter-reset: item; }
.checklist li {
  position: relative; padding: 12px 0 12px 42px;
  font-size: 15.5px; line-height: 1.7;
  border-bottom: 1px solid var(--border-soft);
  counter-increment: item;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--moon-500);
}
.checklist-note {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; line-height: 1.7; color: var(--text-muted);
}

/* FAQ 分组：组名做成表头样式，压在第一条问答的分隔线上 */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group-title {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}

/* 应用商店接入卡：接入 / 权限 / 断开三行，dt 窄列 */
.app-card {
  padding: 34px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
}
.app-title { font-size: 24px; margin-bottom: 14px; }
.app-rows { margin: 0; }
.app-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border-soft);
  font-size: 15px; line-height: 1.8;
}
.app-row dt { color: var(--text-muted); font-weight: 500; }
.app-row dd { margin: 0; color: var(--text-soft); }
@media (max-width: 560px) {
  .app-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .app-card { padding: 26px; }
}

/* 相关页面：三张可点的链接卡，整卡是 <a> */
.link-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.link-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent);
}
.link-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.link-body { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.link-grid + .tail-cta { margin-top: 56px; }

/* ════════ 运费与利润试算器（freight.html）════════ */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; }
@media (max-width: 920px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-pane {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 32px;
}
.calc-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.calc-mode {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.calc-mode:hover { border-color: var(--accent); color: var(--text); }
.calc-mode.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px; line-height: 1.5;
}
.calc-field input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.calc-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-dims { display: flex; gap: 8px; }
.calc-dims input { flex: 1 1 0; min-width: 0; }
.calc-rows { margin: 0; }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 0; border-top: 1px solid var(--border-soft); font-size: 15px;
}
.calc-row dt { color: var(--text-muted); }
.calc-row dd { margin: 0; text-align: right; }
.calc-sub { color: var(--text-muted); font-size: 13px; }
.calc-row--margin { border-top: 2px solid var(--border); }
.calc-row--margin dd { font-weight: 700; font-size: 17px; }
.calc-verdict { margin: 18px 0 0; padding: 14px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.7; }
.calc-verdict--ok { background: var(--success-bg); color: var(--success-text); }
.calc-verdict--mid { background: var(--warning-bg); color: var(--warning-text); }
.calc-verdict--bad { background: var(--danger-bg); color: var(--danger-text); }
.calc-excl { margin: 14px 0 0; padding: 0; list-style: none; }
.calc-excl li {
  position: relative; padding: 7px 0 7px 24px; font-size: 14.5px;
  color: var(--text-soft); border-top: 1px dashed var(--border-soft);
}
.calc-excl li::before { content: "-"; position: absolute; left: 6px; color: var(--text-muted); }
