/*! 折叠车放后备箱 · 装载图：藏青 + 荧光橙 + 冷灰，尾门开口示意与朝向刻度。深浅跟随导航。 */
.fbt-page {
    --fbt-bg: #eef2f9; --fbt-bg2: #e3eaf4; --fbt-card: #ffffff; --fbt-card2: #f3f6fb;
    --fbt-line: #ced9e8; --fbt-line2: #aabdd6; --fbt-ink: #17284a; --fbt-ink2: #4a5f7f;
    --fbt-ink3: #8395b1; --fbt-navy: #17365d; --fbt-navy-soft: rgba(23, 54, 93, .1);
    --fbt-orange: #e9700e; --fbt-orange-soft: rgba(233, 112, 14, .13);
    --fbt-green: #2a8a6c; --fbt-green-soft: rgba(42, 138, 108, .13);
    --fbt-red: #c8402f; --fbt-red-soft: rgba(200, 64, 47, .12);
    --fbt-shadow: 0 18px 42px -30px rgba(23, 40, 74, .58);
    color: var(--fbt-ink); font-size: 15px; line-height: 1.82;
    background: linear-gradient(180deg, var(--fbt-bg), var(--fbt-bg2));
}
:root[data-theme="dark"] .fbt-page {
    --fbt-bg: #0d1420; --fbt-bg2: #090e17; --fbt-card: #172336; --fbt-card2: #1d2c43;
    --fbt-line: #2c405c; --fbt-line2: #3f5878; --fbt-ink: #e9f0fa; --fbt-ink2: #aec0dc;
    --fbt-ink3: #7d93b3; --fbt-navy: #7aa7e8; --fbt-navy-soft: rgba(122, 167, 232, .13);
    --fbt-orange: #ffa653; --fbt-orange-soft: rgba(255, 166, 83, .14);
    --fbt-green: #7bd8b6; --fbt-green-soft: rgba(123, 216, 182, .14);
    --fbt-red: #ff8b7a; --fbt-red-soft: rgba(255, 139, 122, .14);
    --fbt-shadow: 0 18px 42px -26px rgba(0, 0, 0, .9);
}
.fbt-page *, .fbt-page *::before, .fbt-page *::after { box-sizing: border-box; }
.fbt-wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 10px; }
.fbt-page h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: .01em; }
.fbt-hint { font-size: 13px; color: var(--fbt-ink3); line-height: 1.75; }

.fbt-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 26px; align-items: center; padding: 30px; border: 1.5px solid var(--fbt-line2); border-radius: 8px 8px 24px 8px; background: var(--fbt-card); box-shadow: var(--fbt-shadow); }
.fbt-kicker { display: inline-block; padding: 4px 12px; border-radius: 4px; font: 800 11.5px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .09em; color: #fff; background: var(--fbt-navy); }
:root[data-theme="dark"] .fbt-kicker { color: #0d1420; }
.fbt-hero h1 { margin: 14px 0 10px; font-size: clamp(27px, 3.5vw, 39px); font-weight: 800; line-height: 1.24; }
.fbt-sub { max-width: 43em; font-size: 15.5px; line-height: 1.95; color: var(--fbt-ink2); }
.fbt-sub b { color: var(--fbt-navy); font-weight: 700; }
.fbt-facts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.fbt-facts div { min-width: 104px; padding: 9px 15px; border-left: 4px solid var(--fbt-orange); border-radius: 0 8px 8px 0; background: var(--fbt-card2); }
.fbt-facts b { display: block; font: 800 19px/1.35 inherit; color: var(--fbt-navy); }
.fbt-facts span { font-size: 12px; color: var(--fbt-ink3); }
.fbt-trunk { padding: 16px; border: 1px dashed var(--fbt-line2); border-radius: 14px; background: var(--fbt-card2); }
.fbt-trunk-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--fbt-ink3); margin-bottom: 8px; }
.fbt-trunk-head b { color: var(--fbt-ink); font-size: 13.5px; }
.fbt-trunk-svg svg { width: 100%; height: auto; display: block; }
.fbt-trunk > p { margin-top: 8px; font-size: 11.5px; color: var(--fbt-ink3); text-align: center; }

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

.fbt-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: start; }
.fbt-body > * { min-width: 0; }
.fbt-side, .fbt-main > section { background: var(--fbt-card); border: 1.5px solid var(--fbt-line); border-radius: 14px; padding: 20px; }
.fbt-side { position: sticky; top: 16px; }
.fbt-group { margin: 14px 0; padding: 12px; border: 1px solid var(--fbt-line); border-radius: 10px; background: var(--fbt-card2); }
.fbt-group > b { display: block; font-size: 13px; margin-bottom: 8px; }
.fbt-triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fbt-triple label { font-size: 11px; color: var(--fbt-ink3); }
.fbt-triple .fbt-input { width: 100%; margin-top: 4px; padding: 7px 6px; }
.fbt-field { margin: 14px 0; }
.fbt-field label { display: block; font-size: 12.5px; color: var(--fbt-ink3); margin-bottom: 6px; }
.fbt-field .fbt-input, .fbt-field .fbt-select { width: 100%; }
.fbt-actions { display: grid; gap: 8px; margin-top: 16px; }
.fbt-err { margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: var(--fbt-red-soft); color: var(--fbt-red); font-size: 13px; }
.fbt-main { display: grid; gap: 18px; }
.fbt-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fbt-kpi { padding: 12px 14px; border: 1px solid var(--fbt-line); border-radius: 11px; background: var(--fbt-card2); }
.fbt-kpi.hot { border-color: var(--fbt-orange); background: var(--fbt-orange-soft); }
.fbt-kpi span { display: block; font-size: 12px; color: var(--fbt-ink3); }
.fbt-kpi b { display: block; font: 800 19px/1.4 inherit; color: var(--fbt-navy); }
.fbt-kpi em { font-size: 11.5px; font-style: normal; color: var(--fbt-ink3); }
.fbt-kpi.is-risk { background: var(--fbt-red-soft); border-color: var(--fbt-red); }
.fbt-kpi.is-risk b { color: var(--fbt-red); }
.fbt-kpi.is-ok { background: var(--fbt-green-soft); border-color: var(--fbt-green); }
.fbt-kpi.is-ok b { color: var(--fbt-green); }
.fbt-bars { padding: 14px; border: 1px dashed var(--fbt-line2); border-radius: 11px; background: var(--fbt-card2); }
.fbt-bar-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 90px; gap: 10px; align-items: center; margin: 6px 0; font-size: 12px; }
.fbt-bar-row > span:first-child { color: var(--fbt-ink3); }
.fbt-bar-track { height: 11px; border-radius: 999px; background: var(--fbt-line); overflow: hidden; }
.fbt-bar-track i { display: block; height: 100%; border-radius: 999px; background: var(--fbt-navy); }
.fbt-bar-track i.over { background: var(--fbt-red); }
.fbt-bar-row > span:last-child { text-align: right; color: var(--fbt-ink2); }
.fbt-advice { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--fbt-orange); border-radius: 0 9px 9px 0; background: var(--fbt-card2); font-size: 14px; line-height: 1.9; color: var(--fbt-ink2); }
.fbt-ai { border-color: var(--fbt-orange) !important; }
.fbt-ai-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fbt-ai-head span { font-size: 12px; color: var(--fbt-ink3); }
.fbt-ai-status { font-size: 12.5px; color: var(--fbt-ink3); margin-top: 10px !important; }
.fbt-ai-box:not(:empty) { margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--fbt-card2); border: 1px solid var(--fbt-line); font-size: 14px; line-height: 1.9; color: var(--fbt-ink2); }
.fbt-ai-box p + p { margin-top: 8px; }
.fbt-scroll { overflow-x: auto; }
.fbt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fbt-table th, .fbt-table td { padding: 9px 10px; border-bottom: 1px solid var(--fbt-line); text-align: left; }
.fbt-table th { font-size: 12px; color: var(--fbt-ink3); background: var(--fbt-card2); }
.fbt-table td b { font: 700 14px ui-monospace, Consolas, monospace; color: var(--fbt-navy); }
.fbt-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--fbt-green-soft); color: var(--fbt-green); }
.fbt-tag.warn { background: var(--fbt-orange-soft); color: var(--fbt-orange); }
.fbt-tag.bad { background: var(--fbt-red-soft); color: var(--fbt-red); }
.fbt-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fbt-checks div { padding: 11px; border: 1px solid var(--fbt-line); border-radius: 10px; background: var(--fbt-card2); }
.fbt-checks b { display: block; font-size: 13px; }
.fbt-checks span { font-size: 12px; color: var(--fbt-ink3); line-height: 1.7; }
.fbt-batch .fbt-textarea { margin: 8px 0 12px; }
.fbt-batch-actions { display: flex; gap: 8px; margin-bottom: 12px; }

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

@media (max-width: 960px) {
    .fbt-hero { grid-template-columns: 1fr; padding: 24px; }
    .fbt-body { grid-template-columns: 1fr; }
    .fbt-side { position: static; }
    .fbt-checks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .fbt-wrap { padding: 14px 10px 6px; }
    .fbt-hero { padding: 20px 16px; }
    .fbt-quick { padding: 12px; }
    .fbt-kpis { grid-template-columns: 1fr; }
    .fbt-main > section, .fbt-side { padding: 15px; }
    .fbt-bar-row { grid-template-columns: 64px minmax(0, 1fr); }
    .fbt-bar-row > span:last-child { grid-column: 2; text-align: left; }
    .fbt-table { min-width: 0; font-size: 12px; }
    .fbt-table th, .fbt-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}
}
