/* 公共样式 - 中豫港通 BI 看板 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 14px;
}

/* 顶部导航 */
.app-header {
  background: linear-gradient(90deg, #0c2c5b 0%, #1e3a8a 100%);
  color: #fff;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}
.app-logo-icon {
  width: 28px;
  height: 28px;
  background: #facc15;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c2c5b;
  font-weight: 700;
  font-size: 12px;
}
.nav-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-tab {
  padding: 8px 16px;
  border-radius: 6px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-tab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-tab.active {
  background: #facc15;
  color: #0c2c5b;
  font-weight: 600;
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 主内容 */
.app-main {
  padding: 20px 24px;
  max-width: 1920px;
  margin: 0 auto;
}
.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}
.page-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}

/* KPI 网格 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #1e3a8a;
}
.kpi-card.green::before { background: #16a34a; }
.kpi-card.amber::before { background: #f59e0b; }
.kpi-card.red::before { background: #dc2626; }
.kpi-card.cyan::before { background: #0891b2; }
.kpi-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  letter-spacing: -0.5px;
}
.kpi-unit {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 4px;
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}
.kpi-delta.up { background: #dcfce7; color: #166534; }
.kpi-delta.down { background: #fee2e2; color: #991b1b; }
.kpi-delta.flat { background: #f1f5f9; color: #475569; }

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* 表格 */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}
table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}
table.data-table tr:hover td {
  background: #f8fafc;
}
table.data-table .num {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  text-align: right;
}
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.status-tag.success { background: #dcfce7; color: #166534; }
.status-tag.warning { background: #fef3c7; color: #92400e; }
.status-tag.danger { background: #fee2e2; color: #991b1b; }
.status-tag.info { background: #dbeafe; color: #1e40af; }
.status-tag.gray { background: #f1f5f9; color: #475569; }

/* 区块 */
.section {
  margin-bottom: 20px;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #1e3a8a;
  border-radius: 2px;
}

/* 进度条 */
.progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-bar.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress-bar.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar.red { background: linear-gradient(90deg, #dc2626, #f87171); }

/* 数字格式 */
.mono { font-family: "SF Mono", "Monaco", "Consolas", monospace; }

/* 状态点 */
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot.green { background: #16a34a; }
.dot.amber { background: #f59e0b; }
.dot.red { background: #dc2626; }
.dot.blue { background: #2563eb; }
.dot.gray { background: #94a3b8; }

/* 趋势线 */
.trend-mini {
  height: 32px;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
}

/* 入场卡片链接（首页用） */
.entry-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.entry-card:hover {
  border-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,58,138,0.1);
}
.entry-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.entry-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}
.entry-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}
.entry-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.5;
  min-height: 36px;
}
.entry-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

/* 地图样式 */
.world-map {
  position: relative;
  width: 100%;
  height: 420px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 8px;
  overflow: hidden;
}
.map-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e3a8a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(30,58,138,0.3);
  cursor: pointer;
}
.map-node.hot { background: #dc2626; animation: pulse 2s infinite; }
.map-label {
  position: absolute;
  font-size: 11px;
  color: #0f172a;
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transform: translate(-50%, -150%);
  font-weight: 500;
}
.map-flow {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1e3a8a 50%, transparent 100%);
  transform-origin: 0 0;
  opacity: 0.5;
}

/* 工具类 */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #94a3b8; }
.text-success { color: #16a34a; }
.text-danger { color: #dc2626; }
.text-warning { color: #f59e0b; }
.text-primary { color: #1e3a8a; }
.text-bold { font-weight: 600; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 6px; }
.items-start { align-items: flex-start; }

/* 响应式 */
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
