/* =========================================================================
   在线工具集 · 共享样式
   设计语言：极简、可信、金融级精度
   ========================================================================= */

/* ---------- 设计变量 ---------- */
:root {
  /* 颜色 */
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --bg-sunken:     #f1f5f9;
  --surface:       #ffffff;
  --text:          #0f172a;
  --text-soft:     #475569;
  --text-mute:    #94a3b8;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-soft:   #eff6ff;
  --accent-border: #bfdbfe;

  --success:       #059669;
  --success-soft:  #ecfdf5;
  --warn:          #d97706;
  --warn-soft:     #fffbeb;
  --danger:        #dc2626;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 间距 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* 圆角 / 阴影 */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow:    0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.10);

  --maxw: 1200px;
  --header-h: 64px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--s-4); }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.brand__name { white-space: nowrap; }
.brand__name b { color: var(--accent); }

.main-nav { display: flex; gap: var(--s-1); margin-left: var(--s-3); }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--text); }
.main-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.header-search {
  margin-left: auto;
  position: relative;
  width: 240px;
}
.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-soft);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.header-search input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.header-search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-mute);
  pointer-events: none;
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-search { width: 160px; }
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.h-display {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
}
.h-section {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
}
.muted { color: var(--text-mute); }
.text-mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--text-mute); }
.btn--lg { height: 52px; padding: 0 var(--s-6); font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- 面板（输入区/结果区） ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.panel__title { font-size: 15px; font-weight: 700; }
.panel__body { padding: var(--s-5); }

/* ---------- 表单 ---------- */
.field { margin-bottom: var(--s-5); }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: var(--s-2);
}
.field__hint { font-size: 12px; color: var(--text-mute); font-weight: 400; }
.input, .select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input.text-mono { font-family: var(--font-mono); }
.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-affix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-affix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-affix .input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.input-affix .input:focus { box-shadow: none; }
.input-affix__addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-mute);
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
}
.input-affix__addon--lead { border-left: 0; border-right: 1px solid var(--border); }

/* 单选分段控件 */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-sunken);
  border-radius: var(--radius);
  gap: 2px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented input:checked + label {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- 工具页主网格 ---------- */
.tool-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--s-6);
  align-items: start;
  margin-top: var(--s-5);
}
.tool-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.tool-main { min-width: 0; }
@media (max-width: 960px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-aside { position: static; }
}

/* ---------- 结果展示 ---------- */
.result-empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--text-mute);
}
.result-empty svg { margin: 0 auto var(--s-4); width: 48px; height: 48px; opacity: .5; }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } }
.kpi {
  background: var(--surface);
  padding: var(--s-5);
}
.kpi__label { font-size: 13px; color: var(--text-soft); margin-bottom: var(--s-2); }
.kpi__value {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.1;
}
.kpi__value--accent { color: var(--accent); }
.kpi__unit { font-size: 14px; font-weight: 500; color: var(--text-mute); margin-left: 4px; }
.kpi__sub { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ---------- 表格 ---------- */
.schedule-table { font-size: 14px; }
.schedule-table th, .schedule-table td {
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
  position: sticky;
  top: 0;
}
.schedule-table th:first-child, .schedule-table td:first-child { text-align: left; }
.schedule-table td { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.schedule-table tbody tr:hover { background: var(--bg-soft); }
.schedule-table-wrap {
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- 对比条（等额本息 vs 等额本金 可视化） ---------- */
.compare-bar {
  position: relative;
  height: 12px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
}
.compare-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.compare-bar__fill--alt { background: var(--success); }

/* ---------- 工具卡片网格（首页） ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tool-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.tool-card__icon svg { width: 22px; height: 22px; }
.tool-card__name { font-weight: 700; font-size: 16px; }
.tool-card__desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.tool-card__meta { font-size: 12px; color: var(--text-mute); margin-top: auto; }
.tool-card--soon { opacity: .65; }
.tool-card--soon:hover { transform: none; border-color: var(--border); box-shadow: none; }
.tool-card__badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-sunken); color: var(--text-mute);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-mute);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ---------- 区块 ---------- */
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-6) 0; }
.section-head { margin-bottom: var(--s-6); }
.section-head .lead { margin-top: var(--s-2); }

/* ---------- 首页 hero ---------- */
.hero {
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--border);
}
.hero__inner { max-width: 720px; }
.hero__inner .h-display { margin: var(--s-3) 0 var(--s-4); }
.hero__cta { display: flex; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }

/* ---------- 分类胶囊 ---------- */
.cat-pills { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-6); }
.cat-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--bg);
  cursor: pointer;
  transition: all .15s;
}
.cat-pill.is-active, .cat-pill:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ---------- SEO 文本区 ---------- */
.seo-content {
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}
.seo-content h2 {
  font-size: 19px; font-weight: 700; color: var(--text);
  margin: var(--s-6) 0 var(--s-3);
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { margin-bottom: var(--s-3); }
.seo-content ul { margin: var(--s-3) 0; padding-left: 20px; list-style: disc; }
.seo-content li { margin-bottom: 6px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-2);
  background: var(--surface);
}
.faq summary {
  font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { margin-top: var(--s-3); color: var(--text-soft); line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--s-8);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: var(--s-7) 0;
  font-size: 14px;
  color: var(--text-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: var(--s-3); }
.footer-col a { display: block; padding: 4px 0; color: var(--text-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px;
}

/* ---------- 工具页头部 ---------- */
.tool-header { padding: var(--s-6) 0 var(--s-5); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.tool-header .h-section { margin-bottom: var(--s-2); }
.tool-header .lead { max-width: 640px; }
.tool-header .eyebrow { margin-bottom: var(--s-2); }

/* ---------- 进入动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .5s ease-out both; }
.reveal--1 { animation-delay: .05s; }
.reveal--2 { animation-delay: .12s; }
.reveal--3 { animation-delay: .2s; }

/* ---------- 状态条 ---------- */
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-border);
}
.notice--warn { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }

/* ---------- 实用工具类 ---------- */
.row { display: flex; gap: var(--s-3); align-items: center; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.hidden { display: none !important; }

/* =========================================================================
   装修预算计算器专用
   ========================================================================= */

/* —— 三档 KPI 条 —— */
.reno-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg-sunken);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
@media (min-width: 720px) {
  .reno-tiers {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}
.reno-tier {
  padding: var(--s-4);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.reno-tier.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.reno-tier__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.reno-tier__name {
  font-weight: 600;
  font-size: 15px;
}
.reno-tier__val {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.reno-tier.is-active .reno-tier__val { color: var(--text); }
.reno-tier__bar {
  height: 6px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
}
.reno-tier__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .35s ease;
}
.reno-tier__diff {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* —— 分项行（label / bar / value 三栏，类似 tax-row）—— */
.reno-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--border);
}
.reno-group__head .h--5 { font-size: 15px; font-weight: 600; }
.reno-group__head .muted { font-size: 13px; }

.reno-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 8px 4px;
  font-size: 14px;
}
.reno-row + .reno-row { border-top: 1px solid var(--bg-sunken); }
.reno-row__label {
  color: var(--text-soft);
  min-width: 0;
}
.reno-row--strong .reno-row__label {
  font-weight: 600;
  color: var(--text);
}
.reno-row__bar {
  height: 8px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}
.reno-row__fill {
  height: 100%;
  border-radius: 999px;
  opacity: .85;
  transition: width .25s ease;
}
.reno-row__val {
  font-size: 14px;
  color: var(--text);
  text-align: right;
  min-width: 120px;
}
.reno-row__val.accent {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.reno-row__val .muted { font-size: 12px; font-weight: 400; }

@media (max-width: 640px) {
  .reno-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .reno-row__label { grid-column: 1 / 2; grid-row: 1; }
  .reno-row__val   { grid-column: 2 / 3; grid-row: 1; text-align: right; min-width: auto; }
  .reno-row__bar   { grid-column: 1 / 3; grid-row: 2; }
}

/* —— 列表（省钱建议 / 避坑提醒）—— */
.reno-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}
.reno-list li {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  border-left: 3px solid var(--border-strong);
  background: var(--bg-soft);
}
.reno-list--tip li { border-left-color: var(--success); background: var(--success-soft); color: #064e3b; }
.reno-list--warn li { border-left-color: var(--warn); background: var(--warn-soft); color: #78350f; }

/* —— 表单分组（装修工具左侧输入面板内）—— */
.reno-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 640px) { .reno-form-grid { grid-template-columns: 1fr; } }
.reno-form-grid .field { grid-column: span 2; }
.reno-form-grid .field.is-half { grid-column: span 1; }
@media (max-width: 640px) { .reno-form-grid .field.is-half { grid-column: span 1; } }

/* =========================================================================
   工具页 · 通用组件样式
   ========================================================================= */

/* —— 工具页 Hero 区域（统一替代旧的 .tool-hero / .nav 结构）—— */
.tool-hero {
  padding: var(--s-6) 0 var(--s-5);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.tool-hero__inner {
  max-width: 720px;
}
.tool-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: var(--s-3);
}
.tool-hero__breadcrumb a { color: var(--text-mute); }
.tool-hero__breadcrumb a:hover { color: var(--accent); }
.tool-hero__breadcrumb span { color: var(--text); }
.tool-hero__title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: var(--s-3);
}
.tool-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
}

/* —— 工具页通用布局 —— */
.tool-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
}
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
}
.tool-aside { min-width: 0; }
.tool-main { min-width: 0; }

/* —— 工具页卡片通用 —— */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

/* —— 结果区 —— */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--s-5);
}

/* —— 面包屑（旧版兼容）—— */
.crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-mute);
  flex-wrap: wrap;
}
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .4; }

/* —— 主题色变体（每个工具可覆盖）—— */
.tool-accent--violet { --accent: #7c3aed; --accent-dark: #6d28d9; --accent-soft: #f5f3ff; --accent-border: #ddd6fe; }
.tool-accent--emerald { --accent: #059669; --accent-dark: #047857; --accent-soft: #ecfdf5; --accent-border: #a7f3d0; }
.tool-accent--rose { --accent: #e11d48; --accent-dark: #be123c; --accent-soft: #fff1f2; --accent-border: #fecdd3; }
.tool-accent--amber { --accent: #d97706; --accent-dark: #b45309; --accent-soft: #fffbeb; --accent-border: #fde68a; }
.tool-accent--sky { --accent: #0284c7; --accent-dark: #0369a1; --accent-soft: #f0f9ff; --accent-border: #bae6fd; }
.tool-accent--pink { --accent: #ec4899; --accent-dark: #db2777; --accent-soft: #fdf2f8; --accent-border: #fbcfe8; }

/* —— 响应式工具页 Hero —— */
@media (max-width: 640px) {
  .tool-hero { padding: var(--s-5) 0 var(--s-4); }
  .tool-hero__desc { font-size: 14px; }
}

/* —— 移动端导航简化 —— */
@media (max-width: 768px) {
  .site-header__inner { gap: var(--s-3); }
  .main-nav { display: none; }
  .header-search { width: 140px; }
  .brand__name span:not(.brand__name) { display: none; }
}
@media (max-width: 480px) {
  .header-search { display: none; }
  .brand__name b { display: inline; }
}

/* —— 工具页底部链接 —— */
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.tool-links a { color: var(--text-soft); transition: color .15s; }
.tool-links a:hover { color: var(--accent); }
.tool-links .label { font-weight: 600; color: var(--text); margin-right: var(--s-2); }

/* —— 通用工具：无衬线 —— */
.tool-footer {
  margin-top: var(--s-8);
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 14px;
}
.tool-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.tool-footer__grid h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: var(--s-3); }
.tool-footer__grid a { display: block; padding: 3px 0; color: var(--text-soft); font-size: 13px; }
.tool-footer__grid a:hover { color: var(--accent); }
.tool-footer__bottom {
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px;
}
@media (max-width: 768px) {
  .tool-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tool-footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   装修预算计算器专用
   ========================================================================= */

/* —— 自定义主材折叠块 —— */
.reno-custom-panel {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--bg-sunken);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

/* =========================================================================
   装修预算计算器 · 补充通用样式
   ========================================================================= */

/* —— 两栏布局 —— */
.layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--s-6);
  align-items: start;
}
.layout__side { min-width: 0; }
.layout__main { min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* —— 标题尺寸 —— */
.h--1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
.h--2 { font-size: clamp(20px, 3vw, 26px); line-height: 1.25; }
.h--3 { font-size: 18px; }
.h--4 { font-size: 16px; font-weight: 700; }
.h--5 { font-size: 15px; font-weight: 600; }
.h-section { letter-spacing: -.01em; }

/* —— 小号按钮 —— */
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); }

/* —— 面板操作区 —— */
.panel__actions {
  display: flex;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.panel__actions .btn { flex: 1; }

/* —— 表单 fieldset —— */
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-4) var(--s-2);
  margin: 0;
}
.fieldset__legend {
  padding: 0 var(--s-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

/* —— 表单 label / input 补充 —— */
.reno-form-grid label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.reno-form-grid input[type="number"],
.reno-form-grid select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.reno-form-grid input[type="number"]:focus,
.reno-form-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* —— 空状态 —— */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-8) var(--s-5);
  min-height: 320px;
}
.empty-state__icon {
  font-size: 48px;
  margin-bottom: var(--s-4);
  opacity: .5;
}
.empty-state h3 { margin-bottom: var(--s-2); }
.empty-state p { max-width: 360px; }

/* —— 项目符号列表 —— */
.bulleted {
  list-style: disc;
  padding-left: var(--s-5);
}
.bulleted li {
  margin-bottom: var(--s-3);
  line-height: 1.65;
  color: var(--text-soft);
}
.bulleted li strong { color: var(--text); }

/* —— 文字尺寸 —— */
.text-s { font-size: 13px; }

/* —— 三档 KPI 条优化 —— */
.reno-tier {
  cursor: default;
  transition: transform .2s ease, box-shadow .2s ease;
}
.reno-tier:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.reno-tier__name {
  font-size: 14px;
  font-weight: 600;
}
.reno-tier__val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}
#tier-eco .reno-tier__fill { background: linear-gradient(90deg, #059669, #34d399); }
#tier-std .reno-tier__fill { background: linear-gradient(90deg, #2563eb, #60a5fa); }
#tier-pre .reno-tier__fill { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* —— 省钱建议 / 避坑卡片 —— */
#reno-tips .reno-list li,
#reno-pitfalls .reno-list li {
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  font-size: 14px;
  line-height: 1.6;
}

/* —— FAQ 详情补充 —— */
.faq__body {
  margin-top: var(--s-3);
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

