/* ==========================================================================
   真空封口机设置 · vacuum-sealer-temp-time
   独立设计系统「封装实验室」：冰白 / 靛青 / 薄荷指示灯 / 信号橙
   胶囊圆角、虚线封装缝、透明袋层叠与状态灯列，和信息密度高的前两页区隔。
   ========================================================================== */
.vst-page, .vst-modal, .vst-sheet, .vst-toast {
    --vst-bg: #f2f8fa;
    --vst-card: #ffffff;
    --vst-card2: #f5fbfc;
    --vst-ink: #12333f;
    --vst-ink2: #4d707c;
    --vst-ink3: #8aa6ae;
    --vst-line: #d3e6ea;
    --vst-line2: #e7f2f4;
    --vst-indigo: #155e75;
    --vst-mint: #0f9d8c;
    --vst-orange: #e2701f;
    --vst-blue: #2b7fb8;
    --vst-red: #c1483c;
    --vst-shadow: 0 12px 32px rgba(18, 78, 94, .10);
    --vst-shadow-s: 0 3px 12px rgba(18, 78, 94, .07);
    --vst-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] .vst-page,
:root[data-theme="dark"] .vst-modal,
:root[data-theme="dark"] .vst-sheet,
:root[data-theme="dark"] .vst-toast {
    --vst-bg: #0b161b;
    --vst-card: #142329;
    --vst-card2: #1a2e35;
    --vst-ink: #dceef1;
    --vst-ink2: #9bbcc4;
    --vst-ink3: #6f939d;
    --vst-line: #22404a;
    --vst-line2: #1b333b;
    --vst-indigo: #7fc8e0;
    --vst-mint: #45c9b8;
    --vst-orange: #ff9a52;
    --vst-blue: #6fb6e8;
    --vst-red: #ff8c7c;
    --vst-shadow: 0 12px 32px rgba(0, 0, 0, .42);
    --vst-shadow-s: 0 3px 12px rgba(0, 0, 0, .32);
}
.vst-page { background: var(--vst-bg); color: var(--vst-ink); font-size: 15px; line-height: 1.82;
    padding-bottom: 60px; -webkit-font-smoothing: antialiased; }
.vst-page b { color: var(--vst-indigo); }
.vst-wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.detail-breadcrumb { font-size: 13px; color: var(--vst-ink2); padding: 18px 0 14px; }
.detail-breadcrumb a { color: var(--vst-ink2); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--vst-mint); }
.detail-breadcrumb .sep { margin: 0 8px; color: var(--vst-ink3); }
.detail-breadcrumb .current { color: var(--vst-ink); font-weight: 700; }

/* ---------- 首屏 ---------- */
.vst-hero { display: grid; grid-template-columns: 1.15fr .8fr .62fr; gap: 0;
    background: var(--vst-card); border: 1px solid var(--vst-line); border-radius: 20px;
    box-shadow: var(--vst-shadow); overflow: hidden; }
.vst-hero-copy { padding: 36px 32px; }
.vst-kicker { display: inline-block; font: 700 10px/1 var(--vst-mono); letter-spacing: .18em;
    color: var(--vst-mint); background: rgba(15,157,140,.10); border: 1px solid rgba(15,157,140,.35);
    padding: 7px 12px; border-radius: 20px; margin-bottom: 18px; }
.vst-hero h1 { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.4; margin: 0 0 14px; }
.vst-sub { font-size: 14.5px; line-height: 2; color: var(--vst-ink2); margin: 0 0 22px; }
.vst-hero-facts { display: flex; gap: 10px; }
.vst-fact { flex: 1; background: var(--vst-card2); border: 1px solid var(--vst-line2);
    border-radius: 12px; padding: 12px 13px; }
.vst-fact.hot { background: rgba(15,157,140,.09); border-color: rgba(15,157,140,.35); }
.vst-fact b { display: block; font: 700 19px/1.3 var(--vst-mono); color: var(--vst-indigo); }
.vst-fact.hot b { color: var(--vst-mint); }
.vst-fact span { font-size: 11.5px; color: var(--vst-ink2); }

/* 封口袋 */
.vst-bag-box { background: linear-gradient(160deg, rgba(21,94,117,.07), rgba(15,157,140,.04));
    border-left: 1px dashed var(--vst-line); border-right: 1px dashed var(--vst-line);
    padding: 26px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vst-bag { width: 178px; height: 214px; border: 2px solid rgba(43,127,184,.5); border-radius: 8px 8px 14px 14px;
    background: linear-gradient(150deg, rgba(255,255,255,.75), rgba(210,238,242,.35));
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.45), 0 10px 22px rgba(21,94,117,.14);
    position: relative; overflow: hidden; }
:root[data-theme="dark"] .vst-bag { background: linear-gradient(150deg, rgba(120,180,195,.14), rgba(60,110,125,.08)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.3); }
.vst-bag::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(43,127,184,.18); }
.vst-bag-top { height: 15px; border-bottom: 1px dashed rgba(43,127,184,.5); }
.vst-bag-inner { position: absolute; inset: 16px 8px 42px; }
.vst-bag-content { height: 100%; border-radius: 6px; display: grid; place-items: center;
    background: linear-gradient(180deg, rgba(226,112,31,.16), rgba(226,112,31,.30));
    border: 1px dashed rgba(226,112,31,.5); color: var(--vst-orange); font-size: 12px; }
.vst-bag-line { position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; border-top: 1px dashed var(--vst-line); }
.vst-seal { position: absolute; left: 0; right: 0; bottom: 16px; height: 16px;
    background: repeating-linear-gradient(90deg, var(--vst-orange) 0 7px, transparent 7px 12px);
    border-top: 2px solid var(--vst-orange); border-bottom: 2px solid var(--vst-orange);
    display: grid; place-items: center; transition: .3s; }
.vst-seal span { font: 700 9px/1 var(--vst-mono); color: var(--vst-card); background: var(--vst-orange); padding: 2px 6px; }
.vst-bag-cap { margin-top: 16px; font: 11px/1.6 var(--vst-mono); color: var(--vst-ink2); text-align: center; }

.vst-lamps { padding: 30px 22px; background: var(--vst-indigo); color: #dff3f5; display: flex; flex-direction: column; gap: 13px; }
:root[data-theme="dark"] .vst-lamps { background: #173c49; }
.vst-lamp-title { font: 700 10px/1 var(--vst-mono); letter-spacing: .2em; color: #8fc7d3; margin-bottom: 4px; }
.vst-lamp { display: grid; grid-template-columns: 10px 1fr; gap: 3px 10px; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 10px; }
.vst-lamp i { width: 9px; height: 9px; border-radius: 50%; background: var(--vst-mint);
    box-shadow: 0 0 0 4px rgba(69,201,184,.2); grid-row: span 2; }
.vst-lamp span { font-size: 11px; color: #9fcbd4; }
.vst-lamp b { font: 700 15px/1.3 var(--vst-mono); color: #fff; }

/* ---------- 操作台 ---------- */
.vst-console { margin-top: 20px; background: var(--vst-card); border: 1px solid var(--vst-line);
    border-radius: 18px; padding: 24px 28px 26px; box-shadow: var(--vst-shadow-s); }
.vst-console-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vst-console-head h2, .vst-block-head h2 { font-size: 17px; margin: 0; }
.vst-console-head span, .vst-block-head p { font-size: 12px; color: var(--vst-ink3); }
.vst-console-head--sub { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--vst-line); }
.vst-food-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.vst-food { border: 1px solid var(--vst-line); border-radius: 12px; background: var(--vst-card2);
    padding: 12px 13px; text-align: left; cursor: pointer; font-family: inherit; transition: .16s; }
.vst-food:hover { border-color: var(--vst-mint); }
.vst-food.is-on { border-color: var(--vst-mint); background: rgba(15,157,140,.10); box-shadow: 0 0 0 2px rgba(15,157,140,.16); }
.vst-food em { display: block; font-size: 17px; font-style: normal; margin-bottom: 5px; }
.vst-food b { display: block; font-size: 13px; color: var(--vst-ink); }
.vst-food small { display: block; font-size: 11px; color: var(--vst-ink3); margin-top: 3px; }
.vst-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.vst-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.vst-field label em { font-style: normal; font-weight: 400; color: var(--vst-ink3); }
.vst-field input, .vst-field select, .vst-table input, .vst-table select {
    width: 100%; box-sizing: border-box; border: 1px solid var(--vst-line); border-radius: 8px;
    background: var(--vst-card2); color: var(--vst-ink); padding: 9px 11px; font-size: 13.5px; font-family: inherit; outline: none; }
.vst-field input:focus, .vst-field select:focus { border-color: var(--vst-mint); box-shadow: 0 0 0 3px rgba(15,157,140,.13); }
.vst-field small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--vst-ink3); line-height: 1.6; }
.vst-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.vst-btn { font: 600 13.5px/1.4 inherit; padding: 10px 18px; border-radius: 22px; cursor: pointer;
    border: 1px solid var(--vst-line); background: var(--vst-card2); color: var(--vst-ink); transition: .16s; }
.vst-btn:hover { border-color: var(--vst-mint); }
.vst-btn--main { background: linear-gradient(135deg, var(--vst-indigo), var(--vst-mint)); border-color: transparent;
    color: #fff; padding: 11px 24px; font-size: 14px; box-shadow: 0 6px 16px rgba(15,157,140,.22); }
.vst-btn--ghost { border-style: dashed; }
.vst-err { margin-top: 12px; padding: 10px 14px; border-radius: 9px; font-size: 13px;
    background: rgba(193,72,60,.09); border: 1px solid var(--vst-red); color: var(--vst-red); }

/* ---------- 参数票据 ---------- */
.vst-ticket { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; margin-top: 20px;
    background: var(--vst-card); border: 1px solid var(--vst-line); border-radius: 18px;
    box-shadow: var(--vst-shadow-s); overflow: hidden; }
.vst-ticket-left { padding: 26px 30px 30px; }
.vst-ticket-right { padding: 26px 28px 30px; background: var(--vst-card2); border-left: 1px dashed var(--vst-line); }
.vst-ticket-no { font: 700 10px/1 var(--vst-mono); letter-spacing: .2em; color: var(--vst-mint); }
.vst-ticket h2 { font-size: 20px; margin: 10px 0 8px; }
.vst-ticket-left > p { font-size: 13.5px; color: var(--vst-ink2); line-height: 1.9; margin: 0 0 20px; }
.vst-ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vst-ticket-grid div { border: 1px solid var(--vst-line2); border-radius: 10px; padding: 11px 13px; background: var(--vst-card2); }
.vst-ticket-grid b { display: block; font: 700 17px/1.35 var(--vst-mono); color: var(--vst-indigo); }
.vst-ticket-grid span { font-size: 11.5px; color: var(--vst-ink2); }
.vst-ticket-right h3 { font-size: 15px; margin: 0 0 14px; }
.vst-keep { display: grid; gap: 12px; }
.vst-keep-row span { display: flex; justify-content: space-between; font-size: 12px; color: var(--vst-ink2); }
.vst-keep-bar { height: 9px; border-radius: 6px; background: var(--vst-line2); margin-top: 5px; overflow: hidden; }
.vst-keep-bar i { display: block; height: 100%; border-radius: 6px; background: var(--vst-mint); }
.vst-keep-bar i.old { background: var(--vst-blue); }
.vst-disclaimer { font-size: 11.5px; line-height: 1.8; color: var(--vst-ink3); margin: 18px 0 0;
    border-top: 1px dashed var(--vst-line); padding-top: 12px; }

/* ---------- 流程 / 排查 ---------- */
.vst-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vst-block { margin-top: 20px; background: var(--vst-card); border: 1px solid var(--vst-line);
    border-radius: 16px; padding: 22px 26px 26px; box-shadow: var(--vst-shadow-s); }
.vst-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
    border-bottom: 2px solid var(--vst-mint); padding-bottom: 10px; margin-bottom: 16px; }
.vst-flow { display: grid; gap: 10px; }
.vst-flow-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.vst-flow-item > i { width: 28px; height: 28px; border-radius: 50%; background: rgba(15,157,140,.13);
    color: var(--vst-mint); display: grid; place-items: center; font: 700 12px/1 var(--vst-mono); font-style: normal; }
.vst-flow-item b { font-size: 13.5px; }
.vst-flow-item p { font-size: 12.5px; color: var(--vst-ink2); margin: 2px 0 0; line-height: 1.75; }
.vst-checks { display: grid; gap: 9px; }
.vst-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 12.5px;
    color: var(--vst-ink2); border-bottom: 1px dashed var(--vst-line2); padding-bottom: 8px; line-height: 1.75; }
.vst-check > i { font: 700 11px/1.6 var(--vst-mono); font-style: normal; color: var(--vst-orange); }
.vst-check b { color: var(--vst-ink); }

/* ---------- 表格 ---------- */
.vst-table-scroll { overflow-x: auto; }
.vst-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.vst-table th { text-align: left; font-size: 11.5px; color: var(--vst-ink2); background: var(--vst-card2);
    padding: 10px 12px; border-bottom: 2px solid var(--vst-line); white-space: nowrap; }
.vst-table td { padding: 10px 12px; border-bottom: 1px solid var(--vst-line2); }
.vst-table .num { text-align: right; font-family: var(--vst-mono); }
.vst-table tbody tr { cursor: pointer; }
.vst-table tbody tr:hover { background: var(--vst-card2); }
.vst-table tr.is-on td { background: rgba(15,157,140,.10); }
.vst-table--batch input, .vst-table--batch select { padding: 5px 7px; font-size: 12px; min-width: 68px; }
.vst-table tfoot td { background: var(--vst-card2); border-top: 2px solid var(--vst-line); }
.vst-del { border: none; background: transparent; color: var(--vst-red); cursor: pointer; font-size: 18px; }
.vst-batch-actions { margin-top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vst-batch-actions span { font-size: 12px; color: var(--vst-ink3); }

/* ---------- 浮层 ---------- */
.vst-modal[hidden], .vst-toast[hidden], .vst-err[hidden] { display: none !important; }
.vst-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(9, 32, 40, .62); }
.vst-sheet { position: relative; width: min(520px, 100%); background: var(--vst-card); color: var(--vst-ink);
    border: 1px solid var(--vst-line); border-radius: 18px; padding: 28px 30px; box-shadow: var(--vst-shadow); }
.vst-sheet h3 { font-size: 19px; margin: 0 0 8px; }
.vst-sheet p { font-size: 13px; color: var(--vst-ink2); line-height: 1.85; margin: 0 0 16px; }
.vst-code { display: block; font: 12px/1.7 var(--vst-mono); word-break: break-all; background: var(--vst-card2);
    border: 1px dashed var(--vst-line); border-radius: 9px; padding: 11px 13px; color: var(--vst-mint); }
.vst-modal-x { position: absolute; right: 14px; top: 10px; border: none; background: transparent;
    font-size: 25px; color: var(--vst-ink3); cursor: pointer; }
.vst-sheet-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.vst-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 9100;
    background: var(--vst-indigo); color: #fff; padding: 11px 20px; border-radius: 24px; font-size: 13px; box-shadow: var(--vst-shadow); }

@media (max-width: 1050px) {
    .vst-hero { grid-template-columns: 1fr 1fr; }
    .vst-lamps { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
    .vst-lamp-title { width: 100%; }
    .vst-lamp { flex: 1 1 140px; }
    .vst-ticket { grid-template-columns: 1fr; }
    .vst-ticket-right { border-left: none; border-top: 1px dashed var(--vst-line); }
    .vst-food-grid, .vst-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .vst-wrap { padding: 0 12px; }
    .vst-hero { grid-template-columns: 1fr; }
    .vst-hero-copy, .vst-console, .vst-ticket-left, .vst-ticket-right, .vst-block { padding-left: 16px; padding-right: 16px; }
    .vst-bag-box { border-left: none; border-right: none; border-top: 1px dashed var(--vst-line); border-bottom: 1px dashed var(--vst-line); }
    .vst-lamps { grid-column: auto; }
    .vst-hero h1 { font-size: 23px; }
    .vst-hero-facts { flex-wrap: wrap; }
    .vst-food-grid, .vst-fields, .vst-ticket-grid { grid-template-columns: 1fr; }
    .vst-cols { grid-template-columns: 1fr; }
    .vst-actions .vst-btn { flex: 1 1 45%; }
}
@media print { .vst-page { background: #fff; } .vst-actions, .vst-modal, .vst-toast, .vst-batch-actions { display: none !important; } }

/* ===== 窄屏溢出兜底：grid/flex 子项 min-width:0，公共推荐位不撑宽页面 ===== */
.tool-rec-item { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 1000px) {
    .vst-cols > *, .vst-two-col > *, .vst-c > *, .vst-report > *, .vst-hero > *,
    .vst-grid-wrap > *, .vst-console-grid > *, .vst-dual > *, .vst-report-grid > * { min-width: 0; }
}
@media (max-width: 620px) {
    .vst-page, .vst-wrap, .vst-block, .vst-report, .vst-console, .vst-hero { max-width: 100%; }
    .vst-table-scroll { max-width: 100%; }
    .vst-cols > *, .vst-two-col > *, .vst-report > *, .vst-grid-wrap > *, .vst-block { min-width: 0; max-width: 100%; }
    .vst-page .tskb-related .tskb-rel-grid { grid-template-columns: 1fr 1fr; min-width: 0; }
}
