@import url('../douyin_work/styles.css');

/* 公众号流量数据页面补充样式，全面对齐mp_work页面 */
.header {
    text-align: center;
    color: rgb(0, 0, 0);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
    justify-items: stretch;
}
.stat-card {
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .stats-cards {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }
    .stat-card {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 600px) {
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card h3,
.stat-card .value {
    font-size: clamp(12px, 3vw, 18px);
}

.filter-bar {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.filter-bar .date-filter {
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.date-filter input[type="date"] {
    padding: 3px 6px;
    font-size: 13px;
    border-radius: 6px;
    min-width: 0;
    margin: 0 2px;
}
.date-filter button.dimension-btn {
    margin-left: 6px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 12px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 24px;
}
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    position: relative;
}
.chart {
    width: 100%;
    height: 400px;
    position: relative;
    min-height: 300px;
    box-sizing: border-box;
    margin-bottom: 0;
}
.chart-container.fullscreen .chart {
    height: 100%;
    min-height: 0;
}
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    z-index: 99999;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: translateY(-1px);
}
.chart-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
    padding: 20px;
}
.chart-container.fullscreen .chart {
    height: calc(100vh - 100px) !important;
    min-height: 400px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

@media (max-width: 900px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-bar {
        gap: 8px;
    }
    .tab-btn {
        min-width: 120px;
        flex: 1 1 120px;
    }
} 