* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 管理员入口按钮 */
.admin-entrance {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.admin-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

/* 私人模式按钮 */
.private-entrance {
    position: fixed;
    top: 75px;
    left: 20px;
    z-index: 1001;
}

.private-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: #e74c3c;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.private-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.3);
}

.private-btn.active {
    background: #e74c3c;
    color: white;
}

/* 私人模式指示器 - 更加低调 */
.private-mode-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(231, 76, 60, 0.15);
    color: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    font-size: 14px;
    margin-left: 15px;
    vertical-align: middle;
        transition: all 0.3s ease;
}

.private-mode-indicator:hover {
    background: rgba(231, 76, 60, 0.25);
    transform: scale(1.1);
}

/* 私人站点指示器 - 更加低调 */
.private-site-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: rgba(231, 76, 60, 0.8);
    border-radius: 50%;
    border: 1px solid white;
}

/* 私人状态提示 - 低调呈现 */
.private-status {
    display: inline-flex;
    align-items: center;
    background: rgba(231, 76, 60, 0.1);
    color: rgba(231, 76, 60, 0.9);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 15px;
}

.private-status i {
    margin-right: 5px;
    font-size: 10px;
}

.private-footer-count {
    font-size: 0.9em;
    opacity: 0.8;
    margin-left: 5px;
}

/* 侧边栏切换按钮 */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 75px;
    z-index: 1001;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.sidebar-toggle-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

/* 侧边栏优化 */
.sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    z-index: 1000;
    transition: right 0.4s ease;
    overflow-y: auto;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(102, 126, 234, 0.15);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.sidebar-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close {
    background: rgba(102, 126, 234, 0.15);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #667eea;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 30px 30px 0;
    margin-right: 15px;
    font-weight: 500;
    font-size: 15px;
}

.sidebar-menu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    color: #667eea;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.sidebar-menu i {
    margin-right: 15px;
    width: 22px;
    font-size: 18px;
    color: #667eea;
}

.sidebar-menu span {
    flex: 1;
}

.sidebar-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #333;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 8px;
}

.private-form .form-group {
    margin-bottom: 25px;
}

.private-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.private-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.private-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fcc;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

/* 主标题优化 */
.main-site-title {
    font-size: 4.2rem;
    margin-bottom: 35px;
    font-weight: 200;
    text-shadow: 5px 5px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    letter-spacing: 4px;
}

/* 标题装饰 */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.decoration-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.site-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

/* 搜索区域 - 与链接宽度一致 */
.search-section {
    max-width: 100%;
    margin: 0 auto;
}

.search-container {
    position: relative;
    margin-bottom: 25px;
}

/* 搜索输入组 - 美化并修复手机端布局 */
.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.search-input-group:focus-within {
    background: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
    border-color: #667eea;
}

#searchInput {
    flex: 1;
    padding: 18px 25px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
}

.search-engine-select {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    border-left: 2px solid #e1e5e9;
    min-width: 140px;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: scale(1.05);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 15px;
}

.search-result-item {
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 36px;
    height: 36px;
    margin-right: 18px;
    border-radius: 8px;
}

.search-result-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 14px;
    color: #666;
}

.main {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category {
    margin-bottom: 60px;
}

.category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: #667eea;
}

.category-count {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

/* 网格布局 - 固定每行10个 */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 15px;
    margin-top: 25px;
}

/* 网站卡片 - 固定大小确保每行10个 */
.site-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    height: 100px;
    min-width: 0;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

/* 私人网站样式 - 更加低调 */
.private-site {
    position: relative;
    border-color: rgba(231, 76, 60, 0.3);
}

.private-site:hover {
    border-color: rgba(231, 76, 60, 0.7);
}

/* 移除私人站点上的斜条纹背景 */
.private-site::before {
    display: none;
}

.site-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    flex-shrink: 0;
    position: relative;
}

.site-icon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.site-info {
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-card-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    width: 100%;
}

.site-description {
    display: none;
}

/* 移除点击次数相关样式 */
.site-stats,
.click-count {
    display: none !important;
}

/* 分类控制按钮区域 */
.category-controls {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 全部展开/折叠按钮 */
.control-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 30px;
    border-radius: 35px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.control-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 分类折叠功能 */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 25px;
    border-bottom: 3px solid #e9ecef;
    margin-bottom: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-radius: 15px;
}

.category-header:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.category-title-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-title-content i {
    font-size: 1.6rem;
    color: #667eea;
}

.category-title-content h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
}

.category-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-toggle.collapsed {
    transform: rotate(-90deg);
}

.category-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.category-content:not(.collapsed) {
    max-height: 5000px;
    opacity: 1;
    margin-top: 30px;
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.footer-stats {
    color: rgba(255, 255, 255, 0.8);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

/* 快捷链接按钮 */
.quick-links {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.quick-links-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.quick-links-toggle:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.quick-links-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
}

.quick-links-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 3px;
}

.quick-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #5a6fd8;
    transform: translateX(3px);
}

.quick-link i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

/* 响应式设计 - 修复手机端图标显示问题 */
@media (max-width: 1400px) {
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 12px;
    }
    .site-card {
        height: 90px;
        padding: 10px 6px;
    }
    .site-icon {
        width: 28px;
        height: 28px;
    }
    .site-card-title {
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
    .site-card {
        height: 80px;
        padding: 8px 5px;
    }
    .site-icon {
        width: 24px;
        height: 24px;
    }
    .site-card-title {
        font-size: 10px;
    }
}

@media (max-width: 1000px) {
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 8px;
    }
    .site-card {
        height: 70px;
        padding: 6px 4px;
    }
    .site-icon {
        width: 20px;
        height: 20px;
    }
    .site-card-title {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-site-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .main {
        padding: 30px;
    }
    
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 5px;
    }
    
    .site-card {
        padding: 3px 2px;
        height: 45px;
        border-radius: 6px;
    }
    
    .site-icon {
        width: 14px;
        height: 14px;
        margin-bottom: 1px;
    }
    
    .site-card-title {
        font-size: 5px;
        line-height: 1;
    }
    
    /* 手机端搜索栏保持一行 */
    .search-input-group {
        padding: 6px;
        border-radius: 30px;
    }
    
    #searchInput {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-engine-select {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 14px;
        margin-left: 4px;
    }
    
    .sidebar {
        width: 320px;
        right: -320px;
    }
    
    .sidebar-header {
        padding: 25px 20px;
    }
    
    .sidebar-header h3 {
        font-size: 1.3rem;
    }
    
    .sidebar-menu a {
        padding: 15px 20px;
        margin-right: 10px;
    }
    
       .admin-entrance {
        top: 15px;
        left: 15px;
    }
    
    .sidebar-toggle {
        top: 15px;
        right: 70px;
    }
    
    .private-entrance {
        top: 70px;
        left: 15px;
    }
    
    .quick-links {
        top: 15px;
        right: 15px;
    }
    
    .quick-links-toggle {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
    }
    
    .site-card {
        padding: 2px 1px;
        height: 35px;
        border-radius: 4px;
    }
    
    .site-icon {
        width: 10px;
        height: 10px;
        margin-bottom: 1px;
    }
    
    .site-card-title {
        font-size: 4px;
        line-height: 1;
    }
    
    .main-site-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .sidebar {
        width: 300px;
        right: -300px;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-menu a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .quick-links {
        right: 12px;
    }
    
    /* 手机端搜索栏进一步优化 */
    #searchInput {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-engine-select {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .search-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .sites-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }
    
    .site-card {
        padding: 1px;
        height: 30px;
        border-radius: 3px;
    }
    
    .site-icon {
        width: 8px;
        height: 8px;
        margin-bottom: 0;
    }
    
    .site-card-title {
        font-size: 3px;
        line-height: 1;
    }
    
    /* 极小屏幕搜索栏优化 */
    #searchInput {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-engine-select {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 60px;
    }
    
    .search-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* 高亮搜索关键词 */
mark {
    background: #ffeb3b;
    padding: 0 3px;
    border-radius: 3px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-card {
    animation: fadeIn 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 焦点样式 */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .admin-entrance,
    .private-entrance,
    .sidebar-toggle,
    .sidebar,
    .modal,
    .quick-links {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .main {
        background: white !important;
        box-shadow: none !important;
    }
}

/* 标题动画效果 */
.title-text {
    animation: titleFloat 5s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 装饰元素动画 */
.decoration-dot {
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}