* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2937; min-height: 100vh; }

/* 顶部导航 */
.top-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.top-bar h1 { font-size: 20px; font-weight: 600; color: #111827; }
.top-bar .update-time { font-size: 13px; color: #9ca3af; }

/* 筛选区域 */
.filter-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-bar label { font-size: 14px; color: #6b7280; font-weight: 500; }
.filter-bar input, .filter-bar select { height: 36px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 12px; font-size: 14px; color: #374151; background: #fff; outline: none; transition: border-color 0.2s; }
.filter-bar input:focus, .filter-bar select:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }
.filter-bar input[type="date"] { width: 160px; }
.filter-bar select { min-width: 180px; }
.filter-btn { height: 36px; padding: 0 20px; background: #3b82f6; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.filter-btn:hover { background: #2563eb; }
.filter-btn:disabled { background: #93c5fd; cursor: not-allowed; }
.filter-btn-secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.filter-btn-secondary:hover { background: #f9fafb; }

/* Tab 切换 */
.tab-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 0 32px; display: flex; gap: 0; }
.tab-item { padding: 12px 24px; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; user-select: none; }
.tab-item:hover { color: #3b82f6; }
.tab-item.active { color: #3b82f6; border-bottom-color: #3b82f6; }

/* 统计卡片 */
.stats-row { padding: 20px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px 24px; border: 1px solid #e5e7eb; }
.stat-card .stat-label { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #111827; }
.stat-card .stat-value.blue { color: #3b82f6; }
.stat-card .stat-value.green { color: #10b981; }
.stat-card .stat-value.amber { color: #f59e0b; }

/* 表格区域 */
.table-section { padding: 0 32px 32px; }
.table-card { background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th { background: #f9fafb; padding: 12px 20px; text-align: left; font-size: 13px; color: #6b7280; font-weight: 600; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
thead th.right { text-align: right; }
tbody tr { border-bottom: 1px solid #f3f4f6; transition: background 0.15s; }
tbody tr:hover { background: #f0f5ff; }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 14px 20px; font-size: 14px; color: #374151; }
tbody td.right { text-align: right; font-variant-numeric: tabular-nums; }
.rank-cell { width: 50px; text-align: center; color: #9ca3af; font-weight: 600; }
.rank-top { color: #f59e0b; }
.name-cell { font-weight: 600; color: #111827; }
.model-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; background: #ede9fe; color: #7c3aed; }
.num-highlight { font-weight: 700; color: #3b82f6; font-size: 16px; }
.rmb-highlight { font-weight: 700; color: #f59e0b; font-size: 16px; }
.bar-wrap { width: 100%; height: 6px; background: #f3f4f6; border-radius: 3px; margin-top: 4px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 3px; transition: width 0.5s ease; }

/* 汇总行 */
.summary-row { background: #f0f5ff !important; }
.summary-row td { font-weight: 700; color: #1e40af; border-top: 2px solid #3b82f6; }

/* 加载状态 */
.loading-wrap { text-align: center; padding: 80px 0; color: #9ca3af; font-size: 15px; }
.empty-wrap { text-align: center; padding: 60px 0; color: #9ca3af; font-size: 15px; }

/* 响应式 */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .top-bar, .filter-bar, .tab-bar, .stats-row, .table-section { padding-left: 16px; padding-right: 16px; }
}
