/* ==================== 后台PC端样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f0f7ff; color: #1A6FDB; font-size: 14px; overflow: hidden; }

/* 顶部栏 */
.admin-topbar { position: fixed; top: 0; left: 0; right: 0; height: 50px; background: #f0f7ff; border-bottom: 1px solid #B8D9FF; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1000; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-logo { font-size: 18px; font-weight: 700; color: #1A6FDB; display: flex; align-items: center; gap: 8px; }
.topbar-info { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #3B9DFE; }
.topbar-info span { display: flex; align-items: center; gap: 4px; }
.topbar-info .highlight { color: #1A6FDB; font-weight: 500; }
.topbar-time { font-family: 'Courier New', monospace; font-size: 15px; font-weight: 600; color: #1A6FDB; letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user { display: flex; align-items: center; gap: 8px; color: #1A6FDB; font-size: 13px; }
.topbar-user img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; }
.btn-logout { padding: 6px 16px; background: #ef4444; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.3s; }
.btn-logout:hover { background: #dc2626; }

/* 左侧导航 - 浅蓝色背景 */
.admin-sidebar { position: fixed; top: 50px; left: 0; width: 220px; bottom: 0; background: #bddbff !important; border-right: 1px solid #B8D9FF; overflow-y: auto; z-index: 999; }
.nav-menu { padding: 10px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #1A6FDB; text-decoration: none; font-size: 14px; transition: all 0.3s; border-left: 3px solid transparent; cursor: pointer; }
.nav-item:hover, .nav-item.active { background: rgba(59, 157, 254, 0.1); color: #3B9DFE; border-left-color: #3B9DFE; }
.nav-item .icon { font-size: 18px; width: 24px; text-align: center; }
.nav-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; min-width: 20px; text-align: center; }
.nav-divider { height: 1px; background: #B8D9FF; margin: 8px 16px; }

/* 主体内容 */
.admin-main { margin-left: 220px; margin-top: 50px; padding: 20px; height: calc(100vh - 50px); overflow-y: auto; background: #f0f7ff; }
.page-title { font-size: 24px; font-weight: 700; color: #1A6FDB; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: linear-gradient(135deg, #3B9DFE 0%, #1A6FDB 100%); border: 1px solid #3B9DFE; border-radius: 12px; padding: 20px; transition: all 0.3s; }
.stat-card:hover { transform: translateY(-2px); border-color: #3B9DFE; }
.stat-label { font-size: 13px; color: #1A6FDB; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 28px; font-weight: 700; color: #fff; }
.stat-change { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.stat-change.down { color: #ef4444; }

/* 图表区域 */
.chart-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }
.chart-card { background: #fff; border: 1px solid #B8D9FF; border-radius: 12px; padding: 20px; }
.chart-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.trend-chart { height: 240px; display: flex; align-items: flex-end; gap: 12px; padding: 10px 0; }
.trend-bar { flex: 1; background: linear-gradient(180deg, #3B9DFE 0%, #1A6FDB 100%); border-radius: 6px 6px 0 0; min-height: 20px; position: relative; transition: all 0.3s; }
.trend-bar:hover { opacity: 0.8; }
.trend-bar .label { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,0.8); white-space: nowrap; }
.trend-bar .value { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #3B9DFE; font-weight: 600; }

/* 列表卡片 */
.list-card { background: #fff; border: 1px solid #B8D9FF; border-radius: 12px; overflow: hidden; }
.list-header { padding: 16px 20px; border-bottom: 1px solid #B8D9FF; display: flex; justify-content: space-between; align-items: center; }
.list-header h3 { font-size: 16px; font-weight: 600; color: #1A6FDB; }
.list-body { padding: 0; }
.list-item { padding: 12px 20px; border-bottom: 1px solid #E8F4FF; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(59, 157, 254, 0.05); }
.list-rank { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.list-item:nth-child(1) .list-rank { background: #ef4444; color: #fff; }
.list-item:nth-child(2) .list-rank { background: #f97316; color: #fff; }
.list-item:nth-child(3) .list-rank { background: #eab308; color: #fff; }
.list-item .list-rank { background: #E8F4FF; color: #3B9DFE; }
.list-info { flex: 1; min-width: 0; }
.list-name { font-size: 14px; color: #1A6FDB; margin-bottom: 2px; }
.list-meta { font-size: 12px; color: #3B9DFE; }

/* 数据表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #E8F4FF; font-size: 13px; }
.data-table th { background: #E8F4FF; color: #1A6FDB; font-weight: 600; position: sticky; top: 0; }
.data-table td { color: #1A6FDB; }
.data-table tr:hover td { background: rgba(59, 157, 254, 0.05); }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.tag-pc { background: #3B9DFE; color: #fff; }
.tag-mobile { background: #1A6FDB; color: #fff; }
.tag-tablet { background: #3B9DFE; color: #fff; }

/* 响应式 */
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .chart-section { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; } .admin-sidebar.active { transform: translateX(0); } .admin-main { margin-left: 0; } .stats-grid { grid-template-columns: 1fr; } }