/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 14px; /* 设置统一的基准字体大小 */
}

/* 字体大小标准化 */
h1, .h1 { font-size: 1.8rem !important; font-weight: 600 !important; }
h2, .h2 { font-size: 1.5rem !important; font-weight: 600 !important; }
h3, .h3 { font-size: 1.3rem !important; font-weight: 500 !important; }
h4, .h4 { font-size: 1.2rem !important; font-weight: 500 !important; }
h5, .h5 { font-size: 1.1rem !important; font-weight: 500 !important; }
h6, .h6 { font-size: 1rem !important; font-weight: 500 !important; }

/* 统一导航和菜单字体 */
.nav-link {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.nav-link i {
    font-size: 16px !important;
}

/* 统一表格字体 */
.table th, .table td {
    font-size: 14px !important;
}

.table thead th {
    font-weight: 600 !important;
}

/* 统一按钮字体 */
.btn {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn-sm {
    font-size: 13px !important;
}

/* 统一表单控件字体 */
.form-control, .form-select {
    font-size: 14px !important;
}

/* 统一卡片标题字体 */
.card-header h5 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

/* 统一侧边栏标题字体 */
.sidebar-header h4 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 20px;
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    padding: 12px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 侧边栏样式 */
.sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-link.active {
    background: #667eea;
    color: white;
    border-left-color: #667eea;
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* 主内容区域 */
#mainContent {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    min-height: calc(100vh - 40px);
}

/* 仪表板样式 */
.dashboard h2 {
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.stat-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-content p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* 徽章样式 */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 按钮样式 */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

.btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
}

.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
}

/* 图片缩略图 */
.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #eee;
    transition: transform 0.3s ease;
}

.img-thumbnail:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* 过滤器样式 */
.form-select {
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    padding: 8px 12px;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        margin-bottom: 20px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误状态 */
.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* 成功状态 */
.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* 卡片标题 */
.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.card-header h5 i {
    margin-right: 8px;
    color: #667eea;
}

/* 图片网格样式 */
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-grid-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.image-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.image-grid-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.grid-image-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.image-grid-action-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-grid-action-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.image-grid-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-grid-preview:hover {
    transform: scale(1.05);
}

.image-grid-info {
    padding: 15px;
}

.image-grid-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.image-grid-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.image-grid-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-paid {
    background: #cce5ff;
    color: #004085;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.table-image-checkbox, .payment-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.table-image, .table-status {
    cursor: pointer;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-action-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.table-action-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.payment-amount {
    font-weight: 600;
    color: #28a745;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-state-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}