/* =====================================================================
 * 35 婚礼工作人员餐数核对 · CREW MEAL STUBS
 * 独立设计：薄荷绿 + 陶土橙；首屏右半是四联带撕口的餐券存根，
 * 编号区间随表格实时变化；主体为存根式表格与时段小计。
 * ===================================================================== */
.wcm {
    --ag-bg: #f1f7f3;
    --ag-bg2: #e3efe7;
    --ag-surface: #ffffff;
    --ag-surface2: #f6faf7;
    --ag-ink: #25382e;
    --ag-ink2: #52695b;
    --ag-muted: #8b9e92;
    --ag-line: #dce9df;
    --ag-line2: #c1d7c8;
    --ag-accent: #3a8560;
    --ag-accent2: #c07a52;
    --ag-on: #ffffff;
    --ag-ok: #2a7357;
    --ag-okbg: #e4f2ea;
    --ag-warn: #9a6416;
    --ag-warnbg: #fbefd6;
    --ag-bad: #b34b48;
    --ag-badbg: #fbe9e6;
    --ag-info: #3a8560;
    --ag-infobg: #e7f4ec;
    --ag-r: 6px;
    --ag-shadow: 0 10px 30px rgba(37, 56, 46, .08);
    --ag-h: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --ag-b: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --ag-m: "JetBrains Mono", Consolas, monospace;
}
:root[data-theme="dark"] .wcm {
    --ag-bg: #101a15;
    --ag-bg2: #18271f;
    --ag-surface: #1a2a21;
    --ag-surface2: #21332a;
    --ag-ink: #e8f3ec;
    --ag-ink2: #afc7b7;
    --ag-muted: #849e8d;
    --ag-line: #2c4134;
    --ag-line2: #3b5745;
    --ag-accent: #86cfa5;
    --ag-accent2: #e5a67f;
    --ag-on: #0e1812;
    --ag-ok: #7fd0a7;
    --ag-okbg: #173529;
    --ag-warn: #e5bd73;
    --ag-warnbg: #382c17;
    --ag-bad: #ef9a90;
    --ag-badbg: #3a2220;
    --ag-info: #86cfa5;
    --ag-infobg: #1b3226;
    --ag-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}
.wcm { background: var(--ag-bg) repeating-linear-gradient(135deg, transparent 0 26px, rgba(58, 133, 96, .025) 26px 27px); }
.wcm h1, .wcm h2, .wcm h3 { letter-spacing: -.02em; }
.wcm input, .wcm select, .wcm textarea {
    width: 100%; background: var(--ag-surface2); color: var(--ag-ink);
    border: 1px solid var(--ag-line2); border-radius: 5px; padding: 8px 10px;
    font-size: 13px; line-height: 1.6; outline: none;
}
.wcm input:focus, .wcm select:focus, .wcm textarea:focus { border-color: var(--ag-accent); box-shadow: 0 0 0 3px rgba(58, 133, 96, .12); }
.wcm textarea { resize: vertical; font-family: var(--ag-m); font-size: 12.5px; }
.wcm label { display: block; font-size: 11.5px; font-weight: 650; color: var(--ag-ink2); margin-bottom: 4px; }
.wcm code { background: var(--ag-bg2); color: var(--ag-accent); }

/* ---------- 首屏 ---------- */
.wcm-hero { display: grid; grid-template-columns: 1fr .94fr; background: var(--ag-surface); border: 1px solid var(--ag-line2); border-radius: var(--ag-r); overflow: hidden; box-shadow: var(--ag-shadow); }
.wcm-intro { padding: 32px 30px 24px; }
.wcm-kicker { display: inline-block; font-family: var(--ag-m); font-size: 10px; letter-spacing: .16em; color: var(--ag-accent); background: var(--ag-infobg); border-radius: 4px; padding: 5px 12px; margin-bottom: 16px; }
.wcm-hero h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; margin-bottom: 12px; }
.wcm-lede { font-size: 14px; line-height: 2; color: var(--ag-ink2); }
.wcm-lede b { color: var(--ag-accent); font-weight: 750; }
.wcm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.wcm-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wcm-intro-note { font-size: 11.5px; line-height: 1.8; color: var(--ag-muted); margin: 14px 0 0; padding-top: 11px; border-top: 1px dashed var(--ag-line2); }

.wcm-stubs { padding: 26px 24px 18px; background: #f8f3ec; border-left: 1px dashed var(--ag-line2); }
:root[data-theme="dark"] .wcm-stubs { background: #241f1b; }
.wcm-stubs-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ag-accent2); padding-bottom: 9px; }
.wcm-stubs-hd b { font-size: 16px; }
.wcm-stubs-hd span { font-family: var(--ag-m); font-size: 11px; font-weight: 700; color: var(--ag-accent2); }
.wcm-stub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wcm-stub { position: relative; padding: 13px 14px 12px; background: var(--ag-surface); border: 1px solid var(--ag-line2); border-radius: 4px; }
.wcm-stub::before, .wcm-stub::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #f8f3ec; border: 1px solid var(--ag-line2); transform: translateY(-50%); }
:root[data-theme="dark"] .wcm-stub::before, :root[data-theme="dark"] .wcm-stub::after { background: #241f1b; }
.wcm-stub::before { left: -7px; }
.wcm-stub::after { right: -7px; }
.wcm-stub .sn { font-family: var(--ag-m); font-size: 9.5px; letter-spacing: .12em; color: var(--ag-accent); }
.wcm-stub h3 { font-size: 15px; margin: 4px 0 2px; }
.wcm-stub .sq { font-family: var(--ag-m); font-size: 24px; font-weight: 800; color: var(--ag-accent2); line-height: 1.4; }
.wcm-stub .sr { font-family: var(--ag-m); font-size: 10.5px; color: var(--ag-muted); }
.wcm-stubs-foot { font-size: 11px; line-height: 1.8; color: var(--ag-muted); margin-top: 14px; }
.wcm-art { display: block; width: 100%; max-width: 260px; height: auto; margin: 10px auto 0; opacity: .82; }

/* ---------- 按钮 ---------- */
.wcm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 750; border: 1px solid transparent; transition: transform .13s, box-shadow .13s, background .13s; }
.wcm-btn:hover { transform: translateY(-1px); }
.wcm-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.wcm-btn-main { background: var(--ag-accent); color: #fff; box-shadow: 0 6px 15px rgba(58, 133, 96, .22); }
.wcm-btn-soft { background: var(--ag-accent2); color: #fff; }
.wcm-btn-line { background: transparent; color: var(--ag-ink2); border-color: var(--ag-line2); }
.wcm-btn-line:hover { border-color: var(--ag-accent); color: var(--ag-accent); }
.wcm-btn-mini { padding: 4px 10px; font-size: 11.5px; }

/* ---------- 表格 / 备用 / 确认 ---------- */
.wcm-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 42px 0 16px; }
.wcm-sec-hd h2 { font-size: 21px; display: flex; align-items: center; gap: 11px; }
.wcm-sec-hd h2 i { font-family: var(--ag-m); font-style: normal; font-size: 10.5px; color: #fff; background: var(--ag-accent); border-radius: 4px; padding: 3px 8px; }
.wcm-sec-hd span { font-size: 12px; color: var(--ag-muted); }
.wcm-panel { background: var(--ag-surface); border: 1px solid var(--ag-line); border-radius: var(--ag-r); padding: 18px 20px; min-width: 0; }
.wcm-panel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--ag-line); padding-bottom: 9px; margin-bottom: 12px; }
.wcm-panel-hd h3 { font-size: 16px; }
.wcm-panel-hd span { font-size: 11px; color: var(--ag-muted); }
.wcm-scroll { overflow-x: auto; }
.wcm-table { width: 100%; min-width: 640px; font-size: 12.5px; }
.wcm-table th { text-align: left; background: var(--ag-bg2); color: var(--ag-ink2); font-size: 11px; padding: 8px 9px; border-bottom: 2px solid var(--ag-line2); white-space: nowrap; }
.wcm-table td { padding: 6px 7px; border-bottom: 1px dotted var(--ag-line); }
.wcm-table input, .wcm-table select { padding: 5px 7px; font-size: 12px; border-radius: 4px; }
.wcm-del { border: 0; background: transparent; color: var(--ag-bad); font-size: 17px; }
.wcm-spares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ag-line2); }
.wcm-spare { display: flex; align-items: center; gap: 9px; }
.wcm-spare label { margin: 0; white-space: nowrap; }
.wcm-spare input { width: 90px; font-family: var(--ag-m); font-size: 12px; }
.wcm-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.wcm-check { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; background: var(--ag-surface); border: 1px solid var(--ag-line); border-left: 3px solid var(--ag-line2); border-radius: 5px; cursor: pointer; }
.wcm-check input { width: 15px; height: 15px; flex: none; margin-top: 3px; accent-color: var(--ag-accent); }
.wcm-check b { display: block; font-size: 13px; }
.wcm-check small { display: block; font-size: 11px; color: var(--ag-muted); line-height: 1.65; margin-top: 2px; }
.wcm-check.is-on { border-left-color: var(--ag-ok); background: var(--ag-okbg); }
.wcm-err { margin-top: 12px; padding: 10px 13px; border-radius: 5px; background: var(--ag-badbg); color: var(--ag-bad); font-size: 12.5px; }
.wcm-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* ---------- 结果 ---------- */
.wcm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.wcm-stat { background: var(--ag-surface); border: 1px solid var(--ag-line2); border-bottom: 3px solid var(--ag-accent2); padding: 12px 15px; }
.wcm-stat small { display: block; font-size: 11px; color: var(--ag-muted); }
.wcm-stat b { display: block; font-family: var(--ag-m); font-size: 20px; line-height: 1.5; }
.wcm-result-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.wcm-next { margin: 0; padding-left: 20px; font-size: 12.8px; line-height: 1.95; color: var(--ag-ink2); }
.wcm-next li { margin-bottom: 7px; }
.wcm-next b { color: var(--ag-accent); }
.wcm-clean { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 11.5px; }
.wcm-clean > b { color: var(--ag-ink2); }
.wcm-clean #wcmPreview { flex: 1 1 100%; font-family: var(--ag-m); font-size: 11px; color: var(--ag-muted); background: var(--ag-surface2); border-left: 2px solid var(--ag-accent2); padding: 6px 9px; overflow-wrap: anywhere; white-space: normal; }
.wcm-panel > label { font-size: 12px; margin-bottom: 8px; line-height: 1.8; }
.wg4-read { margin-top: 46px; padding: 26px 28px; border-radius: var(--ag-r); background: var(--ag-surface); border: 1px solid var(--ag-line2); border-top: 4px solid var(--ag-accent2); }
.wg4-read h2 { font-size: 21px; margin-bottom: 16px; }
.wg4-read p { font-size: 14px; line-height: 2.05; color: var(--ag-ink2); margin-bottom: 14px; }
.wg4-read p:last-child { margin-bottom: 0; }
.wg4-read b { color: var(--ag-accent); }

@media (max-width: 1080px) {
    .wcm-hero { grid-template-columns: 1fr; }
    .wcm-stubs { border-left: 0; border-top: 1px dashed var(--ag-line2); }
    .wcm-art { display: none; }
    .wcm-result-grid { grid-template-columns: 1fr; }
    .wcm-stats { grid-template-columns: repeat(2, 1fr); }
    .wcm-checks { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .wcm-intro, .wcm-stubs { padding: 22px 16px; }
    .wcm-fields { grid-template-columns: 1fr 1fr; }
    .wcm-stub-grid { grid-template-columns: 1fr 1fr; }
    .wcm-spares { grid-template-columns: 1fr; }
    .wg4-read { padding: 20px 18px; }
}
