:root {
    --primary-color: #0D6EFD;
    --secondary-color: #3C20B5;
    --accent-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 56px;
}

.container {
    max-width: 1380px;
    width: 100%;
	
}


/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
	 display: flex;
    align-items: center; /* 子元素垂直居中 */
    gap: 8px; /* 可选：统一logo、图标、文字之间的间距 */
}

/* 导航栏logo样式 */
.navbar-logo {
    width: 50px; /* logo宽度，可根据需要调整 */
    height: 50px; /* logo高度，保持宽高比 */
    border-radius: 8px; /* 可选：圆角效果 */
    object-fit: contain; /* 保证图片不变形 */
    vertical-align: middle; /* 与文字垂直居中对齐 */
}

/* ==================== 导航栏搜索样式 ==================== */

/* 导航栏整体布局 */
.navbar .container > .d-flex {
    flex-wrap: wrap;
    align-items: center;
}




/* 导航栏搜索框（桌面端） */
.navbar-search-desktop {
    flex: 0 1 400px; /* 固定宽度 */
    min-width: 300px;
    max-width: 500px;
}

.navbar-search-input {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px 0 0 20px !important;
    height: 36px;
}

.navbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.navbar-search-desktop .btn {
    border-radius: 0 20px 20px 0 !important;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.navbar-search-desktop .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 移动端搜索框 */
.navbar-search-mobile {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
}

.navbar-search-mobile .input-group {
    width: 100%;
}

.navbar-search-mobile .form-control {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px 0 0 20px;
    height: 36px;
}

.navbar-search-mobile .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search-mobile .btn {
    border-radius: 0 20px 20px 0;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 搜索模式样式 */
.search-mode .banner-container,
.search-mode #recommended,
.search-mode #leaderboard,
.search-mode .shangbianju,  /* 隐藏所有平台模块的搜索和排序 */
.search-mode .shangbianju1 { /* 隐藏分类筛选器 */
    display: none !important;
}

.search-mode #platforms {
    margin-top: 20px;
}

.search-mode .search-header {
    display: block !important;
}

/* 搜索头部信息 */
.search-header {
    display: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.search-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-results-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-count {
    font-size: 1.2rem;
    font-weight: 600;
}

.search-query {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.clear-search-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .navbar-search-desktop {
        flex: 0 1 350px;
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .navbar-brand {
        margin-right: 20px;
    }
    
    .navbar-search-desktop {
        flex: 0 1 300px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    /* 导航栏布局调整为垂直 */
    .navbar .container > .d-flex {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .navbar-brand {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .navbar-search-desktop {
        display: none !important; /* 移动端隐藏桌面搜索框 */
    }
    
    .navbar-search-mobile {
        margin-top: 10px;
    }
    
    /* 移动端搜索按钮 */
    #navbarSearchToggleBtn {
        display: inline-flex !important;
    }
}

@media (max-width: 576px) {
    .search-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-search-btn {
        align-self: flex-end;
    }
}

/* 搜索加载状态 */
.search-loading {
    position: relative;
    min-height: 200px;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 空搜索结果样式 */
.empty-search-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 30px 0;
}

.empty-search-results i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-search-results h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-search-results p {
    color: #6c757d;
}

/* ==================== Banner样式 ==================== */

/* Banner容器 */
.banner-container {
	
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 25px  auto 20px; /* 添加底部间距 */
	
    max-width: 1380px; /* 与容器保持一致 */
    width: 100%;
     /* 移除固定高度，改为 3:1 比例 */
    aspect-ratio: 3 / 1;
    min-height: 200px; /* 最小高度保证 */
}
/* 兼容不支持 aspect-ratio 的浏览器 */
@supports not (aspect-ratio: 3/1) {
    .banner-container {
        height: 0;
        padding-top: 33.33%; /* 100% / 3 = 33.33% */
        aspect-ratio: auto;
    }
}

/* Banner轮播外层容器 - 添加这个容器 */
.banner-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa; /* 默认背景色 */
}



/* Banner轮播 */
.banner-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

/* Banner项 */
.banner-item {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-item:hover img {
    transform: scale(1.05);
}
/* ==================== 图片加载优化 ==================== */

.banner-image-container img.loading {
    opacity: 0.5;
}

.banner-image-container img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.banner-item:hover .banner-image-container img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
	 object-position: center center; /* 默认居中 */
}

/* Banner内容覆盖层 */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    padding: 25px 30px;
    padding-top: 50px;
}

.banner-title {
     font-size: clamp(1.2rem, 2vw, 1.8rem); /* 响应式字体大小 */
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.banner-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Banner导航按钮 */
.banner-nav {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.banner-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.banner-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Banner指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Banner加载和空状态 */
#bannerLoading,
#bannerEmptyState {
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

#bannerEmptyState i {
    font-size: 3rem;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 1200px) {
    .banner-container {
        max-width: 100%;
        border-radius: 12px;
		
        margin: 25px 0 30px 0; /* 移除左右边距，让banner与边缘对齐 */
		aspect-ratio: 16 / 6; /* 稍微调整比例 */
    }
	  @supports not (aspect-ratio: 16/6) {
        .banner-container {
            padding-top: 37.5%; /* 100% / (16/6) = 37.5% */
        }
    }
	
	.banner-item {
		flex: 0 0 100%;
		position: relative;
		height: 100%;
		width: 100%;
		cursor: pointer;
		overflow: hidden;
		border-radius: 12px;
	}

	.banner-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.5s ease;
	}
}

@media (max-width: 768px) {
    .banner-container {
        aspect-ratio: 16 / 7; /* 手机端调整比例 */
		margin-top:25px;
		 margin-bottom: 15px;
    }
    
	  @supports not (aspect-ratio: 16/7) {
        .banner-container {
            padding-top: 43.75%; /* 100% / (16/7) = 43.75% */
        }
    }
    
    .banner-overlay {
         padding: 15px 20px;
        padding-top: 30px;
    }
    
    .banner-title {
        font-size: 1.4rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
		 -webkit-line-clamp: 1;
    }
}

@media (max-width: 576px) {
    .banner-container {
         aspect-ratio: 2 / 1; /* 手机端更紧凑 */
        margin-top: 30px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
	
	 @supports not (aspect-ratio: 2/1) {
        .banner-container {
            padding-top: 50%; /* 100% / 2 = 50% */
        }
    }

    .banner-overlay {
        padding: 15px;
        padding-top: 25px;
    }
    
    .banner-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .banner-description {
        display: none;
    }
    
    .banner-badge {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .banner-placeholder h3 {
        font-size: 1.4rem;
    }
    
    .banner-placeholder i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .banner-container {
        aspect-ratio: 9 / 4; /* 更紧凑的比例 */
		margin-top: 30px;
    }
	@supports not (aspect-ratio: 9/4) {
        .banner-container {
            padding-top: 44.44%; /* 100% / (9/4) = 44.44% */
        }
    }
	
	.banner-item {
		width: 100%;
		height: 192px;
		margin-top:-100px;
	}

	.banner-item img {
		
		height: 192px;
		
	}

    .banner-overlay {
        padding: 10px 12px;
        padding-top: 20px;
    }
    
    .banner-title {
         display: none;
    }
    
    .banner-description {
        display: none;
    }
    
    .banner-badge {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .banner-placeholder h3 {
        font-size: 1.4rem;
    }
    
    .banner-placeholder i {
        font-size: 2.5rem;
    }
}

@media (max-width: 375px) {
    .banner-container {
         aspect-ratio: 8 / 3; /* 非常小的屏幕 */
		 margin-top: 30px;
    }
	@supports not (aspect-ratio: 8/3) {
        .banner-container {
            padding-top: 37.5%; /* 100% / (8/3) = 37.5% */
        }
    }
	
	.banner-item {
		width: 100%;
		height: 192px;
		margin-top:-100px;
	}

	.banner-item img {
		
		height: 192px;
		
	}

    .banner-overlay {
        padding: 15px;
        padding-top: 35px;
    }
    
    .banner-title {
         display: none;
    }
    
    .banner-description {
        display: none;
    }
    
    .banner-badge {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .banner-placeholder h3 {
        font-size: 1.4rem;
    }
    
    .banner-placeholder i {
        font-size: 2.5rem;
    }
}
/* Banner图片容器 */
.banner-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%); /* 无图片时的背景 */
}

/* 确保图片等比显示 */
.banner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 改为 cover 填充整个容器 */
    object-position: center;
    display: block;
    max-width: 100%;
    max-height: 100%;
    background: white; /* 图片周围空白区域用白色填充 */
}

/* 无图片时的占位符 */
.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.banner-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.banner-placeholder h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-placeholder p {
    opacity: 0.8;
    font-size: 1rem;
}

/* 修复banner项的内边距 */
.banner-item {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* 确保轮播容器宽度正确 */
.banner-carousel {
    display: flex;
    flex-wrap: nowrap;
}


/* Banner自动轮播效果 */
@keyframes bannerAutoScroll {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-100%);
    }
    45% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    70% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    95% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(-400%);
    }
}



/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: #495057;
    font-weight: 500;
	font-size:14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* ==================== 网站卡片优化 ==================== */

/* 推荐网站卡片（有图片） */
.xiabianju{
	margin-bottom:20px;
}

.recommended-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
    margin-bottom: 20px; /* 上下间距20px */
    cursor: pointer;
    position: relative;
}

.recommended-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.recommended-img {
    height: 130px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recommended-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-card:hover .recommended-img img {
    transform: scale(1.05);
}

.recommended-icon {
    font-size: 3rem;
    color: #9ca3af;
}

.recommended-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.recommended-content {
    padding: 5px 20px;
	
}

.recommended-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
	margin-top:10px;
	margin-left:60px;
    color: var(--dark-color);
}

.recommended-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom: 0;
	margin-left:60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	margin-bottom:-10px;
}

/* 普通网站卡片（无图片，高度150px） */
.sousuo{
	margin-top:-20px;
}


.normal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 126px; /* 固定高度150px */
    border: 1px solid #e9ecef;
    margin-bottom: 2px; /* 上下间距2px */ 
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.normal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.normal-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.normal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.normal-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.normal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.category-badge {
    background: #E6F6FE;
    color: #0D6EFD;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.click-count {
    color: #6c757d;
    font-size: 0.8rem;
}

.click-count i {
    margin-right: 4px;
}

/* 普通网站卡片logo样式 */
.normal-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 15px;
}

.normal-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 15px;
	margin-top:15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 0px solid #e9ecef;
}

.normal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
   
}

.normal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* 调整高度适应logo */
.normal-card {
    height: 140px; /* 增加高度容纳logo */
}

@media (max-width: 576px) {
	.normal-title {
		margin-top:-15px;
	}
	.normal-description {
	
		margin-bottom: 5px;
	
	}

	.normal-footer {
		margin-top:10px;
		margin-bottom:-15px;
	}

}





/* 推荐卡片logo样式 */
.recommended-card .recommended-logo {
    position: absolute;
    bottom: -10px;
    left: 15px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    border: 0px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 2;
}

.recommended-card .recommended-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
 
}

.recommended-content {
    position: relative;
    padding-top: 0px; /* 为logo留出空间 */
}
@media (max-width: 576px) {
	.recommended-card .recommended-logo {
  
    bottom: 2px;
   
}

}







/* 加载更多按钮容器居中 */
#loadMoreContainer {
    text-align: center;
    display: block !important;
}

/* 分页信息容器布局调整 */
#pageInfoContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 移除原来的justify-content-between */
.justify-content-between{
	margin-top:-30px;
}

#pageInfoContainer {
    justify-content: center !important;
}

/* 加载更多按钮的额外样式 */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

/* 微信公众号模块 */
.wechat-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.qrcode-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* 移动端调整卡片 */
    .normal-card {
        height: 140px;
    }
    
    .recommended-img {
        height: 140px;
    }
    
    /* 移动端每行显示2个 */
    #websitesGrid .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
	.shangbianju{
		margin-top:-30px;
		
	}

    .hero-title {
        font-size: 1.8rem;
    }
    
    body {
        padding-top: 48px;
    }
    
    .normal-card {
        height: 130px;
    }
    
    .recommended-img {
        height: 112px;
    }
    
    .recommended-content,
    .normal-content {
        padding: 15px;
    }
    
    /* 移动端每行显示1个 */
    #websitesGrid .col-md-6 {
        margin-bottom: 20px;
    }
}

/* 工具类 */
.cursor-pointer {
    cursor: pointer;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 网格间距调整 - 统一所有卡片的间距 */
#recommendedWebsites .col-md-6,
#websitesGrid .col-md-6 {
    margin-bottom: 20px !important;
}

/* 推荐模块标题样式 */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
	margin-top:-10px;
}

.section-title i {
    margin-right: 10px;
}
.shaixuan{
	height:42px;
	border-radius:8px;
}

.shangbianju{
	margin-top:-30px;
	
}
.shangbianju1{
	margin-top:14px;
	
}
/* 加载更多按钮样式 */
.load-more-btn {
    padding: 10px 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
	margin-top:-20px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* 请求网络时的加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}


/* ==================== 排行榜优化样式 ==================== */

/* 排行榜表格优化 */
.leaderboard-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.leaderboard-table thead th {
   /*  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/
	background: #0D6EFD;
    color: white;
    border-bottom: #0D6EFD;
    font-weight: 600;
    padding: 16px 20px;
}

.leaderboard-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.leaderboard-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.leaderboard-table tbody tr {
    transition: all 0.3s ease;
    
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: translateX(5px);
}

.leaderboard-table tbody tr:last-child {
    
}

/* 排名徽章border-bottom: none; */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
    color: #fff;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    color: #fff;
}

.rank-badge.normal {
    background: #f8f9fa;
    color: #6c757d;
}

/* 网站名称样式 */
.leaderboard-site-name {
    color: var(--dark-color);
    font-weight: 600;

    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
    margin-bottom: 4px;
}

.leaderboard-site-name:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.leaderboard-site-desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类标签优化 */
.leaderboard-category {
    background: #E6F6FE;
    color: #0D6EFD;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
   
}

/* 点击量样式 */
.leaderboard-clicks {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.leaderboard-clicks i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 操作按钮优化 */
.leaderboard-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.leaderboard-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
	border: 2px solid var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .leaderboard-table {
        font-size: 0.9rem;
    }
    
    .leaderboard-table thead th,
    .leaderboard-table tbody td {
        padding: 12px 8px;
    }
    
    .rank-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .leaderboard-site-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .leaderboard-clicks {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .leaderboard-table {
        font-size: 0.85rem;
    }
    
    .leaderboard-table thead th:nth-child(4),
    .leaderboard-table tbody td:nth-child(4) {
        display: none;
    }
}
/* 排行榜空状态 */
.empty-leaderboard {
    padding: 40px 20px;
    color: #6c757d;
}

.empty-leaderboard i {
    color: #dee2e6;
    margin-bottom: 20px;
}
/* ==================== 排行榜响应式优化 ==================== */

/* 桌面端显示全部字段 */
.leaderboard-table th,
.leaderboard-table td {
    display: table-cell;
}

/* 移动端隐藏分类和操作字段 */
@media (max-width: 576px) {
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        display: none;
    }
    
    .leaderboard-table th:nth-child(2),
    .leaderboard-table td:nth-child(2) {
        width: auto !important;
    }
    
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) {
        width: 80px !important;
        text-align: center;
    }
}

/* 移动端表格标题优化 */
@media (max-width: 576px) {
    .leaderboard-table thead th:nth-child(1) {
        width: 60px;
    }
    
    .leaderboard-table thead th:nth-child(4) {
        width: 80px;
        text-align: center;
    }
    
    /* 移动端隐藏多余的标题 */
    .leaderboard-table thead th:nth-child(3),
    .leaderboard-table thead th:nth-child(5) {
        display: none;
    }
}

/* ==================== 排行榜响应式优化 ==================== */

/* 排行榜表格容器 */
.leaderboard-container {
    width: 100%;
    overflow-x: auto;
}

/* 排行榜表格 */
.leaderboard-table {
    width: 100%;
    min-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 表格列宽设置 */
.leaderboard-table th:nth-child(1),
.leaderboard-table td:nth-child(1) {
    width: 80px; /* 排名列 */
    min-width: 80px;
    max-width: 80px;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    width: 60%; /* 名称列占60% */
    min-width: 200px;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
    width: 15%; /* 分类列 */
    min-width: 100px;
}

.leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(4) {
    width: 15%; /* 点击量列 */
    min-width: 100px;
}

.leaderboard-table th:nth-child(5),
.leaderboard-table td:nth-child(5) {
    width: 10%; /* 操作列 */
    min-width: 80px;
}

/* 移动端隐藏分类和操作字段 */
@media (max-width: 768px) {
    /* 移动端列宽重新分配 */
    .leaderboard-table th:nth-child(2),
    .leaderboard-table td:nth-child(2) {
        width: 70%; /* 移动端名称列占70% */
    }
    
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) {
        width: 30%; /* 移动端点击量列占30% */
    }
}

@media (max-width: 576px) {
    .leaderboard-table {
        min-width: 300px;
    }
    
    /* 移动端隐藏分类和操作列 */
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        display: none;
    }
    
    /* 重新分配列宽 */
    .leaderboard-table th:nth-child(2),
    .leaderboard-table td:nth-child(2) {
        width: 60%; /* 名称列 */
        min-width: 150px;
    }
    
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) {
        width: 40%; /* 点击量列 */
        min-width: 80px;
        text-align: center;
    }
    
    /* 移动端表格标题优化 */
    .leaderboard-table thead th {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .leaderboard-table tbody td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

/* 移动端名称列优化 */
@media (max-width: 576px) {
    .leaderboard-site-name {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    .leaderboard-site-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-height: 1.2;
        opacity: 0.8;
    }
    
    .leaderboard-clicks {
        font-size: 1rem;
        justify-content: center;
    }
    
    /* 添加点击指示 */
    .leaderboard-site-name {
        position: relative;
        padding-right: 15px;
    }
    
    .leaderboard-site-name::after {
        content: "→ ";
        position: absolute;
        right: 2px;
        opacity: 0.5;
        transition: all 0.2s ease;
    }
    
    .leaderboard-site-name:hover::after {
        opacity: 1;
        transform: translateX(3px);
    }
}

/* 确保表格占满容器宽度 */
.leaderboard-container {
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.leaderboard-container .table {
    margin-bottom: 0;
}