/* ============================================================
   kid-homework-timer-calc —— 「作业台灯」独立视觉系统
   夜色墨蓝 + 台灯暖黄 + 纸面白卡，深色模式更沉浸
   仅作用于 .hw 作用域；跟随站点 [data-theme="dark"]
   ============================================================ */

.hw {
    --hw-bg: #eaeff6;
    --hw-bg-2: #dfe7f1;
    --hw-paper: #ffffff;
    --hw-paper-2: #f4f7fb;
    --hw-line: #d8e0ec;
    --hw-line-strong: #bcc9db;
    --hw-ink: #16233a;
    --hw-ink-soft: #4d5c74;
    --hw-ink-faint: #8493a8;
    --hw-amber: #d98a12;
    --hw-amber-soft: #fdf1dc;
    --hw-blue: #2a5da6;
    --hw-blue-soft: #e5eefa;
    --hw-teal: #0f857a;
    --hw-teal-soft: #ddf3f0;
    --hw-rose: #c9455a;
    --hw-rose-soft: #fbe6ea;
    --hw-violet: #6b4fbb;
    --hw-shadow: 0 16px 36px -20px rgba(22, 35, 58, .5);
    --hw-shadow-sm: 0 6px 16px -10px rgba(22, 35, 58, .35);
    --hw-radius: 16px;
    --hw-radius-sm: 10px;
    --hw-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --hw-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
    color: var(--hw-ink);
    font-family: var(--hw-sans);
    min-height: 100vh;
    padding-bottom: 10px;
    background:
        radial-gradient(1000px 420px at 88% -8%, rgba(217, 138, 18, .12), transparent 60%),
        radial-gradient(900px 400px at 8% -4%, rgba(42, 93, 166, .10), transparent 62%),
        var(--hw-bg);
}

[data-theme="dark"] .hw {
    --hw-bg: #080d16;
    --hw-bg-2: #0e1626;
    --hw-paper: #131d2e;
    --hw-paper-2: #182338;
    --hw-line: #25324a;
    --hw-line-strong: #33425e;
    --hw-ink: #e7eefa;
    --hw-ink-soft: #a7b5cd;
    --hw-ink-faint: #6e7d96;
    --hw-amber: #f0b429;
    --hw-amber-soft: rgba(240, 180, 41, .16);
    --hw-blue: #74a9e8;
    --hw-blue-soft: rgba(116, 169, 232, .16);
    --hw-teal: #38c3b5;
    --hw-teal-soft: rgba(56, 195, 181, .16);
    --hw-rose: #f0708a;
    --hw-rose-soft: rgba(240, 112, 138, .16);
    --hw-violet: #a58bf0;
    --hw-shadow: 0 18px 42px -22px rgba(0, 0, 0, .85);
    --hw-shadow-sm: 0 8px 20px -14px rgba(0, 0, 0, .8);
}

/* ---------------- 面包屑 ---------------- */
.hw-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: var(--hw-ink-faint); margin: 0 0 14px;
}
.hw-crumb a { color: var(--hw-ink-soft); text-decoration: none; transition: color .16s; }
.hw-crumb a:hover { color: var(--hw-amber); }
.hw-crumb .sep { opacity: .55; }
.hw-crumb .cur { color: var(--hw-ink); font-weight: 600; }

/* ---------------- 首屏：台灯下的书桌 ---------------- */
.hw-hero {
    position: relative; overflow: hidden;
    border-radius: 22px; margin-bottom: 20px;
    padding: 28px 30px 26px;
    background:
        radial-gradient(700px 320px at 78% -30%, rgba(240, 180, 41, .30), transparent 66%),
        linear-gradient(155deg, #1d2b45 0%, #121b2c 58%, #0c1322 100%);
    box-shadow: var(--hw-shadow);
    color: #eaf0fb;
    border: 1px solid rgba(255, 255, 255, .08);
}
.hw-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #f0b429, #f0b429 30%, transparent 30%);
    opacity: .5;
}
.hw-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: center;
}
.hw-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 2px; font-weight: 700;
    color: #f0b429; background: rgba(240, 180, 41, .12);
    border: 1px solid rgba(240, 180, 41, .34); border-radius: 999px;
    padding: 5px 14px; margin-bottom: 14px;
}
.hw-hero h1 {
    font-size: 29px; line-height: 1.3; margin: 0 0 10px;
    font-weight: 800; letter-spacing: .4px; color: #fff;
}
.hw-hero .hw-lead {
    margin: 0; font-size: 14.5px; line-height: 1.85; color: rgba(226, 235, 250, .84);
    max-width: 640px;
}
.hw-hero .hw-lead b { color: #ffd27a; }
.hw-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hw-chip {
    font-size: 12px; padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(233, 240, 251, .9);
}

/* ---------------- 计时器 ---------------- */
.hw-timer {
    background: rgba(10, 16, 27, .62);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px; padding: 18px 18px 16px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hw-timer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hw-timer-head .t { font-size: 12.5px; font-weight: 700; color: rgba(233, 240, 251, .86); letter-spacing: 1px; }
.hw-timer-head .s { font-size: 11.5px; color: rgba(233, 240, 251, .55); }
.hw-dial { position: relative; width: 100%; max-width: 250px; margin: 4px auto 6px; }
.hw-dial svg { display: block; width: 100%; height: auto; }
.hw-dial .ring-bg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 12; }
.hw-dial .ring-fg {
    fill: none; stroke: #f0b429; stroke-width: 12; stroke-linecap: round;
    transform: rotate(-90deg); transform-origin: 50% 50%;
    transition: stroke-dashoffset .35s linear, stroke .3s;
}
.hw-dial.is-run .ring-fg { stroke: #38c3b5; }
.hw-dial.is-pause .ring-fg { stroke: #8493a8; }
.hw-dial-num {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
}
.hw-dial-num .t {
    font-family: var(--hw-mono); font-size: 40px; font-weight: 700;
    letter-spacing: 1px; color: #fff; font-variant-numeric: tabular-nums;
}
.hw-dial-num .s { font-size: 11.5px; color: rgba(233, 240, 251, .6); }
.hw-timer-row { display: flex; gap: 8px; margin-top: 12px; }
.hw-timer-row .hw-btn { flex: 1; }
.hw-timer-extra { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.hw-timer-extra label { font-size: 12px; color: rgba(233, 240, 251, .72); white-space: nowrap; }
.hw-timer-extra span { white-space: nowrap; }
.hw-timer-extra input {
    width: 74px; font-family: var(--hw-mono); font-size: 14px; text-align: center;
    padding: 7px 8px; border-radius: 8px; color: #fff;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    outline: none;
}
.hw-timer-extra input:focus { border-color: #f0b429; }
.hw-timer-subject {
    width: 100%; margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: 9px;
    color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    outline: none; font-family: inherit;
}
.hw-timer-subject option { color: #16233a; }

/* ---------------- 按钮 ---------------- */
.hw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    padding: 10px 18px; border-radius: var(--hw-radius-sm);
    border: 1.5px solid var(--hw-amber); background: var(--hw-amber); color: #2a1c05;
    transition: transform .16s, box-shadow .16s, background .16s, color .16s;
    white-space: nowrap;
}
.hw-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--hw-amber); }
.hw-btn:active { transform: translateY(0); }
.hw-btn--ghost { background: var(--hw-paper); color: var(--hw-ink); border-color: var(--hw-line-strong); }
.hw-btn--ghost:hover { border-color: var(--hw-amber); color: var(--hw-amber); box-shadow: none; }
.hw-btn--dark { background: rgba(255, 255, 255, .1); color: #eaf0fb; border-color: rgba(255, 255, 255, .2); }
.hw-btn--dark:hover { background: rgba(255, 255, 255, .18); box-shadow: none; }
.hw-btn--teal { background: var(--hw-teal); border-color: var(--hw-teal); color: #04211f; }
.hw-btn--teal:hover { box-shadow: 0 12px 24px -12px var(--hw-teal); }
.hw-btn--rose { background: var(--hw-rose); border-color: var(--hw-rose); color: #fff; }
.hw-btn--sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }
.hw-btn--wide { width: 100%; }
.hw-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- KPI ---------------- */
.hw-kpis {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    gap: 12px; margin-top: 18px;
}
.hw-kpi {
    background: var(--hw-paper); border: 1px solid var(--hw-line);
    border-radius: 14px; padding: 13px 15px; box-shadow: var(--hw-shadow-sm);
    position: relative; overflow: hidden; color: var(--hw-ink);
}
.hw-kpi .k { font-size: 12px; color: var(--hw-ink-faint); display: block; margin-bottom: 5px; }
.hw-kpi .v { font-size: 21px; font-weight: 800; display: block; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hw-kpi .s { font-size: 11.5px; color: var(--hw-ink-faint); display: block; margin-top: 4px; }
.hw-kpi.ok .v { color: var(--hw-teal); }
.hw-kpi.warn .v { color: var(--hw-amber); }
.hw-kpi.bad .v { color: var(--hw-rose); }
.hw-kpi .bar { height: 4px; border-radius: 3px; background: var(--hw-bg-2); margin-top: 8px; overflow: hidden; }
.hw-kpi .bar i { display: block; height: 100%; border-radius: 3px; background: var(--hw-teal); transition: width .4s; }

/* ---------------- 布局 ---------------- */
.hw-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 20px 40px; }
.hw-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hw-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.hw-card {
    background: var(--hw-paper); border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius); padding: 20px 22px; box-shadow: var(--hw-shadow);
}
.hw-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.hw-card-head .ic {
    width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
    font-size: 17px; background: var(--hw-amber-soft); color: var(--hw-amber);
}
.hw-card-head h2 { font-size: 16.5px; margin: 2px 0 0; font-weight: 800; }
.hw-card-head .sub { font-size: 12px; color: var(--hw-ink-faint); margin: 4px 0 0; }
.hw-card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------- 表单 ---------------- */
.hw-field { margin-bottom: 13px; }
.hw-field:last-child { margin-bottom: 0; }
.hw-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--hw-ink-soft); }
.hw-label .u { font-weight: 500; color: var(--hw-ink-faint); }
.hw-input, .hw-select, .hw-textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14px; color: var(--hw-ink);
    background: var(--hw-paper-2); border: 1.5px solid var(--hw-line);
    border-radius: var(--hw-radius-sm); padding: 9px 11px; outline: none;
    transition: border-color .16s, box-shadow .16s;
}
.hw-textarea { min-height: 92px; resize: vertical; font-size: 13px; line-height: 1.6; }
.hw-input:focus, .hw-select:focus, .hw-textarea:focus {
    border-color: var(--hw-amber); box-shadow: 0 0 0 3px var(--hw-amber-soft);
}
.hw-select {
    appearance: none; cursor: pointer; padding-right: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--hw-ink-faint) 50%), linear-gradient(135deg, var(--hw-ink-faint) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.hw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hw-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.hw-hint { font-size: 12px; color: var(--hw-ink-faint); margin: 6px 0 0; line-height: 1.7; }

/* ---------------- 记录表 ---------------- */
.hw-tablewrap { overflow-x: auto; border: 1px solid var(--hw-line); border-radius: var(--hw-radius-sm); }
.hw-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.hw-table th, .hw-table td { padding: 8px 9px; text-align: left; border-bottom: 1px solid var(--hw-line); vertical-align: middle; }
.hw-table thead th { background: var(--hw-bg-2); color: var(--hw-ink-soft); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hw-table tbody tr:hover { background: var(--hw-paper-2); }
.hw-table tbody tr:last-child td { border-bottom: 0; }
.hw-table input, .hw-table select {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; color: var(--hw-ink);
    background: var(--hw-paper); border: 1px solid var(--hw-line); border-radius: 7px; padding: 6px 8px; outline: none;
}
.hw-table input:focus, .hw-table select:focus { border-color: var(--hw-amber); box-shadow: 0 0 0 2px var(--hw-amber-soft); }
.hw-table .hw-del {
    border: 1px solid var(--hw-line); background: var(--hw-paper); color: var(--hw-ink-faint);
    width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 14px; line-height: 1;
    transition: all .16s;
}
.hw-table .hw-del:hover { border-color: var(--hw-rose); color: var(--hw-rose); background: var(--hw-rose-soft); }
.hw-tag-pill {
    display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: var(--hw-blue-soft); color: var(--hw-blue);
}
.hw-tag-pill.is-done { background: var(--hw-teal-soft); color: var(--hw-teal); }
.hw-tag-pill.is-part { background: var(--hw-amber-soft); color: var(--hw-amber); }
.hw-empty { padding: 22px 10px; text-align: center; color: var(--hw-ink-faint); font-size: 13px; }

/* ---------------- 分析块 ---------------- */
.hw-metric-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px;
}
.hw-metric {
    background: var(--hw-paper-2); border: 1px solid var(--hw-line);
    border-radius: 12px; padding: 11px 12px;
}
.hw-metric .k { font-size: 11.5px; color: var(--hw-ink-faint); display: block; margin-bottom: 4px; }
.hw-metric .v { font-size: 17px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.hw-metric .v.ok { color: var(--hw-teal); }
.hw-metric .v.warn { color: var(--hw-amber); }
.hw-metric .v.bad { color: var(--hw-rose); }

.hw-sub { font-size: 13px; font-weight: 800; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.hw-sub small { font-weight: 400; font-size: 11.5px; color: var(--hw-ink-faint); }

.hw-bars { display: flex; flex-direction: column; gap: 9px; }
.hw-bar-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 74px; gap: 10px; align-items: center; }
.hw-bar-row .nm { font-size: 12.5px; color: var(--hw-ink-soft); }
.hw-bar-track { height: 16px; background: var(--hw-bg-2); border-radius: 8px; overflow: hidden; }
.hw-bar-track i { display: block; height: 100%; border-radius: 8px; background: var(--hw-blue); transition: width .4s; }
.hw-bar-row .vv { font-size: 12.5px; text-align: right; color: var(--hw-ink); font-variant-numeric: tabular-nums; }

.hw-verdict {
    margin-top: 14px; border-radius: var(--hw-radius-sm); padding: 13px 15px;
    font-size: 13px; line-height: 1.85;
    background: var(--hw-teal-soft); border: 1px solid color-mix(in srgb, var(--hw-teal) 32%, transparent);
}
.hw-verdict.warn { background: var(--hw-amber-soft); border-color: color-mix(in srgb, var(--hw-amber) 38%, transparent); }
.hw-verdict.bad { background: var(--hw-rose-soft); border-color: color-mix(in srgb, var(--hw-rose) 34%, transparent); }
.hw-verdict b { color: var(--hw-ink); }

.hw-note {
    display: flex; gap: 9px; align-items: flex-start; border-radius: var(--hw-radius-sm);
    padding: 11px 14px; font-size: 12.5px; line-height: 1.75;
    background: var(--hw-blue-soft); border: 1px solid color-mix(in srgb, var(--hw-blue) 28%, transparent);
}
.hw-note .ic { flex: none; font-size: 15px; }
.hw-note b { color: var(--hw-blue); }

.hw-error {
    margin-top: 10px; font-size: 12.5px; color: var(--hw-rose);
    background: var(--hw-rose-soft); border: 1px solid color-mix(in srgb, var(--hw-rose) 30%, transparent);
    border-radius: 8px; padding: 8px 11px; line-height: 1.7;
}
.hw-error:empty { display: none; }

/* ---------------- 双减对照 ---------------- */
.hw-shuangjian { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.hw-sj-gauge { position: relative; }
.hw-sj-track { height: 18px; border-radius: 9px; background: var(--hw-bg-2); overflow: hidden; position: relative; }
.hw-sj-fill { height: 100%; border-radius: 9px; background: var(--hw-teal); transition: width .4s, background .3s; }
.hw-sj-fill.warn { background: var(--hw-amber); }
.hw-sj-fill.bad { background: var(--hw-rose); }
.hw-sj-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--hw-ink); opacity: .5; }
.hw-sj-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--hw-ink-faint); margin-top: 6px; }

/* ---------------- 分析区补充 ---------------- */
.hw-quick-row { display: flex; flex-wrap: wrap; gap: 9px; }
.hw-eff-wrap { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: center; }
.hw-eff-ring { position: relative; }
.hw-eff-ring svg { display: block; width: 100%; height: auto; }
.hw-eff-ring circle { transition: stroke-dashoffset .45s ease, stroke .3s; }
.hw-eff-num {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
}
.hw-eff-num .t { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--hw-teal); }
.hw-eff-num .s { font-size: 11.5px; color: var(--hw-ink-faint); }
.hw-eff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-trend { width: 100%; overflow-x: auto; }
.hw-trend svg { display: block; min-width: 420px; width: 100%; height: auto; }
.hw-trend .tl-bar { fill: var(--hw-blue); }
.hw-trend .tl-line { fill: none; stroke: var(--hw-amber); stroke-width: 2; }
.hw-trend .tl-dot { fill: var(--hw-amber); }
.hw-trend .tl-txt { font-size: 10px; fill: var(--hw-ink-faint); }
.hw-trend .tl-base { stroke: var(--hw-line); stroke-width: 1; }
.hw-trend .tl-grid { stroke: var(--hw-line); stroke-width: 1; stroke-dasharray: 3 3; }
.hw-trend .tl-label { font-size: 10.5px; fill: var(--hw-ink-soft); }

/* ---------------- 页脚信息区 ---------------- */
.hw-notes { width: 100%; border-collapse: collapse; font-size: 13px; }
.hw-notes th, .hw-notes td { padding: 11px 12px; border-bottom: 1px solid var(--hw-line); text-align: left; vertical-align: top; line-height: 1.8; }
.hw-notes th { width: 108px; white-space: nowrap; font-weight: 700; color: var(--hw-blue); background: var(--hw-paper-2); font-size: 12.5px; }
.hw-notes td { color: var(--hw-ink-soft); }
.hw-notes td b { color: var(--hw-ink); }
.hw-notes tr:last-child th, .hw-notes tr:last-child td { border-bottom: 0; }

.hw-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 26px 0 0; border-bottom: 2px solid var(--hw-line); }
.hw-tab {
    border: 0; background: none; cursor: pointer; font-family: inherit;
    font-size: 14px; font-weight: 700; color: var(--hw-ink-faint); padding: 10px 16px; position: relative;
    transition: color .16s;
}
.hw-tab:hover { color: var(--hw-ink); }
.hw-tab.active { color: var(--hw-amber); }
.hw-tab.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px;
    background: var(--hw-amber); border-radius: 3px 3px 0 0;
}
.hw-panel {
    display: none; background: var(--hw-paper); border: 1px solid var(--hw-line); border-top: 0;
    border-radius: 0 0 var(--hw-radius) var(--hw-radius); padding: 22px 24px; box-shadow: var(--hw-shadow);
}
.hw-panel.active { display: block; animation: hw-fade .28s ease; }
@keyframes hw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hw-panel h3 { font-size: 17px; margin: 0 0 12px; }
.hw-panel h3:not(:first-child) { margin-top: 24px; }
.hw-panel p, .hw-panel li { font-size: 13.5px; line-height: 1.95; color: var(--hw-ink-soft); margin: 0 0 10px; }
.hw-panel ol, .hw-panel ul { margin: 0; padding-left: 22px; }
.hw-panel b { color: var(--hw-ink); }
.hw-faq details { border: 1px solid var(--hw-line); border-radius: 10px; padding: 0 15px; margin-bottom: 9px; background: var(--hw-paper-2); }
.hw-faq summary { cursor: pointer; font-size: 13.5px; font-weight: 700; padding: 12px 0; list-style: none; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "＋"; float: right; color: var(--hw-amber); font-weight: 700; }
.hw-faq details[open] summary::after { content: "－"; }
.hw-faq .a { padding: 0 0 13px; font-size: 13px; line-height: 1.9; color: var(--hw-ink-soft); }
.hw-timeline { list-style: none; padding: 0; margin: 0; }
.hw-timeline li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 11px; }
.hw-timeline .ver { font-weight: 800; color: var(--hw-amber); flex: none; }
.hw-timeline .date { font-size: 12.5px; color: var(--hw-ink-faint); flex: none; width: 88px; }
.hw-timeline .txt { font-size: 13px; color: var(--hw-ink-soft); line-height: 1.8; }

.hw-rel { margin-top: 24px; }
.hw-rel h3 { font-size: 18px; margin: 0 0 13px; }
.hw-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 11px; }
.hw-rel-item {
    display: flex; align-items: center; gap: 11px; padding: 13px 15px; text-decoration: none;
    background: var(--hw-paper); border: 1px solid var(--hw-line); border-radius: 12px;
    color: var(--hw-ink); box-shadow: var(--hw-shadow-sm); transition: transform .16s, border-color .16s;
}
.hw-rel-item:hover { transform: translateY(-3px); border-color: var(--hw-amber); }
.hw-rel-item .ri { font-size: 21px; flex: none; }
.hw-rel-item b { display: block; font-size: 13.5px; }
.hw-rel-item small { font-size: 11.5px; color: var(--hw-ink-faint); }

/* ---------------- toast ---------------- */
.hw-toast {
    position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
    background: rgba(20, 30, 48, .95); color: #fff; font-size: 13.5px;
    padding: 11px 20px; border-radius: 999px; opacity: 0; pointer-events: none;
    transition: all .26s; z-index: 9999; box-shadow: 0 14px 32px rgba(0, 0, 0, .3);
}
.hw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 打印单 ---------------- */
.hw-sheet { display: none; }
.hw-sheet-inner { padding: 6mm; color: #000; font-family: var(--hw-sans); }
.hw-sheet h2 { font-size: 19px; margin: 0 0 4px; text-align: center; }
.hw-sheet .sub { text-align: center; font-size: 12px; color: #555; margin-bottom: 12px; }
.hw-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
.hw-sheet th, .hw-sheet td { border: 1px solid #999; padding: 6px 7px; text-align: left; }
.hw-sheet th { background: #f0f0f0; }
.hw-sheet td.n { text-align: right; }
.hw-sheet .foot { font-size: 11px; color: #555; line-height: 1.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .hw-hero-grid { grid-template-columns: 1fr; }
    .hw-dial { max-width: 220px; }
    .hw-grid { grid-template-columns: 1fr; }
    .hw-hero { padding: 24px 20px 22px; }
    .hw-hero h1 { font-size: 24px; }
    .hw-wrap { padding: 18px 14px 34px; }
}
@media (max-width: 560px) {
    .hw-grid2, .hw-grid3, .hw-shuangjian, .hw-eff-wrap { grid-template-columns: 1fr; }
    .hw-eff-ring { max-width: 160px; margin: 0 auto; }
    .hw-card { padding: 16px 14px; }
    .hw-kpi .v { font-size: 18px; }
    .hw-panel { padding: 18px 16px; }
    .hw-notes th { width: auto; }
    .hw-notes tr { display: block; border-bottom: 1px solid var(--hw-line); }
    .hw-notes th, .hw-notes td { display: block; border-bottom: 0; }
}

/* ---------------- 打印 ---------------- */
@media print {
    body { background: #fff !important; }
    .hw { display: none !important; }
    .nav-header, .footer, .back-to-top, #clicaptcha-container,
    #evadeFab, .evade-fab, #navEvadeBtn, .nav-evade-btn, #navMask, .nav-mask,
    .ma-page-modal, .ma-toast-wrap, .gh-modal, .site-btt, .hw-toast { display: none !important; }
    .hw-sheet { display: block !important; }
    .hw-sheet-inner { padding: 0; }
    @page { size: A4; margin: 12mm; }
}
