/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 登录页面样式 */
.login-form {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
    background-color: #f0f8ff;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 进度条样式 */
.progress {
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* 复选框样式 */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 文件大小格式化 */
.file-size {
    font-family: monospace;
    color: #6c757d;
}

/* 上传成功/失败提示 */
.alert {
    border-radius: 4px;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索框样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 隐藏不重要的列 */
    .table th:nth-child(3),
    .table td:nth-child(3),
    .table th:nth-child(4),
    .table td:nth-child(4),
    .table th:nth-child(5),
    .table td:nth-child(5) {
        display: none;
    }
    
    /* 操作按钮列宽度调整 */
    .table th:nth-child(6),
    .table td:nth-child(6) {
        width: auto;
        min-width: 120px;
    }
    
    /* 文件操作区域按钮优化 */
    .card-body .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-body .col-md-6 {
        width: 100%;
    }
    
    .card-body .text-end {
        text-align: left;
    }
    
    /* 按钮组优化 */
    .card-body .btn {
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    /* 搜索框优化 */
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control,
    .input-group .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    /* 表格行间距优化 */
    .table td {
        padding: 0.5rem;
    }
    
    /* 登录表单优化 */
    .login-form {
        width: 100%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .table {
        font-size: 0.75rem;
    }
    
    .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* 操作按钮改为垂直排列 */
    .table td:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .table td:last-child .btn {
        width: 100%;
    }
}
