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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
}

/* 导航栏样式 */
header {
    background-color: #1e3a8a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem; /* 进一步降低高度 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1f5f9;
    text-decoration: none;
}

/* 右侧导航链接容器 */
.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 桌面端导航链接 */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 下拉菜单通用样式 */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-trigger {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-trigger:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e293b;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    display: none;
    border: 1px solid #334155;
    z-index: 1001;
    /* 确保下拉菜单有足够的边距，使鼠标能够顺畅移动到菜单 */
    margin-top: 2px;
}

/* 改进的下拉菜单显示逻辑，增加稳定性 */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: #334155;
    color: #f1f5f9;
}

/* 用户菜单 */
#user-menu {
    display: none;
}

.user-menu-trigger {
    color: #f1f5f9;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-menu-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#login-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#login-btn:hover {
    background-color: #2563eb;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

/* 移动端导航菜单 - 折叠版桌面导航 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    padding: 0;
    visibility: hidden;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-links {
    padding: 0.5rem 0;
}

.mobile-nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.75rem 2rem;
    display: block;
    transition: background-color 0.3s ease;
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.mobile-nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    color: #f1f5f9;
}

/* 移动端用户菜单和登录按钮 */
.mobile-login-btn {
    display: block;
    background-color: #3b82f6;
    color: white;
    text-align: center;
    margin: 1rem 2rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mobile-login-btn:hover {
    background-color: #2563eb;
    color: white;
}

/* 移动端用户菜单 */
#mobile-user-menu {
    padding: 0 2rem;
}

/* 确保移动端菜单中的登录按钮在已登录状态下隐藏 */
.logged-in .mobile-login-btn {
    display: none;
}

/* 移动端下拉菜单样式 - 与桌面端保持一致 */
.mobile-nav-links .dropdown {
    position: relative;
}

.mobile-nav-links .dropdown .dropdown-menu {
    position: relative;
    display: none;
    margin-top: 0;
    margin-left: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0;
    min-width: auto;
}

.mobile-nav-links .dropdown .dropdown-menu.show {
    display: block;
}

.mobile-nav-links .dropdown .dropdown-menu a {
    padding: 0.6rem 1.5rem;
    white-space: nowrap;
    border-radius: 0;
}

.mobile-nav-links .dropdown .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端下拉菜单箭头 - 使用dropdown-arrow而不是伪元素 */
.mobile-nav-links .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav-links .dropdown-menu.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* 修复移动端菜单按钮样式 */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        padding: 0.75rem 1rem;
    }
}

/* 主要内容 */
main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem 2rem;
}

/* 首页样式 */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #1e293b;
    color: #f1f5f9;
    font-size: 1rem;
}

#search-btn {
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: #2563eb;
}

/* 网址网格 - 极简设计 */
.website-grid {
    width: 100%;
    padding: 0;
}

#website-list {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -0.75rem !important;
    justify-content: center !important;
}

/* 卡片样式 */
.website-card {
    flex: 0 0 calc(33.333% - 1.5rem) !important;
    max-width: calc(33.333% - 1.5rem) !important;
    margin: 0.75rem !important;
    background-color: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #334155;
    height: auto !important;
}

/* 响应式设计 - 平板 */
@media (max-width: 992px) {
    .website-card {
        flex: 0 0 calc(50% - 1.5rem) !important;
        max-width: calc(50% - 1.5rem) !important;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 576px) {
    .website-card {
        flex: 0 0 calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
    }
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: #475569;
}

.card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-section {
    flex: 1;
}

.favicon {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    overflow: hidden;
    flex-shrink: 0;
}

.favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

/* 卡片底部样式 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.website-description {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category {
    background-color: #2563eb;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* 为分类和标签添加不同的样式以区分它们 */
.category.category-tag {
    background-color: #4b5563;
    color: #e5e7eb;
}

/* 登录/注册页面 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* 创建网站页面 */
.create-container {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.create-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.create-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

/* 网站表单样式 */
.website-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 输入组样式 */
.category-input-group,
.link-input-group,
.image-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-input-group input,
.link-input-group input,
.image-input-group input {
    flex: 1;
}

.link-input-group input:first-child {
    flex: 0 0 150px;
}

/* 添加/移除按钮样式 */
.add-btn {
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.add-btn:hover {
    background-color: #2563eb;
}

.remove-category-btn,
.remove-link-btn,
.remove-image-btn {
    padding: 0.5rem;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-category-btn:hover,
.remove-link-btn:hover,
.remove-image-btn:hover {
    background-color: #dc2626;
}

.remove-category-btn:disabled,
.remove-link-btn:disabled,
.remove-image-btn:disabled {
    background-color: #64748b;
    cursor: not-allowed;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #3b82f6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .link-input-group input:first-child {
        flex: 0 0 120px;
    }
    
    .toast {
        left: 2rem;
        right: 2rem;
    }
}

.login-card {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

/* 标签切换 */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #0f172a;
    color: #f1f5f9;
    font-size: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #0f172a;
    color: #f1f5f9;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
}

/* 勾选框组样式 */
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.form-group.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2563eb;
}

.error-message {
    color: #ef4444;
    text-align: center;
    margin-top: 1rem;
}

.success-message {
    color: #10b981;
    text-align: center;
    margin-top: 1rem;
}

/* 仪表盘页面 */
.dashboard-main h2 {
    margin-bottom: 2rem;
    color: #f1f5f9;
}

.submit-section {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.submit-section h3 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.my-websites {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
}

.my-websites h3 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

/* 管理员页面 */
.admin-main h2 {
    margin-bottom: 2rem;
    color: #f1f5f9;
}

.pending-websites,
.approved-websites {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pending-websites h3,
.approved-websites h3 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background-color: #f59e0b;
    color: white;
}

.status-approved {
    background-color: #10b981;
    color: white;
}

.status-rejected {
    background-color: #ef4444;
    color: white;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.edit-btn,
.delete-btn,
.approve-btn,
.reject-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background-color: #3b82f6;
    color: white;
}

.edit-btn:hover {
    background-color: #2563eb;
}

.delete-btn,
.reject-btn {
    background-color: #ef4444;
    color: white;
}

.delete-btn:hover,
.reject-btn:hover {
    background-color: #dc2626;
}

.approve-btn {
    background-color: #10b981;
    color: white;
}

.approve-btn:hover {
    background-color: #059669;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #cbd5e1;
}

.close-btn:hover {
    color: #f1f5f9;
}

/* 收藏数样式 */
.favorite-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.favorite-count svg {
    color: #f43f5e;
}

/* 查看详情链接 */
.view-details {
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #2563eb;
}

/* 空消息样式 */
.empty-message {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.favorite-count svg {
    fill: none;
    color: #f43f5e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .website-card {
        flex-direction: column;
        text-align: center;
    }
    
    .website-card .favicon {
        margin-bottom: 1rem;
    }
    
    .favorite-count {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    nav {
        flex-direction: row;
        gap: 0;
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        justify-content: center;
    }
}

/* 占位内容样式 */
.placeholder-message {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.placeholder-message h2 {
    font-size: 2rem;
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-weight: 600;
}

.placeholder-message p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background-color: transparent !important;
    text-align: center;
    padding: 0.75rem 2rem;
    margin-top: 3rem;
    color: #cbd5e1;
    border: none !important;
    box-shadow: none !important;
}

footer p {
    margin: 0;
}

/* 首页页脚样式 */
.home-footer {
    background-color: transparent !important;
    padding: 0.75rem 2rem;
    margin-top: 4rem;
    border: none !important;
    box-shadow: none !important;
}

.home-footer p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.home-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.home-footer a:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* 创建页面样式 */
.create-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1e293b;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.create-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.create-container p {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.website-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 必填字段标记 */
.required {
    color: #ef4444;
}

/* 分类、链接、图片输入组样式 */
.category-input-group,
.link-input-group,
.image-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.category-input-group input,
.image-input-group input {
    flex: 1;
}

.link-input-group input[type="text"] {
    flex: 1;
    max-width: 200px;
}

.link-input-group input[type="url"] {
    flex: 2;
}

/* 添加和移除按钮样式 */
.add-btn,
.remove-category-btn,
.remove-link-btn,
.remove-image-btn {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-btn {
    background-color: #3b82f6;
    color: white;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.add-btn:hover {
    background-color: #2563eb;
}

.remove-category-btn,
.remove-link-btn,
.remove-image-btn {
    background-color: #64748b;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.remove-category-btn:hover:not(:disabled),
.remove-link-btn:hover:not(:disabled),
.remove-image-btn:hover:not(:disabled) {
    background-color: #ef4444;
}

.remove-category-btn:disabled,
.remove-link-btn:disabled,
.remove-image-btn:disabled {
    background-color: #334155;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 导航栏样式调整 */
.navbar {
    background-color: #1e3a8a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}