/* 全国安防设备态势与动态 - 样式（单页长滚动版） */
html,body{margin:0;padding:0;background:#0b1020;color:#cfe3ff;font-family:"Microsoft YaHei",PingFang SC,sans-serif}
*{box-sizing:border-box}
body{min-height:100vh;overflow-x:hidden}
#app{display:flex;flex-direction:column;min-height:100vh}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;padding:12px 24px;border-bottom:1px solid rgba(80,140,255,.25);background:linear-gradient(90deg,rgba(15,28,64,.95),rgba(8,14,34,.95));backdrop-filter:blur(6px)}
.brand{display:flex;align-items:center;gap:14px}
.logo{font-size:28px;color:#39c5ff;text-shadow:0 0 12px #1a6cff;animation:logospin 8s linear infinite}
@keyframes logospin{0%{filter:drop-shadow(0 0 6px rgba(57,197,255,.8))}50%{filter:drop-shadow(0 0 14px rgba(127,255,212,.9))}100%{filter:drop-shadow(0 0 6px rgba(57,197,255,.8))}}
.brand h1{margin:0;display:flex;align-items:center;font-size:20px;letter-spacing:2px;color:#e8f3ff;text-shadow:0 0 14px rgba(57,197,255,.6)}
.brand h1 .t-bar{display:inline-block;width:4px;height:18px;margin-right:10px;border-radius:2px;background:linear-gradient(180deg,#39c5ff,#2f7dff);box-shadow:0 0 10px rgba(57,197,255,.9);font-style:normal}
.brand h1 .hl{background:linear-gradient(92deg,#39c5ff 10%,#7fffd4 90%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#39c5ff;font-style:normal;font-weight:800}
.brand h1 .t-en{font-style:normal;font-size:10px;font-weight:normal;letter-spacing:3px;color:#5d7fae;margin-left:12px;transform:translateY(-2px)}
.brand .sub{margin:2px 0 0;font-size:12px;color:#7fa8d9;letter-spacing:1px}
main{flex:1;padding:14px 24px 4px}
.sec{margin-bottom:16px}
.row-2col{display:flex;gap:12px;align-items:stretch}
.kpis{display:flex;gap:12px;flex-wrap:wrap}
.kpi{flex:1;min-width:150px;padding:10px 16px 12px;border:1px solid rgba(80,140,255,.28);border-radius:6px;background:linear-gradient(180deg,rgba(25,50,110,.45),rgba(12,24,60,.6));position:relative;overflow:hidden}
.kpi:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#39c5ff,#2f7dff)}
.kpi .k{font-size:12px;color:#8fb2e2}
.kpi .v{font-size:24px;font-weight:bold;color:#ffe66d;text-shadow:0 0 10px rgba(255,230,109,.4);font-family:Consolas,monospace}
.kpi .u{font-size:12px;color:#7fa8d9;margin-left:4px}
.kpi-note{font-size:10px;color:#5d7fae;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chart-wrap{border:1px solid rgba(80,140,255,.2);border-radius:8px;background:radial-gradient(ellipse at center,rgba(18,36,80,.55),rgba(8,14,34,.9));padding:6px}
.h-lg{height:600px}
.h-md{height:480px}
.chart{width:100%;height:100%}
/* 产业链：抓手光标暗示可拖拽平移 */
#chartChain{cursor:grab}
#chartChain:active{cursor:grabbing}
/* 产业资讯：卡片式头部 + 列表 */
.news-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 8px;border:1px solid rgba(80,140,255,.2);border-bottom:none;border-radius:8px 8px 0 0;background:radial-gradient(ellipse at center,rgba(18,36,80,.55),rgba(8,14,34,.9))}
.news-head .nh-left{font-size:16px;font-weight:bold;color:#e8f3ff}
.news-head .nh-left span{font-size:11px;color:#7fa8d9;font-weight:normal;margin-left:8px}
.news-head .nh-right{font-size:11px;color:#7fa8d9;display:flex;align-items:center;gap:6px}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 8px rgba(52,211,153,.9);animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.news-list{border:1px solid rgba(80,140,255,.2);border-top:none;border-radius:0 0 8px 8px;padding:10px 12px 2px;background:radial-gradient(ellipse at center,rgba(18,36,80,.35),rgba(8,14,34,.75))}
.news-item{border:1px solid rgba(80,140,255,.22);border-radius:6px;padding:12px 16px;margin-bottom:10px;background:rgba(16,32,72,.4)}
.news-item .n-title{font-size:15px;font-weight:bold;color:#e8f3ff}
.news-item .n-meta{font-size:12px;color:#7fa8d9;margin:4px 0 6px}
.news-item .n-meta .tag{display:inline-block;padding:1px 8px;margin-right:8px;border-radius:10px;background:rgba(57,197,255,.18);color:#39c5ff}
.news-item .n-content{font-size:13px;color:#b9d2f0;line-height:1.7}
.foot{padding:8px 24px 12px;font-size:11px;color:#5d7fae;text-align:center;border-top:1px solid rgba(80,140,255,.15)}
/* ---------- 通用表格（TOP20 / 技术动态 / 供应商） ---------- */
.tbl-wrap{padding:0;overflow:hidden}
.tbl-title{padding:16px 18px 10px;font-size:16px;font-weight:bold;color:#e8f3ff}
.tbl-title span{font-size:11px;color:#7fa8d9;font-weight:normal;margin-left:8px}
.tbl-scroll{height:560px;overflow:auto;padding:0 8px 8px}
.tbl-scroll.auto{height:auto;max-height:560px}
.tbl-scroll::-webkit-scrollbar{width:6px;height:6px}
.tbl-scroll::-webkit-scrollbar-thumb{background:rgba(80,140,255,.3);border-radius:3px}
/* 技术发展动态：在480px卡片内部滚动（表头吸顶） */
.tbl-wrap.h-md{display:flex;flex-direction:column}
.tbl-wrap.h-md>div{flex:1;min-height:0;display:flex;flex-direction:column}
.tbl-wrap.h-md .tbl-scroll{flex:1;min-height:0;height:auto;max-height:none}
.city-table{width:100%;border-collapse:collapse;font-size:13px}
.city-table th{position:sticky;top:0;background:#12224e;color:#8fb2e2;padding:8px 10px;text-align:left;font-weight:normal;border-bottom:1px solid rgba(80,140,255,.3);z-index:2}
.city-table td{padding:7px 10px;border-bottom:1px solid rgba(80,140,255,.1);color:#cfe3ff}
.city-table tbody tr:hover td{background:rgba(57,197,255,.08)}
.city-table .num{font-family:Consolas,monospace;text-align:right;white-space:nowrap}
.city-table .city{color:#e8f3ff;font-weight:bold;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* TOP20表格：固定布局+列宽，表格铺满整行，占比条弹性拉伸，窄屏时城市列略收窄 */
.city-table.top20{width:100%;table-layout:fixed}
.city-table.top20 td.city{max-width:none}
/* 供应商表格：列宽收紧，总宽约1100px，窄屏横向滚动 */
.city-table.vendor{min-width:1060px}
.city-table.vendor td.city{max-width:210px}
.city-table.vendor td.cat{color:#9fc3f2;font-size:12px}
.rank{display:inline-block;width:22px;height:22px;line-height:22px;text-align:center;border-radius:4px;background:rgba(80,140,255,.15);color:#8fb2e2;font-size:12px;font-family:Consolas,monospace}
.rank.r1{background:linear-gradient(135deg,#ffd700,#ff9f43);color:#1a1000;font-weight:bold}
.rank.r2{background:linear-gradient(135deg,#cfd8e3,#8fa3bd);color:#10182b;font-weight:bold}
.rank.r3{background:linear-gradient(135deg,#e8a56b,#b5651d);color:#1a1006;font-weight:bold}
.up{color:#7fffd4}
.down{color:#ff6b6b}
/* 标签 */
.tag{display:inline-block;padding:2px 10px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap}
.tag.c-blue{background:rgba(47,125,255,.18);color:#5ba3ff}
.tag.c-cyan{background:rgba(57,197,255,.16);color:#39c5ff}
.tag.c-green{background:rgba(52,211,153,.16);color:#34d399}
.tag.c-yellow{background:rgba(255,230,109,.14);color:#ffe66d}
.tag.c-orange{background:rgba(255,159,67,.16);color:#ff9f43}
.tag.c-purple{background:rgba(167,139,250,.16);color:#a78bfa}
.tag.c-gray{background:rgba(143,178,226,.12);color:#8fb2e2}
/* 占比进度条 */
.bar{background:rgba(80,140,255,.12);border-radius:3px;height:8px;position:relative;min-width:70px}
.bar>i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:linear-gradient(90deg,#1a6cff,#39c5ff)}
/* 简介列 */
.desc{font-size:12px;color:#8fb2e2;line-height:1.5;max-width:420px}
@media (max-width:1100px){
  .row-2col{flex-direction:column}
  .h-lg{height:520px}
  .brand h1{font-size:16px}
  .brand h1 .t-en{display:none}
  .kpi .v{font-size:18px}
  .city-table.top20 th:nth-child(2),.city-table.top20 td:nth-child(2){width:72px}
}