/* ------------------------------------------------------------------
 * 杭州坚盾信息技术有限公司 · 设备管理平台
 * PC 控制台 / 登录页样式（蓝色主调）
 * ------------------------------------------------------------------ */
:root {
    --primary: #1f6feb;
    --primary-600: #1a5fd0;
    --primary-700: #134ba8;
    --primary-50: #eaf2fe;
    --primary-100: #dbe8fd;
    --text: #0f1b2d;
    --text-2: #46586f;
    --muted: #6b7c93;
    --border: #e6edf6;
    --bg: #f4f7fc;
    --danger: #e5484d;
    --warn: #e08b00;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

/* ==================================================================
 * 登录页
 * ================================================================== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(70% 60% at 12% 4%, #e4eefc 0%, rgba(228, 238, 252, 0) 60%),
        radial-gradient(60% 55% at 92% 96%, #e8f0fd 0%, rgba(232, 240, 253, 0) 58%),
        #f6f9fe;
}

.lg-wrap { width: 100%; max-width: 1040px; }

.lg-card {
    display: grid;
    grid-template-columns: 1fr 424px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px -40px rgba(9, 32, 74, .45), 0 2px 8px rgba(9, 32, 74, .04);
}

/* 左侧品牌面板 */
.lg-left {
    position: relative;
    overflow: hidden;
    padding: 42px 44px 34px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(90% 70% at 92% 0%, rgba(112, 184, 255, .5), transparent 62%),
        linear-gradient(158deg, #06224a 0%, #0d4a9e 54%, #1f6feb 100%);
}
.lg-left::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 300px;
    height: 345px;
    background: rgba(255, 255, 255, .06);
    clip-path: polygon(50% 0%, 100% 16%, 100% 55%, 50% 100%, 0 55%, 0 16%);
}
.lg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    z-index: 1;
}
.lg-brand small { display: block; font-size: 11px; font-weight: 400; opacity: .72; letter-spacing: .06em; }
.lg-left h1 {
    margin: 46px 0 0;
    font-size: 34px;
    line-height: 1.34;
    letter-spacing: -.02em;
    font-weight: 680;
    position: relative;
    z-index: 1;
}
.lg-left h1 em { font-style: normal; color: #a8d3ff; }
.lg-left .lg-sub {
    margin: 12px 0 0;
    font-size: 13.5px;
    opacity: .85;
    position: relative;
    z-index: 1;
}
.lg-feats { margin: 34px 0 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.lg-feats li { display: flex; align-items: flex-start; gap: 12px; }
.lg-feats .ic {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lg-feats b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.lg-feats small { display: block; font-size: 12px; opacity: .78; }
.lg-foot {
    margin-top: auto;
    padding-top: 34px;
    font-size: 11.5px;
    opacity: .68;
    position: relative;
    z-index: 1;
}

/* 右侧表单 */
.lg-right { padding: 48px 44px 40px; display: flex; align-items: center; }
.lg-form { width: 100%; }
.lg-form-hd h2 { margin: 0; font-size: 24px; font-weight: 680; letter-spacing: -.01em; }
.lg-form-hd p { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }

.lg-label {
    display: block;
    font-size: 12.5px;
    color: var(--text-2);
    margin: 24px 0 8px;
}
.lg-input {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 14px;
    background: #f7fafe;
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.lg-input:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}
.lg-input .pre {
    font-size: 13.5px;
    color: var(--muted);
    padding-right: 10px;
    margin-right: 2px;
    border-right: 1px solid var(--border);
}
.lg-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    letter-spacing: .01em;
}
.lg-input input::placeholder { color: #b3bfd0; font-size: 13.5px; letter-spacing: 0; }
.lg-send {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    padding-left: 12px;
    margin-left: 6px;
    border-left: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
}
.lg-send:disabled { color: #b3bfd0; cursor: default; }

.lg-err { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--danger); }

.lg-submit {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2b7bf5, #1a5fd0);
    color: #fff;
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 12px 24px -14px rgba(26, 95, 208, .9);
    transition: transform .12s, opacity .12s;
}
.lg-submit:hover { opacity: .95; }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:disabled { opacity: .6; cursor: default; }

.lg-tip {
    margin-top: 18px;
    font-size: 11.5px;
    line-height: 1.8;
    color: #93a1b5;
}
.lg-debug {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #fff8e8;
    border: 1px solid #ffe7bb;
    color: #96660a;
    font-size: 12px;
}
.lg-notice {
    margin-top: 14px;
    padding: 10px 13px;
    border-radius: 10px;
    background: #eaf2fe;
    border: 1px solid #d3e3fb;
    color: #134ba8;
    font-size: 12.5px;
    line-height: 1.7;
}
.lg-notice.warn {
    background: #fff7f5;
    border-color: #ffdcd2;
    color: #b3401f;
}

.lg-copy {
    margin-top: 20px;
    text-align: center;
    font-size: 11.5px;
    color: #9aa8bb;
}

/* ==================================================================
 * 控制台框架
 * ================================================================== */
.c-body { min-height: 100vh; }

.c-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 244px;
    display: flex;
    flex-direction: column;
    color: #dce8f8;
    background:
        radial-gradient(80% 40% at 90% 0%, rgba(64, 139, 240, .34), transparent 60%),
        linear-gradient(180deg, #07244c 0%, #0a3468 55%, #0b3d7a 100%);
    z-index: 20;
}
.c-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    color: #fff;
}
.c-brand .txt { display: flex; flex-direction: column; line-height: 1.35; }
.c-brand .txt b { font-size: 14.5px; font-weight: 650; letter-spacing: .01em; }
.c-brand .txt small { font-size: 10.5px; opacity: .62; letter-spacing: .04em; }

.c-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.c-nav::-webkit-scrollbar { width: 4px; }
.c-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.c-nav-t {
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(220, 232, 248, .48);
    padding: 16px 10px 7px;
}
.c-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 10px;
    margin-bottom: 2px;
    border-radius: 9px;
    font-size: 13.5px;
    color: #ccdcf0;
    position: relative;
    transition: background .14s, color .14s;
}
.c-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.c-nav a.on {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-weight: 500;
}
.c-nav a.on::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: #6cb2ff;
}
.c-nav a .txt {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.c-nav a .st {
    font-size: 10.5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #eaf3ff;
}
.c-nav a .st.alarm { background: rgba(229, 72, 77, .9); }
.c-nav-empty { padding: 6px 10px; font-size: 12px; color: rgba(220, 232, 248, .5); }

.c-side-foot {
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.c-me { display: flex; align-items: center; gap: 10px; }
.c-me .av {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
}
.c-me .av img { width: 100%; height: 100%; object-fit: cover; }
.c-me .n { font-size: 13px; color: #fff; line-height: 1.35; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-me .p { font-size: 11.5px; color: rgba(220, 232, 248, .62); }
.c-logout {
    display: block;
    margin-top: 12px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12.5px;
    color: #d6e4f6;
}
.c-logout:hover { background: rgba(255, 255, 255, .08); }

/* 主区 */
.c-main { margin-left: 244px; min-height: 100vh; display: flex; flex-direction: column; }
.c-top {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.c-top-l { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.c-top-l h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top-l .desc { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.c-top-r { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.c-top-r .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #12a150;
    display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(18, 161, 80, .12);
}

.c-content { padding: 22px 28px 40px; max-width: 1320px; width: 100%; }

/* ==================================================================
 * 通用组件
 * ================================================================== */
.c-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.c-page-head h2 { margin: 0; font-size: 22px; font-weight: 680; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.c-page-head .sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.c-card {
    background: #fff;
    border: 1px solid #eaf0f8;
    border-radius: 16px;
    box-shadow: 0 10px 30px -26px rgba(9, 32, 74, .4);
}
.c-card + .c-card { margin-top: 16px; }
.c-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
}
.c-card-hd .t { font-size: 14.5px; font-weight: 650; }
.c-card-hd .x { font-size: 12px; color: var(--muted); }
.c-card-bd { padding: 0 20px 18px; }

/* 统计卡 */
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.c-stat {
    background: #fff;
    border: 1px solid #eaf0f8;
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -26px rgba(9, 32, 74, .4);
}
.c-stat::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -26px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--primary-50);
    opacity: .8;
}
.c-stat .k { font-size: 12.5px; color: var(--muted); position: relative; z-index: 1; }
.c-stat .v { font-size: 30px; font-weight: 700; line-height: 1.25; margin-top: 4px; color: var(--primary-700); position: relative; z-index: 1; letter-spacing: -.02em; }
.c-stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.c-stat.alert .v { color: var(--danger); }
.c-stat.alert::after { background: #fdeeee; }
.c-stat .u { font-size: 12px; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }

/* 区域卡片网格 */
.c-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-region {
    display: block;
    background: #fff;
    border: 1px solid #eaf0f8;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 30px -28px rgba(9, 32, 74, .5);
    transition: transform .16s, box-shadow .16s, border-color .16s;
    position: relative;
    overflow: hidden;
}
.c-region::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), rgba(31, 111, 235, .18));
}
.c-region:hover {
    transform: translateY(-2px);
    border-color: var(--primary-100);
    box-shadow: 0 20px 40px -30px rgba(13, 74, 158, .55);
}
.c-region-top { display: flex; align-items: flex-start; gap: 10px; }
.c-region .name { flex: 1; font-size: 15px; font-weight: 650; line-height: 1.45; word-break: break-all; }
.c-region .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.c-region .nums div { background: #f6f9fe; border-radius: 10px; padding: 8px 4px; text-align: center; }
.c-region .nums b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.c-region .nums b.red { color: var(--danger); }
.c-region .nums span { font-size: 11px; color: var(--muted); }
.c-region .foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5fa;
    font-size: 12.5px;
    color: var(--primary-700);
}
.c-region .foot .arr { color: #c3cfdf; }

/* 徽标 */
.c-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
    background: #94a3b8;
    white-space: nowrap;
}
.c-badge.s0 { background: #94a3b8; }
.c-badge.s1 { background: var(--primary); }
.c-badge.s2 { background: #0f8bb0; }
.c-badge.s3 { background: var(--danger); }
.c-badge.s4, .c-badge.s5 { background: #94a3b8; }
.c-badge.soft { background: var(--primary-50); color: var(--primary-700); }
.c-badge.soft.red { background: #fdeeee; color: #b42318; }
.c-badge.soft.gray { background: #f1f4f9; color: #6b7c93; }

/* 按钮 */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: opacity .14s, background .14s;
}
.c-btn:hover { opacity: .92; }
.c-btn.ghost { background: var(--primary-50); color: var(--primary-700); }
.c-btn.line { background: #fff; border-color: #dde6f2; color: var(--text-2); }
.c-btn.line:hover { border-color: #c6d6ea; background: #fafcff; }
.c-btn.danger { background: var(--danger); }
.c-btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.c-btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.c-btn-group { display: flex; gap: 8px; }

/* 区域页签 */
.c-tabs {
    display: flex;
    gap: 4px;
    padding: 0 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.c-tabs a {
    position: relative;
    padding: 11px 14px;
    font-size: 13.5px;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.c-tabs a:hover { color: var(--primary-700); }
.c-tabs a.on { color: var(--primary-700); border-bottom-color: var(--primary); font-weight: 600; }

/* 表格 */
.c-table { width: 100%; border-collapse: collapse; }
.c-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    padding: 11px 14px;
    background: #f8fafd;
    border-bottom: 1px solid #eef3fa;
    white-space: nowrap;
}
.c-table th:first-child { border-radius: 10px 0 0 0; }
.c-table th:last-child { border-radius: 0 10px 0 0; }
.c-table td {
    padding: 13px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f4f7fb;
    color: var(--text);
    vertical-align: middle;
}
.c-table tr:last-child td { border-bottom: 0; }
.c-table tbody tr:hover td { background: #fafcff; }
.c-table .muted { color: var(--muted); font-size: 12.5px; }
.c-table .ops { display: flex; gap: 8px; }

/* 日志列表 */
.c-logs { display: flex; flex-direction: column; }
.c-log {
    display: flex;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #f4f7fb;
}
.c-log:last-child { border-bottom: 0; }
.c-log .ic {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
    background: var(--primary-50); color: var(--primary-700);
    display: flex; align-items: center; justify-content: center;
}
.c-log.alarm .ic { background: #fdeeee; color: #b42318; }
.c-log .bd { flex: 1; min-width: 0; }
.c-log .txt { font-size: 13.5px; line-height: 1.55; word-break: break-all; }
.c-log.alarm .txt { color: var(--danger); }
.c-log .meta { margin-top: 3px; font-size: 11.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* 空态 */
.c-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.c-empty .ic { color: #c2cfe0; margin-bottom: 10px; display: flex; justify-content: center; }
.c-empty .t { font-size: 14px; color: var(--text-2); }
.c-empty .s { font-size: 12.5px; margin-top: 6px; color: #93a1b5; }

/* 提示条 */
.c-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: 10px;
    background: #eef4ff;
    color: #3a5480;
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}
.c-tip .k { font-weight: 600; }
.c-tip.red { background: #fdeeee; color: #b42318; }
.c-tip.warn { background: #fff8e8; color: #96660a; }
.c-tip .ic { flex: 0 0 auto; margin-top: 1px; }

/* 我的账号 */
.c-profile { display: flex; align-items: center; gap: 16px; padding: 22px 20px; }
.c-profile .av {
    width: 62px; height: 62px; flex: 0 0 62px; border-radius: 18px;
    background: linear-gradient(140deg, #eaf2fe, #d7e6fd);
    color: var(--primary-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 650;
    overflow: hidden;
}
.c-profile .av img { width: 100%; height: 100%; object-fit: cover; }
.c-profile h3 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.01em; }
.c-profile .p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.c-rows { border-top: 1px solid #f4f7fb; }
.c-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid #f4f7fb;
    font-size: 13.5px;
}
.c-row:last-child { border-bottom: 0; }
.c-row .k { color: var(--muted); font-size: 13px; }
.c-row .v { color: var(--text); }

/* 渠道列表 */
.c-channel { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f4f7fb; }
.c-channel:last-child { border-bottom: 0; }
.c-channel .mk {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    background: linear-gradient(140deg, #eaf2fe, #d7e6fd);
    color: var(--primary-700);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600;
}
.c-channel .nm { flex: 1; min-width: 0; }
.c-channel .nm b { font-size: 13.5px; font-weight: 600; }
.c-channel .nm > span { display: block; font-size: 11.5px; color: var(--muted); }

/* 工具类 */
.mt16 { margin-top: 16px; }
.mt18 { margin-top: 18px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* 响应式 */
@media (max-width: 1180px) {
    .c-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .lg-card { grid-template-columns: 1fr; }
    .lg-left { padding: 30px 28px; }
    .lg-left h1 { margin-top: 22px; font-size: 26px; }
    .lg-feats { margin-top: 20px; gap: 12px; }
    .lg-foot { padding-top: 20px; }
    .lg-right { padding: 32px 28px 36px; }
    .c-side { width: 76px; }
    .c-brand .txt, .c-me .n, .c-me .p, .c-logout span, .c-nav-t { display: none; }
    .c-nav a .txt, .c-nav a .st { display: none; }
    .c-nav a { justify-content: center; padding: 0; }
    .c-main { margin-left: 76px; }
}
@media (max-width: 720px) {
    .c-regions, .c-stats { grid-template-columns: 1fr; }
    .c-content { padding: 16px 14px 32px; }
    .c-top { padding: 0 16px; }
}

/* ---------------- 区域工作台补充 ---------------- */
.c-stats.three { grid-template-columns: repeat(3, 1fr); }
.c-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.c-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.c-toolbar .sync { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.c-toolbar .sync .dot { width: 6px; height: 6px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 3px rgba(18,161,80,.12); }

/* 防区状态点 */
.c-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; background: #94a3b8; vertical-align: 1px; }

/* 空的表格占位 */
.c-table-empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* toast */
.c-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(8px);
    padding: 11px 18px;
    border-radius: 10px;
    background: rgba(10, 22, 40, .92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 99;
    max-width: 70vw;
}
.c-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 日志面板切换 */
.c-panel { display: none; }
.c-panel.on { display: block; }

@media (max-width: 1180px) {
    .c-cols { grid-template-columns: 1fr; }
    .c-stats.three { grid-template-columns: repeat(2, 1fr); }
}
