* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif; background: #f0f2f5; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-box { background: #fff; border-radius: 12px; padding: 40px; width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.login-header { text-align: center; margin-bottom: 30px; }
.login-icon { font-size: 48px; }
.login-header h2 { font-size: 20px; color: #303133; margin-top: 8px; }
.login-form .el-button { margin-top: 8px; }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #304156; transition: width 0.3s; flex-shrink: 0; }
.admin-sidebar.collapsed { width: 64px; }
.sidebar-header { height: 60px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-header { height: 60px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.user-info { cursor: pointer; font-size: 14px; color: #606266; display: flex; align-items: center; gap: 8px; }
.admin-content { flex: 1; padding: 20px; overflow-y: auto; }

/* Page Header */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-header h3 { font-size: 18px; color: #303133; }

/* Filter Bar */
.filter-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Stat Cards */
.stat-cards { margin-bottom: 4px; }
.stat-card { text-align: center; padding: 8px 0; }
.stat-num { font-size: 28px; font-weight: 700; color: #409eff; }
.stat-card.stat-revenue .stat-num { color: #67c23a; }
.stat-num.warn { color: #e6a23c; }
.stat-label { font-size: 13px; color: #909399; margin-top: 4px; }

/* Chart */
.chart-container { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding-bottom: 20px; overflow-x: auto; }
.bar-item { display: flex; flex-direction: column; align-items: center; min-width: 20px; flex: 1; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 20px; background: linear-gradient(180deg, #409eff, #79bbff); border-radius: 3px 3px 0 0; min-height: 2px; transition: height 0.3s; }
.bar-label { font-size: 9px; color: #c0c4cc; margin-top: 4px; transform: rotate(-45deg); white-space: nowrap; }

/* Ranking */
.rank-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.rank-item:last-child { border: none; }
.rank-num { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: #c0c4cc; }
.rank-num.r1 { background: #f56c6c; }
.rank-num.r2 { background: #e6a23c; }
.rank-num.r3 { background: #409eff; }
.rank-name { flex: 1; font-size: 13px; }
.rank-value { font-size: 13px; color: #909399; }

/* Calendar */
.calendar-view { background: #fff; border-radius: 8px; padding: 20px; }
.calendar-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.calendar-title { font-size: 18px; font-weight: 600; min-width: 120px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekday { text-align: center; font-weight: 600; padding: 8px; color: #606266; border-bottom: 2px solid #f0f0f0; }
.cal-day { min-height: 80px; border: 1px solid #f0f0f0; border-radius: 4px; padding: 4px; position: relative; }
.cal-day.empty { background: #fafafa; }
.cal-day.today { background: #ecf5ff; border-color: #409eff; }
.cal-date { font-size: 12px; color: #909399; }
.cal-event { font-size: 11px; padding: 2px 4px; border-radius: 3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-event.status-0 { background: #fdf6ec; color: #e6a23c; border: 1px dashed #e6a23c; }
.cal-event.status-1 { background: #f0f9eb; color: #67c23a; }
.cal-event.status-2 { background: #fef0f0; color: #f56c6c; }
.cal-event.status-3 { background: #f4f4f5; color: #909399; }

/* El Menu overrides */
.el-menu { border-right: none !important; }

/* ===== Ad Preview ===== */
.preview-mock-page { border: 1px solid #e4e7ed; border-radius: 8px; overflow: hidden; background: #f5f7fa; }
.mock-header { display: flex; align-items: center; height: 48px; background: #fff; padding: 0 20px; border-bottom: 1px solid #ebeef5; }
.mock-hero { text-align: center; padding: 24px 20px; background: linear-gradient(135deg, #f0f5ff, #e8ecff); border-bottom: 1px solid #ebeef5; display: flex; flex-direction: column; align-items: center; }
.mock-body { display: flex; gap: 0; background: #fff; }
.mock-content { flex: 1; padding: 16px; min-width: 0; }
.mock-sidebar { width: 260px; flex-shrink: 0; padding: 16px; border-left: 1px solid #f0f0f0; }
.mock-cat-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mock-cat-tab { font-size: 12px; padding: 4px 10px; border-radius: 4px; background: #f5f7fa; color: #909399; cursor: default; }
.mock-cat-tab.active { background: #409eff; color: #fff; }
.mock-tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mock-tool-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #f0f0f0; border-radius: 6px; background: #fafafa; }
.mock-tool-logo { width: 32px; height: 32px; border-radius: 6px; background: #409eff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.mock-sidebar-card { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 6px; padding: 12px; margin-bottom: 12px; }
.mock-footer { text-align: center; padding: 16px; font-size: 12px; color: #c0c4cc; background: #303133; }

.mock-ad-zone { position: relative; }
.mock-zone-label { position: absolute; top: -10px; left: 8px; z-index: 1; display: flex; align-items: center; }
.mock-banner-zone { margin: 12px 0; text-align: center; padding-top: 6px; }
.mock-ad-banner { display: inline-flex; align-items: center; justify-content: center; background: #fef9e7; border: 2px dashed #e6a23c; border-radius: 6px; padding: 8px 16px; text-decoration: none; overflow: hidden; }
.mock-ad-cat-top { display: flex; align-items: center; justify-content: center; background: #fef9e7; border: 2px dashed #e6a23c; border-radius: 6px; padding: 8px 16px; text-decoration: none; }
.mock-sidebar-ad-zone { margin-bottom: 12px; padding-top: 6px; }
.mock-sidebar-ad { display: flex; align-items: center; justify-content: center; background: #fef9e7; border: 2px dashed #e6a23c; border-radius: 6px; padding: 8px; text-decoration: none; }
.mock-ad-text-only { font-size: 15px; font-weight: 600; color: #e6a23c; padding: 8px 20px; }
.mock-popup-overlay { position: relative; background: rgba(0,0,0,0.3); padding: 40px 20px; display: flex; align-items: center; justify-content: center; }
.mock-popup { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); position: relative; }
.mock-popup::before { content: '✕'; position: absolute; top: 4px; right: 8px; font-size: 16px; color: #c0c4cc; cursor: default; }
