/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    transition: all 0.3s ease;
}

/* 暗色主题 */
body.dark-theme {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s ease;
}

/* 暗色主题头部 */
body.dark-theme .header {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
}

.header h1 {
    color: #4a5568;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

/* 暗色主题标题 */
body.dark-theme .header h1 {
    color: #e2e8f0;
}

.header h1 i {
    color: #667eea;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

/* 暗色主题搜索组件 */
body.dark-theme .search-container input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .search-container input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-theme .search-container input::placeholder {
    color: #a0aec0;
}

body.dark-theme .search-container i {
    color: #a0aec0;
}

/* 头部操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

/* 暗色主题下的主题切换按钮 */
body.dark-theme .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 暗色主题分类 */
body.dark-theme .category {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
}

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

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.category-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

/* 暗色主题分类标题 */
body.dark-theme .category-header h2 {
    color: #e2e8f0;
}

.category-icon {
    font-size: 1.8rem;
}

.link-count {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.link-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* 暗色主题链接项 */
body.dark-theme .link-item {
    background: rgba(26, 32, 44, 0.8);
    color: #e2e8f0;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.link-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* 暗色主题链接标题 */
body.dark-theme .link-title {
    color: #e2e8f0;
}

.link-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    transition: color 0.3s ease;
}

/* 暗色主题页脚 */
body.dark-theme .footer {
    color: rgba(226, 232, 240, 0.8);
}

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

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    transition: all 0.3s ease;
}

/* 暗色主题模态框 */
body.dark-theme .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* 标签页样式 */
.admin-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 登录表单样式 */
.login-modal {
    max-width: 400px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    transition: color 0.3s ease;
}

/* 暗色主题表单标签 */
body.dark-theme .form-group label {
    color: #e2e8f0;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
}

/* 暗色主题输入框 */
body.dark-theme .login-form input {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-info {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.3s ease;
}

/* 暗色主题登录信息 */
body.dark-theme .login-info {
    background: #4a5568;
    color: #e2e8f0;
}

/* 管理面板头部操作 */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 添加区域样式 */
.add-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* 暗色主题添加区域 */
body.dark-theme .add-section {
    background: #4a5568;
}

.add-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* 暗色主题添加区域标题 */
body.dark-theme .add-section h3 {
    color: #e2e8f0;
}

.add-section form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.add-section input,
.add-section select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.add-section input:focus,
.add-section select:focus {
    outline: none;
    border-color: #667eea;
}

.add-section button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 列表区域样式 */
.list-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* 暗色主题列表区域标题 */
body.dark-theme .list-section h3 {
    color: #e2e8f0;
}

/* 列表头部样式 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h3 {
    margin-bottom: 0;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.sort-toggle-btn,
.batch-toggle-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-toggle-btn:hover,
.batch-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.sort-toggle-btn.active,
.batch-toggle-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 暗色主题按钮 */
body.dark-theme .sort-toggle-btn,
body.dark-theme .batch-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .sort-toggle-btn:hover,
body.dark-theme .batch-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .sort-toggle-btn.active,
body.dark-theme .batch-toggle-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.admin-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* 暗色主题管理项 */
body.dark-theme .admin-item {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.admin-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.item-icon {
    font-size: 1.5rem;
}

.item-name {
    font-weight: 600;
    color: #2d3748;
    transition: color 0.3s ease;
}

/* 暗色主题项目名称 */
body.dark-theme .item-name {
    color: #e2e8f0;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-category {
    font-size: 0.9rem;
    color: #718096;
    transition: color 0.3s ease;
}

/* 暗色主题项目分类 */
body.dark-theme .item-category {
    color: #a0aec0;
}

/* 用户信息卡片 */
.user-info-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* 暗色主题用户信息卡片 */
body.dark-theme .user-info-card {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.user-info-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.user-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 暗色主题用户信息项 */
body.dark-theme .user-info-item {
    border-bottom-color: #718096;
}

.user-info-item strong {
    color: #4a5568;
    margin-right: 10px;
    transition: color 0.3s ease;
}

/* 暗色主题用户信息标签 */
body.dark-theme .user-info-item strong {
    color: #e2e8f0;
}

/* 修改密码按钮 */
.change-password-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.item-actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-btn {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.edit-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.delete-btn {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

.delete-btn:hover {
    background: rgba(229, 62, 62, 0.2);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #48bb78;
}

.notification.error {
    background: #e53e3e;
}

.notification.info {
    background: #4299e1;
}

/* 编辑模态框样式 */
.edit-modal {
    max-width: 500px;
}

.edit-modal .form-group {
    margin-bottom: 20px;
}

.edit-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    transition: color 0.3s ease;
}

/* 暗色主题编辑模态框标签 */
body.dark-theme .edit-modal .form-group label {
    color: #e2e8f0;
}

.edit-modal .form-group input,
.edit-modal .form-group select,
.edit-modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
    font-family: inherit;
}

/* 暗色主题编辑模态框输入框 */
body.dark-theme .edit-modal .form-group input,
body.dark-theme .edit-modal .form-group select,
body.dark-theme .edit-modal .form-group textarea {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.edit-modal .form-group input:focus,
.edit-modal .form-group select:focus,
.edit-modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 图标预览 */
.icon-preview {
    margin-top: 8px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* 暗色主题图标预览 */
body.dark-theme .icon-preview {
    background: #4a5568;
}

.icon-preview span {
    font-size: 2rem;
    line-height: 1;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

/* 暗色主题表单操作区域 */
body.dark-theme .form-actions {
    border-top-color: #718096;
}

.cancel-btn,
.save-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.cancel-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* 暗色主题取消按钮 */
body.dark-theme .cancel-btn {
    background: #718096;
    color: #e2e8f0;
}

body.dark-theme .cancel-btn:hover {
    background: #a0aec0;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 拖拽排序样式 */
.sortable-item {
    cursor: move;
    transition: all 0.3s ease;
}

.sortable-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.sortable-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.sortable-item.drag-over {
    border-top: 3px solid #667eea;
}

/* 批量操作样式 */
.batch-actions {
    background: #f7fafc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

/* 暗色主题批量操作 */
body.dark-theme .batch-actions {
    background: #4a5568;
}

.batch-actions.show {
    display: flex;
}

.batch-actions .selected-count {
    font-weight: 600;
    color: #667eea;
}

.batch-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-actions .batch-delete-btn {
    background: #e53e3e;
    color: white;
}

.batch-actions .batch-delete-btn:hover {
    background: #c53030;
}

.batch-actions .batch-move-btn {
    background: #4299e1;
    color: white;
}

.batch-actions .batch-move-btn:hover {
    background: #3182ce;
}

/* 选择框样式 */
.admin-item .item-checkbox {
    margin-right: 15px;
}

.admin-item .item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 拖拽手柄样式 */
.drag-handle {
    color: #a0aec0;
    cursor: move;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.drag-handle:hover {
    color: #667eea;
}

/* 排序号样式 */
.item-order {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.3s ease;
}

/* 暗色主题排序号 */
body.dark-theme .item-order {
    background: #4a5568;
    color: #e2e8f0;
}

/* 选中状态样式 */
.admin-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* 暗色主题选中状态 */
body.dark-theme .admin-item.selected {
    background: rgba(102, 126, 234, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-container {
        max-width: 100%;
        margin: 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .add-section form {
        grid-template-columns: 1fr;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-actions {
        align-self: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .batch-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .category {
        padding: 20px;
    }
    
    .link-item {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
}
