/* 外贸工具网 · 工具箱 */
.wt-head { margin-bottom: 18px; }
.wt-head h1 { font-size: 26px; font-weight: 800; color: var(--wm-text); margin-bottom: 6px; }
.wt-head p { color: var(--wm-muted); margin: 0; }
.wt-groups { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 16px; margin-bottom: 22px; }
.wt-group h2 { font-size: 15px; font-weight: 700; color: var(--wm-text); margin-bottom: 10px; }
.wt-group h2 i { color: var(--wm-brand); margin-right: 6px; }
.wt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wt-tile {
    display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--wm-card);
    box-shadow: 0 0 0 1px var(--wm-line); color: var(--wm-text) !important; text-decoration: none !important; transition: .15s;
}
.wt-tile i { font-size: 18px; color: var(--wm-brand); margin-bottom: 4px; }
.wt-tile b { font-size: 14px; }
.wt-tile span { font-size: 12px; color: var(--wm-muted); }
.wt-tile:hover, .wt-tile.on { box-shadow: 0 0 0 2px var(--wm-brand); transform: translateY(-1px); }

.wt-tool { background: var(--wm-card); border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: 0 0 0 1px var(--wm-line); scroll-margin-top: 80px; }
.wt-tool > h2 { font-size: 18px; font-weight: 700; color: var(--wm-text); margin-bottom: 14px; }
.wt-tool > h2 i { color: var(--wm-brand); margin-right: 8px; }
.wt-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wt-body-col { grid-template-columns: 1fr; }
.wt-form { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.wt-form label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--wm-muted); margin: 0; }
.wt-form-3 label { flex: 1 1 220px; }
.wt-form input, .wt-form select, .wt-form textarea {
    border: 1px solid var(--wm-line); background: var(--wm-soft); color: var(--wm-text); border-radius: 8px; padding: 7px 10px; font-size: 14px; width: 100%;
    outline: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.wt-form input:focus, .wt-form select:focus, .wt-form textarea:focus { border-color: var(--wm-brand); background: var(--wm-card); }
.wt-out { background: var(--wm-soft); border-radius: 12px; padding: 14px 16px; min-height: 60px; color: var(--wm-text); font-size: 14px; }
.wt-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wt-kv div { background: var(--wm-card); border-radius: 8px; padding: 8px 10px; }
.wt-kv span { display: block; font-size: 12px; color: var(--wm-muted); }
.wt-kv b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wt-kv .hl { box-shadow: 0 0 0 2px var(--wm-accent); }
.wt-kv .hl b { color: var(--wm-accent); }
.wt-kv .bad b { color: #e5484d; }
.wt-kv .good b { color: #12a150; }
.wt-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.wt-table th, .wt-table td { padding: 6px 8px; border-bottom: 1px solid var(--wm-line); text-align: right; font-variant-numeric: tabular-nums; }
.wt-table th:first-child, .wt-table td:first-child { text-align: left; }
.wt-table th { color: var(--wm-muted); font-weight: 400; }
.wt-note { font-size: 12px; color: var(--wm-muted); margin: 12px 0 0; }
.wt-words { font-family: Consolas, Menlo, monospace; font-size: 14px; line-height: 1.7; word-break: break-word; background: var(--wm-card); padding: 10px 12px; border-radius: 8px; }
.wt-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wt-btn { border: 0; border-radius: 18px; padding: 6px 14px; font-size: 13px; background: var(--wm-brand); color: #fff; cursor: pointer; }
.wt-btn.ghost { background: transparent; color: var(--wm-brand); box-shadow: inset 0 0 0 1px var(--wm-brand); }
.wt-kw-list { max-height: 260px; overflow: auto; background: var(--wm-card); border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.8; }
.wt-bar { height: 8px; border-radius: 4px; background: var(--wm-line); overflow: hidden; margin: 6px 0; }
.wt-bar i { display: block; height: 100%; background: var(--wm-brand-2); }
.wt-bar.over i { background: #e5484d; }
.wt-hours { display: grid; grid-template-columns: 70px repeat(24, 1fr); gap: 2px; font-size: 10px; align-items: center; margin-bottom: 4px; }
.wt-hours span { height: 22px; border-radius: 3px; background: var(--wm-line); display: flex; align-items: center; justify-content: center; color: var(--wm-muted); }
.wt-hours span.w { background: #b7e4c7; color: #1b4332; }
.wt-hours span.both { background: #12a150; color: #fff; font-weight: 700; }
.wt-hours em { font-style: normal; color: var(--wm-text); font-size: 12px; }

/* 唛头预览 */
.wt-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wt-mark { border: 2px solid #111; background: #fff; color: #111; padding: 12px; font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-align: center; line-height: 1.6; font-size: 13px; text-transform: uppercase; }
.wt-mark small { display: block; font-size: 10px; letter-spacing: 2px; color: #555; margin-bottom: 4px; }
.wt-mark .big { font-size: 18px; }

@media (max-width: 991px) {
    .wt-groups { grid-template-columns: 1fr; }
    .wt-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .wt-tool { padding: 14px; }
    .wt-marks { grid-template-columns: 1fr; }
    .wt-hours { grid-template-columns: 54px repeat(24, 1fr); font-size: 8px; }
    .wt-hours span { height: 18px; }
}
@media print {
    body * { visibility: hidden !important; }
    .wt-print, .wt-print * { visibility: visible !important; }
    .wt-print { position: absolute; left: 0; top: 0; width: 100%; }
}
