/* ============================================================
   starch-types · 淀粉种类区别
   米白靛蓝 #33508f ｜ 适配度条形矩阵 / 三段用量尺 / 调芡碗示意
   ============================================================ */
.stc{
  --ink:#1e2c4a; --sub:#65738f; --card:#ffffff; --line:#dde3f0; --pri:#33508f; --pri-soft:#eef2fb;
  --ok:#2f7a5e; --warn:#b8791f; --bad:#b5433f; --bg:#f7f9fd; --on-pri:#ffffff; --kw:#28427c;
  --shadow:0 1px 3px rgba(30,52,100,.06),0 14px 30px -22px rgba(30,52,100,.4);
  --radius:10px;
  max-width:1120px;margin:0 auto;padding:24px 18px 56px;color:var(--ink);
  background:var(--bg);font-size:14.5px;line-height:1.8;
}
:root[data-theme="dark"] .stc{
  --ink:#e4ebfa; --sub:#9aabc9; --card:#151d30; --line:#2a3a5a; --pri:#8aa9f0; --pri-soft:#1c2a45;
  --ok:#70c7a2; --warn:#e8b45c; --bad:#f08b86; --bg:#0c1220; --on-pri:#0c1220; --kw:#a5bff5;
  --shadow:0 2px 8px rgba(0,0,0,.45),0 20px 36px -22px rgba(0,0,0,.85);
}
.stc *{box-sizing:border-box;}
.stc b{color:var(--kw);font-weight:700;}
.stc h1,.stc h2,.stc h3{color:var(--ink);margin:0;}
.stc input,.stc select,.stc textarea,.stc button{font-family:inherit;}

/* ---------- Hero ---------- */
.stc-hero{display:grid;grid-template-columns:minmax(0,1.75fr) 190px;gap:22px;align-items:center;
  background:var(--card);border:1px solid var(--line);border-left:5px solid var(--pri);
  padding:26px 28px;margin-bottom:18px;box-shadow:var(--shadow);}
.stc-badge{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.15em;color:var(--on-pri);
  background:var(--pri);padding:5px 12px;margin-bottom:14px;}
.stc-hero h1{font-size:31px;line-height:1.32;font-weight:800;margin-bottom:12px;}
.stc-hero h1 em{display:block;font-style:normal;font-size:16px;font-weight:600;color:var(--sub);margin-top:6px;}
.stc-hero p{margin:0 0 15px;color:var(--sub);max-width:740px;}
.stc-hero-meta{display:flex;flex-wrap:wrap;gap:8px;}
.stc-hero-meta span{font-size:11.5px;font-weight:700;color:var(--pri);background:var(--pri-soft);
  border:1px solid var(--line);padding:4px 11px;}
.stc-spoon{display:flex;flex-direction:column;align-items:center;gap:10px;}
.stc-bowl{position:relative;width:140px;height:80px;border:3px solid var(--pri);border-top:none;
  border-radius:0 0 70px 70px;background:var(--card);overflow:hidden;}
.stc-slurry{position:absolute;left:8px;right:8px;bottom:6px;height:34px;border-radius:0 0 60px 60px;
  background:linear-gradient(180deg,rgba(51,80,143,.25),rgba(51,80,143,.55));}
.stc-spoon>span{font-family:ui-monospace,Consolas,monospace;font-size:10.5px;font-weight:800;color:var(--pri);}

/* ---------- 表单 ---------- */
.stc-card,.stc-panel,.stc-legend,.stc-prose,.stc-steps,.stc-faq,.stc-related{
  background:var(--card);border:1px solid var(--line);padding:20px 22px;margin-bottom:18px;box-shadow:var(--shadow);}
.stc-card-h,.stc-h2{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:16px;
  border-bottom:1px solid var(--line);padding-bottom:10px;}
.stc-card-h h2,.stc-h2{font-size:18px;font-weight:800;}
.stc-card-h span,.stc-h2 span{font-size:12px;font-weight:500;color:var(--sub);}
.stc-card-h span{margin-left:auto;}
.stc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px;}
.stc-f{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--sub);}
.stc-f>span>b{color:var(--bad);}
.stc-f input,.stc-f select{width:100%;height:40px;border:1px solid var(--line);
  background:var(--pri-soft);color:var(--ink);padding:0 10px;font-size:14px;font-weight:700;outline:none;
  font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s;}
.stc-f select{font-size:12.5px;}
.stc-f input:focus,.stc-f select:focus,.stc-ta:focus{border-color:var(--pri);box-shadow:0 0 0 3px rgba(51,80,143,.2);}
.stc-f i{font-style:normal;font-size:11px;font-weight:500;color:var(--sub);}
.stc-check{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px;align-self:end;min-height:40px;}
.stc-check input{width:18px;height:18px;accent-color:var(--pri);}
.stc-picks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:18px;}
.stc-picks label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);
  font-size:12.5px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s;}
.stc-picks label:hover{border-color:var(--pri);}
.stc-picks label:has(input:checked){background:var(--pri-soft);border-color:var(--pri);}
.stc-picks input{width:16px;height:16px;accent-color:var(--pri);}
.stc-actions{display:flex;flex-wrap:wrap;gap:10px;}
.stc-btn{min-height:40px;padding:0 17px;border:1px solid var(--pri);background:var(--card);
  color:var(--pri);font-size:13.5px;font-weight:700;cursor:pointer;transition:transform .12s,background .15s,filter .15s;}
.stc-btn:hover{background:var(--pri-soft);transform:translateY(-2px);}
.stc-btn:active{transform:scale(.97);}
.stc-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;}
.stc-btn-main{background:var(--pri);color:var(--on-pri);}
.stc-btn-main:hover{background:var(--pri);color:var(--on-pri);filter:brightness(1.12);}
.stc-btn-ghost{border-color:var(--line);color:var(--sub);}
.stc-msg{margin:13px 0 0;font-size:12.5px;line-height:1.7;color:var(--sub);}
.stc-msg.err{color:var(--bad);font-weight:700;}
.stc-msg.ok{color:var(--ok);font-weight:700;}
.stc-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:32px 18px;
  margin-bottom:18px;border:1px dashed var(--pri);background:var(--pri-soft);}
.stc-empty span{font-size:30px;}
.stc-empty b{font-size:15px;}
.stc-empty em{font-style:normal;font-size:13px;color:var(--sub);max-width:600px;}

/* ---------- KPI / banner ---------- */
.stc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;}
.stc-kpi{display:flex;flex-direction:column;gap:3px;padding:15px 16px;background:var(--card);
  border:1px solid var(--line);box-shadow:var(--shadow);}
.stc-kpi.is-hero{background:var(--pri);border-color:transparent;color:var(--on-pri);}
.stc-kpi.is-hero .k,.stc-kpi.is-hero .s{color:var(--on-pri);opacity:.9;}
.stc-kpi .k{font-size:11.5px;font-weight:700;color:var(--sub);}
.stc-kpi .v{font-family:ui-monospace,Consolas,monospace;font-size:19px;font-weight:800;
  line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stc-kpi .s{font-size:11px;color:var(--sub);}
.stc-banner{padding:14px 18px;margin-bottom:18px;font-size:13.5px;line-height:1.8;
  border-left:5px solid var(--warn);background:var(--pri-soft);color:var(--ink);}
.stc-banner.is-bad{border-left-color:var(--bad);}
.stc-banner.is-ok{border-left-color:var(--ok);}
.stc-banner b{color:inherit;}

/* ---------- 条形矩阵 / 用量尺 ---------- */
.stc-bars{display:flex;flex-direction:column;gap:11px;}
.stc-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 48px;gap:12px;align-items:center;}
.stc-bar-row .nm{font-size:12.5px;font-weight:700;}
.stc-bar-track{height:22px;border:1px solid var(--line);background:var(--pri-soft);position:relative;}
.stc-bar-track i{position:absolute;left:0;top:0;bottom:0;background:var(--pri);transition:width .3s;}
.stc-bar-row.is-top .stc-bar-track i{background:var(--ok);}
.stc-bar-row .sc{font-family:ui-monospace,Consolas,monospace;font-size:13px;font-weight:800;color:var(--pri);text-align:right;}
.stc-bar-note{grid-column:2 / 4;font-size:11.5px;color:var(--sub);margin-top:-6px;}
.stc-ruler{display:flex;flex-direction:column;gap:14px;}
.stc-ruler-row{display:grid;grid-template-columns:110px minmax(0,1fr) 100px;gap:12px;align-items:center;font-size:12.5px;}
.stc-ruler-row>span{font-weight:700;color:var(--sub);}
.stc-ruler-track{height:26px;border:1px solid var(--line);background:var(--pri-soft);position:relative;}
.stc-ruler-track i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--pri),var(--ok));opacity:.85;transition:width .3s;}
.stc-ruler-row b{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;color:var(--pri);text-align:right;}
.stc-note{margin:14px 0 0;font-size:12.5px;line-height:1.75;color:var(--sub);}

/* ---------- 表格 ---------- */
.stc-tw{overflow:auto;}
.stc-tb{width:100%;border-collapse:collapse;font-size:13px;min-width:600px;}
.stc-tb th,.stc-tb td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;}
.stc-tb th{font-size:11.5px;font-weight:800;color:var(--sub);background:var(--pri-soft);white-space:nowrap;}
.stc-tb tr:hover td{background:var(--pri-soft);}
.stc-tag{display:inline-block;font-size:11px;font-weight:800;padding:2px 8px;}
.stc-tag.ok{color:var(--ok);background:rgba(47,122,94,.12);}
.stc-tag.warn{color:var(--warn);background:rgba(184,121,31,.14);}
.stc-tag.bad{color:var(--bad);background:rgba(181,67,63,.13);}
.stc-ta{width:100%;min-height:96px;border:1px solid var(--line);background:var(--card);
  color:var(--ink);padding:10px 12px;font-family:ui-monospace,Consolas,monospace;font-size:12.5px;line-height:1.7;outline:none;resize:vertical;}
.stc-final{margin:4px 0 22px;}

/* ---------- 底部 ---------- */
.stc-legend h2,.stc-prose h2,.stc-steps h2,.stc-faq h2,.stc-related h2{font-size:18px;font-weight:800;margin-bottom:14px;}
.stc-legend dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.stc-legend dl>div{padding:12px 14px;background:var(--pri-soft);border-left:3px solid var(--pri);}
.stc-legend dt{font-size:13px;font-weight:800;margin-bottom:4px;}
.stc-legend dd{margin:0;font-size:12.5px;line-height:1.75;color:var(--sub);}
.stc-prose p{color:var(--sub);margin:0 0 12px;}
.stc-points{padding:14px 16px;background:var(--pri-soft);}
.stc-points h3{font-size:14px;font-weight:800;margin-bottom:8px;}
.stc-points p{font-size:12.5px;margin:0 0 6px;line-height:1.75;}
.stc-steps ol{list-style:none;counter-reset:stc;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.stc-steps li{counter-increment:stc;padding:14px;border:1px solid var(--line);}
.stc-steps li::before{content:"0" counter(stc);display:block;font-family:ui-monospace,Consolas,monospace;
  font-size:11px;font-weight:800;color:var(--pri);margin-bottom:6px;}
.stc-steps li b{display:block;font-size:13px;margin-bottom:4px;}
.stc-steps li span{font-size:12px;color:var(--sub);line-height:1.7;}
.stc-faq details{border-bottom:1px solid var(--line);padding:10px 0;}
.stc-faq details:last-child{border-bottom:0;}
.stc-faq summary{cursor:pointer;font-size:13.5px;font-weight:700;list-style:none;}
.stc-faq summary::-webkit-details-marker{display:none;}
.stc-faq summary::before{content:"›";display:inline-block;width:20px;color:var(--pri);font-weight:800;font-size:17px;}
.stc-faq details[open] summary::before{content:"⌄";}
.stc-faq details p{margin:8px 0 2px 20px;font-size:12.5px;line-height:1.8;color:var(--sub);}
.stc-related>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.stc-related a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);
  text-decoration:none;transition:transform .12s,border-color .15s;}
.stc-related a:hover{transform:translateY(-3px);border-color:var(--pri);}
.stc-related a span{font-size:20px;}
.stc-related a b{font-size:13px;color:var(--ink);}
.stc-related a small{font-size:11.5px;color:var(--sub);}
.stc-foot{text-align:center;font-size:11.5px;line-height:1.8;color:var(--sub);padding:6px 10px;}

@media (max-width:860px){
  .stc{padding:16px 12px 40px;}
  .stc-hero{grid-template-columns:1fr;padding:20px 18px;}
  .stc-hero h1{font-size:26px;}
  .stc-spoon{flex-direction:row;justify-content:flex-start;}
  .stc-bowl{width:100px;height:60px;}
  .stc-grid,.stc-picks,.stc-kpis,.stc-legend dl,.stc-steps ol,.stc-related>div{grid-template-columns:1fr;}
  .stc-bar-row{grid-template-columns:96px minmax(0,1fr) 40px;}
  .stc-ruler-row{grid-template-columns:82px minmax(0,1fr) 78px;}
  .stc-card,.stc-panel,.stc-legend,.stc-prose,.stc-steps,.stc-faq,.stc-related{padding:16px;}
  .stc-card-h span{margin-left:0;}
}
