/* =====================================================================
 * 04 二手车过户材料 · TRANSFER DOSSIER
 * 独立设计：牛皮纸档案夹 + 朱红印章 + 靛蓝；首屏左侧为档案柜情形页签，
 * 右侧为带红边的号码速录台；材料是带骑缝孔与编号的纵向卡片，
 * 办理顺序为三段粗轨，齐备度用印章圆环呈现。
 * ===================================================================== */
.uct {
    --ag-bg: #f5f0e6;
    --ag-bg2: #ebe2d2;
    --ag-surface: #fffcf4;
    --ag-surface2: #f8f2e6;
    --ag-ink: #2d2a25;
    --ag-ink2: #5a554b;
    --ag-muted: #918a7b;
    --ag-line: #e0d6c2;
    --ag-line2: #cdbfa5;
    --ag-accent: #9e322c;
    --ag-accent2: #2f4a75;
    --ag-on: #fffaf0;
    --ag-ok: #2a704e;
    --ag-okbg: #e2f0e5;
    --ag-warn: #96631c;
    --ag-warnbg: #f9edcf;
    --ag-bad: #a8322c;
    --ag-badbg: #f9e4e1;
    --ag-info: #2f4a75;
    --ag-infobg: #e6ecf6;
    --ag-r: 2px;
    --ag-shadow: 0 2px 0 rgba(70, 55, 30, .06), 0 12px 28px rgba(70, 55, 30, .09);
    --ag-h: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
    --ag-b: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --ag-m: "JetBrains Mono", Consolas, monospace;
}
:root[data-theme="dark"] .uct {
    --ag-bg: #15130f;
    --ag-bg2: #201d17;
    --ag-surface: #1e1b16;
    --ag-surface2: #262219;
    --ag-ink: #f0e9dc;
    --ag-ink2: #c2b8a5;
    --ag-muted: #948b78;
    --ag-line: #373127;
    --ag-line2: #4a4132;
    --ag-accent: #ee9188;
    --ag-accent2: #93b0e0;
    --ag-on: #1a1611;
    --ag-ok: #85d0a5;
    --ag-okbg: #1b3628;
    --ag-warn: #e4bb70;
    --ag-warnbg: #382c17;
    --ag-bad: #f09a8f;
    --ag-badbg: #3a211e;
    --ag-info: #93b0e0;
    --ag-infobg: #1d2a3d;
    --ag-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.uct { background: var(--ag-bg) radial-gradient(520px 300px at 92% 4%, rgba(158, 50, 44, .07), transparent 70%) no-repeat; }
.uct h1, .uct h2, .uct h3 { font-family: var(--ag-h); letter-spacing: .02em; }
.uct input, .uct select, .uct textarea {
    width: 100%; background: var(--ag-surface2); color: var(--ag-ink);
    border: 1px solid var(--ag-line2); border-radius: 2px; padding: 8px 10px;
    font-size: 13.5px; line-height: 1.65; outline: none;
}
.uct input:focus, .uct select:focus, .uct textarea:focus { border-color: var(--ag-accent2); box-shadow: inset 0 -2px 0 var(--ag-accent2); }
.uct textarea { resize: vertical; }
.uct label { display: block; font-size: 12px; font-weight: 650; color: var(--ag-ink2); margin-bottom: 5px; }
.uct code { background: var(--ag-bg2); color: var(--ag-accent2); }

/* ---------- 首屏 ---------- */
.uct-hero { display: grid; grid-template-columns: 1.08fr .92fr; border: 1px solid var(--ag-line2); background: var(--ag-surface); box-shadow: var(--ag-shadow); position: relative; }
.uct-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: repeating-linear-gradient(180deg, var(--ag-accent2) 0 22px, transparent 22px 30px); }
.uct-tabs-col { padding: 32px 30px 24px 34px; border-right: 1px dashed var(--ag-line2); }
.uct-kicker { display: inline-block; font-family: var(--ag-m); font-size: 10px; letter-spacing: .18em; color: var(--ag-accent2); border-bottom: 1px solid var(--ag-accent2); padding-bottom: 4px; margin-bottom: 16px; }
.uct-hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; margin-bottom: 12px; }
.uct-lede { font-size: 14px; line-height: 2; color: var(--ag-ink2); max-width: 40em; }
.uct-lede b { color: var(--ag-accent); border-bottom: 1px dotted var(--ag-accent); }
.uct-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.uct-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; background: var(--ag-surface2); border: 1px solid var(--ag-line2); border-bottom-width: 3px; font-size: 12.5px; font-weight: 700; color: var(--ag-ink2); cursor: pointer; user-select: none; }
.uct-tab i { width: 7px; height: 7px; border: 1px solid var(--ag-line2); border-radius: 50%; }
.uct-tab.is-on { background: var(--ag-infobg); color: var(--ag-accent2); border-color: var(--ag-accent2); }
.uct-tab.is-on i { background: var(--ag-accent2); border-color: var(--ag-accent2); }
.uct-art { display: block; width: 100%; max-width: 280px; height: auto; margin: 20px 0 0 auto; opacity: .85; }
.uct-quick { padding: 26px 26px 22px; background: var(--ag-surface2); border-left: 4px solid var(--ag-accent); }
.uct-quick-hd { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ag-ink); padding-bottom: 10px; margin-bottom: 16px; }
.uct-quick-hd b { font-family: var(--ag-h); font-size: 18px; }
.uct-quick-hd span { font-family: var(--ag-m); font-size: 11px; color: var(--ag-accent); }
.uct-quick > label { margin-top: 10px; }
.uct-quick > label:first-of-type { margin-top: 0; }
.uct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.uct-switches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.uct-switches .ag-check { border-radius: 2px; }
.uct-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.uct-validate { margin-top: 14px; padding: 10px 12px; font-size: 11.5px; line-height: 1.8; color: var(--ag-ink2); background: var(--ag-surface); border: 1px dashed var(--ag-line2); }
.uct-validate b.ok { color: var(--ag-ok); }
.uct-validate b.no { color: var(--ag-bad); }

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

/* ---------- 区块 ---------- */
.uct-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 16px; padding-bottom: 9px; border-bottom: 1px solid var(--ag-line2); }
.uct-sec-hd h2 { font-size: 21px; display: flex; align-items: center; gap: 11px; }
.uct-sec-hd h2 i { font-family: var(--ag-m); font-style: normal; font-size: 10.5px; letter-spacing: .1em; color: var(--ag-accent); border: 1px solid var(--ag-accent); padding: 2px 7px; border-radius: 50%; }
.uct-sec-hd span { font-size: 12px; color: var(--ag-muted); }
.uct-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.uct-check { background: var(--ag-surface); border: 1px solid var(--ag-line); border-left: 3px solid var(--ag-line2); padding: 12px 14px; }
.uct-check.ok { border-left-color: var(--ag-ok); }
.uct-check.no { border-left-color: var(--ag-bad); }
.uct-check small { display: block; font-size: 11px; color: var(--ag-muted); }
.uct-check b { display: block; font-size: 14px; margin: 3px 0; }
.uct-check p { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--ag-ink2); }
.uct-err { margin-top: 12px; padding: 10px 13px; background: var(--ag-badbg); color: var(--ag-bad); font-size: 12.5px; }

/* ---------- 办理顺序粗轨 ---------- */
.uct-order { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 18px; }
.uct-order-step { position: relative; padding: 14px 18px 14px 48px; background: var(--ag-surface); border: 1px solid var(--ag-line2); border-right: 0; }
.uct-order-step:last-child { border-right: 1px solid var(--ag-line2); }
.uct-order-step b { display: block; font-family: var(--ag-h); font-size: 15px; }
.uct-order-step small { font-size: 11.5px; color: var(--ag-muted); line-height: 1.7; }
.uct-order-step i { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ag-accent2); color: #fff; font-family: var(--ag-m); font-style: normal; font-size: 12px; display: grid; place-items: center; }
.uct-order-step::after { content: "›"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--ag-accent); font-size: 22px; }
.uct-order-step:last-child::after { display: none; }

/* ---------- 材料卡 ---------- */
.uct-layout { display: grid; grid-template-columns: 1.55fr .8fr; gap: 16px; }
.uct-docs { display: grid; gap: 9px; align-content: start; }
.uct-doc { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 12px 0; background: var(--ag-surface); border: 1px solid var(--ag-line); border-left: 4px solid var(--ag-line2); cursor: pointer; }
.uct-doc::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 4px; background: repeating-linear-gradient(180deg, transparent 0 5px, var(--ag-surface2) 5px 9px); }
.uct-doc .dn { align-self: stretch; display: grid; place-items: center; font-family: var(--ag-m); font-size: 13px; font-weight: 700; color: var(--ag-accent2); background: var(--ag-bg2); border-right: 1px dashed var(--ag-line2); }
.uct-doc h4 { font-family: var(--ag-h); font-size: 14.5px; margin: 0 0 3px; }
.uct-doc p { margin: 0; font-size: 11.5px; line-height: 1.7; color: var(--ag-muted); }
.uct-doc .dtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.uct-doc .dtag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border: 1px solid var(--ag-line2); border-radius: 2px; color: var(--ag-ink2); }
.uct-doc .dtag.req { color: var(--ag-accent); border-color: var(--ag-accent); }
.uct-doc .dcheck { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ag-line2); border-radius: 2px; font-size: 15px; color: transparent; }
.uct-doc.is-on { border-left-color: var(--ag-ok); background: var(--ag-okbg); }
.uct-doc.is-on .dcheck { border-color: var(--ag-ok); background: var(--ag-ok); color: #fff; }
.uct-side { display: grid; gap: 14px; align-content: start; }
.uct-stamp-box { position: relative; padding: 20px; background: var(--ag-surface); border: 1px solid var(--ag-line2); text-align: center; overflow: hidden; }
.uct-stamp-box > span { font-size: 12px; color: var(--ag-muted); letter-spacing: .1em; }
.uct-stamp-box > b { display: block; font-family: var(--ag-m); font-size: 40px; line-height: 1.5; color: var(--ag-accent); }
.uct-bar { height: 8px; background: var(--ag-bg2); border: 1px solid var(--ag-line); }
.uct-bar i { display: block; height: 100%; width: 0; background: var(--ag-accent); transition: width .3s; }
.uct-stamp-box p { margin: 12px 0 0; font-size: 12px; line-height: 1.8; color: var(--ag-ink2); }
.uct-stamp-box::after { content: "核对"; position: absolute; right: -12px; bottom: -12px; width: 76px; height: 76px; border: 3px double var(--ag-accent); border-radius: 50%; display: grid; place-items: center; color: var(--ag-accent); font-family: var(--ag-h); font-size: 15px; opacity: .22; transform: rotate(-14deg); }
.uct-note-box { padding: 16px 18px; background: var(--ag-surface); border: 1px solid var(--ag-line); }
.uct-note-box h3 { font-size: 16px; margin-bottom: 10px; }
.uct-clean { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 11.5px; }
.uct-clean > b { color: var(--ag-ink2); }
.uct-clean .ag-check { border-radius: 2px; }
.uct-clean #uctPreview { 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; }
.uct-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* ---------- 结果 / 批量 / 阅读 ---------- */
.uct-result-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.uct-panel { background: var(--ag-surface); border: 1px solid var(--ag-line); padding: 18px 20px; min-width: 0; }
.uct-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; }
.uct-panel-hd h3 { font-size: 16px; }
.uct-panel-hd span { font-size: 11px; color: var(--ag-muted); }
.uct-missing { margin: 0; padding-left: 20px; font-size: 12.8px; line-height: 1.95; color: var(--ag-ink2); }
.uct-missing li { margin-bottom: 7px; }
.uct-missing b { color: var(--ag-accent); }
.uct-notices { font-size: 12.8px; line-height: 1.95; color: var(--ag-ink2); }
.uct-notices p { margin-bottom: 9px; }
.uct-scroll { overflow-x: auto; margin-top: 16px; }
.uct-table { width: 100%; min-width: 720px; font-size: 12.5px; }
.uct-table th { text-align: left; background: var(--ag-bg2); color: var(--ag-ink2); font-size: 11px; padding: 8px 10px; border-bottom: 2px solid var(--ag-line2); white-space: nowrap; }
.uct-table td { padding: 8px 10px; border-bottom: 1px dotted var(--ag-line); line-height: 1.7; }
.uct-read { margin-top: 46px; padding: 26px 28px; background: var(--ag-surface); border: 1px solid var(--ag-line2); border-top: 4px solid var(--ag-accent2); }
.uct-read h2 { font-size: 21px; margin-bottom: 16px; }
.uct-read p { font-size: 14px; line-height: 2.05; color: var(--ag-ink2); margin-bottom: 14px; }
.uct-read p:last-child { margin-bottom: 0; }
.uct-read b { color: var(--ag-accent); font-weight: 750; }

@media (max-width: 1080px) {
    .uct-hero { grid-template-columns: 1fr; }
    .uct-tabs-col { border-right: 0; border-bottom: 1px dashed var(--ag-line2); }
    .uct-art { display: none; }
    .uct-layout, .uct-result-grid { grid-template-columns: 1fr; }
    .uct-checks { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .uct-tabs-col, .uct-quick { padding: 22px 16px; }
    .uct-two { grid-template-columns: 1fr; }
    .uct-order { grid-template-columns: 1fr; }
    .uct-order-step { border-right: 1px solid var(--ag-line2); border-bottom: 0; }
    .uct-order-step:last-child { border-bottom: 1px solid var(--ag-line2); }
    .uct-order-step::after { display: none; }
    .uct-doc { grid-template-columns: 36px 1fr auto; }
    .uct-read { padding: 20px 18px; }
}
