/* ======================================================================
 * 41 · 12306 候补购票成功率与抢票策略 —— 「候补概率仪表盘」
 * 视觉：12306 蓝 + 橙；半圆仪表盘 + 指针刻度；车次卡片带队列条；
 *       与其余 29 页不共用配色与构图。
 * ====================================================================== */

.hx.two {
    --bg: #f2f6fb;
    --bg2: #e5ecf5;
    --card: #ffffff;
    --card2: #f4f8fc;
    --card3: #e7eef6;
    --ink: #101c2c;
    --ink2: #35485e;
    --muted: #6d7f93;
    --line: #d3dfea;
    --line2: #e8eef5;
    --accent: #1a5fb4;
    --accent-ink: #ffffff;
    --accent-soft: #dfeaf8;
    --accent2: #e0661a;
    --accent2-soft: #fce6d8;
    --ok: #1c6b3c;
    --ok-bg: #e0f0e5;
    --warn: #92600a;
    --warn-bg: #f9efd6;
    --bad: #a4271c;
    --bad-bg: #f9e1dd;
    --info: #1d6076;
    --info-bg: #e1eef3;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(16, 28, 44, .07), 0 16px 38px rgba(16, 28, 44, .07);

    background:
        linear-gradient(180deg, rgba(26, 95, 180, .05) 0, transparent 260px),
        var(--bg);
}
:root[data-theme="dark"] .hx.two {
    --bg: #0f1620;
    --bg2: #151d29;
    --card: #18212e;
    --card2: #1f2937;
    --card3: #283445;
    --ink: #e6edf5;
    --ink2: #b6c4d3;
    --muted: #7f8fa1;
    --line: #2e3b4d;
    --line2: #243040;
    --accent: #6aa6ef;
    --accent-ink: #08111d;
    --accent-soft: #1a2b43;
    --accent2: #f08a4c;
    --accent2-soft: #3a2415;
    --ok: #5cc48c;
    --ok-bg: #1a3327;
    --warn: #dcb45f;
    --warn-bg: #342a16;
    --bad: #e5847a;
    --bad-bg: #38211e;
    --info: #62b7d0;
    --info-bg: #182f38;
    --shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 38px rgba(0, 0, 0, .34);
}

.two-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.56fr) minmax(272px, .84fr);
    gap: 0;
    margin: 22px 0 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.two-hero-main { padding: 26px 26px 24px; min-width: 0; }
.two-kicker {
    font: 700 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent2); margin: 0 0 8px;
}
.two-hero h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 10px; }
.two-lede { font-size: 14.8px; line-height: 1.9; color: var(--ink2); margin: 0 0 18px; max-width: 58em; }
.two-lede b { color: var(--accent); border-bottom: 2px solid var(--accent-soft); }
:root[data-theme="dark"] .two-lede b { color: var(--accent2); border-bottom-color: var(--accent2-soft); }

.two-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.two-input {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card2); color: var(--ink); font: 600 15px/1.6 var(--font-body); padding: 9px 12px; outline: none;
}
.two-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.two-input { cursor: pointer; }

/* 仪表盘 */
.two-dial { background: var(--card2); border-left: 1px solid var(--line); padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.two-dial-hd { font: 700 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.two-dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.two-dial {
    --pct: 0;
    width: 190px; height: 95px; position: relative; overflow: hidden;
}
.two-dial::before {
    content: ""; position: absolute; left: 0; top: 0; width: 190px; height: 190px;
    border-radius: 50%;
    background: conic-gradient(from 270deg,
        var(--bad) 0 25%, var(--warn) 25% 50%, var(--accent2) 50% 72%, var(--ok) 72% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 66px, #000 67px);
    mask: radial-gradient(circle, transparent 0 66px, #000 67px);
}
.two-dial::after {
    content: ""; position: absolute; left: 50%; bottom: 6px; width: 2px; height: 78px;
    background: var(--ink); transform-origin: bottom center;
    transform: translateX(-50%) rotate(calc(-90deg + var(--pct) * 1.8deg));
    transition: transform .5s cubic-bezier(.3, .8, .3, 1);
}
.two-dial-val {
    position: absolute; left: 0; right: 0; bottom: 4px; text-align: center;
    font: 800 32px var(--font-mono); color: var(--accent);
}
.two-dial-pct { position: absolute; right: 42px; bottom: 10px; font: 700 14px var(--font-mono); color: var(--muted); }
.two-dial-tag { font-size: 13px; font-weight: 700; color: var(--ink2); }
.two-dial-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.two-dial-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.6px; color: var(--ink2); }
.two-dial-list li b { font-family: var(--font-mono); color: var(--accent); }
.two-dial-note { margin-top: auto; border-top: 1px solid var(--line); padding-top: 11px; }
.two-dial-note b { display: block; font-size: 13px; margin-bottom: 5px; color: var(--accent); }
.two-dial-note p { font-size: 12.3px; line-height: 1.8; color: var(--ink2); margin: 0; }

/* 结果 */
.two-result { display: none; }
.two-result.is-on { display: block; }
.two-verdict { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 16px; background: var(--accent-soft); border-left: 5px solid var(--accent); }
.two-verdict.is-high { background: var(--ok-bg); border-left-color: var(--ok); }
.two-verdict.is-mid { background: var(--warn-bg); border-left-color: var(--warn); }
.two-verdict.is-low { background: var(--bad-bg); border-left-color: var(--bad); }
.two-verdict b { display: block; font-size: 18px; margin-bottom: 4px; }
.two-verdict p { font-size: 13.6px; line-height: 1.82; margin: 0; color: var(--ink2); }

.two-trains { display: grid; gap: 10px; margin-bottom: 16px; }
.two-train { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 15px; display: grid; grid-template-columns: 88px minmax(0, 1fr) 128px; gap: 14px; align-items: center; }
.two-train-no { font: 800 17px var(--font-mono); color: var(--accent); }
.two-train-no small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.two-train-info { font-size: 13.4px; color: var(--ink2); line-height: 1.7; }
.two-train-info b { color: var(--ink); }
.two-train-prob { text-align: right; }
.two-train-prob .v { font: 800 20px var(--font-mono); color: var(--accent); }
.two-train-prob .l { display: block; font-size: 11.5px; color: var(--muted); }
.two-queue { height: 6px; border-radius: 99px; background: var(--card3); overflow: hidden; margin-top: 5px; }
.two-queue > i { display: block; height: 100%; background: var(--accent2); }

.two-steps { display: grid; gap: 0; }
.two-step { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.two-step:last-child { border-bottom: 0; }
.two-step-k { font-size: 13.2px; font-weight: 700; color: var(--accent); }
.two-step-v { font-size: 13.6px; line-height: 1.82; color: var(--ink2); }
.two-step-v b { color: var(--ink); }

.two-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.two-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.8px; color: var(--ink2); line-height: 1.75; }
.two-check input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; margin-top: 4px; }
.two-check li.done > span { text-decoration: line-through; color: var(--muted); }

.hx.two .hx-table th { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 980px) {
    .two-hero { grid-template-columns: minmax(0, 1fr); }
    .two-dial { border-left: 0; border-top: 1px solid var(--line); }
    .two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .two-hero-main { padding: 20px 15px; }
    .two-grid { grid-template-columns: minmax(0, 1fr); }
    .two-train { grid-template-columns: minmax(0, 1fr); }
    .two-train-prob { text-align: left; }
    .two-step { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
