﻿/* 报表页面样式 */
.report-container {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.page-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 28px;
    color: #333;
    margin: 0;
}

    .page-title i {
        color: #667eea;
        margin-right: 10px;
    }

/* 摘要卡片 */
.summary-cards {
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.summary-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .summary-icon i {
        font-size: 30px;
        color: white;
    }

.summary-content {
    flex: 1;
}

    .summary-content h3 {
        font-size: 14px;
        color: #666;
        margin: 0 0 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.summary-number {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.summary-label {
    font-size: 12px;
    color: #999;
}

/* 图表卡片 */
.charts-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.chart-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chart-header h4 {
        font-size: 18px;
        color: #333;
        margin: 0;
    }

        .chart-header h4 i {
            color: #667eea;
            margin-right: 8px;
        }

.chart-controls {
    display: flex;
    gap: 10px;
}

.chart-body {
    padding: 30px;
}

/* 表格样式 */
.table {
    margin: 0;
}

    .table thead th {
        border-top: none;
        background: #f8f9fa;
        color: #495057;
        font-weight: 600;
        font-size: 14px;
    }

    .table tbody td {
        vertical-align: middle;
    }

/* 加载状态 */
.loading-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .summary-card {
        margin-bottom: 15px;
    }

    .chart-header {
        flex-direction: column;
        gap: 15px;
    }

    .chart-body {
        padding: 15px;
    }
}

/* 作品统计页面样式 */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .stat-card .card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom: none;
    }

        .stat-card .card-header a {
            color: white;
        }

            .stat-card .card-header a:hover {
                text-decoration: underline;
            }

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 摘要卡片 */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

    .summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

    .summary-icon.bg-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .summary-icon.bg-success {
        background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    }

    .summary-icon.bg-warning {
        background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    }

    .summary-icon.bg-info {
        background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    }

.summary-content h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px;
}

.summary-number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 表格样式优化 */
.table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
}

/* 按钮组样式 */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}


/* 账户详情页样式 */
.avatar-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.avatar-placeholder-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .avatar-placeholder-large i {
        font-size: 80px;
        color: white;
    }

/* 模态框样式 */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal-dialog {
    max-width: 500px;
}

    .modal-dialog.modal-lg {
        max-width: 800px;
    }

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
}

.modal-backdrop {
    z-index: 1040;
}

/* 标签样式 */
.tag-badge {
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

    .card-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

        .card-header h5 i {
            margin-right: 8px;
            color: #667eea;
        }

.card-body {
    padding: 20px;
}

/* 表格样式优化 */
.table th {
    border-top: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.table td {
    vertical-align: middle;
}

.table .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
}

/* 按钮组样式 */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .avatar-large {
        width: 100px;
        height: 100px;
    }

    .avatar-placeholder-large i {
        font-size: 50px;
    }
}