/* ==========================================================================
   墙面翻新费用计算器 /tool/wall-refresh-cost-calc
   独立设计「粉刷施工工单」：陶土主色 + 灰蓝辅色，直角偏方的卡片 + 竖向工序轴
   数字等宽、层级靠发丝线与色块区分；深浅主题由导航栏主题按钮（data-theme）驱动
   ========================================================================== */

.wrc-page {
    /* 主色：陶土 */
    --wrc-clay: #b4502c;
    --wrc-clay-d: #8d3d20;
    --wrc-clay-l: #f7ebe5;
    --wrc-clay-line: rgba(180, 80, 44, 0.24);
    /* 辅色：灰蓝 */
    --wrc-slate: #46617a;
    --wrc-slate-l: #ecf1f5;
    --wrc-slate-line: rgba(70, 97, 122, 0.22);
    /* 分档色 */
    --wrc-t-basic: #6d8b6f;
    --wrc-t-mid: #b4502c;
    --wrc-t-high: #7a4b86;
    /* 分项色 */
    --wrc-c-scrape: #8d3d20;
    --wrc-c-debris: #9aa5ad;
    --wrc-c-level: #46617a;
    --wrc-c-putty: #c08a3e;
    --wrc-c-primer: #7d8fa0;
    --wrc-c-paint: #b4502c;
    --wrc-c-protect: #6d8b6f;
    /* 中性 */
    --wrc-bg: #f7f3ed;
    --wrc-card: #ffffff;
    --wrc-card-2: #fbf8f4;
    --wrc-ink: #241c18;
    --wrc-sub: #5c514a;
    --wrc-mute: #92867c;
    --wrc-line: #e8ded2;
    --wrc-line-2: #f2ebe3;
    --wrc-ok: #2f7d5c;
    --wrc-warn: #b8622c;
    --wrc-err: #c0402f;
    --wrc-r: 14px;
    --wrc-r-md: 11px;
    --wrc-r-sm: 8px;
    --wrc-shadow: 0 6px 18px rgba(84, 55, 38, 0.06);
    --wrc-shadow-lg: 0 18px 40px rgba(72, 41, 26, 0.16);
    --wrc-ring: 0 0 0 3px rgba(180, 80, 44, 0.18);
    --wrc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --wrc-num: "DIN Alternate", "Bahnschrift", ui-monospace, "SFMono-Regular", Consolas, monospace;
    padding-bottom: 10px;
    color: var(--wrc-ink);
    font-family: var(--wrc-font);
    line-height: 1.72;
}

[data-theme="dark"] .wrc-page {
    --wrc-clay: #e78a63;
    --wrc-clay-d: #f2a582;
    --wrc-clay-l: rgba(231, 138, 99, 0.13);
    --wrc-clay-line: rgba(231, 138, 99, 0.3);
    --wrc-slate: #8fb0c9;
    --wrc-slate-l: rgba(143, 176, 201, 0.13);
    --wrc-slate-line: rgba(143, 176, 201, 0.3);
    --wrc-t-basic: #7fae84;
    --wrc-t-mid: #e78a63;
    --wrc-t-high: #b98ec4;
    --wrc-c-scrape: #e07a55;
    --wrc-c-debris: #8b959d;
    --wrc-c-level: #8fb0c9;
    --wrc-c-putty: #dfae5e;
    --wrc-c-primer: #97a8b8;
    --wrc-c-paint: #e78a63;
    --wrc-c-protect: #7fae84;
    --wrc-bg: #15110f;
    --wrc-card: #1e1815;
    --wrc-card-2: #241d19;
    --wrc-ink: #f3ece7;
    --wrc-sub: #c8bdb4;
    --wrc-mute: #9c8f85;
    --wrc-line: #322823;
    --wrc-line-2: #2a221e;
    --wrc-ok: #5cc194;
    --wrc-warn: #e2a165;
    --wrc-err: #f0857e;
    --wrc-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    --wrc-shadow-lg: 0 22px 46px rgba(0, 0, 0, 0.55);
    --wrc-ring: 0 0 0 3px rgba(231, 138, 99, 0.25);
}

.wrc-page *,
.wrc-page *::before,
.wrc-page *::after { box-sizing: border-box; }
.wrc-page [hidden] { display: none !important; }
.wrc-page h1, .wrc-page h2, .wrc-page h3, .wrc-page h4 { font-family: var(--wrc-font); }
.wrc-page a { color: var(--wrc-clay); text-decoration: none; }
.wrc-page a:hover { color: var(--wrc-clay-d); }

/* ============================ 面包屑 ============================ */
.wrc-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--wrc-mute);
}
.wrc-crumb a { color: var(--wrc-sub); }
.wrc-crumb a:hover { color: var(--wrc-clay); }
.wrc-crumb .sep { opacity: 0.45; }
.wrc-crumb .cur { color: var(--wrc-ink); font-weight: 700; }

/* ============================ 首屏 ============================ */
.wrc-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 356px;
    gap: 30px;
    align-items: center;
    padding: 32px 32px 32px;
    margin-bottom: 22px;
    border-radius: 18px;
    overflow: hidden;
    color: #fdf3ec;
    background:
        radial-gradient(120% 140% at 90% -10%, rgba(224, 160, 120, 0.3) 0%, rgba(224, 160, 120, 0) 58%),
        linear-gradient(128deg, #6d2c14 0%, #a8482a 55%, #bb5c36 100%);
    box-shadow: var(--wrc-shadow-lg);
}
/* 刷痕肌理：竖向细纹 */
.wrc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%);
    mask-image: linear-gradient(95deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.15));
    -webkit-mask-image: linear-gradient(95deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.15));
    pointer-events: none;
}
.wrc-hero > * { position: relative; z-index: 1; }

.wrc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffe7d6;
}
.wrc-hero h1 {
    margin: 15px 0 12px;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.wrc-hero h1 b { font-weight: 800; color: #ffd3ae; }
.wrc-lead {
    margin: 0 0 16px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(253, 243, 236, 0.9);
}
.wrc-lead b { color: #fff; font-weight: 700; }
.wrc-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wrc-points li {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12.5px;
    color: rgba(255, 240, 230, 0.94);
}
.wrc-points li b { color: #ffd3ae; font-weight: 700; }

.wrc-mini {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    max-width: 620px;
}
.wrc-mini li {
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.wrc-mini span { display: block; font-size: 11px; color: rgba(253, 243, 236, 0.76); }
.wrc-mini b {
    display: block;
    margin-top: 2px;
    font-family: var(--wrc-num);
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
}

/* ---- 首屏速算卡（工具入口直接置于首屏） ---- */
[data-theme="dark"] .wrc-hero {
    background:
        radial-gradient(120% 140% at 90% -10%, rgba(224, 160, 120, 0.18) 0%, rgba(224, 160, 120, 0) 58%),
        linear-gradient(128deg, #3d1a0e 0%, #63301d 55%, #74341f 100%);
}
.wrc-quick {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--wrc-ink);
    box-shadow: 0 16px 36px rgba(48, 20, 8, 0.32);
}
[data-theme="dark"] .wrc-quick { background: rgba(28, 22, 19, 0.96); }
.wrc-quick-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}
.wrc-quick-head b { font-size: 15px; font-weight: 800; }
.wrc-quick-head span { font-size: 12px; color: var(--wrc-mute); }
.wrc-quick-row { margin-bottom: 12px; }
.wrc-quick-row > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--wrc-sub);
}
.wrc-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--wrc-mute); }
.wrc-area-line { display: flex; align-items: center; gap: 12px; }
.wrc-area-line input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 6px;
    border-radius: 999px;
    background: var(--wrc-clay-l);
    accent-color: var(--wrc-clay);
    cursor: pointer;
}
.wrc-quick-cta {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--wrc-clay-d), var(--wrc-clay));
    box-shadow: 0 8px 18px rgba(180, 80, 44, 0.3);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.wrc-quick-cta:hover { filter: brightness(1.06); }
.wrc-quick-cta:active { transform: translateY(1px); }
.wrc-quick-cta:focus-visible { outline: none; box-shadow: var(--wrc-ring), 0 8px 18px rgba(180, 80, 44, 0.3); }
.wrc-quick-live {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px dashed var(--wrc-line);
    font-size: 12.5px;
    color: var(--wrc-sub);
}
.wrc-quick-live b {
    font-family: var(--wrc-num);
    font-size: 24px;
    font-weight: 800;
    color: var(--wrc-clay);
}

/* ============================ 主体布局 ============================ */
.wrc-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}
.wrc-col { min-width: 0; }
.wrc-sticky { position: sticky; top: 16px; }

/* ============================ 卡片 ============================ */
.wrc-card {
    background: var(--wrc-card);
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r);
    box-shadow: var(--wrc-shadow);
    overflow: hidden;
}
.wrc-card + .wrc-card { margin-top: 18px; }
.wrc-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--wrc-line-2);
    background: var(--wrc-card-2);
}
.wrc-card-head .no {
    flex: none;
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--wrc-clay);
    color: #fff;
    font-family: var(--wrc-num);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}
.wrc-card-head h2 { margin: 0; font-size: 16px; font-weight: 800; }
.wrc-card-head .tip { margin-left: auto; font-size: 12.5px; color: var(--wrc-mute); }
.wrc-card-body { padding: 18px 20px 20px; }

/* ============================ 表单 ============================ */
.wrc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.wrc-field { display: block; min-width: 0; }
.wrc-field.is-full { grid-column: 1 / -1; }
.wrc-label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wrc-sub);
}
.wrc-label small { font-size: 11.5px; font-weight: 500; color: var(--wrc-mute); }
.wrc-input, .wrc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-sm);
    background: var(--wrc-card-2);
    color: var(--wrc-ink);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.wrc-input:focus, .wrc-select:focus {
    border-color: var(--wrc-clay);
    background: var(--wrc-card);
    box-shadow: var(--wrc-ring);
}
.wrc-input.is-bad { border-color: var(--wrc-err); }
.wrc-select {
    appearance: none;
    cursor: pointer;
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--wrc-mute) 50%), linear-gradient(135deg, var(--wrc-mute) 50%, transparent 50%);
    background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.wrc-unit-wrap { position: relative; display: flex; align-items: center; }
.wrc-unit-wrap .wrc-input { padding-right: 40px; }
.wrc-unit {
    position: absolute;
    right: 12px;
    font-size: 13px;
    color: var(--wrc-mute);
    pointer-events: none;
}
.wrc-textarea {
    width: 100%;
    min-height: 80px;
    padding: 11px 13px;
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-sm);
    background: var(--wrc-card-2);
    color: var(--wrc-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    resize: vertical;
    outline: none;
}
.wrc-textarea:focus { border-color: var(--wrc-clay); background: var(--wrc-card); box-shadow: var(--wrc-ring); }
.wrc-counter { margin: 6px 0 0; font-size: 12px; color: var(--wrc-mute); text-align: right; }

/* 分段控件 */
.wrc-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--wrc-card-2);
    border: 1px solid var(--wrc-line);
}
.wrc-seg button {
    padding: 9px 6px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--wrc-sub);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.wrc-seg button:hover { color: var(--wrc-ink); }
.wrc-seg button.on {
    background: var(--wrc-card);
    color: var(--wrc-clay);
    box-shadow: 0 2px 7px rgba(84, 55, 38, 0.12);
}
[data-theme="dark"] .wrc-seg button.on { background: #322722; color: var(--wrc-clay-d); }
.wrc-seg button:focus-visible { outline: none; box-shadow: var(--wrc-ring); }
.wrc-seg small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; margin-top: 1px; }

/* 开关 */
.wrc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.wrc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.wrc-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--wrc-line);
    transition: background 0.18s ease;
}
.wrc-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease;
}
.wrc-switch input:checked + i { background: var(--wrc-clay); }
.wrc-switch input:checked + i::after { transform: translateX(18px); }
.wrc-switch input:focus-visible + i { box-shadow: var(--wrc-ring); }

/* 错误提示 */
.wrc-err {
    display: none;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: var(--wrc-r-sm);
    border: 1px solid var(--wrc-clay-line);
    background: var(--wrc-clay-l);
    color: var(--wrc-warn);
    font-size: 13.5px;
    font-weight: 600;
}
.wrc-err.is-on { display: block; }

/* ============================ 工序轴 ============================ */
.wrc-steps { position: relative; display: grid; gap: 12px; }
.wrc-steps::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: var(--wrc-line);
}
.wrc-step {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: start;
    padding: 13px 15px;
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-md);
    background: var(--wrc-card);
    transition: opacity 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.wrc-step.is-off { opacity: 0.46; background: var(--wrc-card-2); }
.wrc-step.is-off .wrc-step-name { text-decoration: line-through; text-decoration-color: var(--wrc-mute); }
.wrc-step-no {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--wrc-card);
    border: 2px solid var(--wrc-clay);
    color: var(--wrc-clay);
    font-family: var(--wrc-num);
    font-size: 13px;
    font-weight: 800;
}
.wrc-step-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.wrc-step-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.wrc-step-desc { margin: 5px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--wrc-mute); }
.wrc-step-sum { text-align: right; min-width: 92px; padding-top: 2px; }
.wrc-step-sum b {
    display: block;
    font-family: var(--wrc-num);
    font-size: 17px;
    font-weight: 800;
    color: var(--wrc-ink);
}
.wrc-step-sum span { font-size: 11.5px; color: var(--wrc-mute); }
.wrc-step-ctl { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.wrc-step-qty {
    width: 88px;
    padding: 7px 10px;
    border: 1px solid var(--wrc-line);
    border-radius: 7px;
    background: var(--wrc-card-2);
    color: var(--wrc-ink);
    font-family: var(--wrc-num);
    font-size: 14px;
    outline: none;
}
.wrc-step-qty:focus { border-color: var(--wrc-clay); box-shadow: var(--wrc-ring); }
.wrc-step-rate { font-size: 12px; color: var(--wrc-mute); }

/* ============================ 结果面板 ============================ */
.wrc-result {
    padding: 20px;
    border-radius: var(--wrc-r);
    color: #fdf1e9;
    background:
        radial-gradient(110% 100% at 100% 0%, rgba(224, 160, 120, 0.26), rgba(224, 160, 120, 0) 60%),
        linear-gradient(150deg, #7d3419 0%, #ab4d2c 100%);
    box-shadow: var(--wrc-shadow-lg);
}
.wrc-result .lb { font-size: 13px; color: rgba(253, 241, 233, 0.84); }
.wrc-result .big {
    display: block;
    margin: 6px 0 2px;
    font-family: var(--wrc-num);
    font-size: clamp(29px, 3.9vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.02em;
}
.wrc-result .rng { font-size: 12.5px; color: rgba(253, 241, 233, 0.8); }
.wrc-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}
.wrc-metric {
    padding: 10px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}
.wrc-metric span { display: block; font-size: 11px; color: rgba(253, 241, 233, 0.78); }
.wrc-metric b {
    display: block;
    margin-top: 3px;
    font-family: var(--wrc-num);
    font-size: 15.5px;
    font-weight: 800;
    color: #ffd3ae;
}

/* 构成条 */
.wrc-bar-wrap { margin-top: 17px; }
.wrc-bar {
    display: flex;
    height: 11px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}
.wrc-bar i { display: block; height: 100%; transition: width 0.3s ease; }
.wrc-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin-top: 9px;
    font-size: 11.5px;
    color: rgba(253, 241, 233, 0.84);
}
.wrc-bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wrc-bar-legend i { width: 8px; height: 8px; border-radius: 2px; }

/* 明细 */
.wrc-list { margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.wrc-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wrc-list-row:last-child { border-bottom: 0; }
.wrc-list-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.wrc-list-name i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.wrc-list-name em { font-style: normal; font-weight: 500; font-size: 11.5px; color: rgba(253, 241, 233, 0.74); }
.wrc-list-amt { font-family: var(--wrc-num); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.wrc-list-row.is-total { border-top: 1px dashed rgba(255, 255, 255, 0.3); border-bottom: 0; padding-top: 12px; }
.wrc-list-row.is-total .wrc-list-name { font-size: 14px; }
.wrc-list-row.is-total .wrc-list-amt { font-size: 19px; font-weight: 800; color: #ffd3ae; }

/* ============================ 工期轴 ============================ */
.wrc-timeline { display: grid; gap: 9px; margin-top: 4px; }
.wrc-tl-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}
.wrc-tl-row > b { font-weight: 700; color: var(--wrc-ink); }
.wrc-tl-track { position: relative; height: 9px; border-radius: 3px; background: var(--wrc-line-2); overflow: hidden; }
.wrc-tl-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.wrc-tl-row > span { font-family: var(--wrc-num); font-size: 12.5px; color: var(--wrc-sub); white-space: nowrap; }

/* ============================ 批量测算 ============================ */
.wrc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wrc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.wrc-table th, .wrc-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--wrc-line-2); }
.wrc-table th { font-size: 12px; font-weight: 700; color: var(--wrc-mute); white-space: nowrap; }
.wrc-table tfoot th { border-bottom: 0; border-top: 1px solid var(--wrc-line); color: var(--wrc-sub); }
.wrc-table input, .wrc-table select {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid var(--wrc-line);
    border-radius: 7px;
    background: var(--wrc-card-2);
    color: var(--wrc-ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.wrc-table input:focus, .wrc-table select:focus { border-color: var(--wrc-clay); box-shadow: var(--wrc-ring); }
.wrc-table input[type="text"] { min-width: 108px; }
.wrc-table input[type="number"] { width: 84px; font-family: var(--wrc-num); }
.wrc-table select { min-width: 96px; }
.wrc-table .num { text-align: right; font-family: var(--wrc-num); font-weight: 700; white-space: nowrap; }
.wrc-table tr.is-bad input, .wrc-table tr.is-bad select { border-color: var(--wrc-err); }
.wrc-table .wrc-del {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--wrc-mute);
    background: var(--wrc-card-2);
    border: 1px solid var(--wrc-line);
    font-size: 13px;
    line-height: 1;
}
.wrc-table .wrc-del:hover { color: var(--wrc-err); border-color: var(--wrc-err); }
.wrc-row-err { display: none; font-size: 11.5px; color: var(--wrc-err); }
.wrc-table tr.is-bad .wrc-row-err { display: block; }

/* ============================ 按钮 ============================ */
.wrc-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--wrc-line-2);
}
.wrc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 8px;
    border: 1px solid var(--wrc-line);
    background: var(--wrc-card-2);
    color: var(--wrc-sub);
    font-size: 13.5px;
    font-weight: 700;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.wrc-btn:hover { border-color: var(--wrc-clay-line); color: var(--wrc-clay); background: var(--wrc-clay-l); }
.wrc-btn:focus-visible { outline: none; box-shadow: var(--wrc-ring); }
.wrc-btn.is-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--wrc-clay-d), var(--wrc-clay));
}
.wrc-btn.is-primary:hover { color: #fff; filter: brightness(1.06); }
.wrc-btn.is-slate { color: var(--wrc-slate); border-color: var(--wrc-slate-line); background: var(--wrc-slate-l); }
.wrc-btn.is-slate:hover { color: var(--wrc-slate); background: var(--wrc-slate-l); border-color: var(--wrc-slate); }

/* ============================ 示例场景 ============================ */
.wrc-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wrc-scene {
    padding: 13px 14px;
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-md);
    background: var(--wrc-card-2);
    text-align: left;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.wrc-scene:hover { border-color: var(--wrc-clay-line); transform: translateY(-2px); box-shadow: var(--wrc-shadow); }
.wrc-scene:focus-visible { outline: none; box-shadow: var(--wrc-ring); }
.wrc-scene b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.wrc-scene span { display: block; font-size: 12px; line-height: 1.7; color: var(--wrc-mute); }

/* ============================ AI ============================ */
.wrc-ai {
    padding: 22px 24px;
    border-radius: var(--wrc-r);
    border: 1px solid var(--wrc-slate-line);
    background: linear-gradient(140deg, var(--wrc-slate-l), var(--wrc-card) 62%);
}
.wrc-ai h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.wrc-ai p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; color: var(--wrc-sub); }
.wrc-ai p b { color: var(--wrc-ink); }
.wrc-ai-box {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: var(--wrc-r-md);
    background: var(--wrc-card);
    border: 1px solid var(--wrc-line);
    font-size: 14px;
    line-height: 1.95;
    color: var(--wrc-ink);
}
.wrc-ai-box p { margin: 0 0 9px; color: var(--wrc-ink); font-size: 14px; }
.wrc-ai-box p:last-child { margin-bottom: 0; }
.wrc-ai-box .ld { color: var(--wrc-mute); }

/* ============================ 文本 / FAQ ============================ */
.wrc-prose h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.wrc-prose ol, .wrc-prose ul { margin: 0; padding-left: 20px; }
.wrc-prose li { margin-bottom: 9px; font-size: 14px; line-height: 1.92; color: var(--wrc-sub); }
.wrc-prose li:last-child { margin-bottom: 0; }
.wrc-prose b { color: var(--wrc-ink); font-weight: 700; }
.wrc-faq details {
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-md);
    padding: 0 15px;
    margin-bottom: 9px;
    background: var(--wrc-card-2);
}
.wrc-faq summary {
    padding: 13px 0;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    color: var(--wrc-ink);
}
.wrc-faq summary::-webkit-details-marker { display: none; }
.wrc-faq summary::after { content: "＋"; float: right; color: var(--wrc-clay); font-weight: 700; }
.wrc-faq details[open] summary::after { content: "－"; }
.wrc-faq summary:focus-visible { outline: none; color: var(--wrc-clay); }
.wrc-faq .a { padding: 0 0 14px; font-size: 13.5px; line-height: 1.95; color: var(--wrc-sub); }
.wrc-faq .a b { color: var(--wrc-ink); }

/* 相关工具 */
.wrc-rel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wrc-rel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--wrc-line);
    border-radius: var(--wrc-r-md);
    background: var(--wrc-card-2);
    color: var(--wrc-sub);
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.wrc-rel a:hover { border-color: var(--wrc-clay-line); color: var(--wrc-clay); }
.wrc-rel .ico { font-size: 17px; }

.wrc-foot {
    margin: 22px 0 8px;
    padding: 15px 18px;
    border-radius: var(--wrc-r-md);
    border: 1px dashed var(--wrc-clay-line);
    background: var(--wrc-clay-l);
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--wrc-warn);
}
.wrc-foot b { color: var(--wrc-warn); }

/* ============================ Toast ============================ */
.wrc-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translate(-50%, 14px);
    z-index: 99999;
    max-width: 88vw;
    padding: 11px 20px;
    border-radius: 10px;
    background: rgba(36, 28, 24, 0.95);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.wrc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wrc-toast.ok { background: rgba(28, 88, 62, 0.96); }
.wrc-toast.err { background: rgba(150, 52, 38, 0.96); }

/* ============================ 打印区 ============================ */
.wrc-printzone { display: none; }

@media print {
    @page { size: A4 portrait; margin: 12mm; }
    .nav-header, .footer, .wrc-toast { display: none !important; }
    body > *:not(.wrc-page) { display: none !important; }
    .wrc-page > .container > *:not(#wrcPrintZone) { display: none !important; }
    body { background: #fff !important; }
    .wrc-page { padding: 0; }
    .wrc-printzone {
        display: block !important;
        padding: 0;
        color: #000;
        font-family: var(--wrc-font);
    }
    .wrc-pz-head { border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
    .wrc-pz-head h2 { margin: 0 0 4px; font-size: 19px; }
    .wrc-pz-head .meta { font-size: 12px; color: #444; }
    .wrc-pz-title { margin: 14px 0 6px; font-size: 14px; font-weight: 800; }
    .wrc-pz-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .wrc-pz-table th, .wrc-pz-table td { border: 1px solid #999; padding: 5px 7px; text-align: left; }
    .wrc-pz-table th { background: #f0f0f0; }
    .wrc-pz-table .num { text-align: right; font-family: var(--wrc-num); }
    .wrc-pz-list { margin: 6px 0 0; padding-left: 20px; font-size: 12px; line-height: 1.85; }
    .wrc-pz-sign { display: flex; gap: 26px; margin-top: 22px; font-size: 12px; }
    .wrc-pz-note { margin-top: 16px; font-size: 11px; color: #444; line-height: 1.8; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 1080px) {
    .wrc-hero { grid-template-columns: minmax(0, 1fr); }
    .wrc-main { grid-template-columns: minmax(0, 1fr); }
    .wrc-sticky { position: static; }
}
@media (max-width: 760px) {
    .wrc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wrc-scenes { grid-template-columns: minmax(0, 1fr); }
    .wrc-rel { grid-template-columns: minmax(0, 1fr); }
    .wrc-fields { grid-template-columns: minmax(0, 1fr); }
    .wrc-field.is-full { grid-column: span 1; }
    .wrc-metrics { grid-template-columns: minmax(0, 1fr); }
    .wrc-hero { padding: 24px 20px; }
    .wrc-step { grid-template-columns: 32px minmax(0, 1fr); }
    .wrc-step-no { width: 32px; height: 32px; }
    .wrc-step-sum { grid-column: 2; text-align: left; }
}
@media (max-width: 480px) {
    .wrc-tl-row { grid-template-columns: 78px minmax(0, 1fr); }
    .wrc-tl-row > span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .wrc-page *, .wrc-page *::before, .wrc-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
