/*! 黑胶一面能放多久 · 唱片标签档案：奶油纸 + 深棕 + 铜橙，衬线标题与黑胶盘。深浅双主题跟随导航。 */
.vst-page {
    --vst-bg: #f7f0e2; --vst-bg2: #efe4d1; --vst-card: #fffaf0; --vst-card2: #f7edda;
    --vst-line: #ddcbb0; --vst-line2: #c7ae8b; --vst-ink: #33261e; --vst-ink2: #6b5749;
    --vst-ink3: #99836c; --vst-brown: #4a3024; --vst-copper: #b3602a; --vst-copper-soft: rgba(179, 96, 42, .12);
    --vst-green: #4c7352; --vst-red: #bb4235; --vst-red-soft: rgba(187, 66, 53, .12);
    --vst-shadow: 0 20px 44px -30px rgba(51, 38, 30, .6); --vst-serif: Georgia, "Songti SC", "Noto Serif SC", serif;
    color: var(--vst-ink); font-size: 15px; line-height: 1.82;
    background: linear-gradient(180deg, var(--vst-bg), var(--vst-bg2));
}
:root[data-theme="dark"] .vst-page {
    --vst-bg: #17120e; --vst-bg2: #100d0a; --vst-card: #221a14; --vst-card2: #2a2018;
    --vst-line: #443425; --vst-line2: #5d4631; --vst-ink: #f3e7d5; --vst-ink2: #cbb49a;
    --vst-ink3: #9a8168; --vst-brown: #e8c9a0; --vst-copper: #e8944e; --vst-copper-soft: rgba(232, 148, 78, .14);
    --vst-green: #86c79a; --vst-red: #ff8b7a; --vst-red-soft: rgba(255, 139, 122, .14);
    --vst-shadow: 0 20px 44px -28px rgba(0, 0, 0, .9);
}
.vst-page *, .vst-page *::before, .vst-page *::after { box-sizing: border-box; }
.vst-wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 10px; }
.vst-page h2 { margin: 0 0 12px; font: 700 20px/1.45 var(--vst-serif); letter-spacing: .01em; }
.vst-page h3 { margin: 0 0 6px; font: 700 16px/1.5 var(--vst-serif); }
.vst-hint { font-size: 13px; color: var(--vst-ink3); line-height: 1.75; }

.vst-hero {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 30px; align-items: center;
    padding: 32px; border: 1.5px solid var(--vst-line); border-radius: 8px 26px 8px 26px;
    background: linear-gradient(120deg, var(--vst-card) 0%, var(--vst-card2) 100%); box-shadow: var(--vst-shadow);
}
.vst-kicker { display: inline-block; font: 700 11.5px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--vst-copper); border-bottom: 2px solid var(--vst-copper); padding-bottom: 3px; }
.vst-hero h1 { margin: 16px 0 12px; font: 800 clamp(28px, 3.5vw, 40px)/1.25 var(--vst-serif); letter-spacing: -.015em; }
.vst-sub { max-width: 42em; font-size: 15.5px; line-height: 1.95; color: var(--vst-ink2); }
.vst-sub b { color: var(--vst-ink); font-weight: 700; box-shadow: inset 0 -7px 0 var(--vst-copper-soft); }
.vst-facts { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.vst-facts b { display: block; font: 800 24px/1.3 var(--vst-serif); color: var(--vst-brown); }
.vst-facts span { font-size: 12px; color: var(--vst-ink3); }
.vst-disc-box { display: grid; place-items: center; gap: 14px; }
.vst-disc {
    width: 230px; height: 230px; border-radius: 50%; position: relative; display: grid; place-items: center;
    background:
        conic-gradient(from -90deg, var(--vst-copper) 0deg, var(--vst-copper) var(--vst-deg, 0deg), rgba(255, 255, 255, .06) var(--vst-deg, 0deg)),
        repeating-radial-gradient(circle at 50% 50%, #1b1a1a 0 2px, #292727 2px 3px, #171717 3px 5px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .85), inset 0 0 0 1px #3a3836;
}
.vst-disc::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.vst-disc-label { width: 42%; height: 42%; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--vst-copper); color: #fff7ee; text-align: center; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22); }
.vst-disc-label b { font: 800 26px/1.1 var(--vst-serif); }
.vst-disc-label span { font: 700 10px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.vst-disc-legend { display: flex; gap: 16px; font-size: 12px; color: var(--vst-ink3); flex-wrap: wrap; justify-content: center; }
.vst-disc-legend span:last-child { color: var(--vst-copper); font-weight: 700; }

.vst-quick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 20px; padding: 14px 18px; border: 1.5px solid var(--vst-line); border-radius: 10px; background: var(--vst-card); }
.vst-quick label { font-size: 12.5px; color: var(--vst-ink3); font-weight: 700; }
.vst-select, .vst-input, .vst-textarea { font: inherit; color: var(--vst-ink); background: var(--vst-card2); border: 1.5px solid var(--vst-line2); border-radius: 8px; padding: 8px 11px; outline: none; }
.vst-select:focus, .vst-input:focus, .vst-textarea:focus { border-color: var(--vst-copper); }
.vst-textarea { width: 100%; resize: vertical; line-height: 1.8; font: 13px/1.8 ui-monospace, Consolas, monospace; }
.vst-btn { font: 700 14px/1.4 inherit; padding: 9px 16px; border: 1.5px solid var(--vst-line2); border-radius: 8px; color: var(--vst-ink); background: var(--vst-card); cursor: pointer; transition: .15s ease; }
.vst-btn:hover { border-color: var(--vst-copper); transform: translateY(-1px); }
.vst-btn--main { color: #fff7ee; background: var(--vst-brown); border-color: var(--vst-brown); }
:root[data-theme="dark"] .vst-btn--main { color: #221a14; }
.vst-chip { font: 600 13px/1.4 inherit; padding: 7px 13px; border: 1px solid var(--vst-line2); border-radius: 999px; color: var(--vst-ink2); background: transparent; cursor: pointer; }
.vst-chip:hover { background: var(--vst-copper-soft); }

.vst-body { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; align-items: start; }
.vst-body > * { min-width: 0; }
.vst-side, .vst-main > section { background: var(--vst-card); border: 1.5px solid var(--vst-line); border-radius: 12px; padding: 20px; }
.vst-side { position: sticky; top: 16px; }
.vst-side .vst-textarea { margin: 12px 0; }
.vst-field { margin: 12px 0 16px; }
.vst-field label { display: block; font-size: 12.5px; color: var(--vst-ink3); margin-bottom: 6px; }
.vst-field .vst-input { width: 100%; }
.vst-actions { display: grid; gap: 8px; }
.vst-err { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--vst-red-soft); color: var(--vst-red); font-size: 13px; }
.vst-main { display: grid; gap: 18px; }
.vst-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vst-kpi { padding: 12px 14px; border: 1px solid var(--vst-line); border-radius: 10px; background: var(--vst-card2); }
.vst-kpi.hot { border-color: var(--vst-copper); }
.vst-kpi span { display: block; font-size: 12px; color: var(--vst-ink3); }
.vst-kpi b { display: block; font: 800 23px/1.4 var(--vst-serif); color: var(--vst-brown); }
.vst-kpi em { font-size: 11.5px; font-style: normal; color: var(--vst-ink3); }
.vst-kpi.is-risk { border-color: var(--vst-red); background: var(--vst-red-soft); }
.vst-kpi.is-risk b { color: var(--vst-red); }
.vst-meter { position: relative; height: 16px; margin: 18px 0 6px; border: 1px solid var(--vst-line2); border-radius: 999px; background: var(--vst-card2); overflow: hidden; }
.vst-meter-safe { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--vst-copper-soft); }
.vst-meter-used { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--vst-copper); border-radius: 999px; transition: width .3s ease; }
.vst-meter-used.is-over { background: var(--vst-red); }
.vst-meter-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--vst-brown); }
.vst-meter-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--vst-ink3); }
.vst-advice { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--vst-copper); border-radius: 0 8px 8px 0; background: var(--vst-card2); font-size: 14px; line-height: 1.9; color: var(--vst-ink2); }
.vst-scroll { overflow-x: auto; }
.vst-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vst-table th, .vst-table td { padding: 9px 10px; border-bottom: 1px solid var(--vst-line); text-align: left; }
.vst-table th { font-size: 12px; color: var(--vst-ink3); background: var(--vst-card2); }
.vst-table tr.is-over td { background: var(--vst-red-soft); }
.vst-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--vst-copper-soft); color: var(--vst-copper); }
.vst-tag.bad { background: var(--vst-red-soft); color: var(--vst-red); }
.vst-tag.ok { background: rgba(76, 115, 82, .14); color: var(--vst-green); }
.vst-flip { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vst-flip div { padding: 12px 14px; border: 1px dashed var(--vst-line2); border-radius: 10px; font-size: 13.5px; line-height: 1.8; color: var(--vst-ink2); }
.vst-flip b { display: block; color: var(--vst-ink); font-size: 14px; }
.vst-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.vst-notes div { padding: 12px; border: 1px solid var(--vst-line); border-radius: 10px; background: var(--vst-card2); }
.vst-notes b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.vst-notes span { font-size: 12.5px; color: var(--vst-ink3); line-height: 1.75; }
.vst-batch .vst-textarea { margin: 8px 0 12px; }
.vst-batch-actions { display: flex; gap: 8px; margin-bottom: 12px; }

.vst-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 14, 10, .6); }
.vst-modal[hidden] { display: none !important; }
.vst-sheet { width: min(470px, 100%); padding: 26px; border-radius: 14px; background: var(--vst-card); border: 1.5px solid var(--vst-line2); box-shadow: var(--vst-shadow); }
.vst-sheet h3 { font: 700 20px/1.4 var(--vst-serif); margin: 0 0 8px; }
.vst-sheet p { font-size: 14px; color: var(--vst-ink2); line-height: 1.8; }
.vst-sheet code { display: block; margin: 14px 0; padding: 10px; border-radius: 8px; background: var(--vst-card2); font-size: 12px; word-break: break-all; }
.vst-sheet-actions { display: flex; justify-content: flex-end; }
.vst-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 95; padding: 9px 18px; border-radius: 999px; background: var(--vst-brown); color: var(--vst-card); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.vst-toast.is-on { opacity: 1; }

@media (max-width: 960px) {
    .vst-hero { grid-template-columns: 1fr; padding: 24px; }
    .vst-body { grid-template-columns: 1fr; }
    .vst-side { position: static; }
    .vst-notes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .vst-wrap { padding: 14px 10px 6px; }
    .vst-hero { padding: 20px 16px; }
    .vst-facts { gap: 16px; }
    .vst-disc { width: 190px; height: 190px; }
    .vst-quick { padding: 12px; }
    .vst-status-grid, .vst-flip { grid-template-columns: 1fr; }
    .vst-main > section, .vst-side { padding: 15px; }
    .vst-table { min-width: 0; font-size: 12px; }
    .vst-table th, .vst-table td { padding: 7px 6px; }
}


/* 页面级修复：公共推荐卡在 390 窄屏固定宽导致横向溢出（只作用于本页，不改动线上其它页面） */
@media(max-width:640px){
  .tool-rec{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box}
  .tool-rec-grid{grid-template-columns:minmax(0,1fr)!important}
  .tool-rec-item{min-width:0!important;width:100%!important;box-sizing:border-box}
  .tool-rec-body,.tool-rec-body b,.tool-rec-body small{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .tskb-card{overflow-x:auto}
  .tskb-legend{min-width:0;width:100%;table-layout:fixed}
  .tskb-legend th,.tskb-legend td{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
  .tskb-tabs{flex-wrap:wrap}
}
