/* ===== #20 飞镖结账组合表 · 酒吧靶场（奶油 / 墨绿 / 靶红 / 铜金） ===== */
.dct-page, .dct-modal, .dct-toast {
    --dct-bg: #f8f4e9;
    --dct-surface: #fffdf6;
    --dct-surface-2: #efe8d6;
    --dct-line: #ddd2b8;
    --dct-ink: #22302b;
    --dct-ink-2: #6a7268;
    --dct-green: #1b5a45;
    --dct-red: #c1272d;
    --dct-gold: #a97c22;
    --dct-shadow: 0 10px 26px rgba(34, 48, 43, .09);
    font-family: Georgia, "Songti SC", "SimSun", "PingFang SC", serif;
    color: var(--dct-ink);
}
:root[data-theme="dark"] .dct-page,
:root[data-theme="dark"] .dct-modal,
:root[data-theme="dark"] .dct-toast {
    --dct-bg: #121a17;
    --dct-surface: #1a2621;
    --dct-surface-2: #22312a;
    --dct-line: #344a3f;
    --dct-ink: #f0ece0;
    --dct-ink-2: #a9bcae;
    --dct-green: #58b48d;
    --dct-red: #f27a72;
    --dct-gold: #e0b45a;
    --dct-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.dct-page { background: var(--dct-bg); min-height: 100vh; padding: 22px 0 60px; }
.dct-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.dct-page *, .dct-page *::before, .dct-page *::after { box-sizing: border-box; }
.dct-page b, .dct-page strong { color: var(--dct-red); font-weight: 700; }
.dct-page h1, .dct-page h2, .dct-page h3 { margin: 0; letter-spacing: -.01em; }
.dct-page p { margin: 0; }
.dct-page .detail-breadcrumb, .dct-page .dct-btn, .dct-page input, .dct-page select, .dct-page textarea, .dct-page .dct-table { font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
.dct-page .detail-breadcrumb { font-size: 13px; color: var(--dct-ink-2); margin-bottom: 18px; }
.dct-page .detail-breadcrumb a { color: var(--dct-green); text-decoration: none; }
.dct-page .detail-breadcrumb a:hover { text-decoration: underline; }
.dct-page .detail-breadcrumb .sep { margin: 0 8px; }
.dct-page .detail-breadcrumb .current { color: var(--dct-ink); font-weight: 700; }

/* 首屏 */
.dct-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.dct-hero-copy { background: var(--dct-green); color: #f7f1e2; border-radius: 4px; padding: 34px 32px; border: 1px solid var(--dct-line); position: relative; overflow: hidden; }
:root[data-theme="dark"] .dct-hero-copy { color: #f0ece0; }
.dct-hero-copy::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247, 241, 226, .25); border-radius: 2px; pointer-events: none; }
.dct-kicker { display: inline-block; font: 700 11.5px/1.4 "PingFang SC", Arial, sans-serif; letter-spacing: .2em; color: var(--dct-gold); margin-bottom: 18px; position: relative; }
.dct-hero h1 { font-size: clamp(28px, 3.2vw, 41px); line-height: 1.3; font-weight: 700; color: #fffaf0; position: relative; }
:root[data-theme="dark"] .dct-hero h1 { color: #fff8e8; }
.dct-hero h1::after { content: ""; display: block; width: 90px; height: 2px; background: var(--dct-gold); margin-top: 16px; }
.dct-sub { margin-top: 18px !important; font-size: 15px; line-height: 2; color: #d6e2d7; max-width: 620px; position: relative; }
:root[data-theme="dark"] .dct-sub { color: #c8d8cd; }
.dct-page .dct-sub b { color: #f0c979; }
.dct-hero-facts { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; position: relative; }
.dct-fact { flex: 1 1 130px; min-width: 0; background: rgba(0, 0, 0, .17); border: 1px solid rgba(247, 241, 226, .2); border-radius: 3px; padding: 13px 15px; }
.dct-fact b { display: block; font: 700 22px/1.3 ui-monospace, Consolas, monospace; color: #fffaf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dct-fact.hot b { color: #f6d68c; }
.dct-fact span { font-size: 11.5px; color: #cfdcd0; display: block; margin-top: 5px; }

.dct-hero-panel { background: var(--dct-surface); border: 1px solid var(--dct-line); border-radius: 4px; padding: 24px; box-shadow: var(--dct-shadow); }
.dct-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--dct-line); padding-bottom: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dct-panel-head b { font-size: 18px; }
.dct-panel-head span { font-size: 12px; color: var(--dct-ink-2); }
.dct-field { margin-bottom: 15px; }
.dct-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.dct-field input, .dct-field select, .dct-batch-head textarea, .dct-page .dct-table input {
    width: 100%; padding: 10px 12px; font-size: 14px; color: var(--dct-ink); background: var(--dct-bg);
    border: 1px solid var(--dct-line); border-radius: 3px; outline: none; font-variant-numeric: tabular-nums;
}
.dct-field input:focus, .dct-field select:focus, .dct-batch-head textarea:focus { border-color: var(--dct-gold); box-shadow: 0 0 0 3px rgba(169, 124, 34, .14); }
.dct-err { font-size: 13px; color: var(--dct-red); background: rgba(193, 39, 45, .09); padding: 9px 12px; border-left: 3px solid var(--dct-red); margin-bottom: 12px !important; }
.dct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dct-btn { border: 1px solid var(--dct-line); background: var(--dct-surface); color: var(--dct-ink); border-radius: 3px; padding: 10px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dct-btn:hover { transform: translateY(-1px); box-shadow: var(--dct-shadow); }
.dct-btn-main { background: var(--dct-red); border-color: var(--dct-red); color: #fff; }

/* 通用 */
.dct-card { margin-top: 20px; background: var(--dct-surface); border: 1px solid var(--dct-line); border-radius: 4px; padding: 24px; box-shadow: var(--dct-shadow); }
.dct-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dct-sec-head h2 { font-size: 19px; font-weight: 700; }
.dct-sec-head h2::before { content: "§ "; color: var(--dct-gold); }
.dct-sec-head span { font-size: 12.5px; color: var(--dct-ink-2); }

/* 靶盘 + 结果 */
.dct-board-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; }
.dct-board-side, .dct-result-side { min-width: 0; }
.dct-board-box { background: var(--dct-surface-2); border: 1px solid var(--dct-line); border-radius: 50%; padding: 10px; max-width: 320px; margin: 0 auto; }
.dct-board-box svg { width: 100%; height: auto; display: block; }
.dct-board-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 11.5px; color: var(--dct-ink-2); }
.dct-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.dct-sw-red { background: var(--dct-red); } .dct-sw-green { background: var(--dct-green); } .dct-sw-gold { background: var(--dct-gold); }
.dct-main-combo { border: 1px solid var(--dct-line); border-top: 3px solid var(--dct-gold); background: var(--dct-surface-2); padding: 20px; border-radius: 3px; }
.dct-main-label { font: 700 11px/1 "PingFang SC", Arial, sans-serif; letter-spacing: .2em; color: var(--dct-gold); }
.dct-combo { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.dct-throw { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 12px 14px; background: var(--dct-green); color: #fffaf0; border-radius: 4px; font: 700 20px/1.2 ui-monospace, Consolas, monospace; }
.dct-throw.is-double { background: var(--dct-red); }
.dct-throw.is-bull { background: var(--dct-gold); color: #2b1c00; }
.dct-throw small { font: 600 10.5px/1.4 "PingFang SC", Arial, sans-serif; opacity: .85; margin-top: 5px; }
.dct-combo .dct-plus { align-self: center; font-size: 20px; color: var(--dct-ink-2); }
.dct-main-combo p { font-size: 13.5px; line-height: 1.9; color: var(--dct-ink-2); }
.dct-alts { margin-top: 20px; }
.dct-alts h3 { font-size: 15px; margin-bottom: 10px; }
.dct-alt-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px dashed var(--dct-line); font-size: 13.5px; }
.dct-alt-row code { font: 700 13.5px/1.4 ui-monospace, Consolas, monospace; color: var(--dct-green); white-space: nowrap; }
.dct-alt-row span { color: var(--dct-ink-2); font-size: 12px; }
.dct-rule-box { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--dct-green); background: var(--dct-surface-2); font-size: 13px; line-height: 1.9; color: var(--dct-ink-2); }
.dct-rule-box.is-bad { border-left-color: var(--dct-red); }

/* 速查表 */
.dct-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 9px; }
.dct-chart button { text-align: left; border: 1px solid var(--dct-line); background: var(--dct-surface); border-radius: 3px; padding: 11px 12px; cursor: pointer; color: var(--dct-ink); }
.dct-chart button:hover { border-color: var(--dct-gold); background: var(--dct-surface-2); }
.dct-chart button.is-active { border-color: var(--dct-red); box-shadow: inset 3px 0 0 var(--dct-red); }
.dct-chart button.is-none { opacity: .68; }
.dct-chart b { display: block; font: 700 19px/1.2 ui-monospace, Consolas, monospace; color: var(--dct-ink); }
.dct-chart code { display: block; margin-top: 5px; font: 600 12px/1.5 ui-monospace, Consolas, monospace; color: var(--dct-green); word-break: break-word; }
.dct-chart em { display: block; font-size: 11px; font-style: normal; color: var(--dct-ink-2); margin-top: 3px; }
.dct-bogey { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--dct-line); font-size: 13px; line-height: 1.9; color: var(--dct-ink-2); }

/* 批量 */
.dct-batch-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; margin-bottom: 16px; }
.dct-batch-head textarea { resize: vertical; line-height: 1.8; }
.dct-batch-head .dct-actions { margin-top: 0; flex-direction: column; }
.dct-table-scroll { overflow-x: auto; }
.dct-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.dct-table th, .dct-table td { padding: 10px 9px; text-align: left; border-bottom: 1px solid var(--dct-line); }
.dct-table th { font-size: 11.5px; color: var(--dct-ink-2); background: var(--dct-surface-2); white-space: nowrap; }
.dct-table code { font: 700 13px/1.4 ui-monospace, Consolas, monospace; color: var(--dct-green); }
.dct-table input { padding: 6px 8px; font-size: 12.5px; }
.dct-table .is-none { color: var(--dct-red); font-weight: 700; }
.dct-table .dct-del { border: 0; background: none; color: var(--dct-red); font-size: 18px; cursor: pointer; }

/* 快捷 & 说明 */
.dct-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dct-quick button { text-align: left; padding: 15px; border: 1px solid var(--dct-line); border-radius: 3px; background: var(--dct-surface); color: var(--dct-ink); cursor: pointer; }
.dct-quick button:hover { border-color: var(--dct-gold); }
.dct-quick button b { display: block; font: 700 20px/1.2 ui-monospace, Consolas, monospace; color: var(--dct-ink); margin-bottom: 6px; }
.dct-quick button span { font-size: 12px; line-height: 1.7; color: var(--dct-ink-2); }
.dct-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--dct-line); }
.dct-notes h3 { font-size: 14.5px; margin-bottom: 8px; }
.dct-notes p { font-size: 13px; line-height: 1.9; color: var(--dct-ink-2); }

/* 浮层 */
.dct-modal { position: fixed; inset: 0; z-index: 999; background: rgba(20, 32, 27, .62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dct-modal[hidden], .dct-toast[hidden], .dct-page [hidden] { display: none !important; }
.dct-modal-box { background: var(--dct-surface); border: 1px solid var(--dct-gold); border-radius: 4px; padding: 26px; width: min(440px, 100%); position: relative; box-shadow: var(--dct-shadow); }
.dct-modal-box h3 { font-size: 18px; margin-bottom: 10px; }
.dct-modal-box p { font-size: 13px; line-height: 1.8; color: var(--dct-ink-2); margin-bottom: 14px; }
.dct-modal-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--dct-line); border-radius: 3px; background: var(--dct-bg); color: var(--dct-ink); font-size: 12.5px; margin-bottom: 12px; }
.dct-modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 25px; color: var(--dct-ink-2); cursor: pointer; }
.dct-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 1000; background: var(--dct-green); color: #fffaf0; padding: 11px 20px; border-radius: 3px; font-size: 13.5px; }
.dct-page .tskb { margin-top: 22px; }
.dct-page .tskb-card, .dct-page .tskb-panel { background: var(--dct-surface); }

@media (max-width: 960px) {
    .dct-hero, .dct-board-card { grid-template-columns: 1fr; }
    .dct-batch-head { grid-template-columns: 1fr; }
    .dct-batch-head .dct-actions { flex-direction: row; }
    .dct-board-box { max-width: 260px; }
}
@media (max-width: 600px) {
    .dct-wrap { padding: 0 13px; }
    .dct-hero-copy, .dct-hero-panel { padding: 19px; }
    .dct-hero h1 { font-size: 27px; }
    .dct-sub { font-size: 14px; }
    .dct-quick, .dct-notes { grid-template-columns: 1fr; }
    .dct-chart { grid-template-columns: repeat(2, 1fr); }
    .dct-card { padding: 17px; }
    .dct-fact { flex-basis: 100%; }
    .dct-throw { min-width: 70px; padding: 10px; font-size: 17px; }
}

/* 公共推荐位与底部套件在窄屏的既有溢出：仅在本组页面 CSS 内修复，不改线上已有页面 */
@media (max-width: 640px) {
    .tool-rec { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; box-sizing: border-box; }
    .tool-rec-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .tool-rec-item { min-width: 0 !important; width: 100% !important; box-sizing: border-box; }
    .tool-rec-body, .tool-rec-body b, .tool-rec-body small { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .tskb-card { overflow-x: auto; }
    .tskb-legend { min-width: 0; width: 100%; table-layout: fixed; }
    .tskb-legend th, .tskb-legend td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
    .tskb-tabs { flex-wrap: wrap; }
}

/* 深色专属：靶场 hero 与投掷标签固定深底浅字 */
:root[data-theme="dark"] .dct-hero-copy { background: #183a30; color: #f0ece0; }
:root[data-theme="dark"] .dct-throw { background: #1f5a45; color: #fffaf0; }
:root[data-theme="dark"] .dct-throw.is-double { background: #a83232; color: #ffffff; }
:root[data-theme="dark"] .dct-btn-main { background: #a83232; color: #ffffff; border-color: #a83232; }
:root[data-theme="dark"] .dct-toast { background: #183a30; color: #fffaf0; }
/* 窄屏首屏指标紧凑：让操作入口落在手机首屏 */
@media (max-width: 600px) {
    .dct-fact { flex-basis: calc(33.333% - 7px); padding: 10px 8px; }
    .dct-fact b { font-size: 15px; }
    .dct-fact span { font-size: 10px; }
}
