/* ======================================================================
 * 30 小区门禁权限过户 · 门禁终端 / 卡片矩阵（独立版式）
 * 深色终端首屏 + 数字键盘 + 权限矩阵 + 注销顺序 + 遗漏项检查
 * ====================================================================== */
.h3-p30 {
    --h3-accent: #2b7f96;
    --h3-accent-d: #82cadc;
    --h3-accent-2: #a8552f;
    --h3-accent-2-d: #e3a17e;
    --at-dark: #101c22;
    --at-dark-d: #0b1418;
}
.at { max-width: 1180px; margin: 0 auto; padding: 0 26px 64px; }

/* ---------- 首屏：终端 ---------- */
.at-hero {
    margin-top: 22px; padding: 30px 34px 28px; border-radius: 16px; overflow: hidden;
    color: #e6f2f5;
    background:
        linear-gradient(rgba(130,202,220,.045) 1px, transparent 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(130,202,220,.045) 1px, transparent 1px) 0 0 / 26px 100%,
        radial-gradient(680px 320px at 86% 0%, rgba(130,202,220,.14), transparent 62%),
        var(--at-dark);
    box-shadow: 0 20px 50px rgba(10, 25, 32, .26);
}
:root[data-theme="dark"] .h3-p30 .at-hero { background:
        linear-gradient(rgba(130,202,220,.05) 1px, transparent 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(130,202,220,.05) 1px, transparent 1px) 0 0 / 26px 100%,
        radial-gradient(680px 320px at 86% 0%, rgba(130,202,220,.10), transparent 62%),
        var(--at-dark-d); }
.at-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 28px; align-items: center; }
.at-hero .h3-kicker { color: #82cadc; }
.at-hero .h3-kicker::before { background: #82cadc; }
.at-hero .h3-title { color: #f0f8fa; }
.at-hero .h3-title em { color: #82cadc; }
.at-hero .h3-lead { color: #b2c6cc; }
.at-hero .h3-lead strong { color: #f0f8fa; }
.at-hero .h3-meta li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #bfd0d5; }

.at-terminal { border: 1px solid rgba(130,202,220,.3); border-radius: 14px; padding: 14px; background: rgba(5,14,18,.6); }
.at-screen { border: 1px solid rgba(130,202,220,.22); border-radius: 7px; padding: 9px 11px; font-family: var(--h3-num); font-size: 11px; color: #82cadc; min-height: 52px; line-height: 1.7; }
.at-screen b { color: #e6f2f5; }
.at-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.at-pad span { display: grid; place-items: center; height: 32px; border-radius: 6px; background: rgba(130,202,220,.09); border: 1px solid rgba(130,202,220,.18); font-family: var(--h3-num); font-size: 12px; color: #c8dde2; }
.at-pad span.at-key { background: #82cadc; color: #0b1418; font-weight: 700; }
.at-terminal-cap { margin-top: 9px; text-align: center; font-family: var(--h3-num); font-size: 10.5px; letter-spacing: .12em; color: #7e9aa2; }

.at-quick { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.17); }
.at-quick-h { color: #eef7f9; font-size: 13px; font-weight: 750; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.at-quick-h span { font-family: var(--h3-num); font-size: 11px; letter-spacing: .1em; color: #82cadc; border: 1px solid rgba(130,202,220,.5); border-radius: 999px; padding: 2px 9px; }
.at-quick .h3-fields { grid-template-columns: repeat(3, minmax(0,1fr)); }
.at-quick .h3-label { color: #d3e3e7; font-size: 12.5px; }
.at-quick .h3-input, .at-quick .h3-textarea { background: rgba(5,14,18,.72); border-color: rgba(255,255,255,.2); color: #f0f8fa; }
:root[data-theme="dark"] .h3-p30 .at-quick .h3-input,
:root[data-theme="dark"] .h3-p30 .at-quick .h3-textarea { background: rgba(4,10,13,.85); }
.at-quick .h3-textarea { min-height: 66px; font-family: var(--h3-num); font-size: 12.5px; }
.at-quick .h3-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
.at-quick .h3-check { color: #cadde1; font-size: 12.5px; }
.at-quick .h3-btns { margin-top: 14px; }
.at-quick .h3-btn--ghost { color: #d9eaee; border-color: rgba(255,255,255,.24); }
:root[data-theme="dark"] .h3-p30 .at-quick .h3-btn--ghost { color: #d9eaee; }
.at-quick .h3-err { color: #f0b3a2; }

/* ---------- 工作区 ---------- */
.at-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; margin-top: 22px; }
.at-matrix { overflow-x: auto; }
.at-matrix table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.at-matrix th, .at-matrix td { padding: 9px 11px; border-bottom: 1px solid var(--h3-line-2); text-align: left; white-space: nowrap; }
.at-matrix th { background: var(--h3-card-2); color: var(--h3-sub); font-size: 11.5px; }
.at-matrix td:first-child { font-family: var(--h3-num); color: var(--h3-accent); font-weight: 700; }
.at-matrix .at-x { color: var(--h3-bad); font-weight: 700; }
.at-steps { display: grid; gap: 9px; }
.at-step { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; padding: 11px 13px; border: 1px solid var(--h3-line); border-radius: 9px; background: var(--h3-card-2); }
.at-step-n { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--h3-accent); color: #fff; font-family: var(--h3-num); font-size: 11px; font-weight: 700; }
:root[data-theme="dark"] .h3-p30 .at-step-n { color: #101713; }
.at-step b { font-size: 13px; color: var(--h3-ink); }
.at-step p { margin: 3px 0 0; font-size: 12px; line-height: 1.7; color: var(--h3-sub); }
.at-step span { font-size: 11.5px; color: var(--h3-faint); }
.at-side { display: flex; flex-direction: column; gap: 18px; }
.at-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.at-stats div { padding: 11px 6px; text-align: center; border: 1px solid var(--h3-line); border-radius: 9px; background: var(--h3-card-2); }
.at-stats b { display: block; font-family: var(--h3-num); font-size: 21px; color: var(--h3-accent); }
.at-stats span { font-size: 11px; color: var(--h3-faint); }
.at-miss { padding: 10px 12px; border-radius: 8px; background: var(--h3-warn-soft); color: var(--h3-warn); font-size: 12.5px; line-height: 1.75; margin-bottom: 8px; }
.at-grant { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--h3-line); font-size: 12.5px; }
.at-grant:last-child { border-bottom: 0; }
.at-grant b { color: var(--h3-ink); }
.at-points { display: flex; flex-wrap: wrap; gap: 7px; }
.at-points label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--h3-line); border-radius: 999px; background: var(--h3-card-2); font-size: 12.5px; color: var(--h3-sub); cursor: pointer; }
.at-points input { accent-color: var(--h3-accent); }
.at-prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.at-print-title { display: none; }

@media (max-width: 1000px) {
    .at-hero-grid, .at-layout, .at-prose-cols { grid-template-columns: 1fr; }
    .at-quick .h3-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .at-terminal { max-width: 280px; }
}
@media (max-width: 620px) {
    .at { padding: 0 16px 48px; }
    .at-hero { padding: 22px 18px; margin-top: 14px; }
    .at-quick { padding: 14px; }
    .at-quick .h3-fields { grid-template-columns: 1fr; }
}
@media print { .h3-p30 .at-print-title { display: block; font-size: 18px; font-weight: 700; margin-bottom: 12px; } }
