/* 统计卡片网格布局 */
.abv2fi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .abv2fi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .abv2fi-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 统计卡片样式 */
.abv2fi-stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.abv2fi-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

/* 统计值颜色主题 */
.stat-win {
    color: #10b981;
}

.stat-draw {
    color: #f59e0b;
}

.stat-lose {
    color: #ef4444;
}

.stat-for {
    color: #3b82f6;
}

.stat-against {
    color: #f43f5e;
}

/* 对比表格样式 */
.abv2fi-compare-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.compare-header {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.compare-header span:first-child {
    text-align: left;
}

.compare-row {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    transition: background-color 0.2s ease;
}

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

.compare-row:hover {
    background-color: #f8fafc;
}

.row-label {
    font-weight: 600;
    color: #334155;
    font-size: 15px;
    text-align: left;
}

.compare-row span:not(.row-label) {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.compare-row .total {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
}

/* 移动端对比表格优化 */
@media (max-width: 640px) {

    .compare-header,
    .compare-row {
        grid-template-columns: 80px repeat(3, 1fr);
        padding: 12px;
        font-size: 12px;
    }

    .compare-row span:not(.row-label) {
        font-size: 16px;
    }

    .row-label {
        font-size: 13px;
    }
}

/* Section 标题美化 */
.abv2fi-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.abv2fi-section h3::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

/* 战绩走势徽章 */
.form-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-win {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-draw {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-lose {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@media (max-width: 480px) {
    .form-badge {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}