/* 站点统计管理页面样式 */
.marketing-analytics-wrap {
    margin: 20px 0;
}

.marketing-analytics-wrap h1 {
    font-size: 23px;
    font-weight: 400;
    margin: 0;
    padding: 9px 15px 4px 0;
    line-height: 1.3;
}

/* 统计概览卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.stat-card:nth-child(2) {
    border-left-color: #46b450;
}

.stat-card:nth-child(3) {
    border-left-color: #dc3232;
}

.stat-card:nth-child(4) {
    border-left-color: #ffb900;
}

.stat-card .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 8px;
    display: block;
}

.stat-card:nth-child(2) .stat-value {
    color: #46b450;
}

.stat-card:nth-child(3) .stat-value {
    color: #dc3232;
}

.stat-card:nth-child(4) .stat-value {
    color: #ffb900;
}

/* 图表容器 */
.chart-container {
    margin: 20px 0;
    position: relative;
    height: 400px;
}

/* 报告筛选器 */
.report-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.report-filters select,
.report-filters input[type="date"],
.report-filters input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}

.report-filters select {
    min-width: 180px;
}

.report-filters .date-range-group {
    display: flex;
    gap: 10px;
}

/* 表格样式 */
.marketing-analytics-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.marketing-analytics-table th,
.marketing-analytics-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ccd0d4;
}

.marketing-analytics-table th {
    font-weight: 600;
    background-color: #f9f9f9;
    padding: 10px;
    color: #23282d;
}

.marketing-analytics-table tr:last-child td {
    border-bottom: none;
}

.marketing-analytics-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.marketing-analytics-table tr:hover {
    background-color: #f0f0f1;
}

/* 响应式表格 */
@media screen and (max-width: 782px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .report-filters .date-range-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .marketing-analytics-table {
        display: block;
        overflow-x: auto;
    }
}

/* 数据展示区域 */
.report-output {
    min-height: 300px;
    padding: 10px 0;
}

/* 统计分布卡片 */
.distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

.distribution-card {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    text-align: center;
}

.distribution-card strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.distribution-card::first-line {
    font-weight: 600;
}

/* 图表画布样式 */
.chart-canvas {
    width: 100% !important;
    max-width: 800px;
    height: 400px !important;
}