* {
    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, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

/* 顶部导航 */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: #f1404b;
}

.admin-btn {
    color: #888;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    margin-right: 10px;
}

.admin-btn:hover {
    color: #f1404b;
    background: rgba(241, 64, 75, 0.1);
}

.login-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #f1404b;
    border-color: #f1404b;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 180px;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    overflow-y: auto;
    z-index: 100;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.category-list a:hover {
    background: rgba(241, 64, 75, 0.2);
    color: #f1404b;
    border-left-color: #f1404b;
}

.category-list a i {
    width: 20px;
    text-align: center;
}

/* 搜索区域 */
.search-section {
    margin-left: 180px;
    padding: 100px 40px 30px;
    max-width: 800px;
}

.search-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.search-tabs span {
    padding: 8px 16px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s;
}

.search-tabs span.active,
.search-tabs span:hover {
    background: rgba(241, 64, 75, 0.2);
    color: #f1404b;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    padding: 15px 30px;
    background: #f1404b;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #d63640;
}

/* 主内容区 */
.main-content {
    margin-left: 180px;
    padding: 20px 40px 60px;
}

.category-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h4 i {
    color: #f1404b;
}

.more-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #f1404b;
}

/* 网站卡片网格 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.site-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.site-card a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    gap: 15px;
}

.site-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f1404b, #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚 */
.footer {
    margin-left: 180px;
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 13px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: #f1404b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(241, 64, 75, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        width: 60px;
    }
    
    .category-list a span {
        display: none;
    }
    
    .category-list a {
        justify-content: center;
        padding: 15px;
    }
    
    .search-section,
    .main-content,
    .footer {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .search-section,
    .main-content,
    .footer {
        margin-left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .site-grid {
        grid-template-columns: 1fr;
    }
}
