/* ======================================================
   stroller-size · 婴儿推车尺寸计算器（青绿主题，独立布局）
   ====================================================== */
.stl{
  --a:#14b8a6; --a2:#0f766e; --a-soft:rgba(20,184,166,.12);
  --bg:#f2fbf8; --card:#ffffff; --ink:#0f2e2a; --mut:#5f7a75; --line:#d7eae3;
  --ok:#16a34a; --warn:#d97706; --bad:#dc2626;
  max-width:1180px; margin:0 auto; padding:26px 16px 40px;
  color:var(--ink); font-size:15.5px; line-height:1.7;
}
html[data-theme="dark"] .stl{
  --a:#2dd4bf; --a2:#14b8a6; --a-soft:rgba(45,212,191,.12);
  --bg:#0c1b18; --card:#10231f; --ink:#e6f4f0; --mut:#8fb0a9; --line:#1e3d36;
}

/* ---------- hero ---------- */
.stl-hero{border-radius:22px; background:linear-gradient(135deg,var(--a-soft),transparent 60%); border:1px solid var(--line); overflow:hidden; margin-bottom:18px;}
.stl-hero-in{display:flex; gap:20px; padding:30px 30px 24px; align-items:center;}
.stl-hero-main{flex:1 1 auto; min-width:0;}
.stl-badge{display:inline-flex; align-items:center; gap:8px; background:var(--a-soft); color:var(--a2); border-radius:999px; padding:6px 14px; font-size:13px; font-weight:700;}
.stl-badge .ico{font-size:15px;}
.stl h1{font-size:27px; line-height:1.3; margin:12px 0 8px; letter-spacing:.5px;}
.stl h1 em{font-style:normal; color:var(--a2); font-size:18px; display:block; margin-top:4px;}
.stl-sub{color:var(--mut); margin:0 0 14px; max-width:640px;}
.stl-tags{display:flex; flex-wrap:wrap; gap:8px;}
.stl-tag{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--mut); background:var(--card); border:1px solid var(--line); border-radius:999px; padding:5px 12px;}
.stl-tag i{color:var(--a); font-style:normal; font-weight:700;}
.stl-art{flex:0 0 250px; position:relative; height:180px;}
.stl-cart{position:absolute; inset:auto 20px 34px 20px; height:86px;}
.stl-body{position:absolute; left:8px; right:30px; top:0; height:52px; border-radius:16px 16px 6px 6px; background:var(--a); opacity:.85;}
.stl-handle{position:absolute; right:6px; top:-22px; width:5px; height:66px; border-radius:4px; background:var(--a2); transform:rotate(14deg);}
.stl-wheel{position:absolute; bottom:-12px; width:30px; height:30px; border-radius:50%; border:5px solid var(--a2); background:var(--card);}
.stl-wheel.w1{left:16px;} .stl-wheel.w2{right:52px;}
.stl-chip{position:absolute; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:5px 10px; font-size:12px; color:var(--mut); box-shadow:0 3px 10px rgba(20,184,166,.14);}
.stl-chip b{color:var(--a2);}
.stl-chip.c1{top:16px; right:6px;} .stl-chip.c2{top:62px; left:0;}

/* ---------- deck ---------- */
.stl-deck{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:16px; align-items:start;}
.stl-card{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:20px 20px 18px; margin-bottom:14px;}
.stl-card-h{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px;}
.stl-card-h h2{font-size:16.5px; margin:0; display:flex; align-items:center; gap:8px;}
.stl-card-h .no{display:inline-grid; place-items:center; width:24px; height:24px; border-radius:8px; background:var(--a); color:#fff; font-size:12.5px;}
.stl-card-h .aside{font-size:12px; color:var(--mut);}
.stl-tip{font-size:13px; color:var(--mut); background:var(--a-soft); border-radius:10px; padding:8px 12px; margin:6px 0 12px;}

/* 场景竖排轨道（区别于其他工具的横向分段） */
.stl-rail{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:12px;}
.stl-railbtn{display:flex; flex-direction:column; align-items:center; gap:2px; border:1.5px solid var(--line); background:transparent; color:var(--ink); border-radius:14px; padding:10px 6px; cursor:pointer; font-size:13px; transition:.18s;}
.stl-railbtn i{font-style:normal; font-size:19px;}
.stl-railbtn b{font-size:13px;}
.stl-railbtn small{font-size:11px; color:var(--mut);}
.stl-railbtn.on{border-color:var(--a); background:var(--a-soft); box-shadow:0 2px 10px var(--a-soft);}
.stl-railbtn.on b{color:var(--a2);}

.stl-seg{display:flex; gap:6px; background:var(--a-soft); padding:4px; border-radius:12px; margin-bottom:12px;}
.stl-segbtn{flex:1; border:0; background:transparent; color:var(--mut); border-radius:9px; padding:8px 0; font-size:13.5px; cursor:pointer; transition:.15s;}
.stl-segbtn.on{background:var(--card); color:var(--a2); font-weight:700; box-shadow:0 1px 6px rgba(0,0,0,.08);}

.stl-grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:10px;}
.stl-grid2{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:10px;}
.stl-field-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:4px;}
.stl-field-head label{font-size:13.5px; font-weight:600;}
.stl-field-head label b{color:var(--bad);}
.stl-field-head .hint{font-size:11.5px; color:var(--mut);}
.stl-control{display:flex; align-items:center; border:1.5px solid var(--line); border-radius:11px; overflow:hidden; background:var(--bg); transition:.15s;}
.stl-control:focus-within{border-color:var(--a);}
.stl-control input{flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); padding:9px 10px; font-size:14.5px;}
.stl-control .unit{font-size:12px; color:var(--mut); padding-right:10px;}
.stl-field .err{display:none; font-size:12px; color:var(--bad); margin-top:4px;}
.stl-field.has-err .err{display:block;}
.stl-field.has-err .stl-control{border-color:var(--bad);}

.stl-actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}
.stl-btn{border:1.5px solid var(--line); background:var(--card); color:var(--ink); border-radius:11px; padding:9px 16px; font-size:14px; cursor:pointer; transition:.15s;}
.stl-btn:hover{border-color:var(--a); color:var(--a2);}
.stl-btn-main{background:linear-gradient(135deg,var(--a),var(--a2)); color:#fff; border-color:transparent; font-weight:700; flex:1;}
.stl-btn-main:hover{color:#fff; filter:brightness(1.06);}
.stl-btn-ghost{background:transparent;}
.stl-msg{margin-top:10px; font-size:13px; color:var(--mut); background:var(--a-soft); border-radius:10px; padding:8px 12px;}

/* ---------- 签名可视化：展开 vs 折叠 ---------- */
.stl-viz{background:var(--bg); border:1px dashed var(--line); border-radius:14px; padding:14px 12px 10px; margin-bottom:12px;}
.stl-viz-row{display:flex; align-items:flex-end; justify-content:center; gap:14px;}
.stl-boxwrap{display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0;}
.stl-box{border-radius:10px; display:flex; align-items:center; justify-content:center; transition:width .35s, height .35s; min-width:70px;}
.stl-box-open{background:linear-gradient(160deg,var(--a),var(--a2)); height:74px; width:150px;}
.stl-box-fold{background:var(--card); border:2px solid var(--a); height:74px; width:60px;}
.stl-box-label{font-size:11.5px; color:#fff; font-weight:700; text-align:center; padding:0 4px;}
.stl-box-fold .stl-box-label{color:var(--a2); transform:rotate(0);}
.stl-box-cap{font-size:12px; color:var(--mut);}
.stl-viz-arrow{font-size:12.5px; color:var(--a2); font-weight:700; padding-bottom:34px; white-space:nowrap;}

.stl-check{display:grid; grid-template-columns:repeat(2,1fr); gap:8px;}
.stl-check-item{display:flex; align-items:center; gap:8px; border:1.5px solid var(--line); border-radius:12px; padding:9px 12px; font-size:13.5px; transition:.2s;}
.stl-check-item b{flex:1;}
.stl-tick{display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; border:2px solid var(--line); color:var(--mut); font-size:13px; flex:0 0 auto;}
.stl-verdict{font-size:12.5px; color:var(--mut); white-space:nowrap;}
.stl-check-item.focus{box-shadow:0 0 0 2px var(--a-soft), 0 2px 10px var(--a-soft);}
.stl-check-item.ok{border-color:var(--ok); background:rgba(22,163,74,.07);}
.stl-check-item.ok .stl-tick{border-color:var(--ok); background:var(--ok); color:#fff;}
.stl-check-item.warn{border-color:var(--warn); background:rgba(217,119,6,.08);}
.stl-check-item.warn .stl-tick{border-color:var(--warn); background:var(--warn); color:#fff;}
.stl-check-item.bad{border-color:var(--bad); background:rgba(220,38,38,.07);}
.stl-check-item.bad .stl-tick{border-color:var(--bad); background:var(--bad); color:#fff;}

/* ---------- 结果 ---------- */
.stl-metrics{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:12px;}
.stl-metric{border:1.5px solid var(--line); border-radius:14px; padding:12px 14px; background:var(--bg);}
.stl-metric.is-hero{grid-column:1/-1; background:linear-gradient(135deg,var(--a-soft),transparent); border-color:var(--a);}
.stl-metric .k{font-size:12.5px; color:var(--mut);}
.stl-metric .v{font-size:23px; font-weight:800; color:var(--a2); margin:2px 0;}
.stl-metric .v small{font-size:12px; color:var(--mut); font-weight:400; margin-left:4px;}
.stl-metric .s{font-size:12px; color:var(--mut);}
.stl-scene-detail{font-size:13.5px; color:var(--mut); background:var(--bg); border-left:3px solid var(--a); border-radius:0 10px 10px 0; padding:10px 12px; margin-bottom:12px;}
.stl-scene-detail b{color:var(--a2);}

.stl-table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:12px;}
.stl-table{width:100%; border-collapse:collapse; font-size:13px; min-width:480px;}
.stl-table th{background:var(--a-soft); color:var(--a2); text-align:left; padding:8px 10px; font-size:12.5px; white-space:nowrap;}
.stl-table td{padding:8px 10px; border-top:1px solid var(--line); white-space:nowrap;}
.stl-note{font-size:12px; color:var(--mut); margin:8px 0 0;}

@media (max-width:920px){
  .stl-deck{grid-template-columns:1fr;}
  .stl-hero-in{flex-direction:column;}
  .stl-art{flex:none; width:100%; height:150px;}
}
@media (max-width:560px){
  .stl h1{font-size:22px;}
  .stl-grid3{grid-template-columns:1fr;}
  .stl-rail{grid-template-columns:repeat(2,1fr);}
  .stl-metrics{grid-template-columns:1fr;}
  .stl-check{grid-template-columns:1fr;}
  .stl-viz-row{flex-wrap:wrap;}
}
