/* 站点分类页面样式 */
body {
    padding-top: 0;
    background: #f5f7fa;
    min-height: 100vh;
}

/* 搜索区域 */
.search-section {
    padding: 130px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 300px;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.search-section>* {
    position: relative;
    z-index: 2;
}

.search-slogan {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin-bottom: 35px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.search-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 18px 70px 18px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.search-btn:hover {
    background: #40a9ff;
    transform: translateY(-50%) scale(1.05);
}

/* 覆盖首页的grid布局 */
.content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 320px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.category-nav {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-tab:hover,
.nav-tab.active {
    background: #1890ff;
    color: #fff;
}

.sites-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.site-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.site-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.site-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f5f5f5;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.site-avatar.loaded {
    opacity: 1;
}

.site-content {
    flex: 1;
    min-width: 0;
}

.site-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-description {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-tag {
    padding: 3px 10px;
    background: #f0f5ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s;
    background: #fff;
}

.pagination a:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination .current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

@media (max-width: 768px) {
    .search-section {
        padding: 100px 15px 30px;
        min-height: 220px;
    }

    .search-slogan {
        font-size: 22px;
    }

    .search-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .search-input {
        padding: 14px 55px 14px 18px;
        font-size: 14px;
    }

    .search-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .content-wrapper {
        flex-direction: column !important;
        padding: 20px 10px;
        gap: 15px;
    }

    .main-content {
        width: 100%;
    }

    .right-sidebar {
        display: none !important;
    }

    .category-nav {
        padding: 12px 14px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .nav-tabs {
        gap: 6px;
    }

    .nav-tab {
        padding: 7px 12px;
        font-size: 13px;
        border-radius: 5px;
    }

    .sites-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-item {
        padding: 14px;
        gap: 12px;
        border-radius: 10px;
    }

    .site-avatar {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .site-content {
        flex: 1;
        min-width: 0;
    }

    .site-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .site-description {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .site-tags {
        gap: 5px;
    }

    .site-tag {
        padding: 2px 8px;
        font-size: 11px;
        border-radius: 10px;
    }

    .pagination {
        margin-top: 20px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 5px;
    }
}