/* ================================================================
   业务页面样式
   ================================================================ */

/* ---------------- 登录 / 注册 ---------------- */
.auth-body { background: #04070d; overflow-x: hidden; }
.auth-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-visual {
    position: relative; overflow: hidden; padding: 54px 58px 40px;
    display: flex; flex-direction: column;
    background:
        radial-gradient(900px 600px at 20% 0%, rgba(31, 179, 200, .16), transparent 62%),
        radial-gradient(700px 500px at 90% 100%, rgba(79, 140, 255, .12), transparent 60%),
        linear-gradient(160deg, #081120 0%, #04070d 70%);
    border-right: 1px solid var(--line);
}
.auth-visual::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(126, 170, 214, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 170, 214, .06) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 10%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 10%, transparent 76%);
}
.auth-visual::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(180deg, transparent, rgba(57, 230, 242, .035));
    pointer-events: none;
}
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.auth-brand .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
.auth-brand .brand-mark img { width: 30px; height: 30px; }
.auth-brand-text strong { display: block; font-size: 20px; letter-spacing: .16em; }
.auth-brand-text em { display: block; font-size: 9.5px; letter-spacing: .22em; color: var(--text-3); font-family: var(--mono); margin-top: 3px; }
.auth-hero { position: relative; z-index: 2; margin-top: auto; padding-top: 40px; max-width: 620px; }
.auth-kicker {
    display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px;
    letter-spacing: .24em; color: var(--cyan); margin-bottom: 18px;
}
.auth-kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.auth-hero h1 { font-size: 43px; line-height: 1.22; font-weight: 600; letter-spacing: .02em; }
.auth-hero h1 span {
    background: linear-gradient(100deg, #6ff5ff 5%, #39e6f2 40%, #4f8cff 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero p { margin-top: 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.9; max-width: 500px; }
.auth-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; max-width: 620px; }
.auth-metric { padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: rgba(10, 19, 34, .55); backdrop-filter: blur(6px); }
.auth-metric strong { display: block; font-family: var(--mono); font-size: 22px; color: var(--cyan); letter-spacing: .02em; }
.auth-metric span { font-size: 10.5px; color: var(--text-3); }
.auth-art { position: absolute; right: -30px; bottom: -20px; width: 62%; min-width: 440px; opacity: .5; pointer-events: none; }
.auth-foot { position: relative; z-index: 2; margin-top: 34px; font-size: 10.5px; color: var(--text-4); letter-spacing: .04em; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.auth-panel { position: relative; display: grid; place-items: center; padding: 40px 32px; background: linear-gradient(180deg, #060b14, #04070d); }
.auth-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 400px at 100% 0%, rgba(57, 230, 242, .07), transparent 60%); pointer-events: none; }
.auth-card {
    position: relative; width: 100%; max-width: 404px; padding: 34px 32px 28px;
    border-radius: 20px; border: 1px solid var(--line-2);
    background: linear-gradient(165deg, rgba(19, 33, 55, .92), rgba(7, 12, 22, .96));
    box-shadow: 0 36px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    animation: authIn .5s var(--ease);
}
@keyframes authIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgba(57, 230, 242, .6), transparent); }
.auth-head { margin-bottom: 24px; }
.auth-head .eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--cyan); margin-bottom: 8px; }
.auth-head h2 { font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.auth-head p { margin-top: 7px; font-size: 11.5px; color: var(--text-3); }
.auth-form .field { margin-bottom: 15px; }
.auth-form .input { height: 44px; border-radius: 10px; background: rgba(5, 10, 18, .8); }
.auth-form .input-icon > i { left: 14px; font-size: 13px; }
.auth-form .input-icon .input { padding-left: 38px; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; font-size: 11.5px; color: var(--text-3); }
.auth-form-row a { color: var(--cyan); }
.auth-submit { width: 100%; height: 44px; border-radius: 11px; font-size: 14px; letter-spacing: .06em; }
.auth-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 11.5px; color: var(--text-3); }
.auth-alt a { color: var(--cyan); margin-left: 4px; }
.auth-legal { margin-top: 22px; font-size: 10px; color: var(--text-4); text-align: center; line-height: 1.7; }
.auth-panel-foot { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--text-4); letter-spacing: .04em; }
.auth-captcha { display: flex; gap: 10px; }
.auth-captcha .input { flex: 1; }
.auth-captcha-img { width: 106px; height: 44px; flex: none; border-radius: 9px; border: 1px solid var(--line-2); overflow: hidden; cursor: pointer; background: #0d1728; }
.auth-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; font-size: 11.5px; margin-bottom: 14px; background: rgba(255, 95, 114, .09); border: 1px solid rgba(255, 95, 114, .22); color: #ffb3bc; }
.auth-alert i { margin-top: 2px; }

@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; }
    .auth-panel-foot { position: static; margin-top: 26px; }
}

/* ---------------- 工作台 ---------------- */
.dash-greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-greeting h1 { font-size: 27px; font-weight: 600; letter-spacing: .02em; }
.dash-greeting h1 em { color: var(--cyan); font-style: normal; }
.dash-greeting p { font-size: 12px; color: var(--text-3); margin-top: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-greeting .shift-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(57, 230, 242, .08); border: 1px solid rgba(57, 230, 242, .18); color: var(--cyan); font-size: 10.5px; }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dash-grid .span-3 { grid-column: span 3; }
.dash-grid .span-4 { grid-column: span 4; }
.dash-grid .span-5 { grid-column: span 5; }
.dash-grid .span-6 { grid-column: span 6; }
.dash-grid .span-7 { grid-column: span 7; }
.dash-grid .span-8 { grid-column: span 8; }
.dash-grid .span-12 { grid-column: span 12; }

.dash-hero {
    position: relative; grid-column: span 8; overflow: hidden; padding: 22px 24px;
    border-radius: var(--radius); border: 1px solid rgba(57, 230, 242, .18);
    background:
        radial-gradient(560px 260px at 100% 0%, rgba(57, 230, 242, .14), transparent 60%),
        linear-gradient(150deg, #12233c, #091221 68%);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .03);
    display: flex; gap: 30px; align-items: center;
}
.dash-hero::after {
    content: ""; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 300px;
    border: 1px solid rgba(57, 230, 242, .12); border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(57, 230, 242, .03), 0 0 0 62px rgba(57, 230, 242, .02);
}
.dash-hero-ring { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.dash-hero-ring .health-ring { width: 116px; height: 116px; }
.dash-hero-ring .health-ring span { font-size: 30px; }
.dash-hero-ring .health-ring em { bottom: 22px; font-size: 8.5px; letter-spacing: .1em; }
.dash-hero-ring > em { font-size: 10px; color: var(--text-3); letter-spacing: .18em; font-family: var(--mono); }
.dash-hero-body { position: relative; z-index: 1; min-width: 0; flex: 1; }
.dash-hero-body .eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--cyan); margin-bottom: 7px; }
.dash-hero-body h2 { font-size: 20px; font-weight: 600; }
.dash-hero-body > p { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.dash-hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.dash-hero-metrics div { padding-left: 12px; border-left: 1px solid rgba(126, 170, 214, .14); }
.dash-hero-metrics strong { display: block; font-family: var(--mono); font-size: 19px; line-height: 1.2; }
.dash-hero-metrics strong em { font-size: 9.5px; color: var(--text-3); font-family: var(--font); margin-left: 2px; }
.dash-hero-metrics span { font-size: 10px; color: var(--text-3); }

.dash-todo { grid-column: span 4; }
.todo-list { display: flex; flex-direction: column; gap: 2px; }
.todo-item { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px dashed rgba(126, 170, 214, .09); transition: background .2s; }
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { background: rgba(57, 230, 242, .03); }
.todo-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 12px; }
.todo-ico.is-cyan { color: var(--cyan); background: rgba(57, 230, 242, .1); }
.todo-ico.is-amber { color: var(--amber); background: rgba(255, 182, 72, .1); }
.todo-ico.is-red { color: var(--red); background: rgba(255, 95, 114, .1); }
.todo-ico.is-green { color: var(--green); background: rgba(56, 224, 164, .1); }
.todo-body { flex: 1; min-width: 0; }
.todo-body strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-body em { font-size: 10px; color: var(--text-3); }
.todo-go { color: var(--text-4); font-size: 10px; }
.todo-item:hover .todo-go { color: var(--cyan); }

.chart-box { position: relative; height: 230px; }
.chart-box canvas { width: 100%; height: 100%; max-height: 100%; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10.5px; color: var(--text-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.risk-list { display: flex; flex-direction: column; }
.risk-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(126, 170, 214, .09); }
.risk-item:last-child { border-bottom: 0; }
.risk-body { flex: 1; min-width: 0; }
.risk-body strong { display: block; font-size: 12px; font-weight: 500; }
.risk-body em { font-size: 10px; color: var(--text-3); }
.risk-score { font-family: var(--mono); font-size: 15px; }
.risk-score.is-bad { color: var(--red); }
.risk-score.is-warn { color: var(--amber); }
.risk-score.is-watch { color: var(--cyan); }

.dash-activity { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed rgba(126, 170, 214, .08); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(57, 230, 242, .6); flex: none; }
.activity-dot.is-amber { background: var(--amber); box-shadow: 0 0 8px rgba(255, 182, 72, .5); }
.activity-dot.is-red { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 114, .5); }
.activity-dot.is-green { background: var(--green); box-shadow: 0 0 8px rgba(56, 224, 164, .5); }
.activity-body { min-width: 0; }
.activity-body p { font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.activity-body p b { color: var(--text); font-weight: 500; }
.activity-body em { font-size: 10px; color: var(--text-4); font-family: var(--mono); }

.dash-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.dash-mini { padding: 12px 14px; border-radius: 11px; background: rgba(6, 12, 21, .5); border: 1px solid var(--line); }
.dash-mini strong { display: block; font-family: var(--mono); font-size: 20px; }
.dash-mini span { font-size: 10px; color: var(--text-3); }

/* ---------------- 设备台账 ---------------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 15px; }
.device-card {
    position: relative; overflow: hidden; padding: 17px; border-radius: 15px;
    border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .9), rgba(8, 14, 24, .94));
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.device-card:hover { transform: translateY(-3px); border-color: rgba(57, 230, 242, .3); box-shadow: 0 20px 42px rgba(0, 0, 0, .38); }
.device-card::before {
    content: ""; position: absolute; right: -40px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 230, 242, .08), transparent 65%);
}
.device-card-top { display: flex; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.device-holo {
    width: 48px; height: 48px; flex: none; border-radius: 13px; display: grid; place-items: center;
    font-size: 19px; color: var(--cyan);
    background: linear-gradient(150deg, rgba(57, 230, 242, .16), rgba(57, 230, 242, .03));
    border: 1px solid rgba(57, 230, 242, .22);
    box-shadow: inset 0 0 18px rgba(57, 230, 242, .08);
}
.device-holo.is-amber { color: var(--amber); background: linear-gradient(150deg, rgba(255, 182, 72, .16), rgba(255, 182, 72, .03)); border-color: rgba(255, 182, 72, .24); }
.device-holo.is-red { color: var(--red); background: linear-gradient(150deg, rgba(255, 95, 114, .16), rgba(255, 95, 114, .03)); border-color: rgba(255, 95, 114, .24); }
.device-holo.is-muted { color: var(--text-3); background: rgba(126, 170, 214, .07); border-color: var(--line); }
.device-head { flex: 1; min-width: 0; }
.device-name { font-size: 14px; font-weight: 600; display: block; margin-top: 2px; }
.device-name:hover { color: var(--cyan); }
.device-code { font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: .04em; }
.device-card-body { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding-top: 13px; border-top: 1px dashed rgba(126, 170, 214, .1); }
.device-meta { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 10.5px; color: var(--text-3); }
.device-meta span { display: flex; flex-direction: column; }
.device-meta b { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.device-card-foot { display: flex; align-items: center; gap: 6px; margin-top: 13px; }
.device-card-foot .spacer { flex: 1; }
.device-live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--green); }
.device-live i { font-size: 5px; animation: pulse 2s infinite; }

/* ---------------- 实时监控 ---------------- */
.monitor-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.monitor-kpi { position: relative; padding: 15px 16px; border-radius: 13px; border: 1px solid var(--line); background: rgba(10, 19, 33, .7); overflow: hidden; }
.monitor-kpi .label { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.monitor-kpi .label i { color: var(--cyan); font-size: 10px; }
.monitor-kpi .value { font-family: var(--mono); font-size: 25px; margin-top: 4px; }
.monitor-kpi .value em { font-size: 10px; color: var(--text-3); font-family: var(--font); margin-left: 3px; }
.monitor-kpi .bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(126, 170, 214, .12); overflow: hidden; }
.monitor-kpi .bar span { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.station-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; }
.station-tab {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 33px; padding: 0 13px; border-radius: 8px;
    border: 1px solid var(--line); background: rgba(126, 170, 214, .04); color: var(--text-3); font-size: 11.5px;
    transition: all .2s; white-space: nowrap;
}
.station-tab:hover { color: var(--text); border-color: var(--line-2); }
.station-tab.is-active { color: var(--cyan); border-color: rgba(57, 230, 242, .4); background: rgba(57, 230, 242, .1); box-shadow: 0 0 16px rgba(57, 230, 242, .1); }
.station-tab .n { font-family: var(--mono); font-size: 9.5px; opacity: .7; }

.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.mon-tile {
    position: relative; padding: 15px; border-radius: 14px; border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(17, 30, 51, .82), rgba(7, 13, 23, .92)); overflow: hidden;
}
.mon-tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--green); box-shadow: 0 0 10px var(--green); opacity: .7; }
.mon-tile.is-alarm::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.mon-tile.is-off::before { background: var(--text-4); box-shadow: none; }
.mon-head { display: flex; align-items: center; gap: 9px; }
.mon-head .name { font-size: 12.5px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-head .code { font-family: var(--mono); font-size: 9px; color: var(--text-4); }
.mon-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.mon-values div { background: rgba(5, 10, 18, .5); border: 1px solid rgba(126, 170, 214, .08); border-radius: 8px; padding: 7px 9px; }
.mon-values span { display: block; font-size: 9px; color: var(--text-4); letter-spacing: .04em; }
.mon-values strong { display: block; font-family: var(--mono); font-size: 14px; font-weight: 500; margin-top: 1px; }
.mon-values strong em { font-size: 8px; color: var(--text-3); margin-left: 2px; }
.mon-spark { height: 42px; margin-top: 10px; }
.mon-spark canvas { width: 100%; height: 100%; display: block; }
.mon-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 9.5px; color: var(--text-4); }
.mon-foot .spacer { flex: 1; }
.signal { display: inline-flex; align-items: center; gap: 4px; }
.signal i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.signal.is-off i { background: var(--text-4); box-shadow: none; }

.monitor-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gauge-item { text-align: center; padding: 8px; }
.gauge-item canvas { width: 100%; height: 118px !important; max-height: 118px; }
.gauge-item strong { display: block; font-family: var(--mono); font-size: 20px; margin-top: -30px; }
.gauge-item span { font-size: 10px; color: var(--text-3); }

/* ---------------- 巡检 / 缺陷看板 ---------------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kanban-col { border-radius: 14px; border: 1px solid var(--line); background: rgba(7, 13, 23, .55); overflow: hidden; }
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); background: rgba(126, 170, 214, .035); }
.kanban-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.kanban-head .dot.is-warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.kanban-head .dot.is-danger { background: var(--red); box-shadow: 0 0 8px var(--red); }
.kanban-head .dot.is-success { background: var(--green); box-shadow: 0 0 8px var(--green); }
.kanban-head .n { margin-left: auto; min-width: 22px; height: 19px; padding: 0 7px; border-radius: 99px; background: rgba(126, 170, 214, .12); color: var(--text-2); font-family: var(--mono); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 120px; max-height: 620px; overflow-y: auto; }
.kanban-card {
    padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(19, 33, 55, .8), rgba(9, 16, 28, .9));
    cursor: pointer; transition: all .2s;
}
.kanban-card:hover { border-color: rgba(57, 230, 242, .3); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.kanban-card h4 { font-size: 12px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kanban-card .meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 9.5px; color: var(--text-4); flex-wrap: wrap; }
.kanban-card .foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(126, 170, 214, .09); font-size: 9.5px; color: var(--text-3); }
.kanban-card .foot .spacer { flex: 1; }
.kanban-empty { padding: 26px 10px; text-align: center; font-size: 10.5px; color: var(--text-4); }
.plan-card { padding: 17px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .82), rgba(8, 14, 24, .92)); transition: all .22s; }
.plan-card:hover { border-color: rgba(57, 230, 242, .25); }
.plan-head { display: flex; align-items: flex-start; gap: 10px; }
.plan-head h3 { font-size: 14px; font-weight: 600; }
.plan-head h3 a:hover { color: var(--cyan); }
.plan-code { font-family: var(--mono); font-size: 9.5px; color: var(--text-4); }
.plan-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 10.5px; color: var(--text-3); }
.plan-meta span { display: inline-flex; align-items: center; gap: 5px; }
.plan-meta i { color: var(--text-4); font-size: 9px; }
.plan-route { margin-top: 11px; padding: 9px 11px; border-radius: 8px; background: rgba(5, 10, 18, .5); border: 1px dashed rgba(126, 170, 214, .15); font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.plan-route i { color: var(--cyan); font-size: 9px; }
.plan-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.plan-foot .spacer { flex: 1; }
.plan-progress { display: flex; align-items: center; gap: 9px; margin-top: 11px; font-size: 10px; color: var(--text-3); }
.plan-progress .progress { flex: 1; }

/* ---------------- 工单 ---------------- */
.wo-card { position: relative; padding: 17px 19px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .82), rgba(8, 14, 24, .92)); transition: all .22s; }
.wo-card:hover { border-color: rgba(57, 230, 242, .28); transform: translateY(-2px); }
.wo-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--cyan); opacity: .5; }
.wo-card.is-urgent::before { background: var(--red); box-shadow: 0 0 10px var(--red); opacity: .8; }
.wo-head { display: flex; align-items: flex-start; gap: 10px; }
.wo-head h3 { font-size: 14px; font-weight: 600; }
.wo-head h3 a:hover { color: var(--cyan); }
.wo-code { font-family: var(--mono); font-size: 9.5px; color: var(--text-4); }
.wo-desc { margin-top: 7px; font-size: 11px; color: var(--text-3); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wo-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(126, 170, 214, .1); }
.wo-meta span { font-size: 9.5px; color: var(--text-4); display: block; }
.wo-meta b { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.wo-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.wo-foot .spacer { flex: 1; }

.flow-steps { display: flex; align-items: flex-start; gap: 0; margin: 6px 0 18px; }
.flow-step { flex: 1; position: relative; text-align: center; padding-top: 24px; font-size: 10px; color: var(--text-4); }
.flow-step::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--text-4); background: var(--bg-2); z-index: 1; }
.flow-step::after { content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 1px; background: rgba(126, 170, 214, .15); }
.flow-step:last-child::after { display: none; }
.flow-step.is-done { color: var(--text-2); }
.flow-step.is-done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 8px rgba(56, 224, 164, .6); }
.flow-step.is-done::after { background: rgba(56, 224, 164, .4); }
.flow-step.is-current { color: var(--cyan); }
.flow-step.is-current::before { border-color: var(--cyan); background: var(--bg-2); box-shadow: 0 0 0 4px rgba(57, 230, 242, .12), 0 0 12px var(--cyan); }
.flow-step em { display: block; font-size: 9px; color: var(--text-4); margin-top: 2px; }

/* ---------------- 备件 ---------------- */
.spare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spare-card { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .82), rgba(8, 14, 24, .92)); }
.spare-card.is-low { border-color: rgba(255, 95, 114, .24); }
.spare-top { display: flex; gap: 11px; align-items: flex-start; }
.spare-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: var(--amber); background: rgba(255, 182, 72, .09); border: 1px solid rgba(255, 182, 72, .2); }
.spare-top h3 { font-size: 13px; font-weight: 600; }
.spare-top h3 a:hover { color: var(--cyan); }
.spare-spec { font-size: 10px; color: var(--text-4); margin-top: 2px; }
.stock-line { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.stock-line strong { font-family: var(--mono); font-size: 25px; line-height: 1; }
.stock-line em { font-size: 10px; color: var(--text-3); padding-bottom: 2px; }
.stock-line .min { margin-left: auto; font-size: 9.5px; color: var(--text-4); }
.stock-bar { margin-top: 9px; }
.stock-tags { display: flex; align-items: center; gap: 7px; margin-top: 11px; }
.stock-tags .spacer { flex: 1; }
.supplier { font-size: 9.5px; color: var(--text-4); }

/* ---------------- 报表 ---------------- */
.report-hero { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.report-kpi { padding: 16px 17px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .78), rgba(8, 14, 24, .9)); }
.report-kpi span { font-size: 10.5px; color: var(--text-3); }
.report-kpi strong { display: block; font-family: var(--mono); font-size: 27px; margin-top: 4px; }
.report-kpi strong em { font-size: 10px; color: var(--text-3); font-family: var(--font); margin-left: 2px; }
.report-kpi .sub { margin-top: 3px; font-size: 9.5px; color: var(--text-4); }
.report-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.report-grid .span-4 { grid-column: span 4; }
.report-grid .span-5 { grid-column: span 5; }
.report-grid .span-6 { grid-column: span 6; }
.report-grid .span-7 { grid-column: span 7; }
.report-grid .span-8 { grid-column: span 8; }
.report-grid .span-12 { grid-column: span 12; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.rank-no { width: 19px; height: 19px; flex: none; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; background: rgba(126, 170, 214, .08); color: var(--text-3); }
.rank-item:nth-child(1) .rank-no { background: rgba(57, 230, 242, .16); color: var(--cyan); }
.rank-item:nth-child(2) .rank-no { background: rgba(79, 140, 255, .14); color: var(--blue); }
.rank-item:nth-child(3) .rank-no { background: rgba(255, 182, 72, .12); color: var(--amber); }
.rank-name { width: 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.rank-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(126, 170, 214, .1); overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); }
.rank-val { width: 52px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-2); }

/* ---------------- 详情弹窗内容 ---------------- */
.detail-hero { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.detail-hero .device-holo { width: 58px; height: 58px; font-size: 23px; border-radius: 15px; }
.detail-hero-main { flex: 1; min-width: 0; }
.detail-hero h2 { font-size: 20px; font-weight: 600; }
.detail-hero .sub { font-size: 10.5px; color: var(--text-4); font-family: var(--mono); margin-top: 3px; }
.detail-badges { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.detail-hero-side { display: flex; align-items: center; gap: 18px; }
.detail-kpi { text-align: center; }
.detail-kpi strong { display: block; font-family: var(--mono); font-size: 18px; }
.detail-kpi span { font-size: 9.5px; color: var(--text-3); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo-item { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #060c16; cursor: zoom-in; }
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 9px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.photo-item .hot { position: absolute; top: 7px; right: 7px; font-family: var(--mono); font-size: 9px; color: #fff; background: rgba(255, 95, 114, .85); padding: 1px 5px; border-radius: 4px; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.signal-card { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(6, 12, 21, .5); font-size: 11px; }
.signal-card i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.signal-card.is-off i { background: var(--text-4); box-shadow: none; }
.signal-card.is-off { color: var(--text-3); }

/* ---------------- 审批 ---------------- */
.approval-card { display: flex; gap: 14px; padding: 15px 17px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18, 31, 52, .75), rgba(8, 14, 24, .9)); margin-bottom: 10px; transition: all .2s; }
.approval-card:hover { border-color: rgba(57, 230, 242, .28); }
.approval-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: var(--cyan); background: rgba(57, 230, 242, .09); border: 1px solid rgba(57, 230, 242, .18); }
.approval-main { flex: 1; min-width: 0; }
.approval-main h3 { font-size: 13px; font-weight: 600; }
.approval-main h3 a:hover { color: var(--cyan); }
.approval-main .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; color: var(--text-4); margin-top: 5px; }
.approval-main .meta span { display: inline-flex; align-items: center; gap: 4px; }
.approval-side { display: flex; align-items: center; gap: 8px; }

/* ---------------- 搜索 ---------------- */
.search-head { margin-bottom: 20px; }
.search-big { display: flex; gap: 10px; max-width: 720px; }
.search-big .input { height: 46px; font-size: 14px; border-radius: 11px; }
.search-group { margin-bottom: 18px; }

/* ---------------- 403 ---------------- */
.forbidden-wrap { display: flex; align-items: center; justify-content: center; min-height: 62vh; }
.forbidden-card { text-align: center; max-width: 460px; padding: 40px; border-radius: 20px; border: 1px solid var(--line); background: rgba(10, 19, 33, .7); }
.forbidden-card .big { font-family: var(--mono); font-size: 64px; color: rgba(255, 182, 72, .5); line-height: 1; margin-bottom: 12px; }
.forbidden-card h2 { font-size: 20px; margin-bottom: 8px; }
.forbidden-card p { font-size: 12px; color: var(--text-3); line-height: 1.8; margin-bottom: 20px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1400px) {
    .monitor-strip { grid-template-columns: repeat(3, 1fr); }
    .report-hero { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
    .dash-grid .span-3, .dash-grid .span-4, .dash-grid .span-5,
    .dash-grid .span-6, .dash-grid .span-7, .dash-grid .span-8 { grid-column: span 12; }
    .dash-hero { grid-column: span 12; }
    .dash-todo { grid-column: span 12; }
    .monitor-bottom { grid-template-columns: 1fr; }
    .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-grid .span-4, .report-grid .span-5, .report-grid .span-6,
    .report-grid .span-7, .report-grid .span-8 { grid-column: span 12; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .dash-grid > .card,
    .dash-hero,
    .dash-todo { grid-column: span 12 !important; }
    .dash-hero-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .stat-grid { grid-template-columns: 1fr; }
    .monitor-strip { grid-template-columns: 1fr 1fr; }
    .report-hero { grid-template-columns: 1fr 1fr; }
    .kanban { grid-template-columns: 1fr; }
    .dash-hero { flex-direction: column; align-items: flex-start; }
    .dash-hero-metrics { grid-template-columns: 1fr 1fr; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }
    .kv-grid { grid-template-columns: 1fr; }
    .kv-grid .span-2 { grid-column: span 1; }
    .wo-meta { grid-template-columns: 1fr 1fr; }
    .flow-steps { overflow-x: auto; }
    .flow-step { min-width: 56px; font-size: 9px; }
}
