* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background:#f2f4f7; color:#24292f; font-size:14px; }
a { color:#0b6bcb; text-decoration:none; }
a:hover { text-decoration:underline; }

.topnav { background:#1c2b3a; color:#fff; display:flex; align-items:center; padding:0 20px; height:48px; gap:18px; position:sticky; top:0; z-index:99; }
.topnav .brand { color:#ffd166; font-weight:700; font-size:16px; }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links a { color:#d9e2ec; padding:6px 12px; border-radius:6px; font-size:14px; }
.nav-links a:hover { background:#2e4157; text-decoration:none; }
.nav-links a.active { background:#0b6bcb; color:#fff; }
.badge { background:#e5534b; color:#fff; border-radius:9px; padding:0 6px; font-size:11px; margin-left:2px; }
.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#fff; min-width:130px; box-shadow:0 6px 18px rgba(0,0,0,.15); border-radius:8px; padding:6px; z-index:100; }
.dropdown:hover .dropdown-menu { display:block; }
.dropdown-menu a { display:block; color:#24292f !important; padding:7px 12px; border-radius:6px; }
.dropdown-menu a:hover { background:#eef3f8; }
.warn-link { color:#c93c37 !important; }

.container { max-width:1280px; margin:18px auto 60px; padding:0 20px; }
.card { background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.08); padding:18px; margin-bottom:16px; }
.card h2 { font-size:16px; margin-bottom:12px; }
.page-title { font-size:20px; font-weight:700; margin:6px 0 14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.subtitle { color:#57606a; font-size:13px; font-weight:400; }

table.list { width:100%; border-collapse:collapse; }
table.list th { text-align:left; font-size:12px; color:#57606a; border-bottom:2px solid #d8dee4; padding:8px 8px; white-space:nowrap; }
table.list td { border-bottom:1px solid #eaeef2; padding:8px; vertical-align:top; }
table.list tr:hover td { background:#f6f9fc; }

.tag { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; white-space:nowrap; }
.cat-E { background:#e2f5e9; color:#1a7f37; }
.dev-已开发, .cat-B { background:#ddf4ff; color:#0969da; }
.dev-断联, .cat-C { background:#e7ebef; color:#57606a; }
.cat-A { background:#ffebe9; color:#c93c37; font-weight:600; }
.cat-D { background:#f1e8ff; color:#6f42c1; }
.stage { background:#f7f1ff; color:#6639ba; }

/* ── 看板 ── */
.kanban { display:flex; gap:10px; align-items:flex-start; overflow-x:auto; padding-bottom:20px; }
.kcol { min-width:200px; width:220px; flex:0 0 auto; background:#eaeef2; border-radius:10px; padding:8px; }
.kcol-head { display:flex; justify-content:space-between; align-items:center; padding:2px 4px; }
.kcol-title { font-weight:700; font-size:13px; }
.kcol-count { background:#fff; border-radius:10px; padding:0 8px; font-size:12px; color:#57606a; }
.kcol-sub { font-size:11px; color:#8c959f; padding:0 4px 6px; }
.kcol-body { min-height:60px; max-height:62vh; overflow-y:auto; border-radius:8px; }
.kcard { background:#fff; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.12); padding:8px 10px; margin:6px 4px; cursor:grab; border-left:3px solid #d0d7de; }
.kcard:active { cursor:grabbing; }
.kcard.cat-A { border-left-color:#c93c37; }
.kcard.cat-B { border-left-color:#0969da; }
.kcard.cat-C { border-left-color:#8c959f; }
.kcard.cat-D { border-left-color:#6f42c1; }
.kcard.cat-E { border-left-color:#1a7f37; }
.kcard-name { font-size:13px; color:#24292f !important; }
.kcard-meta { display:flex; gap:6px; align-items:center; margin-top:4px; flex-wrap:wrap; }
.kcard-next { font-size:11px; color:#9a6700; margin-top:3px; }
.kcol-body.dragover { background:#dce9f7 !important; }
.region-tag { background:#fff1cf; color:#9a6700; }
.tier-tag { background:#e2f5e9; color:#1a7f37; }
.dealer { background:#ffd8b3; color:#953800; }
.black { background:#2d1b1b; color:#ffb3ae; }
.muted { color:#8c959f; font-size:12px; }

.btn { display:inline-block; background:#0b6bcb; color:#fff !important; border:none; border-radius:6px; padding:7px 14px; font-size:13px; cursor:pointer; }
.btn:hover { background:#0857a6; text-decoration:none; }
.btn.gray { background:#6e7781; }
.btn.gray:hover { background:#57606a; }
.btn.red { background:#c93c37; }
.btn.green { background:#1a7f37; }
.btn.sm { padding:3px 9px; font-size:12px; }
input[type=text], input[type=date], select, textarea { border:1px solid #d0d7de; border-radius:6px; padding:6px 8px; font-size:13px; font-family:inherit; }
textarea { width:100%; }
.filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }

.stat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:16px; }
.stat { background:#fff; border-radius:10px; padding:14px 16px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.stat .num { font-size:26px; font-weight:700; }
.stat .lbl { color:#57606a; font-size:12px; }
.stat.hl .num { color:#0b6bcb; }

#worldmap { width:100%; height:560px; }
.map-legend { display:flex; gap:10px; flex-wrap:wrap; margin:10px 0; }
.map-legend .lg { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:#57606a; cursor:pointer; padding:2px 8px; border-radius:10px; border:1px solid transparent; }
.map-legend .lg:hover { border-color:#d0d7de; }
.lg .sw { width:12px; height:12px; border-radius:3px; display:inline-block; }
.seg { display:inline-flex; border:1px solid #d0d7de; border-radius:8px; overflow:hidden; }
.seg button { border:none; background:#fff; padding:6px 16px; cursor:pointer; font-size:13px; }
.seg button.active { background:#0b6bcb; color:#fff; }

.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.kv { display:grid; grid-template-columns:110px 1fr; row-gap:8px; column-gap:10px; font-size:13px; }
.kv .k { color:#57606a; }
.timeline { list-style:none; }
.timeline li { padding:8px 0 8px 18px; border-left:2px solid #d0d7de; position:relative; }
.timeline li::before { content:''; position:absolute; left:-6px; top:14px; width:10px; height:10px; border-radius:50%; background:#0b6bcb; }
.timeline .t-date { color:#8c959f; font-size:12px; }
.banner { border-radius:8px; padding:10px 14px; margin:8px 0; font-size:13px; }
.banner.warn { background:#fff8c5; border:1px solid #d4a72c; }
.stagebar { display:flex; gap:4px; flex-wrap:wrap; }
.stagebar .st { padding:4px 10px; border-radius:14px; font-size:12px; background:#e7ebef; color:#8c959f; }
.stagebar .st.done { background:#cde7ff; color:#0550ae; }
.stagebar .st.cur { background:#0b6bcb; color:#fff; font-weight:600; }
.section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.inline-form { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.filelist li { padding:6px 0; border-bottom:1px dashed #eaeef2; list-style:none; display:flex; gap:8px; align-items:center; }
.pagination { margin:14px 0; display:flex; gap:6px; }
.pagination a, .pagination span { padding:5px 11px; border:1px solid #d0d7de; border-radius:6px; font-size:13px; }
.pagination span.cur { background:#0b6bcb; color:#fff; border-color:#0b6bcb; }
.flash { background:#e2f5e9; border:1px solid #1a7f37; color:#1a7f37; border-radius:8px; padding:10px 14px; margin-bottom:12px; }
.toast { position:fixed; right:20px; bottom:24px; background:#1c2b3a; color:#fff; padding:12px 18px; border-radius:8px; display:none; z-index:200; max-width:420px; font-size:13px; }
.toast.err { background:#c93c37; }
.hint { color:#8c959f; font-size:12px; }
.mono { font-family:Menlo,Consolas,monospace; font-size:12px; }

/* ── 数据看板 ── */
.chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.chart-card h2 { font-size:14px; color:#57606a; }
.chart { width:100%; height:300px; }
@media (max-width: 900px){ .chart-grid { grid-template-columns:1fr; } }
