:root {
    --primary-color: #4f8cff;
    --secondary-color: #6c757d;
    --accent-color: #17a2b8;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--gray-100);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/headbg.18bd6fe4.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
}

.admin-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

.logo img:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

#logoutBtn {
    color: var(--secondary-color);
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

#logoutBtn:hover {
    color: var(--danger-color);
    background: var(--gray-100);
}

.back-home-btn {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.back-home-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
}

.back-home-btn i {
    font-size: 18px;
}

.admin-main {
    padding: 40px 0;
}

/* 整个内容区域的包裹容器 */
.admin-main .container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    padding: 50px;
    padding-bottom: 0;
    margin: 0 auto;
    max-width: 1400px;
}

.admin-main .container:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.page-title {
    text-align: center;
    color: var(--gray-800);
    margin-bottom: 35px;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 模块导航样式 - 横向 */
.module-nav-horizontal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* 模块导航样式 - 竖向 */
.module-nav-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 24px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    min-height: 560px;
    height: 560px;
}

.module-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
}

.module-nav-btn-vertical {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    margin: 0 auto;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.module-nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--white);
}

.module-nav-btn-vertical:hover {
    border-color: var(--primary-color);
    background: rgba(79, 140, 255, 0.08);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.15);
}

.module-nav-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.module-nav-btn-vertical.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #3d7ce6);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 140, 255, 0.25);
}

/* 模块内容样式 */
.module-content {
    display: none;
    min-height: 600px;
    height: 600px;
    overflow-y: auto;
    opacity: 0;
    position: relative;
}

.module-content.active {
    display: block;
    opacity: 1;
}

/* 确保所有模块内容容器高度一致 */
.module-content > .card {
    min-height: 560px;
    height: 560px;
    display: flex;
    flex-direction: column;
}

.module-content > .card > .card-body {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 类型和标签列表容器 */
#typesList, #tagsList {
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
}

/* 文件列表容器 */
.table-responsive {
    flex: 1;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

/* 表头固定，列表滚动 */
.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 分页容器固定位置 */
.pagination-container {
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
}

/* 模块内容包裹容器 */
.module-content-wrapper {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    padding: 30px;
    margin-bottom: 30px;
    min-height: 400px;
}

/* 模块容器 - 整个最外侧包裹 */
.module-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 40px;
    margin-bottom: 40px;
    min-height: 500px;
}

.module-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.card:hover,
.card:focus {
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 15px;
}

.card-title {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

/* 用户信息卡片 */
.user-info-card {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: auto;
    min-height: 100px;
}

.user-info-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.user-info-card .card-title {
    color: var(--gray-800);
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gray-200);
    object-fit: cover;
    display: block;
    margin: 0 auto; /* 水平居中 */
}

/* 移除交互式边框/阴影效果（保持静态外观） */
.user-avatar:hover { border-color: var(--gray-200); box-shadow: none; }

.user-info {
    padding: 0;
}

.user-info .row {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.user-info .row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.user-info strong {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
}

.user-info span {
    color: var(--gray-800);
    font-weight: 400;
    font-size: 0.9rem;
}

/* 用户信息卡片容器 - 添加包裹感 */
.user-profile-section {
    margin-bottom: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 35px;
}

.user-profile-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.user-profile-section .card {
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.user-profile-section .card-body {
    padding: 0;
}

/* 主内容区域容器 */
.main-content-section {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 15px;
    margin-bottom: 40px;
}

.main-content-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 移除.module-container的内边距，因为现在由.main-content-section提供 */
.module-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
    min-height: auto;
}

.module-container:hover {
    box-shadow: none;
    transform: none;
}

/* 按钮样式 */
.btn {
    padding: 5px 8px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #3d7ce6;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* 资源筛选按钮 */
.resource-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.resource-filter .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.resource-filter .btn:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.resource-filter .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 文件上传区域 */
.file-upload-area {
    background: var(--gray-100);
    padding: 10px;
    border-radius: 5px;
    border: 2px dashed var(--gray-300);
    text-align: center;
    margin-bottom: 28px;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
}

.file-upload-area .btn-primary {
    padding: 8px 10px;
    font-weight: 600;
}

.file-upload-area .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#currentFolder {
    color: var(--primary-color);
    font-weight: 600;
}

/* 上传状态区域样式 */
#uploadStatusArea {
    position: relative;
    overflow: hidden;
}

.upload-status-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* 上传进度条样式 - 保留用于其他可能的用途 */

#uploadProgressArea {
    position: relative;
    z-index: 1000;
}

#uploadProgressArea .upload-progress-container {
    margin: 0 auto;
    max-width: 600px;
}

/* 文字样式 - 保留用于其他可能的用途 */

.progress {
    height: 8px;
    background: linear-gradient(90deg, #f1f3f4, #e8eaed);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 简化的上传进度条样式 - 与文字提示高度一致 */
.upload-progress-simple {
    height: 18px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                inset 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.upload-progress-simple .progress-bar {
    height: 100%;
    border-radius: 12px;
    background: #4285f4;
    position: relative;
    overflow: hidden;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动画已移除，使用纯色进度条 */

/* 通用进度条样式 - 用于其他地方的进度条 */

.upload-file-info {
    text-align: center;
}

.about-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.main {
    padding: 40px 0;
}

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

.error-msg {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid var(--danger-color);
}

/* 通用进度条样式 - 用于其他地方的进度条 */
.progress-bar-general {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-general {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: 10px;
}

/* 上传按钮区域进度态 */
.upload-progress-ui { text-align: left; }
.upload-progress-ui .progress-bar { margin-top: 8px; }

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 支持通过JavaScript直接设置display: flex */
.modal[style*="display: flex"] {
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.modal-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--gray-800);
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--gray-700);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-footer .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.modal-footer .btn-secondary {
    background: var(--gray-600);
    color: var(--white);
    border: none;
}

.modal-footer .btn-secondary:hover {
    background: var(--gray-700);
}

.modal-footer .btn-danger {
    background: var(--danger-color);
    color: var(--white);
    border: none;
}

.modal-footer .btn-danger:hover {
    background: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.modal-body {
    padding: 24px 28px;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
}

/* 确保模态框中的Bootstrap栅格系统正常工作 */
.modal-body .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
    flex-direction: row !important;
}

.modal-body .row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.modal-body .col-md-3 {
    flex: 0 0 auto !important;
    width: 25% !important;
}

.modal-body .col-md-9 {
    flex: 0 0 auto !important;
    width: 75% !important;
}

.modal-body .col-form-label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gray-700);
    text-align: right;
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
}

.modal-body .align-items-center {
    align-items: center !important;
}

/* 确保模态框中的布局在所有屏幕尺寸下都保持水平排列 */
@media (max-width: 576px) {
    .modal-body .row {
        flex-direction: row !important;
        gap: 0 !important;
    }
    
    .modal-body .col-md-3,
    .modal-body .col-md-9 {
        width: auto !important;
    }
}

/* 强制模态框布局样式 - 使用最高优先级 */
#addTypeModal .form-group,
#editTypeModal .form-group,
#addTagModal .form-group,
#editTagModal .form-group {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    flex-direction: row !important;
}

#addTypeModal .form-group label,
#editTypeModal .form-group label,
#addTagModal .form-group label,
#editTagModal .form-group label {
    width: 80px !important;
    text-align: right !important;
    margin-right: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

#addTypeModal .form-group input,
#editTypeModal .form-group input,
#addTagModal .form-group input,
#editTagModal .form-group input {
    flex: 1 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 300px !important;
}

/* 覆盖所有可能的label样式 */
#addTypeModal label,
#editTypeModal label,
#addTagModal label,
#editTagModal label {
    text-align: right !important;
    width: 80px !important;
    margin-right: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
}

/* 覆盖所有可能的input样式 */
#addTypeModal input[type="text"],
#editTypeModal input[type="text"],
#addTagModal input[type="text"],
#editTagModal input[type="text"] {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 250px !important;
}

/* 最强力的样式覆盖 - 使用属性选择器 */
#addTypeModal [style*="display: flex"],
#editTypeModal [style*="display: flex"],
#addTagModal [style*="display: flex"],
#editTagModal [style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
}

#addTypeModal [style*="width: 80px"],
#editTypeModal [style*="width: 80px"],
#addTagModal [style*="width: 80px"],
#editTagModal [style*="width: 80px"] {
    width: 80px !important;
    text-align: right !important;
    margin-right: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
}

#addTypeModal [style*="flex: 1"],
#editTypeModal [style*="flex: 1"],
#addTagModal [style*="flex: 1"],
#editTagModal [style*="flex: 1"] {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 300px !important;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}


.alert-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background: var(--gray-100);
    border-bottom: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
}

.table td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    text-align: center;
}

.table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.file-name {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.file-name:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid var(--gray-200);
    gap: 16px;
}

.el-pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.el-pagination li {
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-900);
    font-weight: 500;
}

.el-pagination li:hover {
    background: var(--gray-500);
}

.el-pagination li.el-pagination__pager--active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.el-pagination li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.el-pagination__prev,
.el-pagination__next {
    padding: 10px 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.el-pagination__prev:hover,
.el-pagination__next:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.el-pagination__prev.disabled,
.el-pagination__next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.el-pagination__pager {
    padding: 10px 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.el-pagination__pager:hover:not(.el-pagination__pager--active) {
    background: rgba(102, 126, 234, 0.1);
}

.el-pagination__sizes {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-weight: 500;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 5px;
    border: 1px solid var(--gray-200);
}

.el-pagination__sizes .el-select {
    padding: 3px 5px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 500;
}

.el-pagination__sizes .el-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 表单样式 */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 500;
}

.form-control {
    width: 30%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

/* 类型和标签列表样式 */
#typesList, #tagsList {
    min-height: 200px;
}

.type-item, .tag-item {
    transition: background-color 0.3s ease;
}

.type-item:hover, .tag-item:hover {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

.type-actions, .tag-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.type-actions .btn, .tag-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-sm {
    border: 1px solid var(--gray-300);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 5px;
}

/* 装饰圆圈 - 静态样式 */
.decoration-circle {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.1;
    z-index: -1;
}

.decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .admin-main .container {
        padding: 40px 30px;
        margin: 15px auto;
    }
    
    .user-profile-section,
    .main-content-section {
        padding: 30px 25px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 992px) {
    .admin-main .container {
        padding: 30px 20px;
    }
    
    .user-profile-section,
    .main-content-section {
        padding: 25px 20px;
    }
    
    .module-nav-vertical {
        padding: 20px;
        min-height: 560px;
        height: 560px;
    }
    
    .module-nav-btn-vertical {
        padding: 14px 16px;
        min-height: 55px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 15px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .user-menu {
        gap: 15px;
    }
    
    .back-home-btn {
        padding: 8px 12px;
        margin-right: 15px;
        font-size: 14px;
    }
    
    .admin-main {
        padding: 30px 0;
    }
    
    .admin-main .container {
        padding: 25px 15px;
        margin: 10px auto;
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .user-profile-section,
    .main-content-section {
        padding: 20px 15px;
        border-radius: 8px;
        margin-bottom: 30px;
    }
    
    .user-info-card .card-body {
        padding: 20px 15px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-info .row {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .user-info strong,
    .user-info span {
        font-size: 0.85rem;
    }
    
    .module-nav-vertical {
        padding: 15px;
        min-height: 560px;
        height: 560px;
        margin-bottom: 20px;
    }
    
    .module-nav-btn-vertical {
        padding: 12px 14px;
        min-height: 50px;
        font-size: 14px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .resource-filter {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .resource-filter .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .file-upload-area {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .file-upload-area .btn-primary {
        padding: 10px 20px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        text-align: center;
    }
    
    .el-pagination {
        gap: 8px;
    }
    
    .el-pagination li {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .el-pagination__sizes {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 20px 24px 16px;
    }
    
    .modal-body {
        padding: 20px 24px;
    }
    
    .modal-footer {
        padding: 16px 24px;
    }
    
    .type-item,
    .tag-item {
        padding: 16px;
        margin-bottom: 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .type-actions,
    .tag-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .admin-main .container {
        padding: 20px 12px;
        margin: 8px auto;
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .user-profile-section,
    .main-content-section {
        padding: 18px 12px;
        border-radius: 10px;
        margin-bottom: 25px;
    }
    
    .user-info-card .card-body {
        padding: 18px 12px;
    }
    
    .user-info .row {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .user-info .col-2,
    .user-info .col-4 {
        width: 100%;
        text-align: left;
    }
    
    .module-nav-vertical {
        padding: 12px;
        min-height: 560px;
        height: 560px;
    }
    
    .module-nav-btn-vertical {
        padding: 10px 12px;
        min-height: 45px;
        font-size: 13px;
    }
    
    .resource-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .resource-filter .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .file-upload-area {
        padding: 16px;
    }
    
    .file-upload-area .btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .file-upload-area small {
        display: block;
        text-align: center;
        margin-top: 8px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: 10px 6px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .pagination-container {
        gap: 12px;
        margin-top: 15px;
        padding: 12px 0;
        text-align: center;
    }
    
    .el-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .el-pagination li {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 16px 20px 14px;
    }
    
    .modal-body {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 14px 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* 单个文件上传模态框样式 */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tag-checkbox:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
}

.tag-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

.tag-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--primary-color);
    font-weight: 500;
}

.file-info {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.file-info div {
    margin-bottom: 6px;
    font-size: 14px;
}

.file-info div:last-child {
    margin-bottom: 0;
}

.file-info strong {
    color: var(--gray-700);
    font-weight: 500;
}

/* 工具类 */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.2rem; }
.mb-0 { margin-bottom: 0; }
.ms-2 { margin-left: 0.5rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-muted { color: var(--gray-600); }
.text-center { text-align: center; }

/* 多文件上传模态框样式 */
.selected-files-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e3ed;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #fff;
    border: 1px solid #e0e3ed;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.selected-file-item:hover {
    border-color: #4f8cff;
    box-shadow: 0 2px 4px rgba(79, 140, 255, 0.1);
}

.selected-file-item:last-child {
    margin-bottom: 0;
}

.selected-file-item .file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.selected-file-item .file-info i {
    margin-right: 8px;
    color: #4f8cff;
}

.selected-file-item .file-name {
    font-weight: 500;
    margin-right: 8px;
    word-break: break-all;
}

.selected-file-item .file-size {
    color: #6c757d;
    font-size: 0.875rem;
}

.remove-file-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 标签选择器样式 */
.tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e3ed;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.tag-checkbox:hover {
    background-color: #e9ecef;
    border-color: #4f8cff;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 6px;
}

.tag-checkbox input[type="checkbox"]:checked + span {
    color: #4f8cff;
    font-weight: 500;
}

/* 上传提示信息样式 */
#uploadAlertMessage {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 模块切换无过渡效果 */
.module-content {
    transition: none !important;
}

.module-content.active {
    display: block !important;
}

/* 文件上传区域样式优化 */
.file-upload-area {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 2px dashed #e0e3ed;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: #4f8cff;
    background-color: #f0f4ff;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .selected-files-list {
        max-height: 200px;
    }
    
    .selected-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selected-file-item .file-info {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .remove-file-btn {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .tags-selector {
        flex-direction: column;
    }
    
    .tag-checkbox {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========== 批量删除相关样式 ========== */

/* 文件复选框样式 */
.file-checkbox {
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.file-checkbox:hover {
    transform: scale(1.2);
}

.file-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 全选复选框样式 */
#selectAllFiles {
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

#selectAllFiles:hover {
    transform: scale(1.2);
}

#selectAllFiles:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 批量删除按钮样式 */
#batchDeleteBtn {
    transition: all 0.2s ease;
    font-weight: 500;
}

#batchDeleteBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#batchDeleteBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 文件列表行选中效果 */
.table tbody tr:hover {
    background-color: rgba(79, 140, 255, 0.05);
}

.table tbody tr.selected {
    background-color: rgba(79, 140, 255, 0.1);
}

/* 删除确认模态框中的文件列表样式 */
#deleteConfirmModal .modal-body div {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 批量操作工具栏样式 */
.batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 15px;
}

.batch-actions .btn {
    font-size: 0.875rem;
    padding: 6px 12px;
}

/* 选中文件数量提示 */
.selected-count {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* 移动端上传状态区域优化 */
@media (max-width: 768px) {
    #uploadStatusArea {
        height: 40px;
    }
    
    .upload-progress-simple {
        max-width: 90%;
        height: 16px;
        border-radius: 10px;
        margin: 0 auto;
    }
    
    .upload-progress-simple .progress-bar {
        border-radius: 10px;
    }
}
