/* ==========================================================================
   家政时薪账本 · 页面级样式（作用域 .hl，不影响站内其它页面）
   设计语言：纸质账本 / 衬线标题 / 等宽数字 / 陶土红 + 橄榄绿
   ========================================================================== */

.hl {
    --paper: #f5f0e5;
    --card: #fffdf7;
    --ink: #211c16;
    --ink2: #5b5244;
    --ink3: #8b7f6d;
    --line: #e2d7c4;
    --rule: rgba(120, 96, 60, .055);
    --accent: #b4462a;
    --accent-soft: rgba(180, 70, 42, .1);
    --olive: #4d6142;
    --warn: #99631a;
    --bad: #a02c1c;
    --ok: #3d6a4a;
    --shadow: 0 20px 44px -34px rgba(70, 46, 24, .55);
    --radius: 16px;
    background: var(--paper);
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
    color: var(--ink);
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding-bottom: 64px;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] .hl {
    --paper: #12100d;
    --card: #1b1814;
    --ink: #f4ecdf;
    --ink2: #c9bdab;
    --ink3: #8e8271;
    --line: #342d24;
    --rule: rgba(255, 240, 220, .035);
    --accent: #e8825a;
    --accent-soft: rgba(232, 130, 90, .14);
    --olive: #a2b98a;
    --warn: #e0a95e;
    --bad: #ef8a72;
    --ok: #8dc3a2;
    --shadow: 0 22px 48px -30px rgba(0, 0, 0, .9);
}

.hl *,
.hl *::before,
.hl *::after { box-sizing: border-box; }

.hl-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 22px;
}

.hl-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 顶部：面包屑 + 主题 ---------- */

.hl-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 6px;
}

.hl-crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--ink3);
    letter-spacing: .02em;
}

.hl-crumb a {
    color: var(--ink3);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.hl-crumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hl-crumb i { font-style: normal; opacity: .45; }
.hl-crumb b { color: var(--ink2); font-weight: 600; }

.hl-theme {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
}

.hl-theme button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: none;
    color: var(--ink3);
    font: inherit;
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.hl-theme svg { width: 13px; height: 13px; }
.hl-theme button:hover { color: var(--ink); }
.hl-theme button[aria-pressed="true"] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* ---------- 首屏 ---------- */

.hl-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 46px;
    align-items: start;
    padding-top: 26px;
    padding-bottom: 8px;
}

.hl-kicker {
    margin: 0 0 14px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}

.hl-title {
    margin: 0 0 16px;
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    font-size: clamp(33px, 4.4vw, 55px);
    line-height: 1.16;
    letter-spacing: -.01em;
    font-weight: 700;
}

.hl-title em {
    font-style: normal;
    color: var(--accent);
    background-image: linear-gradient(transparent 63%, var(--accent-soft) 63%, var(--accent-soft) 94%, transparent 94%);
}

.hl-sub {
    margin: 0 0 20px;
    max-width: 33em;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink2);
}

.hl-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hl-facts li {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 11.5px;
    color: var(--ink3);
}

.hl-facts b {
    font-weight: 700;
    color: var(--ink2);
    letter-spacing: .01em;
}

/* ---------- 首屏工作台 ---------- */

.hl-bench {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px 18px;
    overflow: hidden;
}

.hl-bench::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--olive));
    opacity: .85;
}

.hl-live {
    display: grid;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.hl-live-label {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--ink3);
}

.hl-live-num {
    display: inline-block;
    margin-top: 2px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: clamp(38px, 5.4vw, 56px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.hl-live-unit {
    margin-left: 6px;
    font-size: 12px;
    color: var(--ink3);
}

.hl-live-sub {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.hl-live-sub div {
    padding: 8px 10px;
    border-left: 2px solid var(--line);
}

.hl-live-sub dt {
    font-size: 10.5px;
    color: var(--ink3);
    letter-spacing: .04em;
}

.hl-live-sub dd {
    margin: 3px 0 0;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

/* ---------- 表单 ---------- */

.hl-form { padding-top: 14px; }

.hl-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.hl-field {
    display: block;
    min-width: 0;
}

.hl-field-wide { grid-column: 1 / -1; }

.hl-field > span:first-child,
.hl-mini-field > span:first-child {
    display: block;
    margin-bottom: 3px;
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--ink3);
}

.hl-input {
    display: flex;
    align-items: baseline;
    gap: 5px;
    border-bottom: 1px solid var(--line);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.hl-input:focus-within {
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 0 var(--accent);
}

.hl-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 15px;
    padding: 6px 0;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.hl-input input[type="text"],
.hl-input input[type="date"] {
    font-family: inherit;
    font-size: 13.5px;
}

.hl-input input::placeholder { color: var(--ink3); opacity: .7; }
.hl-input em { font-style: normal; font-size: 10.5px; color: var(--ink3); flex: none; }

/* 数字输入框隐藏上下调节箭头，避免在账本式输入行里误触 */
.hl input[type="number"]::-webkit-outer-spin-button,
.hl input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hl input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.hl-form-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hl-form-hint {
    font-size: 11.5px;
    color: var(--ink3);
    letter-spacing: .01em;
}

/* ---------- 按钮 ---------- */

.hl-btn {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff9f2;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hl-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5); }
.hl-btn:active { transform: translateY(0); }

.hl-btn-ghost {
    background: none;
    color: var(--ink2);
    border: 1px dashed var(--line);
    font-weight: 500;
}

.hl-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hl button:focus-visible,
.hl input:focus-visible,
.hl summary:focus-visible,
.hl a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- 校验提示 ---------- */

.hl-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--accent-soft);
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--ink2);
}

.hl-alert.is-bad { border-color: var(--bad); background: rgba(160, 44, 28, .08); color: var(--bad); }
.hl-alert.is-warn { border-color: var(--warn); background: rgba(153, 99, 26, .09); color: var(--warn); }
.hl-alert ul { margin: 0; padding-left: 18px; }
.hl-alert b { font-weight: 700; }

/* ---------- 区块通用 ---------- */

.hl-sec { padding-top: 52px; }

.hl-sec-head { margin-bottom: 18px; }

.hl-sec-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
}

.hl-sec-head h2 i {
    font-style: normal;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
}

.hl-sec-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink3);
}

.hl-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.hl-split-even { grid-template-columns: 1fr 1fr; }

.hl-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.hl-card-form { padding-bottom: 16px; }

.hl-note {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--ink3);
}

/* ---------- 日排期 ---------- */

.hl-bignums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.hl-bignums div {
    padding: 10px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.hl-bignums span { display: block; font-size: 10.5px; color: var(--ink3); }

.hl-bignums b {
    display: block;
    margin-top: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.hl-daybar {
    display: flex;
    height: 26px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.hl-daybar span { display: block; height: 100%; transition: width .3s ease; }
.hl-seg-serve { background: var(--accent); }
.hl-seg-travel { background: var(--olive); opacity: .8; }
.hl-seg-prep { background: var(--warn); opacity: .75; }
.hl-seg-idle { background: var(--line); }

.hl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--ink3);
}

.hl-legend span { display: inline-flex; align-items: center; gap: 5px; }

.hl-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.hl-dot-serve { background: var(--accent); }
.hl-dot-travel { background: var(--olive); }
.hl-dot-prep { background: var(--warn); }
.hl-dot-idle { background: var(--line); border: 1px solid var(--ink3); }

/* ---------- 保本 ---------- */

.hl-be { display: flex; flex-direction: column; gap: 8px; }

.hl-be-label { font-size: 11px; letter-spacing: .08em; color: var(--ink3); }

.hl-be-num {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.hl-be-num em {
    margin-left: 6px;
    font-style: normal;
    font-size: 11.5px;
    color: var(--ink3);
    letter-spacing: 0;
}

.hl-be-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hl-mini-field { display: block; }

.hl-mini-field .hl-input input { font-size: 13.5px; padding: 4px 0; }

.hl-meter {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.hl-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 999px;
    transition: width .3s ease, background .2s ease;
}

.hl-meter span.is-over { background: var(--bad); }

.hl-meter-text { margin: 0; font-size: 11.5px; color: var(--ink3); }

/* ---------- 批量表 ---------- */

.hl-tablewrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.hl-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12.5px;
}

.hl-table th {
    text-align: left;
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--ink3);
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    white-space: nowrap;
}

.hl-table th:first-child { width: 32%; }

.hl-table td {
    padding: 8px 10px;
    border-bottom: 1px dotted var(--line);
    vertical-align: middle;
}

.hl-table tr:last-child td { border-bottom: 0; }

.hl-table tbody tr.is-best {
    background: var(--accent-soft);
    box-shadow: inset 3px 0 0 var(--accent);
}

.hl-table tbody tr.is-loss .hl-row-rate { color: var(--bad); }

.hl-table input {
    width: 100%;
    min-width: 54px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: none;
    color: var(--ink);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    padding: 5px 0;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.hl-table input[data-k="name"] { font-family: inherit; min-width: 120px; }
.hl-table input:focus { border-bottom-color: var(--accent); }

.hl-row-rate {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.hl-row-del {
    border: 0;
    background: none;
    color: var(--ink3);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.hl-row-del:hover { color: var(--bad); background: rgba(160, 44, 28, .08); }

.hl-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* ---------- 报价文案 ---------- */

.hl-quote-text {
    margin: 0 0 12px;
    min-height: 208px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- 口径 / FAQ ---------- */

.hl-formula {
    padding: 14px 15px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: var(--paper);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 2.1;
    color: var(--ink2);
    overflow-x: auto;
}

.hl-em { color: var(--accent); font-weight: 600; }

.hl-notes {
    margin: 14px 0 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.95;
    color: var(--ink2);
}

.hl-notes li { margin-bottom: 6px; }
.hl-notes b, .hl-steps b { color: var(--ink); font-weight: 700; }

.hl-steps {
    margin: 0;
    padding-left: 20px;
    counter-reset: step;
    font-size: 12.5px;
    line-height: 1.95;
    color: var(--ink2);
}

.hl-steps li { margin-bottom: 10px; }

.hl-faq details {
    border-top: 1px solid var(--line);
    padding: 2px 0;
}

.hl-faq details:last-of-type { border-bottom: 1px solid var(--line); }

.hl-faq summary {
    cursor: pointer;
    padding: 14px 24px 14px 0;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
}

.hl-faq summary::-webkit-details-marker { display: none; }

.hl-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: ui-monospace, monospace;
    font-size: 16px;
    color: var(--accent);
}

.hl-faq details[open] summary::after { content: "–"; }

.hl-faq details p {
    margin: 0 0 16px;
    padding-right: 28px;
    font-size: 13px;
    line-height: 1.95;
    color: var(--ink2);
}

.hl-foot {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hl-foot p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.9;
    color: var(--ink3);
}

/* ---------- Toast（只在复制等操作后出现） ---------- */

.hl-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 12px);
    z-index: 60;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12.5px;
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .7);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.hl-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
    .hl-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hl-split, .hl-split-even { grid-template-columns: minmax(0, 1fr); }
    .hl-sec { padding-top: 42px; }
}

@media (max-width: 640px) {
    .hl-wrap { padding: 0 16px; }
    .hl-top { flex-wrap: wrap; }
    .hl-theme { margin-left: auto; }
    .hl-title { font-size: 32px; }
    .hl-sub { font-size: 14px; }
    .hl-bench { padding: 16px 16px 14px; }
    .hl-fields { gap: 10px 12px; }
    .hl-live-sub { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .hl-live-sub div { padding: 6px 8px; }
    .hl-bignums { grid-template-columns: 1fr 1fr; }
    .hl-be-num { font-size: 28px; }
    .hl-faq summary { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .hl *, .hl *::before, .hl *::after { transition: none !important; animation: none !important; }
}

@media print {
    .hl-theme, .hl-toast, .hl-btn { display: none !important; }
    .hl { background: #fff; }
}
