/* 标签页核心样式 - 提升优先级 */
.admin-nav {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    position: relative;
    z-index: 10;
}

.admin-nav a {
    display: inline-block;
    margin-right: 20px;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.admin-nav a.active {
    color: #3498db;
    font-weight: bold;
}

.admin-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

/* 标签内容样式 */
.tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 分类管理样式 */
.category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.category-table th, .category-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.category-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.category-table tr:hover {
    background-color: #f8f9fa;
}

.category-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.category-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 原有样式保留在下方 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 登录页面样式 */
.login-container {
    width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.error {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background-color: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* 后台头部样式 */
.admin-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-header h1 {
    display: inline-block;
}

.logout-btn, .back-btn {
    float: right;
    background-color: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 5px;
}

.back-btn {
    background-color: #3498db;
}

/* 后台主体样式 */
.admin-main {
    padding: 30px 0;
}

/* 表格样式 */
.app-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.app-table-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table th, .app-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.app-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.app-table tr:hover {
    background-color: #f8f9fa;
}

.edit-btn {
    color: #3498db;
    text-decoration: none;
    margin-right: 10px;
}

.delete-btn {
    color: #e74c3c;
    text-decoration: none;
}

.empty {
    text-align: center;
    color: #7f8c8d;
}

/* 上传表单样式 */
.upload-form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
}

.upload-form-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.category-tips, .file-tips {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .login-container {
        width: 90%;
    }
    .app-table {
        font-size: 12px;
    }
    .app-table th, .app-table td {
        padding: 8px 10px;
    }
    .category-form {
        flex-direction: column;
        align-items: stretch;
    }
    .category-form input {
        min-width: auto;
    }
    .admin-nav a {
        margin-right: 10px;
        font-size: 14px;
    }
}