/* SEO 引流页：各类计算器 / 重量表 / 简化 Excel 计算器 */
:root {
  --seo-bg: #eef3f8;
  --seo-card: #ffffff;
  --seo-ink: #1a2b3c;
  --seo-muted: #5a6b7c;
  --seo-line: #d5e0ea;
  --seo-brand: #2f6fed;
  --seo-brand-dark: #1e4fb8;
  --seo-accent: #e8891a;
  --seo-ok: #1f8a4c;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--seo-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 111, 237, 0.12), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(232, 137, 26, 0.10), transparent 55%),
    var(--seo-bg);
  line-height: 1.55;
}

a { color: var(--seo-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.seo-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #1e4fb8, #2f6fed 55%, #3a7af0);
  color: #fff;
}
.seo-topbar a { color: #fff; }
.seo-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.seo-brand:hover { text-decoration: underline; }
.seo-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  background: var(--seo-brand);
  color: #fff;
}
.seo-btn:hover { background: var(--seo-brand-dark); text-decoration: none; }
.seo-btn-ghost {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.seo-btn-accent { background: var(--seo-accent); }
.seo-btn-accent:hover { background: #cf7610; }
.seo-btn-ok { background: var(--seo-ok); }
.seo-btn-ok:hover { background: #176b3b; }

.seo-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
body.seo-calc-embed-body .seo-wrap.seo-embed-hero {
  padding: 12px 16px 0;
  padding-bottom: 0;
}
body.seo-calc-embed-body .seo-wrap.seo-embed-hero h1 {
  margin: 0 0 4px;
}
body.seo-calc-embed-body .seo-lead {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--seo-muted);
}
/* 手机端说明分两行；电脑端仍一行 */
body.seo-calc-embed-body .seo-lead-break {
  display: none;
}
@media (max-width: 768px) {
  body.seo-calc-embed-body .seo-lead-break {
    display: inline;
  }
}

.seo-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.25;
}
.seo-lead {
  margin: 0 0 16px;
  color: var(--seo-muted);
  font-size: 17px;
  line-height: 1.6;
}
body.seo-calc-embed-body .container.seo-embed-calc-wrap {
  background: transparent;
}
.seo-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 10px 12px;
  background: var(--seo-card);
  border: 1px solid var(--seo-line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--seo-muted);
}
.seo-meta-bar strong { color: var(--seo-ink); font-weight: 600; }

.seo-card {
  background: var(--seo-card);
  border: 1px solid var(--seo-line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.04);
}

.seo-section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.seo-chip {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--seo-line);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--seo-ink);
  font-size: 14px;
  text-align: center;
}
.seo-chip:hover {
  border-color: var(--seo-brand);
  background: #eef4ff;
  text-decoration: none;
}

.seo-table-wrap { overflow-x: visible; }
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px; /* 理论重量表：适中放大，方便中老年阅读 */
  min-width: 0;
  table-layout: fixed;
}
.seo-table th,
.seo-table td {
  border: 1px solid var(--seo-line);
  padding: 10px 8px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  vertical-align: middle;
}
.seo-table th {
  background: #1e4fb8;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.seo-table tr:nth-child(even) td { background: #f7fafc; }
/* 三列重量表：规格 / 理论重量 / 件支数 */
.seo-table th:nth-child(1),
.seo-table td:nth-child(1) { width: 42%; }
.seo-table th:nth-child(2),
.seo-table td:nth-child(2) { width: 30%; }
.seo-table th:nth-child(3),
.seo-table td:nth-child(3) { width: 28%; }

/* 常用公式表（两列）：品名列够放下最长品名，公式列仍占主要宽度 */
.seo-table.seo-table-formula th:nth-child(1),
.seo-table.seo-table-formula td:nth-child(1) {
  width: 32%;
  white-space: nowrap;
  padding-right: 10px;
}
.seo-table.seo-table-formula th:nth-child(2),
.seo-table.seo-table-formula td:nth-child(2) {
  width: 68%;
}

.seo-calc-table input,
.seo-calc-table select {
  width: 100%;
  min-width: 72px;
  border: 1px solid #c9d5e2;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 14px;
  background: #fff;
}
.seo-calc-table input[readonly] {
  background: #f0f4f8;
  color: #334;
}
.seo-calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.seo-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f7ee;
  color: #14532d;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

/* 理论表顶部：六句卖点 + 最强/极简（无本品种按钮） */
.seo-promo-top {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff7eb, #eef4ff);
  border: 1px solid #f0d2a8;
}
.seo-promo-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.seo-promo-lines li {
  margin: 0;
  padding: 3px 0;
  color: var(--seo-ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}
.seo-promo-cta-text {
  margin: 0 0 10px;
  color: var(--seo-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.seo-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.seo-promo-actions .seo-btn {
  font-size: 16px;
  padding: 10px 18px;
  text-decoration: none;
}
.seo-promo-actions .seo-btn:hover { text-decoration: none; }

.seo-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(120deg, #fff7eb, #eef4ff);
  border: 1px solid #f0d2a8;
}
.seo-cta p { margin: 0; color: var(--seo-muted); font-size: 18px; line-height: 1.6; flex: 1 1 240px; }
.seo-cta strong { color: var(--seo-ink); font-size: 19px; }
.seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.seo-cta .seo-btn { font-size: 16px; padding: 10px 18px; text-decoration: none; }
.seo-cta .seo-btn:hover { text-decoration: none; }

.seo-note {
  margin: 0;
  font-size: 14px;
  color: var(--seo-muted);
}
.seo-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--seo-line);
  font-size: 13px;
  color: var(--seo-muted);
  text-align: center;
  line-height: 1.8;
}
.seo-footer .site-copyright {
  margin: 10px 0 6px;
  color: #6b7280;
}
.seo-footer .site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0;
  font-size: 14px;
}
.seo-footer .site-legal-links a {
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}
.seo-footer .site-legal-links a:hover { text-decoration: underline; }
.seo-footer .site-icp-line,
.seo-footer .site-cs-line {
  margin: 6px 0 0;
}
.seo-footer .site-icp-line a,
.seo-footer .site-cs-line a {
  color: #64748b;
  text-decoration: none;
}
.seo-footer .site-icp-line a:hover,
.seo-footer .site-cs-line a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .seo-wrap { padding: 14px 12px 36px; }
  .seo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .seo-calc-table { min-width: 720px; }
  .seo-hero h1 { font-size: 1.45rem; }
  .seo-lead { font-size: 16px; }
  .seo-meta-bar { font-size: 16px; }
  .seo-section-title { font-size: 1.15rem; }
  /* 手机端：三列一屏内显示，禁止横向滑动 */
  .seo-table-wrap {
    overflow-x: hidden;
    max-width: 100%;
  }
  .seo-table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 16px;
  }
  .seo-table th,
  .seo-table td {
    padding: 10px 4px;
    font-size: 16px;
    white-space: normal;
  }
  .seo-table.seo-table-formula th:nth-child(1),
  .seo-table.seo-table-formula td:nth-child(1) {
    width: 34% !important;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 10px;
  }
  .seo-table.seo-table-formula th:nth-child(2),
  .seo-table.seo-table-formula td:nth-child(2) {
    width: 66% !important;
  }
  /* 最强版 / 极简版：强制同一行，略缩小字号以放下 */
  .seo-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .seo-cta p {
    flex: none;
    font-size: 16px;
  }
  .seo-cta-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 8px;
  }
  .seo-cta .seo-btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    padding: 11px 6px;
    white-space: nowrap;
    text-align: center;
  }
  .seo-promo-lines li { font-size: 15px; }
  .seo-promo-cta-text { font-size: 14px; }
  .seo-promo-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 8px;
  }
  .seo-promo-actions .seo-btn {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    padding: 11px 6px;
    white-space: nowrap;
    text-align: center;
  }
}