/* ========================================
   现代化页面样式
   ======================================== */

/* 现代化页面标题 */
.modern-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.modern-page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-page-title svg {
    flex-shrink: 0;
}

.modern-page-title h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 600;
}

.modern-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* 现代化按钮样式 */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-modern.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-modern.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* 现代化表格容器 */
.modern-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.modern-table-container .data-table {
    margin: 0;
    border-radius: 0;
}

/* Catch-all统计卡片网格 */
.catchall-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 现代化统计卡片 */
.modern-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon-wrapper svg {
    stroke: white;
}

.stat-content {
    flex: 1;
}

.stat-content .stat-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.stat-content .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-page-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .modern-page-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .modern-page-title h2 {
        font-size: 22px;
    }

    .modern-subtitle {
        font-size: 13px;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .catchall-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modern-stat-card {
        padding: 15px;
    }

    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .stat-content .stat-value {
        font-size: 24px;
    }
}

/* 平滑过渡动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-page-header,
.modern-stat-card,
.modern-table-container {
    animation: fadeIn 0.4s ease-out;
}

/* 为不同页面添加延迟动画 */
.modern-page-header {
    animation-delay: 0s;
}

.catchall-stats-grid .modern-stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.catchall-stats-grid .modern-stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.catchall-stats-grid .modern-stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-table-container {
    animation-delay: 0.4s;
}

