/* =========================================================
   电视柜尺寸计算器 · 现代产品感翻新（split 双栏）
   作用域：.t3-tvst   主题色：--a/--a2（blade 内联）
   深色：[data-theme='dark'] 仅改变量值
   ========================================================= */
.t3-tvst{
  --bg:#f5f7fb; --card:#ffffff; --ink:#1f2937; --sub:#667085; --line:#e4e7ec;
  --soft:rgba(29,78,216,.08); --ring:rgba(29,78,216,.25);
  --a-text:var(--a); --num-grad:linear-gradient(135deg,var(--a),var(--a2));
  --err:#d92d20; --ok:#12b76a;
  --svg-line:#1d4ed8; --svg-ink2:#4a6284; --svg-amber:#b45309; --svg-scr1:#0b1a33; --svg-scr2:#1e3a5f;
  --mono:ui-monospace,Consolas,"Courier New",monospace;
  --sans:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --radius:16px; --shadow:0 1px 2px rgba(16,24,40,.05), 0 12px 28px -14px rgba(16,24,40,.12);
  display:block; max-width:1120px; margin:0 auto; padding:20px 16px 46px;
  background:var(--bg); color:var(--ink); font-family:var(--sans); line-height:1.7; font-size:14px;
}
[data-theme='dark'] .t3-tvst{
  --bg:#0b1220; --card:#121a2b; --ink:#e6edf7; --sub:#9fb0c9; --line:rgba(148,163,184,.18);
  --soft:rgba(147,197,253,.14); --ring:rgba(147,197,253,.3);
  --a-text:var(--a2); --num-grad:linear-gradient(135deg,var(--a2),#dbeafe);
  --err:#f97066; --ok:#4cc98a;
  --svg-line:#93c5fd; --svg-ink2:#9fb0c9; --svg-amber:#fbbf24; --svg-scr1:#0b1a33; --svg-scr2:#1e3a5f;
}

/* ---- hero ---- */
.t3-tvst .tv-hero{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:24px; align-items:center; margin-bottom:24px;}
.t3-tvst .tv-mast{min-width:0;}
.t3-tvst .tv-kicker{
  display:inline-flex; align-items:center; gap:8px; margin:0 0 14px;
  font-size:12px; letter-spacing:.06em; color:var(--a-text); font-weight:700;
  background:var(--soft); border-radius:999px; padding:5px 14px;
}
.t3-tvst .tv-kicker-line{width:20px; height:1px; background:currentColor; opacity:.5;}
.t3-tvst h1{margin:0 0 12px; font-weight:800; font-size:clamp(22px,3.2vw,30px); line-height:1.35; color:var(--ink);}
.t3-tvst h1 em{font-style:normal; display:inline-block; margin-top:2px; font-size:.72em; font-weight:700; color:var(--a-text);}
.t3-tvst .tv-lead{margin:0 0 14px; font-size:14px; color:var(--sub);}
.t3-tvst .tv-lead b{color:var(--ink); font-weight:700;}
.t3-tvst .tv-tags{display:flex; flex-wrap:wrap; gap:8px;}
.t3-tvst .tv-tags span{font-size:12px; color:var(--a-text); background:var(--soft); border-radius:999px; padding:4px 12px; font-weight:600;}
.t3-tvst .tv-figure{
  min-width:0; padding:16px 16px 8px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); transition:transform .15s;
}
.t3-tvst .tv-figure:hover{transform:translateY(-2px);}
.t3-tvst .tv-figure svg{width:100%; height:auto; display:block;}
.t3-tvst .tv-figcap{margin:6px 0 4px; font-size:12px; color:var(--sub); text-align:center;}

/* ---- split 布局 ---- */
.t3-tvst .tv-layout{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start;}
.t3-tvst .tv-card{
  margin:0 0 24px; padding:22px 24px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
.t3-tvst .tv-h2{display:flex; align-items:center; gap:10px; margin:0 0 18px; font-size:17px; font-weight:700; color:var(--ink);}
.t3-tvst .tv-h2 small{font-weight:400; font-size:12px; color:var(--sub); margin-left:auto;}
.t3-tvst .tv-no{
  flex:none; width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--a),var(--a2)); border-radius:8px;
}
.t3-tvst .tv-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px;}
.t3-tvst .tv-field{min-width:0;}
.t3-tvst .tv-field label{display:block; font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:6px;}
.t3-tvst .tv-field label b{color:var(--a-text);}
.t3-tvst .tv-hint{margin:6px 0 0; font-size:12px; color:var(--sub); line-height:1.5;}
.t3-tvst .tv-ctl{position:relative; display:flex;}
.t3-tvst .tv-ctl input,.t3-tvst .tv-ctl select{
  width:100%; box-sizing:border-box; height:44px; font:inherit; font-size:15px; color:var(--ink);
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:0 50px 0 12px; transition:border-color .15s, box-shadow .15s;
}
.t3-tvst .tv-ctl-sel select{padding-right:12px; appearance:auto;}
.t3-tvst .tv-ctl input::placeholder{color:var(--sub); opacity:.7;}
.t3-tvst .tv-ctl input:focus,.t3-tvst .tv-ctl select:focus{
  outline:none; border-color:var(--a); box-shadow:0 0 0 3px var(--ring);
}
.t3-tvst .tv-ctl .tv-u{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-size:12px; color:var(--sub); pointer-events:none;
}
.t3-tvst .tv-field.bad input{border-color:var(--err);}
.t3-tvst .tv-err{display:block; min-height:17px; margin-top:4px; font-size:12px; color:var(--err);}

/* ---- 按钮与消息 ---- */
.t3-tvst .tv-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;}
.t3-tvst .tv-btn{
  font:inherit; font-size:14px; font-weight:700; color:var(--ink);
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  height:44px; padding:0 20px; cursor:pointer; transition:transform .08s, background .15s, border-color .15s, box-shadow .15s;
}
.t3-tvst .tv-btn:hover{border-color:var(--a); color:var(--a-text); box-shadow:var(--shadow);}
.t3-tvst .tv-btn:active{transform:translateY(1px);}
.t3-tvst .tv-btn-main{background:linear-gradient(135deg,var(--a),var(--a2)); border:none; color:#fff; box-shadow:0 8px 18px -8px var(--ring);}
.t3-tvst .tv-btn-main:hover{color:#fff; filter:brightness(1.05); transform:translateY(-2px);}
.t3-tvst .tv-btn-ghost{color:var(--sub);}
.t3-tvst .tv-btn-ghost:hover{color:var(--a-text);}
.t3-tvst .tv-btn-danger{color:var(--err); border-color:rgba(217,45,32,.35);}
.t3-tvst .tv-btn-danger:hover{color:var(--err); border-color:var(--err); background:rgba(217,45,32,.06); box-shadow:none;}
.t3-tvst .tv-btn-sm{height:32px; padding:0 12px; font-size:12.5px; border-radius:8px;}
.t3-tvst .tv-msg{
  margin:16px 0 0; padding:12px 16px; font-size:13.5px; border-radius:10px;
  background:var(--soft); border:1px solid var(--line); color:var(--sub);
}
.t3-tvst .tv-msg.ok{border-color:rgba(18,183,106,.4); background:rgba(18,183,106,.08); color:var(--ok);}
.t3-tvst .tv-msg.bad{border-color:rgba(217,45,32,.4); background:rgba(217,45,32,.07); color:var(--err);}

/* ---- 右侧 sticky 方案卡 ---- */
.t3-tvst .tv-side{
  position:sticky; top:14px; padding:20px 20px 18px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:12px;
}
.t3-tvst .tv-side-h{display:flex; align-items:center; justify-content:space-between; margin:0; font-size:16px; font-weight:800; color:var(--ink);}
.t3-tvst .tv-side-tag{
  font-size:10.5px; letter-spacing:.22em; color:#fff;
  background:linear-gradient(135deg,var(--a),var(--a2)); border-radius:999px; padding:3px 10px;
}
.t3-tvst .tv-stats{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
.t3-tvst .tv-stat{
  display:flex; flex-direction:column; gap:1px; padding:12px 14px; min-width:0;
  border:1px solid var(--line); border-radius:12px; background:var(--bg);
}
.t3-tvst .tv-stat.is-hero{grid-column:1/-1; border:1px solid var(--a2); background:var(--soft);}
.t3-tvst .tv-stat-k{font-size:12px; color:var(--sub); font-weight:600;}
.t3-tvst .tv-stat-v{font-size:19px; font-weight:800; color:var(--ink); line-height:1.3;}
.t3-tvst .tv-stat.is-hero .tv-stat-v{
  font-size:clamp(28px,4.5vw,40px); font-weight:800; line-height:1.2;
  background:var(--num-grad); -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.t3-tvst .tv-stat-s{font-size:11.5px; color:var(--sub);}
.t3-tvst .tv-verdict{
  margin:0; padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.65;
  background:rgba(18,183,106,.08); border:1px solid rgba(18,183,106,.35); color:var(--ink);
}
.t3-tvst .tv-verdict.warn{background:rgba(217,45,32,.07); border-color:rgba(217,45,32,.35);}
.t3-tvst .tv-side-acts{display:grid; grid-template-columns:1fr 1fr; gap:8px;}

/* ---- 下方整宽块 ---- */
.t3-tvst .tv-block{
  margin:0 0 24px; padding:22px 24px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
.t3-tvst .tv-steps{margin:0; padding:0; list-style:none; counter-reset:tvstep;}
.t3-tvst .tv-steps li{
  counter-increment:tvstep; position:relative; margin:0 0 10px; padding:12px 14px 12px 48px;
  background:var(--bg); border:1px solid var(--line); border-radius:10px; font-size:13.5px; color:var(--ink);
}
.t3-tvst .tv-steps li::before{
  content:counter(tvstep); position:absolute; left:12px; top:11px;
  width:24px; height:24px; border-radius:8px; background:linear-gradient(135deg,var(--a),var(--a2)); color:#fff;
  font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center;
}
.t3-tvst .tv-steps-empty{list-style:none; color:var(--sub);}
.t3-tvst .tv-steps-empty::before{content:"💡"; position:static; width:auto; height:auto; background:none; display:inline; margin-right:6px;}
.t3-tvst .tv-steps code{
  font-family:var(--mono); font-size:12.5px; color:var(--a-text);
  background:var(--soft); border-radius:6px; padding:1px 6px;
}

/* ---- 表格 ---- */
.t3-tvst .tv-tablewrap{overflow-x:auto; border:1px solid var(--line); border-radius:12px;}
.t3-tvst .tv-table{width:100%; border-collapse:collapse; font-size:13px; min-width:600px;}
.t3-tvst .tv-table th{
  background:var(--soft); color:var(--a-text); font-weight:700; text-align:left;
  padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap;
}
.t3-tvst .tv-table td{padding:9px 12px; border-bottom:1px solid var(--line); color:var(--ink);}
.t3-tvst .tv-table tr:last-child td{border-bottom:none;}
.t3-tvst .tv-table tr.hl td{background:rgba(18,183,106,.08); font-weight:700;}
.t3-tvst .tv-table .yes{color:var(--ok); font-weight:700;}
.t3-tvst .tv-table .no{color:var(--err); font-weight:700;}

/* ---- 批量 ---- */
.t3-tvst .tv-batch textarea{
  width:100%; box-sizing:border-box; min-height:104px; resize:vertical;
  font:inherit; font-size:13.5px; color:var(--ink); background:var(--bg);
  border:1px solid var(--line); border-radius:10px; padding:12px 14px; line-height:1.7;
}
.t3-tvst .tv-batch textarea:focus{outline:none; border-color:var(--a); box-shadow:0 0 0 3px var(--ring);}
.t3-tvst .tv-tip{margin:0 0 12px; font-size:13px; color:var(--sub);}
.t3-tvst .tv-tip code{font-family:var(--mono); font-size:12px; color:var(--a-text); background:var(--soft); border-radius:6px; padding:1px 6px;}

/* ---- 历史 ---- */
.t3-tvst .tv-histhead{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.t3-tvst .tv-histhead .tv-h2-in{margin:0;}
.t3-tvst .tv-hist{display:flex; flex-direction:column; gap:8px; margin-top:12px;}
.t3-tvst .tv-hist-item{
  display:flex; justify-content:space-between; gap:10px; align-items:center;
  padding:10px 14px; border:1px solid var(--line); border-radius:10px;
  background:var(--bg); font-size:13px; cursor:pointer; transition:border-color .15s, transform .15s;
}
.t3-tvst .tv-hist-item:hover{border-color:var(--a); transform:translateY(-2px);}
.t3-tvst .tv-hist-item .t{color:var(--sub); font-size:11.5px; white-space:nowrap;}
.t3-tvst .tv-hist-empty{font-size:13px; color:var(--sub); padding:6px 2px;}

/* ---- 窄屏 ---- */
@media (max-width:920px){ .t3-tvst .tv-layout{grid-template-columns:1fr;} .t3-tvst .tv-side{position:static;} }
@media (max-width:900px){
  .t3-tvst .tv-hero{grid-template-columns:1fr;}
  .t3-tvst .tv-figure{max-width:260px; margin:0 auto; width:100%;}
}
@media (max-width:760px){
  .t3-tvst{padding:14px 12px 36px;}
  .t3-tvst .tv-card,.t3-tvst .tv-block{padding:18px 16px;}
  .t3-tvst .tv-grid{grid-template-columns:1fr;}
  .t3-tvst .tv-actions{gap:8px;}
  .t3-tvst .tv-btn{flex:1 1 auto; min-width:120px;}
}

/* ---- 打印 ---- */
@media print{
  .t3-tvst{background:#fff;}
  .t3-tvst .tv-actions,.t3-tvst .tv-side-acts,.t3-tvst .tv-batch,
  .t3-tvst .tv-histhead,.t3-tvst .tv-hist,.t3-tvst .tv-batch textarea{display:none !important;}
  .t3-tvst .tv-layout{grid-template-columns:1fr;}
  .t3-tvst .tv-side{position:static;}
}
