/* =========================================================
   晚程网 · 养老计算器（/tools）
   与主站同一套暖米底色 + 赭红主色；大字号、大按钮、高对比
   ========================================================= */

.tool-hero{ padding:26px 0 8px; }
.tool-hero .eyebrow{ font-size:12.5px; letter-spacing:.16em; color:var(--primary); margin:0 0 10px; }
.tool-hero h1{ font-size:32px; line-height:1.35; margin:0 0 14px; }
.tool-hero-lede{ font-size:17.5px; line-height:1.95; color:var(--ink-2); max-width:860px; }
.tool-hero-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.tool-hero-meta span{
  font-size:13px; color:#7d6a55; background:#f6ebda; border:1px solid var(--line);
  padding:5px 12px; border-radius:99px;
}

.tool-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:26px 0 8px; }
.tool-card{
  display:flex; align-items:center; gap:14px; padding:18px 18px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  color:var(--ink);
}
.tool-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); border-color:var(--primary-l); color:var(--ink); }
.tc-icon{
  flex:0 0 auto; width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#f7e3d6,#fdf1e6); color:var(--primary-d);
  font-family:var(--serif); font-size:21px; font-weight:700;
}
.tc-body{ flex:1 1 auto; min-width:0; }
.tc-body strong{ display:block; font-family:var(--serif); font-size:18.5px; line-height:1.4; }
.tc-body em{ display:block; font-style:normal; font-size:13.5px; color:var(--muted); line-height:1.65; margin-top:3px; }
.tc-go{ flex:0 0 auto; color:var(--primary-l); font-size:18px; }
.tool-card:hover .tc-go{ color:var(--primary); }

.tool-how{ margin:38px 0 10px; }
.how-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.how-list li{ background:#fdfaf4; border:1px solid var(--line-2); border-left:3px solid var(--primary-l); border-radius:10px; padding:16px 18px; }
.how-num{ font-family:var(--serif); font-size:13px; color:var(--primary); letter-spacing:.1em; }
.how-list strong{ display:block; font-family:var(--serif); font-size:17.5px; margin:4px 0 6px; }
.how-list p{ margin:0; font-size:15px; line-height:1.8; color:var(--ink-2); }

/* ── 工具页头部 ── */
.tool-head{ padding:20px 0 6px; }
.tool-head h1{ font-size:31px; line-height:1.35; margin:0 0 8px; }
.tool-sub{ font-size:17px; color:var(--primary-d); margin:0 0 12px; }
.tool-lede{ font-size:17px; line-height:1.95; color:var(--ink-2); max-width:900px; margin:0; }

/* ── 表单 + 结果 ── */
.tool-shell{
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); gap:20px;
  margin:24px 0 10px; align-items:start;
}
.tool-form{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 22px 16px; box-shadow:var(--shadow);
}
.tf-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.tf-head h2{ font-size:19px; }
.tf-head span{ font-size:12.5px; color:var(--muted); }
.tf-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; }
.tf{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.tf-wide{ grid-column:1 / -1; }
.tf label{ font-size:14.5px; font-weight:700; color:#4a3a2b; line-height:1.55; }
.tf-u{ font-weight:400; color:var(--muted); }
.tf input[type=number], .tf select{
  width:100%; height:48px; padding:0 12px; font-size:17px; font-family:inherit;
  color:var(--ink); background:#fffdf9; border:1px solid #dfcfb8; border-radius:10px;
  -webkit-appearance:none; appearance:none;
}
.tf select{ background-image:linear-gradient(45deg,transparent 50%,#a89680 50%),linear-gradient(135deg,#a89680 50%,transparent 50%); background-position:calc(100% - 20px) 21px,calc(100% - 14px) 21px; background-size:6px 6px,6px 6px; background-repeat:no-repeat; padding-right:36px; }
.tf input[type=number]:focus, .tf select:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(184,68,42,.12); }
.tf-h{ font-style:normal; font-size:12.5px; color:var(--muted); line-height:1.6; }
.tf-foot{ margin:16px 0 0; font-size:12.5px; color:var(--muted); }

.tool-result{
  background:linear-gradient(175deg,#fffdf9,#fbf3e6); border:1px solid #e6d3ba;
  border-radius:var(--radius); padding:18px 20px 16px; box-shadow:var(--shadow);
  position:sticky; top:14px;
}
.tr-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.tr-head h2{ font-size:18px; }
.tr-reset{
  font-size:13px; color:var(--primary-d); background:#fff; border:1px solid var(--line);
  border-radius:99px; padding:6px 14px; min-height:36px;
}
.tr-reset:hover{ border-color:var(--primary); color:var(--primary); }
.kpi-wrap{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.kpi{ background:#fff; border:1px solid var(--line-2); border-radius:11px; padding:12px 14px; min-width:0; }
.kpi-big{ grid-column:1 / -1; background:linear-gradient(160deg,#b8442a,#9a3520); border-color:#8f3320; }
.kpi:last-child:nth-child(even){ grid-column:1 / -1; }
.kpi-k{ display:block; font-size:12.5px; color:var(--muted); }
.kpi-v{ display:block; font-family:var(--serif); font-size:23px; line-height:1.35; margin-top:3px; word-break:break-word; }
.kpi-n{ display:block; font-style:normal; font-size:12px; color:var(--muted); margin-top:3px; line-height:1.6; }
.kpi-big .kpi-k{ color:#f6ddd2; }
.kpi-big .kpi-v{ color:#fff; font-size:29px; }
.kpi-big .kpi-n{ color:#f0c9bb; }
.kpi-err{ margin:0; color:var(--primary-d); font-size:14px; }

.tr-table{ display:none; margin-top:12px; max-height:340px; overflow:auto; border:1px solid var(--line-2); border-radius:10px; background:#fff; }
.tr-table table{ width:100%; border-collapse:collapse; font-size:14px; }
.tr-table th, .tr-table td{ padding:8px 10px; border-bottom:1px solid #f3e9d8; text-align:left; white-space:nowrap; }
.tr-table th{ position:sticky; top:0; background:#f8efe2; font-weight:700; color:#6b5540; }
.tr-table tr:last-child td{ border-bottom:0; }
.tr-tip{ display:none; margin:12px 0 0; font-size:13.5px; line-height:1.8; color:#7a5c3e; background:#fdf3e4; border-left:3px solid var(--gold); padding:10px 12px; border-radius:0 8px 8px 0; }

/* ── 正文 ── */
.tool-body{ max-width:900px; margin:34px 0 10px; }
.tool-body h2{ font-size:22px; margin:34px 0 12px; padding-bottom:8px; border-bottom:1px dashed var(--line); }
.tool-body h2:first-child{ margin-top:8px; }
.tw{ overflow-x:auto; margin:16px 0; }
.tw table{ width:100%; min-width:520px; border-collapse:collapse; font-size:15.5px; }
.tw th, .tw td{ border:1px solid var(--line); padding:10px 12px; text-align:left; line-height:1.7; }
.tw th{ background:#f7ecdc; font-weight:700; color:#6b5540; }
.tw tr:nth-child(even) td{ background:#fdfaf5; }

.faq-item{ border:1px solid var(--line); border-radius:10px; background:#fffdf9; margin:0 0 10px; }
.faq-item summary{
  cursor:pointer; padding:14px 18px; font-size:16.5px; font-weight:700; color:#4a3a2b;
  list-style:none; position:relative; padding-right:44px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; position:absolute; right:18px; top:12px; color:var(--primary); font-size:20px; font-weight:400; }
.faq-item[open] summary::after{ content:'−'; }
.faq-body{ padding:0 18px 14px; font-size:15.5px; line-height:1.95; color:var(--ink-2); }
.faq-body p{ margin:0 0 .8em; }
.tool-note{ display:block; margin:18px 0 0; padding:14px 16px; background:#f8f2e6; border-left:3px solid #d8c2a4; border-radius:0 8px 8px 0; font-size:13.5px; line-height:1.85; color:#6f5c47; }

.tool-more{ margin:40px 0 30px; }
.tool-more h2{ font-size:21px; margin-bottom:14px; }
.tool-more-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tool-card-all{ background:#fdf6ea; }

@media (max-width:900px){
  .tool-shell{ grid-template-columns:minmax(0,1fr); }
  .tool-result{ position:static; }
  .tool-grid, .how-list, .tool-more-grid{ grid-template-columns:minmax(0,1fr); }
  .tool-hero h1{ font-size:26px; }
  .tool-head h1{ font-size:25px; }
}
@media (max-width:560px){
  .tf-grid{ grid-template-columns:minmax(0,1fr); }
  .kpi-wrap{ grid-template-columns:minmax(0,1fr); }
  .tool-hero h1{ font-size:23px; }
  .tool-head h1{ font-size:22px; }
  .kpi-v{ font-size:21px; }
  .kpi-big .kpi-v{ font-size:25px; }
  .tool-form{ padding:16px 16px 12px; }
  .tool-result{ padding:16px; }
  .tw table{ min-width:460px; }
}

/* ── 文章末尾的“顺手算一下” ── */
.post-tools{
  margin:30px 0 10px; padding:18px 20px; background:#fdf8ef;
  border:1px solid var(--line); border-left:4px solid var(--primary); border-radius:0 12px 12px 0;
}
.post-tools > strong{ display:block; font-family:var(--serif); font-size:17px; color:var(--primary-d); margin-bottom:10px; }
.post-tools ul{ list-style:none; margin:0 0 12px; padding:0; }
.post-tools li{ margin:0 0 10px; padding:0; }
.post-tools li a{ display:block; font-size:16px; font-weight:700; color:#4a3a2b; border-bottom:0; }
.post-tools li a:hover{ color:var(--primary); }
.post-tools li em{ display:block; font-style:normal; font-size:13px; color:var(--muted); line-height:1.65; margin-top:2px; }
.post-tools-all{ font-size:14px; color:var(--primary-d); border-bottom:1px solid var(--primary-l); }
@media (max-width:560px){
  .post-tools{ padding:14px 16px; }
}
