/* 订单分析页面样式 */
.analytics-container {
    padding: 20px;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.analytics-card .card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.analytics-card .card-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

.analytics-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.chart-container {
    min-height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 10px;
}

.chart-placeholder {
    color: #999;
    font-size: 16px;
}

.status-chart {
    width: 100%;
}

.chart-item {
    margin-bottom: 15px;
}

.chart-bar {
    height: 30px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: width 0.3s ease;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.status-name {
    font-weight: bold;
    color: #333;
}

.status-count {
    color: #666;
}

/* EIQ分析统计卡片 - 横向布局 */
.eiq-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .eiq-stats-container {
        grid-template-columns: 1fr;
    }
}

.eiq-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #667eea;
    min-height: 200px;
}

.eiq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.eiq-card.e-card {
    border-left-color: #5470c6;
}

.eiq-card.i-card {
    border-left-color: #91cc75;
}

.eiq-card.q-card {
    border-left-color: #fac858;
}

/* 左侧：图标和标题 */
.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.card-title {
    text-align: center;
}

.title-main {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.title-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 中间：大数字 */
.card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.big-number {
    font-size: 42px;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.e-card .big-number {
    color: #5470c6;
}

.i-card .big-number {
    color: #91cc75;
}

.q-card .big-number {
    color: #fac858;
}

.number-label {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* 右侧：详细数据 */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    font-size: 13px;
    color: #666;
}

.stat-num {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.stat-num.highlight {
    color: #667eea;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distribution-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px 0;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

.stat-name.small {
    color: #52c41a;
}

.stat-name.medium {
    color: #faad14;
}

.stat-name.large {
    color: #f5222d;
}

.top-products {
    margin-top: 5px;
}
