/* =====================================================================
 * 05 家庭工具箱清单 · 独立视觉：工业挂板 / 工具墙
 * 深色钢灰孔洞挂板 + 可点选工具牌 + 右侧采购读数，与前面所有页面不同。
 * ===================================================================== */

.hc.hc--ht {
    --hc-a: #b0682b; --hc-a-soft: #f8ebda;
    --ht-board: #2e3538; --ht-board-2: #3a4346; --ht-board-ink: #f2f4f3;
}
:root[data-theme="dark"] .hc.hc--ht {
    --hc-a: #e5a86a; --hc-a-soft: #37291a;
    --ht-board: #151d1f; --ht-board-2: #1d282a; --ht-board-ink: #e9f0ed;
}

.ht-hero { padding-top: 34px; }
.ht-head { max-width: 850px; }
.ht-bench { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(260px, .58fr); gap: 18px; margin-top: 26px; align-items: start; }

/* ---------- 挂板 ---------- */
.ht-board {
    border-radius: var(--hc-r); overflow: hidden; border: 1px solid var(--ht-board-2);
    background: var(--ht-board); box-shadow: var(--hc-shadow); color: var(--ht-board-ink);
}
.ht-board-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
    padding: 13px 17px; border-bottom: 1px solid rgba(255,255,255,.1);
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.65);
}
.ht-filters { display: flex; gap: 5px; }
.ht-filters button {
    padding: 4px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
    background: transparent; color: rgba(255,255,255,.72); font-family: var(--hc-sans); font-size: 11.5px;
    cursor: pointer; transition: all .18s;
}
.ht-filters button:hover { border-color: var(--hc-a); }
.ht-filters button.is-on { background: var(--hc-a); border-color: var(--hc-a); color: #fff; font-weight: 700; }
:root[data-theme="dark"] .ht-filters button.is-on { color: #231609; }

.ht-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px;
    padding: 18px;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.2px);
    background-size: 18px 18px;
}
.ht-tool {
    position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 88px;
    padding: 10px 10px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px;
    background: var(--ht-board-2); color: var(--ht-board-ink); cursor: pointer;
    font-family: var(--hc-sans); text-align: left; transition: transform .16s, border-color .16s, background .16s;
}
.ht-tool:hover { transform: translateY(-2px); border-color: var(--hc-a); }
.ht-tool .ht-ic { font-family: var(--hc-serif); font-size: 18px; line-height: 1; color: var(--hc-a); font-weight: 700; }
.ht-tool .ht-nm { font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.ht-tool .ht-pr { font-size: 10.5px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.ht-tool .ht-flag {
    position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.22);
}
.ht-tool.is-have { border-color: #6fae8b; background: rgba(96, 172, 132, .18); }
.ht-tool.is-have .ht-flag { background: #7dd3a3; }
.ht-tool.is-have::after {
    content: "已有"; position: absolute; bottom: 8px; right: 9px; font-size: 10px; color: #a7e6c3; font-weight: 700;
}
.ht-tool.is-need .ht-flag { background: var(--hc-a); }
.ht-tool.is-skip { opacity: .42; }
.ht-tool.is-skip .ht-pr { text-decoration: line-through; }
.ht-board-foot {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    padding: 11px 17px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: 11.5px; color: rgba(255,255,255,.62);
}
.ht-board-foot span:last-child { margin-left: auto; color: var(--hc-a); font-weight: 700; }
.ht-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.ht-dot--have { background: #7dd3a3; }
.ht-dot--need { background: var(--hc-a); }
.ht-dot--skip { background: rgba(255,255,255,.24); }

/* ---------- 侧栏 ---------- */
.ht-side { display: grid; gap: 14px; }
.ht-card {
    padding: 18px; border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow);
}
.ht-panel-title {
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--hc-a); padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px dashed var(--hc-line);
}
.ht-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ht-scene-chip { position: relative; display: block; cursor: pointer; }
.ht-scene-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ht-scene-chip span {
    display: block; padding: 6px 9px; border: 1px solid var(--hc-line); border-radius: 8px;
    background: var(--hc-card-2); font-size: 11.5px; color: var(--hc-muted); text-align: center; transition: all .18s;
}
.ht-scene-chip input:checked + span { border-color: var(--hc-a); background: var(--hc-a-soft); color: var(--hc-a); font-weight: 700; }
.ht-card .hc-btn { flex: 1 1 auto; font-size: 12.5px; padding: 8px 9px; }

.ht-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ht-mini > div { padding: 10px 11px; border-radius: var(--hc-r-sm); background: var(--hc-card-2); border: 1px solid var(--hc-line-2); }
.ht-mini span { display: block; font-size: 10.5px; color: var(--hc-muted); }
.ht-mini b { display: block; font-family: var(--hc-serif); font-size: 22px; line-height: 1.3; color: var(--hc-a); font-variant-numeric: tabular-nums; }
.ht-mini b.ht-over { color: var(--hc-danger); }
.ht-budget-bar { height: 8px; margin: 13px 0 0; border-radius: 6px; background: var(--hc-line-2); overflow: hidden; }
.ht-budget-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hc-ok), var(--hc-a)); transition: width .3s; }
.ht-budget-bar i.is-over { background: var(--hc-danger); }
.ht-summary p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: var(--hc-muted); }
.ht-priority { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hc-line); }
.ht-priority > span { font-size: 12px; font-weight: 700; }
.ht-priority ol { margin: 8px 0 0; padding-left: 20px; font-size: 12px; color: var(--hc-ink-2); }
.ht-priority li { margin-bottom: 4px; }

/* ---------- 场景对照 ---------- */
.ht-scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.ht-scene-card { padding: 15px 16px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r-sm); background: var(--hc-card); box-shadow: var(--hc-shadow-sm); }
.ht-scene-card.is-on { border-color: var(--hc-a); background: var(--hc-a-soft); }
.ht-scene-card h4 { margin: 0 0 7px; font-size: 14px; }
.ht-scene-card p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--hc-ink-2); }
.ht-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1000px) {
    .ht-bench { grid-template-columns: 1fr; }
    .ht-side { grid-template-columns: 1fr 1fr; }
    .ht-scene-grid { grid-template-columns: repeat(2, 1fr); }
    .ht-two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .ht-side { grid-template-columns: 1fr; }
    .ht-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px; }
    .ht-tool { min-height: 76px; padding: 8px; }
    .ht-tool .ht-nm { font-size: 11px; }
    .ht-scene-grid { grid-template-columns: 1fr; }
    .ht-card { padding: 15px; }
}
