:root {
    --primary-color: #2b5876;
    --secondary-color: #4e4376;
    --accent-color: #ffd700;
    --text-color: #333;
    --background-color: #f5f5f5;
    --header-height: 80px;
    --banner-height: 50px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://images.unsplash.com/photo-1586168544647-d77d3b49a572') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 88, 118, 0.75), rgba(78, 67, 118, 0.75));
    z-index: -1;
}

.header {
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 20px;
    min-height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
}

.header h1 {
    color: var(--accent-color);
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gear-container {
    position: relative;
    margin-right: 15px;
}

.gear-icon {
    color: var(--accent-color);
    font-size: 2.5em;
}

.gear-icon-small {
    color: var(--accent-color);
    font-size: 1.5em;
    position: absolute;
    top: 0;
    right: -15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.spinning {
    animation: spin 10s linear infinite;
}

.spinning-reverse {
    animation: spin-reverse 7s linear infinite;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    margin-top: 20px;
    flex-wrap: wrap;
}

.add-link-section, .links-section {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    margin: 10px 0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h2 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.input-group input, 
.input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 88, 118, 0.1);
}

button {
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 15px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    font-size: 1.1em;
}

.download-link:hover {
    transform: translateY(-2px);
}

.download-link .link-info {
    flex: 1;
}

.download-link .link-name {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.download-link .link-url {
    color: #666;
    font-size: 0.9em;
}

.download-link .buttons {
    display: flex;
    gap: 15px;
}

.download-button {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.delete-button {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .gear-icon {
        font-size: 2em;
    }
    
    .gear-icon-small {
        font-size: 1.2em;
    }
} 

.import-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.import-section h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.import-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-container input[type="file"] {
    display: none;
}

.format-example {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.format-example p {
    margin: 0 0 15px 0;
    color: #666;
    font-weight: bold;
}

.format-example ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #666;
}

.format-example pre {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    font-family: monospace;
    color: var(--primary-color);
    font-size: 0.95em;
    white-space: pre-wrap;
    word-break: break-all;
} 

/* 登录页面样式 */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-container h1 {
    color: var(--primary-color);
    margin: 20px 0;
    font-size: 1.8em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.login-form input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.login-form button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.login-form button:hover {
    transform: translateY(-2px);
}

.main-content {
    min-height: 100vh;
}

/* 错误提示样式 */
.error-message {
    color: #f44336;
    margin-top: 10px;
    font-size: 0.9em;
} 

/* 调整下载模态框样式 */
#downloadLoginModal .modal-content {
    max-width: 350px;
}

#downloadLoginModal .login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#downloadLoginModal input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

#downloadLoginModal input:focus {
    border-color: var(--accent-color);
    outline: none;
} 

/* 内容包装器 */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 0;
    align-items: flex-start;
}

/* 左侧面板 */
.left-panel {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin-top: 0;
    transition: all 0.3s ease;
}

/* 右侧面板 */
.right-panel {
    flex: 2;
    min-width: 200px;
    max-width: 650px;
    margin: 0 auto;
}

/* 调整输入组的布局 */
.input-group {
    flex-direction: column;
    gap: 12px;
}

.input-group input, 
.input-group select {
    padding: 12px 15px;
    border-radius: 8px;
}

.input-group button {
    align-self: flex-end;
    min-width: 120px;
}

/* 响应式设计调整 */
@media (max-width: 1400px) {
    .container {
        padding: 15px;
    }
    
    .category-tab {
        padding: 8px 15px;
        font-size: 1em;
        min-width: 80px;
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }

    .left-panel,
    .right-panel {
        max-width: 100%;
        width: 100%;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .header-title {
        position: static;
        transform: none;
    }

    .admin-controls {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* 优化卡片样式 */
.add-link-section,
.links-section {
    height: calc(100% - 40px); /* 减去margin的高度 */
    display: flex;
    flex-direction: column;
}

.links-section {
    max-height: 800px;
    overflow-y: auto;
}

#linksList {
    flex: 1;
    overflow-y: auto;
}

/* 美化滚动条 */
.links-section::-webkit-scrollbar {
    width: 8px;
}

.links-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.links-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.links-section::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 

/* 修改分类相关样式 */
.filter-section {
    margin-bottom: 20px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: clamp(10px, 2vw, 15px) 0;
    margin-bottom: 20px;
}

.category-tab {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab .tab-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab .category-name {
    font-size: 1em;
    white-space: nowrap;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 在小屏幕上优化显示 */
@media (max-width: 768px) {
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 0.9em;
    }
} 

/* 添加可编辑分类的样式 */
.editable-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-edit-tools {
    margin-top: 10px;
    margin-bottom: 20px;
}

.category-tab .edit-buttons {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 5px;
}

.category-tab:hover .edit-buttons {
    display: flex;
}

.edit-buttons button {
    padding: 4px 8px;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 4px;
}

.category-input {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 1.2em;
    width: 200px;
    display: none;
}

.category-input.active {
    display: block;
}

.add-category-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
} 

/* 添加分类标签样式 */
.category-tag {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: normal;
}

/* 优化批量操作区域 */
.batch-operations {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 调整功能区卡片样式 */
.add-link-section, .links-section {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* 优化输入框组 */
.input-group {
    gap: 12px;
}

.input-group input, 
.input-group select {
    padding: 12px 15px;
    border-radius: 8px;
}

/* 添加响应式优化 */
@media (max-width: 1400px) {
    .container {
        padding: 15px;
    }
    
    .category-tab {
        padding: 8px 15px;
        font-size: 1em;
        min-width: 80px;
    }
} 

/* 添加导入分类选择的样式 */
.import-category-select {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-category-select label {
    font-weight: bold;
    color: var(--primary-color);
}

.import-category-select select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
} 

/* 添加下载次数显示样式 */
.download-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    margin-right: 15px;
}

.download-count i {
    font-size: 1.1em;
}

/* 调整管理员控制区域样式 */
.admin-controls {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
} 

/* 添加清除缓存按钮样式 */
.clear-cache-btn {
    background: linear-gradient(45deg, #607d8b, #455a64);
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 20px;
    margin-right: 15px;
}

.clear-cache-btn:hover {
    background: linear-gradient(45deg, #455a64, #37474f);
} 

/* 修改添加链接区域样式 */
.add-link-section {
    padding: 20px;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.add-link-section h2 {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

/* 导入组样式 */
.import-group {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
}

.import-header {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

/* 导入容器样式 */
.import-container {
    margin: 20px 0;
}

.import-container button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.import-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 格式说明样式 */
.format-example {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.format-example p {
    margin: 0 0 10px 0;
    color: #666;
    font-weight: bold;
}

.format-example ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #666;
}

.format-example pre {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-family: monospace;
    color: var(--primary-color);
    font-size: 0.95em;
    white-space: pre-wrap;
    word-break: break-all;
} 

/* 分类管理按钮样式 */
.category-manage {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
} 

/* 修改分类头部布局 */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.category-edit-tools {
    margin-left: 20px;
}

/* 调整分类标签样式 */
.editable-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 调整添加分类按钮样式 */
.add-category-btn {
    white-space: nowrap;
    padding: 10px 20px;
} 

/* 导航站风格样式 */
.nav-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-tab {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab .tab-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab .category-name {
    font-size: 1em;
    white-space: nowrap;
}

.category-tab.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.nav-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.link-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 10px;
}

.nav-item-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
}

.category-tag {
    padding: 4px 12px;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 0.85em;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 批量操作区域 */
.batch-operations {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.batch-delete-btn {
    background: #ff4444;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-delete-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
} 

/* 添加方式切换按钮组 */
.add-type-switch {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.switch-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 添加表单样式 */
.add-form {
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* 输入组样式 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group input,
.input-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
} 

/* 删除���域样式调整 */
.delete-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 全选标签样式 */
.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
}

.select-all-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.select-all-label span {
    color: var(--primary-color);
    font-size: 0.95em;
}

.delete-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delete-btn i {
    font-size: 1.1em;
} 

/* 链接复选框样式 */
.link-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

/* 调整链接信息布局 */
.nav-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 调整标题样式 */
.nav-item-title {
    margin-left: 5px;
}

/* 悬停效果 */
.nav-item:hover .link-checkbox {
    opacity: 1;
} 

/* 添加下载计数器样式 */
.download-counter {
    color: var(--accent-color);
    font-size: 1.1em;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.download-counter i {
    font-size: 1.2em;
}

/* 修改广告横幅样式，移除动画相关代码 */
.ad-banner {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 12px 0;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1em;
    padding: 0 20px;
}

.ad-content i {
    color: var(--accent-color);
}

/* 保留响应式调整 */
@media (max-width: 768px) {
    .ad-content {
        font-size: 0.9em;
        padding: 0 10px;
    }
}

/* 添加课程链接样式 */
.course-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 调整广告内容布局 */
.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-size: 1.1em;
    padding: 0 20px;
    flex-wrap: wrap;
    text-align: center;
}

.ad-content span {
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ad-content {
        gap: 15px;
        padding: 10px;
    }
    
    .course-link {
        padding: 4px 12px;
        font-size: 0.9em;
    }
}

/* 修改解锁面板的位置和大小样式 */
.unlock-section {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.unlock-input-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.unlock-input {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.8em;
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.unlock-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.unlock-button {
    position: static;
    padding: 4px 8px;
    white-space: nowrap;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.unlock-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .unlock-section {
        left: 10px;
        top: 10px;
        width: auto;
        box-sizing: border-box;
    }
    
    .unlock-input-group {
        justify-content: center;
    }
    
    .unlock-input {
        width: 100px;
    }
}

/* 添加分类管理样式 */
.category-management {
    margin-bottom: 30px;
    display: none; /* 默认隐藏 */
}

.category-add {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.category-add input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9em;
}

.category-add button {
    padding: 8px 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-add button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.category-item .category-name {
    font-weight: bold;
    color: var(--primary-color);
}

.category-item .category-actions {
    display: flex;
    gap: 8px;
}

.category-item .delete-category {
    color: #f44336;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-item .delete-category:hover {
    background: rgba(244, 67, 54, 0.1);
}

.section-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 25px 0;
}

/* 添加左侧面板头部和隐藏按钮样式 */
.panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hide-panel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hide-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

/* 添加左侧面板收起状态的按钮样式 */
.show-panel-btn {
    position: fixed;
    left: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
}

.show-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.show-panel-btn i {
    transform: rotate(180deg);
}

/* 添加导入导出功能样式 */
.import-export-section {
    margin-top: 20px;
}

.import-export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.export-btn,
.import-btn {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.export-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.import-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.export-btn:hover,
.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}