/* ======================================================================
 *  火车学生票票价折算 —— 页面专属样式
 *  依赖 tool-detail.css + tools/calc-common.css 的变量与基础类，
 *  这里只补席别选择、票价快捷档、自查开关与自查清单。
 * ====================================================================== */

/* ---------- 席别选择：两列，允许长文字换行 ---------- */
.tst-seg {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
}
.tst-seg .calc-seg-btn {
    height: auto;
    min-height: 46px;
    padding: 8px 10px;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
}
.tst-seg .calc-seg-btn small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-muted);
}
.tst-seg .calc-seg-btn.active small { color: #0a7fc0; }

/* ---------- 公布票价快捷档 ---------- */
.tst-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.tst-presets button {
    padding: 4px 11px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 99px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.tst-presets button:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* ---------- 自查开关 ---------- */
.tst-flags {
    margin: 14px 0 4px;
    padding: 4px 12px;
    border: 1px dashed var(--c-border);
    border-radius: 12px;
    background: var(--c-surface-soft);
}
.tst-flags .calc-check { padding: 7px 0; }
.tst-flags .calc-check + .calc-check { border-top: 1px dashed var(--c-border); }
.tst-flags .calc-check span { line-height: 1.5; }

/* ---------- 自查清单 ---------- */
.tst-check-list {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
}
.tst-check-list li {
    position: relative;
    padding: 11px 14px 11px 38px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 12px;
}
.tst-check-list li::before {
    content: '✓';
    position: absolute;
    left: 13px;
    top: 10px;
    width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #2fa85a;
    border-radius: 50%;
}
.tst-check-list li b { color: var(--c-text); }

/* ---------- 结果区里的表格内代码 ---------- */
.calc-table code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--c-surface-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--c-text-sub);
}

/* ---------- 黑夜模式 ---------- */
[data-theme="dark"] .tst-seg .calc-seg-btn.active small { color: #58bdf0; }
[data-theme="dark"] .tst-check-list li::before { background: #3fbf6c; color: #0b0f13; }
[data-theme="dark"] .calc-table code { background: rgba(255, 255, 255, 0.05); }

/* ---------- 响应式 ---------- */
@media (max-width: 420px) {
    .tst-seg { grid-template-columns: 1fr; }
}
