/* ==========================================================================
   贴砖人工费计算器 /tool/tile-labor-cost-calc
   独立设计「瓦工工单台」：陶土色 + 施工图纸网格 + 白色 A4 报价纸
   视觉与站内其他计算器区分，深浅主题由导航栏主题按钮（data-theme）驱动
   ========================================================================== */

.tlc-page {
    --tlc-clay: #b45f2e;
    --tlc-clay-2: #d98a52;
    --tlc-clay-soft: rgba(180, 95, 46, 0.10);
    --tlc-clay-line: rgba(180, 95, 46, 0.28);
    --tlc-sand: #f7f1e8;
    --tlc-sand-2: #efe4d6;
    --tlc-panel: #fffdf9;
    --tlc-line: #e8dbc9;
    --tlc-line-soft: #f1e7d9;
    --tlc-ink: #2b231c;
    --tlc-sub: #7a6a5b;
    --tlc-muted: #9d8c7c;
    --tlc-ok: #4f7d3a;
    --tlc-warn: #b0740c;
    --tlc-bad: #b5342c;
    --tlc-r: 18px;
    --tlc-r-sm: 12px;
    --tlc-shadow: 0 10px 30px rgba(91, 62, 38, 0.08);
    --tlc-num: "DIN Alternate", "Bahnschrift", "Segoe UI Variable Text", ui-sans-serif, system-ui, sans-serif;
    --tlc-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

[data-theme="dark"] .tlc-page {
    --tlc-clay: #e8a06b;
    --tlc-clay-2: #f2bd8d;
    --tlc-clay-soft: rgba(232, 160, 107, 0.12);
    --tlc-clay-line: rgba(232, 160, 107, 0.32);
    --tlc-sand: #1b1511;
    --tlc-sand-2: #241a14;
    --tlc-panel: #171310;
    --tlc-line: #3a2c22;
    --tlc-line-soft: #2b211a;
    --tlc-ink: #f3e9df;
    --tlc-sub: #c3b1a2;
    --tlc-muted: #a08d7e;
    --tlc-ok: #7ec26a;
    --tlc-warn: #e0a43c;
    --tlc-bad: #ef8b83;
    --tlc-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.tlc-page *,
.tlc-page *::before,
.tlc-page *::after { box-sizing: border-box; }
.tlc-page [hidden] { display: none !important; }

/* ============================ 首屏 ============================ */
.tlc-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: center;
    padding: 36px 38px;
    margin-bottom: 22px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(217, 138, 82, 0.30) 0%, rgba(217, 138, 82, 0) 52%),
        linear-gradient(135deg, #2c211a 0%, #43311f 58%, #573a23 100%);
    box-shadow: 0 18px 44px rgba(62, 40, 22, 0.22);
}
.tlc-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 240, 222, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 240, 222, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(120% 130% at 15% 10%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 130% at 15% 10%, #000 0%, transparent 78%);
    pointer-events: none;
}
.tlc-hero-copy { position: relative; z-index: 1; }
.tlc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    margin-bottom: 14px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffd9b5;
    background: rgba(255, 233, 210, 0.10);
    border: 1px solid rgba(255, 233, 210, 0.24);
}
.tlc-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f3a35f;
    box-shadow: 0 0 0 4px rgba(243, 163, 95, 0.22);
}
.tlc-hero h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff6ea;
}
.tlc-hero-sub {
    max-width: 620px;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #e6d3bf;
}
.tlc-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tlc-hero-chips li {
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    color: #f0dcc6;
    background: rgba(255, 244, 230, 0.07);
    border: 1px solid rgba(255, 244, 230, 0.16);
}
.tlc-hero-readout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255, 250, 243, 0.09);
    border: 1px solid rgba(255, 244, 230, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.tlc-readout-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #d9c1a8;
}
.tlc-readout-num {
    font-family: var(--tlc-num);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffd8ac;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}
.tlc-readout-avg {
    font-size: 13px;
    font-weight: 700;
    color: #f2dcc2;
}
.tlc-readout-meta {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 244, 230, 0.18);
    font-size: 12px;
    color: #c9b199;
}
.tlc-readout-tip {
    margin-top: 2px;
    font-size: 11px;
    color: #ab927a;
}

/* ============================ 布局 ============================ */
.tlc-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 26px;
}
.tlc-input-col { min-width: 0; }
.tlc-result-col { min-width: 0; }

.tlc-panel {
    padding: 22px;
    margin-bottom: 16px;
    background: var(--tlc-panel);
    border: 1px solid var(--tlc-line);
    border-radius: var(--tlc-r);
    box-shadow: var(--tlc-shadow);
}
.tlc-panel-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.tlc-step {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-family: var(--tlc-num);
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--tlc-clay), #8d4a22);
    box-shadow: 0 4px 10px rgba(141, 74, 34, 0.28);
}
[data-theme="dark"] .tlc-step {
    color: #2b1a0e;
    background: linear-gradient(135deg, #f0b07c, #cf7f45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.tlc-panel-head h2 {
    margin: 2px 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--tlc-ink);
}
.tlc-panel-head p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--tlc-muted);
}

.tlc-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tlc-field { display: block; min-width: 0; }
.tlc-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tlc-sub);
}
.tlc-mini-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--tlc-muted);
}
.tlc-input-wrap,
.tlc-select-wrap { position: relative; display: block; }
.tlc-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--tlc-ink);
    background: var(--tlc-sand);
    border: 1px solid var(--tlc-line);
    border-radius: var(--tlc-r-sm);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    -moz-appearance: textfield;
}
.tlc-input::-webkit-outer-spin-button,
.tlc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tlc-input:focus {
    background: var(--tlc-panel);
    border-color: var(--tlc-clay);
    box-shadow: 0 0 0 3px var(--tlc-clay-soft);
}
.tlc-input-wrap .tlc-input { padding-right: 42px; }
.tlc-unit {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    font-size: 12px;
    font-style: normal;
    color: var(--tlc-muted);
    pointer-events: none;
}
.tlc-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a08d7e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
[data-theme="dark"] .tlc-select-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a08d7e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.tlc-input option { background: var(--tlc-panel); color: var(--tlc-ink); }

.tlc-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--tlc-sub);
    cursor: pointer;
}
.tlc-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--tlc-clay);
    cursor: pointer;
    flex: none;
}
.tlc-hint {
    margin: 8px 0 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--tlc-muted);
}

/* ============================ 房间行 ============================ */
.tlc-rooms { display: flex; flex-direction: column; gap: 10px; }
.tlc-room {
    padding: 14px;
    border-radius: 14px;
    background: var(--tlc-sand);
    border: 1px solid var(--tlc-line-soft);
    animation: tlcRoomIn 0.22s ease;
}
@keyframes tlcRoomIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
.tlc-room-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.tlc-room-index {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: var(--tlc-num);
    font-size: 11px;
    font-weight: 800;
    color: var(--tlc-clay);
    background: var(--tlc-clay-soft);
    border: 1px solid var(--tlc-clay-line);
}
.tlc-room-name { height: 38px !important; font-weight: 700; }
.tlc-room-del {
    flex: none;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--tlc-line);
    background: transparent;
    color: var(--tlc-muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.tlc-room-del:hover {
    color: var(--tlc-bad);
    border-color: var(--tlc-bad);
    background: rgba(181, 52, 44, 0.06);
}
.tlc-room-del:disabled { opacity: 0.4; cursor: not-allowed; }
.tlc-room-grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 10px;
}
.tlc-room-field { min-width: 0; }
.tlc-room-grid .tlc-input { height: 40px; font-size: 13px; }
.tlc-room-grid .tlc-input-wrap .tlc-input { padding-right: 36px; }

.tlc-add {
    width: 100%;
    margin-top: 12px;
    height: 42px;
    border-radius: var(--tlc-r-sm);
    border: 1px dashed var(--tlc-clay-line);
    background: transparent;
    color: var(--tlc-clay);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.tlc-add:hover {
    background: var(--tlc-clay-soft);
    border-color: var(--tlc-clay);
}

/* ============================ 错误与按钮 ============================ */
.tlc-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--tlc-bad);
    background: rgba(181, 52, 44, 0.07);
    border: 1px solid rgba(181, 52, 44, 0.28);
}
.tlc-actions {
    display: flex;
    gap: 10px;
}
.tlc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--tlc-line);
    background: var(--tlc-panel);
    color: var(--tlc-ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.tlc-btn:hover { border-color: var(--tlc-clay); color: var(--tlc-clay); }
.tlc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tlc-btn--primary {
    flex: 1;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #b96531, #8d4a22);
    box-shadow: 0 6px 18px rgba(141, 74, 34, 0.26);
}
.tlc-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(141, 74, 34, 0.34);
}
[data-theme="dark"] .tlc-btn--primary {
    color: #2b1a0e;
    background: linear-gradient(135deg, #f0b07c, #cf7f45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ============================ 结果卡 ============================ */
.tlc-result-col { position: sticky; top: 88px; }
.tlc-result-card {
    position: relative;
    padding: 22px;
    border-radius: var(--tlc-r);
    background: var(--tlc-panel);
    border: 1px solid var(--tlc-line);
    box-shadow: var(--tlc-shadow);
    overflow: hidden;
}
.tlc-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tlc-clay), var(--tlc-clay-2), transparent);
}
.tlc-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.tlc-result-tag {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--tlc-clay);
    background: var(--tlc-clay-soft);
    border: 1px solid var(--tlc-clay-line);
}
.tlc-result-note { font-size: 11px; color: var(--tlc-muted); }
.tlc-result-main {
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--tlc-sand);
    border: 1px solid var(--tlc-line-soft);
    text-align: center;
}
.tlc-result-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--tlc-sub);
}
.tlc-result-total {
    display: block;
    font-family: var(--tlc-num);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tlc-clay);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}
.tlc-result-mid {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--tlc-muted);
}

.tlc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.tlc-metric {
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--tlc-sand);
    border: 1px solid var(--tlc-line-soft);
}
.tlc-metric-k {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    color: var(--tlc-muted);
}
.tlc-metric-v {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--tlc-ink);
    word-break: break-all;
}
.tlc-metric-v small { font-size: 11px; font-weight: 600; color: var(--tlc-muted); }

.tlc-breakdown h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--tlc-ink);
}
.tlc-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--tlc-line);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}
.tlc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.tlc-table th {
    padding: 9px 11px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: left;
    color: var(--tlc-sub);
    background: var(--tlc-sand);
    border-bottom: 1px solid var(--tlc-line);
    white-space: nowrap;
}
.tlc-table td {
    padding: 9px 11px;
    color: var(--tlc-sub);
    border-bottom: 1px solid var(--tlc-line-soft);
    line-height: 1.6;
    vertical-align: top;
}
.tlc-table tbody tr:last-child td { border-bottom: none; }
.tlc-table td:first-child { color: var(--tlc-ink); font-weight: 700; }
.tlc-table .is-price { color: var(--tlc-clay); font-weight: 800; white-space: nowrap; }
.tlc-table tfoot td {
    background: var(--tlc-sand);
    color: var(--tlc-ink);
    font-weight: 800;
    border-top: 1px solid var(--tlc-line);
    border-bottom: none;
}
.tlc-table-empty {
    text-align: center;
    color: var(--tlc-muted) !important;
    font-weight: 400 !important;
    padding: 18px 10px !important;
}
.tlc-table--ref { min-width: 300px; }

.tlc-notes { margin-top: 14px; }
.tlc-note {
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.72;
    color: var(--tlc-sub);
    background: var(--tlc-clay-soft);
    border: 1px dashed var(--tlc-clay-line);
}
.tlc-note + .tlc-note { margin-top: 8px; }
.tlc-note b { color: var(--tlc-ink); }
.tlc-note.is-warn {
    background: rgba(176, 116, 12, 0.07);
    border-color: rgba(176, 116, 12, 0.32);
}
.tlc-note.is-ok {
    background: rgba(79, 125, 58, 0.08);
    border-color: rgba(79, 125, 58, 0.32);
}

.tlc-result-actions {
    display: flex;
    gap: 9px;
    margin-top: 16px;
}
.tlc-result-actions .tlc-btn { flex: 1; padding: 0 12px; font-size: 12.5px; }
.tlc-result-foot {
    margin: 10px 0 0;
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--tlc-muted);
    text-align: center;
}

/* ============================ A4 报价单 ============================ */
.tlc-sheet-wrap {
    padding: 24px;
    margin-bottom: 26px;
    border-radius: 22px;
    background:
        repeating-linear-gradient(45deg, rgba(180, 95, 46, 0.035) 0 12px, transparent 12px 24px),
        var(--tlc-sand);
    border: 1px solid var(--tlc-line);
}
.tlc-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.tlc-sheet-kicker {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--tlc-clay);
}
.tlc-sheet-head h2 {
    margin: 4px 0 6px;
    font-size: 20px;
    font-weight: 900;
    color: var(--tlc-ink);
}
.tlc-sheet-head p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--tlc-muted);
}
.tlc-sheet-badge {
    flex: none;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tlc-clay);
    background: var(--tlc-panel);
    border: 1px solid var(--tlc-clay-line);
}
.tlc-sheet {
    max-width: 820px;
    margin: 0 auto;
    padding: 34px 38px 26px;
    border-radius: 8px;
    color: #2b231c;
    background: #fff;
    box-shadow: 0 16px 40px rgba(62, 40, 22, 0.16);
    font-size: 12.5px;
    line-height: 1.65;
}
.tlc-sheet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid #2b231c;
}
.tlc-sheet-top h3 {
    margin: 0 0 4px;
    font-family: var(--tlc-serif);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #2b231c;
}
.tlc-sheet-top p {
    margin: 0;
    font-size: 11.5px;
    color: #8a7563;
    letter-spacing: 0.04em;
}
.tlc-sheet-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    color: #8a7563;
    text-align: right;
    white-space: nowrap;
}
.tlc-sheet-meta b { color: #2b231c; font-weight: 700; }
.tlc-sheet-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 12px 0;
    font-size: 12px;
    color: #6f5c4b;
}
.tlc-sheet-info b { color: #2b231c; font-weight: 700; }
.tlc-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
}
.tlc-sheet-table th,
.tlc-sheet-table td {
    padding: 8px 9px;
    border: 1px solid #d9ccbc;
    font-size: 11.5px;
    text-align: left;
    vertical-align: top;
}
.tlc-sheet-table th {
    background: #f4eee5;
    color: #4b3c2e;
    font-weight: 700;
    white-space: nowrap;
}
.tlc-sheet-table td { color: #4b3c2e; }
.tlc-sheet-table .w-no { width: 38px; text-align: center; }
.tlc-sheet-table .w-area { width: 68px; white-space: nowrap; }
.tlc-sheet-table .w-price { width: 110px; white-space: nowrap; }
.tlc-sheet-table .w-sub { width: 92px; white-space: nowrap; }
.tlc-sheet-table tfoot td {
    background: #f9f5ef;
    font-weight: 700;
    color: #2b231c;
}
.tlc-sheet-summary {
    padding: 4px 0 12px;
}
.tlc-sheet-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    border-bottom: 1px dashed #e2d7c8;
    font-size: 12px;
    color: #6f5c4b;
}
.tlc-sheet-row b { color: #2b231c; font-weight: 700; text-align: right; }
.tlc-sheet-row--total {
    margin-top: 4px;
    padding: 9px 0;
    border-bottom: none;
    border-top: 2px solid #2b231c;
    font-size: 13px;
    font-weight: 700;
    color: #2b231c;
}
.tlc-sheet-row--total b {
    font-family: var(--tlc-num);
    font-size: 19px;
    color: #a8562a;
}
.tlc-sheet-notes {
    padding: 10px 12px;
    border-radius: 6px;
    background: #faf7f2;
    border: 1px solid #eee5d8;
    font-size: 10.5px;
    line-height: 1.75;
    color: #7c6a59;
}
.tlc-sheet-notes p { margin: 0; }
.tlc-sheet-notes p + p { margin-top: 3px; }
.tlc-sheet-notes b { color: #4b3c2e; }
.tlc-sheet-sign {
    display: flex;
    gap: 24px;
    margin-top: 22px;
    font-size: 11.5px;
    color: #6f5c4b;
}
.tlc-sheet-sign span { flex: 1; }
.tlc-sheet-foot {
    margin-top: 18px;
    padding-top: 8px;
    border-top: 1px dashed #e2d7c8;
    font-size: 10px;
    color: #a08d7e;
    text-align: center;
}

/* ============================ 参考与规则 ============================ */
.tlc-reference,
.tlc-rules,
.tlc-faq { margin-bottom: 30px; }
.tlc-section-head { margin-bottom: 16px; }
.tlc-section-kicker {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--tlc-clay);
}
.tlc-section-head h2 {
    margin: 5px 0 7px;
    font-size: 22px;
    font-weight: 900;
    color: var(--tlc-ink);
}
.tlc-section-head p {
    margin: 0;
    max-width: 760px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--tlc-sub);
}
.tlc-ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tlc-ref-card {
    padding: 20px;
    border-radius: var(--tlc-r);
    background: var(--tlc-panel);
    border: 1px solid var(--tlc-line);
    box-shadow: var(--tlc-shadow);
}
.tlc-ref-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--tlc-ink);
}
.tlc-ref-sub {
    margin: 0 0 12px;
    font-size: 11.5px;
    color: var(--tlc-muted);
}
.tlc-ref-note {
    margin: 12px 0 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--tlc-muted);
}

.tlc-rule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.tlc-rule {
    padding: 18px;
    border-radius: 15px;
    background: var(--tlc-panel);
    border: 1px solid var(--tlc-line);
}
.tlc-rule-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--tlc-clay);
    background: var(--tlc-clay-soft);
    border: 1px solid var(--tlc-clay-line);
}
.tlc-rule h3 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--tlc-ink);
}
.tlc-rule p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: var(--tlc-sub);
}
.tlc-example {
    padding: 18px 20px;
    border-radius: 15px;
    background: var(--tlc-clay-soft);
    border: 1px solid var(--tlc-clay-line);
}
.tlc-example h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--tlc-ink);
}
.tlc-example p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: var(--tlc-sub);
}
.tlc-example p b { color: var(--tlc-clay); font-weight: 800; }
.tlc-example-note {
    margin-top: 6px !important;
    font-size: 11.5px !important;
    color: var(--tlc-muted) !important;
}

/* FAQ / 相关推荐 / 留言 */
.tlc-page .faq-list { margin-top: 4px; }
.tlc-comments { margin-top: 32px; }
.tlc-page .related { margin-top: 32px; }

/* 返回顶部 */
.tlc-top {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--tlc-line, #e8dbc9);
    background: var(--tlc-panel, #fffdf9);
    color: var(--tlc-clay, #b45f2e);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(62, 40, 22, 0.16);
}
.tlc-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============================ 响应式 ============================ */
@media (max-width: 1100px) {
    .tlc-calc { grid-template-columns: 1fr; }
    .tlc-result-col { position: static; }
    .tlc-hero { grid-template-columns: 1fr; }
    .tlc-hero-readout { max-width: 420px; }
    .tlc-rule-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .tlc-ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .tlc-hero { padding: 26px 22px; border-radius: 20px; }
    .tlc-hero h1 { font-size: 28px; }
    .tlc-hero-sub { font-size: 13.5px; }
    .tlc-hero-readout { padding: 18px; }
    .tlc-readout-num { font-size: 25px; }
    .tlc-panel { padding: 18px; }
    .tlc-grid2 { grid-template-columns: 1fr; }
    .tlc-room-grid { grid-template-columns: 1fr 1fr; }
    .tlc-room-grid .tlc-room-field:first-child { grid-column: 1 / -1; }
    .tlc-actions { flex-direction: column; }
    .tlc-metrics { grid-template-columns: 1fr 1fr; }
    .tlc-result-total { font-size: 27px; }
    .tlc-sheet-wrap { padding: 14px; border-radius: 16px; }
    .tlc-sheet-head { flex-direction: column; }
    .tlc-sheet { padding: 20px 16px; }
    .tlc-sheet-top { flex-direction: column; }
    .tlc-sheet-meta { text-align: left; }
    .tlc-sheet-table th,
    .tlc-sheet-table td { padding: 6px 5px; font-size: 10px; }
    .tlc-sheet-sign { flex-direction: column; gap: 12px; }
    .tlc-rule-grid { grid-template-columns: 1fr; }
    .tlc-result-actions { flex-direction: column; }
}

/* ============================ 打印：只保留 A4 报价单 ============================ */
@media print {
    @page { size: A4 portrait; margin: 12mm; }

    body { background: #fff !important; }
    .nav-header,
    .footer,
    .detail-breadcrumb,
    .tlc-hero,
    .tlc-calc,
    .tlc-sheet-head,
    .tlc-reference,
    .tlc-rules,
    .tlc-faq,
    .related,
    .tlc-comments,
    .tlc-top,
    [data-back-to-top] { display: none !important; }

    .detail-wrap { padding: 0 !important; }
    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .tlc-page { padding: 0 !important; }
    .tlc-sheet-wrap {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
    }
    .tlc-sheet {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
    }
    .tlc-sheet-notes,
    .tlc-sheet-sign,
    .tlc-sheet-summary { break-inside: avoid; }
    .tlc-sheet-table tr { break-inside: avoid; }
    .tlc-sheet-foot { color: #666 !important; }
}
