/* ============================================================
   华首科技充电平台管控中心 —— 深蓝主题（与运营平台同色系）
   依赖 hs.css 的变量与基础组件，这里只补充管控中心专属样式
   ============================================================ */

/* 管控中心整体：更深的蓝，青色作为强调色，与公司后台形成「层级差」 */
.plat-sidebar {
    background: linear-gradient(178deg, #03101f 0%, #07203f 52%, #0a2a52 100%);
}
.plat-sidebar .hs-brand .logo {
    background: linear-gradient(135deg, #22d3ee, #1d4ed8);
    box-shadow: 0 4px 14px rgba(34, 211, 238, .45);
}
.plat-sidebar .hs-nav .group-title { color: #5f8cbd; }
.plat-sidebar .hs-nav a.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, .26), rgba(37, 99, 235, .04));
    border-left-color: #22d3ee;
}
.plat-sidebar .hs-nav a:hover { background: rgba(34, 211, 238, .1); }

.plat-topbar {
    background: linear-gradient(90deg, #04152e, #0c3f77 60%, #0e4c8c);
}
.plat-topbar .role-tag { background: rgba(34, 211, 238, .26); color: #a5f3fc; }
.plat-topbar .avatar { background: linear-gradient(135deg, #22d3ee, #3b82f6); }

/* 管控中心登录页 */
.plat-auth {
    background:
        radial-gradient(1000px 560px at 8% -10%, rgba(34, 211, 238, .22), transparent 60%),
        radial-gradient(900px 520px at 98% 106%, rgba(37, 99, 235, .26), transparent 58%),
        linear-gradient(160deg, #020c19 0%, #061a33 46%, #0a2b57 100%);
}
.plat-auth .auth-intro h1 { letter-spacing: 1px; }
.plat-auth .key-chain {
    margin-top: 20px; font-size: 12px; color: #7ea3d1; line-height: 2;
}
.plat-auth .key-chain code {
    background: rgba(34, 211, 238, .12); color: #a5f3fc;
    padding: 1px 6px; border-radius: 4px; font-family: Consolas, monospace;
}

/* 状态点 */
.dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 6px; vertical-align: 1px;
}
.dot.on  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot.off { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, .16); }

/* 标签：管控中心专属 */
.tag.t-pending2 { background: #fff4e0; color: #b45309; }
.tag.t-cyan  { background: #e0f7fb; color: #0e7490; }
.tag.t-navy  { background: #e6edfa; color: var(--navy-700); }
.tag.t-commission { background: #f0e9ff; color: #6d28d9; }

/* 公司卡片（公司管理列表） */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.company-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; transition: box-shadow .16s, transform .16s;
}
.company-card:hover { box-shadow: 0 8px 24px rgba(10, 33, 69, .12); transform: translateY(-1px); }
.company-card .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.company-card .nm { font-size: 15px; font-weight: 700; color: var(--navy-800); line-height: 1.4; }
.company-card .no { font-size: 11.5px; color: var(--ink-3); font-family: Consolas, monospace; margin-top: 3px; }
.company-card .cc { font-size: 12px; color: var(--ink-2); font-family: Consolas, monospace; margin-top: 6px; }
.company-card .metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin: 13px 0 12px; padding: 11px 0;
    border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.company-card .metrics .k { font-size: 11px; color: var(--ink-3); }
.company-card .metrics .v {
    font-size: 15px; font-weight: 700; color: var(--navy-700);
    font-variant-numeric: tabular-nums;
}
.company-card .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 营业执照预览 */
.license-box {
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    background: #f7fafd; text-align: center; padding: 8px;
}
.license-box img { max-width: 100%; max-height: 300px; border-radius: 5px; display: block; margin: 0 auto; }
.license-box .ph { padding: 44px 12px; color: var(--ink-3); font-size: 13px; }

/* 营业执照信息表（两列键值） */
.biz-table { display: grid; grid-template-columns: 118px 1fr; gap: 0; font-size: 13.5px; }
.biz-table > div { padding: 8px 10px; border-bottom: 1px solid #eef3fa; }
.biz-table > div.k { color: var(--ink-3); background: #f8fbff; font-weight: 600; }
.biz-table > div.v { color: var(--ink); word-break: break-all; }

/* 上传区 */
.upload-zone {
    border: 1.5px dashed var(--line); border-radius: 9px;
    padding: 18px; text-align: center; background: #fafcff; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.upload-zone:hover { border-color: var(--blue-400); background: #f4f9ff; }
.upload-zone .ic { font-size: 26px; display: block; margin-bottom: 6px; opacity: .6; }
.upload-zone .t1 { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.upload-zone .t2 { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* 站点协议配置行 */
.proto-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
    background: #fff; margin-bottom: 9px;
}
.proto-row.req { border-color: #f6c26b; background: #fffdf7; }
.proto-row .nm { font-weight: 700; color: var(--navy-800); font-size: 13.5px; }
.proto-row .sn { font-size: 11.5px; color: var(--ink-3); font-family: Consolas, monospace; }
.proto-row .spacer { flex: 1; }
.proto-row select { width: auto; min-width: 168px; }

/* 地图上线卡 */
.map-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; padding: 15px 17px;
}
.map-card .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.map-card .nm { font-weight: 700; font-size: 14.5px; color: var(--navy-800); }
.map-card .addr { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.map-card .ch-row {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 0; border-top: 1px dashed var(--line); font-size: 13px;
}
.map-card .ch-row .spacer { flex: 1; }
.map-card .coord { font-family: Consolas, monospace; font-size: 12.5px; color: var(--navy-700); }

/* 二维码弹窗 */
.qr-wrap { text-align: center; }
.qr-wrap img { width: 260px; height: 260px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; }
.qr-wrap .url {
    margin-top: 12px; font-size: 12px; color: var(--ink-2);
    font-family: Consolas, monospace; word-break: break-all;
    background: #f4f8fe; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px;
}
.qr-wrap .tip { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; text-align: left; }

/* 抽成比例进度条 */
.rate-bar { height: 8px; background: #e5ecf6; border-radius: 5px; overflow: hidden; margin-top: 7px; }
.rate-bar > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #6d28d9, #22d3ee); }

/* 财务指标小卡 */
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.fin {
    background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px;
}
.fin .k { font-size: 12px; color: var(--ink-3); }
.fin .v {
    font-size: 21px; font-weight: 800; color: var(--navy-700);
    font-variant-numeric: tabular-nums; margin-top: 4px;
}
.fin .v small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.fin .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.fin.accent { background: linear-gradient(150deg, #061530, #0d3a70); border-color: transparent; }
.fin.accent .k { color: #93b7e0; }
.fin.accent .v { color: #fff; }
.fin.accent .sub { color: #93b7e0; }

/* 表格内的小字 */
table.hs td .sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* 分段切换 */
.seg {
    display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    background: #fff;
}
.seg button {
    border: none; background: transparent; padding: 6px 14px;
    font-size: 13px; color: var(--ink-2); cursor: pointer; font-family: inherit;
    border-right: 1px solid var(--line);
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--blue-500); color: #fff; font-weight: 600; }

/* 移动端（扫码 H5 落地页） */
.m-page {
    max-width: 520px; margin: 0 auto; min-height: 100vh;
    background: var(--bg); padding-bottom: 84px;
}
.m-head {
    background: linear-gradient(150deg, #04101f, #0d3a70);
    color: #fff; padding: 20px 18px 24px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 20px rgba(6, 21, 48, .22);
}
.m-head .t1 { font-size: 19px; font-weight: 700; }
.m-head .t2 { font-size: 12.5px; color: #9dc0e8; margin-top: 5px; line-height: 1.7; }
.m-head .stat-row { display: flex; gap: 22px; margin-top: 16px; }
.m-head .stat-row .c .k { font-size: 11px; color: #8fb4dd; }
.m-head .stat-row .c .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-body { padding: 14px; }
.m-gun {
    background: #fff; border: 1px solid var(--line); border-radius: 11px;
    padding: 13px 15px; margin-bottom: 11px;
}
.m-gun .top { display: flex; align-items: center; justify-content: space-between; }
.m-gun .nm { font-weight: 700; font-size: 14.5px; color: var(--navy-800); }
.m-gun .sn { font-size: 11.5px; color: var(--ink-3); font-family: Consolas, monospace; }
.m-gun .row { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.m-gun .row b { font-variant-numeric: tabular-nums; color: var(--navy-700); }
.m-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    max-width: 520px; margin: 0 auto;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    padding: 10px 14px; display: flex; gap: 10px; align-items: center;
    backdrop-filter: blur(8px);
}
.m-bar .btn { flex: 1; justify-content: center; }
.m-live {
    background: linear-gradient(90deg, #061530, #0d3a70);
    color: #fff; border-radius: 11px; padding: 13px 15px; margin-bottom: 12px;
}
.m-live .k { font-size: 11.5px; color: #93b7e0; }
.m-live .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-live .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
@media (max-width: 760px) {
    .company-grid { grid-template-columns: 1fr; }
    .biz-table { grid-template-columns: 96px 1fr; }
}
