﻿/* 基础样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
height: 100%!important;
overflow: hidden!important;
overflow-x: hidden!important;
}

.scroll-wrap {
height: 100%;
overflow-y: auto;                /* 子容器可滚动 */
-webkit-overflow-scrolling: touch;/* iOS 平滑滚动 */
overscroll-behavior: contain;     /* 禁止弹性滚动 */
}

/* —— 最大 6 列 —— */
@media (min-width: 1200px) {
.website-grid {
	grid-template-columns: repeat(6, 1fr) !important;
	gap: 20px;
}
}

body {
	font-family: '微软雅黑', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 布局容器 */
.header-container,
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 头部样式 */
.main-header {
	background-color: #000000;
	padding: 15px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.logo-container {
	flex: 0 0 200px;
}

.logo-img {
	height: 60px;
	transition: transform 0.6s ease;
	transform-style: preserve-3d;
}
.logo-img:hover {
	transform: rotateY(360deg);
}

.logo-img:hover {
	transform: scale(1.05);
}

.search-container {
	flex: 1;
	max-width: 600px;
	margin: 0 20px;
}

.search-form {
	display: flex;
}

.search-input {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	outline: none;
}

.search-btn {
	padding: 10px 20px;
	border: none;
	background-color: #f8f9fa;
	color: #333;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

.search-btn-baidu {
	border-radius: 0;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
}

.search-btn-google {
	border-radius: 0 4px 4px 0;
	background-color: #4285f4;
	color: white;
}

.search-btn:hover {
	background-color: #e9ecef;
}

.search-btn-google:hover {
	background-color: #3367d6;
}

.toolbar {
	flex: 0 0 auto;
}

.tool-btn {
	color: #ecf0f1;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.tool-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.favorite-btn::before {
	content: "★";
	margin-right: 5px;
	color: #f1c40f;
}

/* 主要内容区 */
.main-content {
	padding: 0px 0;
}

/* 快速导航 */
.quick-nav {
	background-color: white;
	padding: 15px 20px;
	margin-bottom: 30px;
	border-radius: 10px;
	margin-left: 10px;
	margin-right: 5px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.nav-buttons {
	display: flex;
	gap: 15px;
}

.nav-btn {
	display: flex;
	align-items: center;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.nav-icon {
	width: 18px;
	height: 18px;
	margin-right: 8px;
}

.hot-btn {
	background-color: #ffecec;
	color: #e74c3c;
}

.hot-btn:hover {
	background-color: #ffd6d6;
}

.new-btn {
	background-color: #e8f4fc;
	color: #3498db;
}

.new-btn:hover {
	background-color: #d0e6f7;
}

.app-btn {
	background-color: #f0f8ff;
	color: #2980b9;
}

.app-btn:hover {
	background-color: #d8eaf8;
}

/* 网站区块 */
.website-section {
	background-color: white;
	border-radius: 8px;
	margin-bottom: 30px;
	margin-left: 10px;
	margin-right: 10px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.section-title {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	background-color: #e3e5e7;
	border-bottom: 1px solid #eee;
	font-size: 18px;
	color: #2c3e50;
}

.section-icon {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	color: #3498db;
}

.website-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 15px;
	padding: 20px;
}

.website-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px;
	border-radius: 10px;
	background-color: white;
	border: 1px solid #eee;
	transition: all 0.3s ease;
}

.website-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	border-color: #3498db;
}

.website-img {
	width: 120px;
	height: auto;
	object-fit: contain;
	margin-bottom: 10px;
	border-radius: 4px;
	border: 1px solid #eee;
}

.website-card p {
	margin: 0;
	font-size: 14px;
	color: #333;
	text-align: center;
	font-weight: bold;
}

/* 特定区块样式 */
.vip-section .section-icon {
	color: #e67e22;
}

.bank-section .section-icon {
	color: #27ae60;
}

/* 页脚样式 */
.main-footer {
	background-color: #000000;
	color: #ecf0f1;
	padding: 10px 0;
	margin-top: 0px;
}

.copyright {
	text-align: center;
	margin-bottom: 10px;
	font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
	.header-container {
		flex-direction: column;
		gap: 15px;
	}
	
	.logo-container {
		flex: 0 0 auto;
		margin-bottom: 10px;
	}
	
	.search-container {
		width: 100%;
		margin: 0 0 15px;
	}
	
	.website-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@media (max-width: 768px) {
	.quick-nav {
		flex-direction: column;
		gap: 15px;
	}
	
	.nav-buttons {
		width: 100%;
		justify-content: space-between;
	}
	
	.website-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
		padding: 15px;
	}
}

@media (max-width: 576px) {
	.nav-btn {
		padding: 8px 10px;
		font-size: 13px;
	}
	
	.nav-icon {
		width: 16px;
		height: 16px;
	}
	
	.website-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
	
	.website-img {
		width: 60px;
		height: 30px;
	}
	
	.website-card p {
		font-size: 13px;
	}
}

/* 动画效果 */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.website-card {
	animation: fadeIn 0.5s ease forwards;
	opacity: 0;
}

/* 横幅区 */
.banner-section {
margin: 30px 10px;       /* 与其它版块保持同样的左右留白和上下间距 */
}
.banner-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 最多三列，够宽自动铺满 */
gap: 15px;
}
.banner-img {
width: 100%;
max-height: 370px;       /* 限制最大高度 */
object-fit: cover;       /* 保证图片铺满且不变形 */
border-radius: 8px;
display: block;
}
@media (max-width: 600px) {
.banner-grid {
	grid-template-columns: 1fr; /* 手机端一行一张 */
}
}

.swiper-container {
width: 100%;
overflow: hidden; /* 隐藏多余部分 */
}
.swiper-wrapper {
box-sizing: content-box; /* 确保 padding/间距不被加到宽度里 */
}
.swiper-slide {
box-sizing: border-box;  /* slide 内部 padding 不影响 slide 本身宽度 */
}
/* 弹窗样式 */
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.popup-overlay.active {
opacity: 1;
visibility: visible;
}

.popup-container {
border: none;
width: 800px;
max-width: 90%;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
transform: scale(0.8);
transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
transform: scale(1);
}

.popup-header {
color: white;
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(90deg, #111, #333);
padding: 20px 24px;
border-bottom: none;
box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.2);
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}

.popup-header h3 {
margin: 0;
font-size: 1.2rem;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.close-btn {
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
padding: 0 10px;
transition: transform 0.2s;
}

.close-btn:hover {
transform: scale(1.2);
}

.popup-content {
padding: 0 !important;
}

.popup-swiper {
width: 100%;
height: auto !important;  /* 高度自适应内容 */
}

.popup-img {
width: 100%;
height: auto;
object-fit: fill !important;
}

/* 轮播导航按钮样式 */
.swiper-button-next, 
.swiper-button-prev {
color: #3498db;
background-color: rgba(255, 255, 255, 0.8);
width: 40px!important;
height: 40px!important;
border-radius: 50%!important;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
font-size: 20px!important;
}

.swiper-pagination-bullet {
background: #ccc;
opacity: 1;
}

.swiper-pagination-bullet-active {
background: #3498db;
}

@media (max-width: 768px) {
.popup-container {
	max-width: 95%;
}

.popup-swiper {
	height: 400px;
}

.swiper-button-next, 
.swiper-button-prev {
	display: none;
}
}

.website-card:nth-child(1) { animation-delay: 0.1s; }
.website-card:nth-child(2) { animation-delay: 0.2s; }
.website-card:nth-child(3) { animation-delay: 0.3s; }
.website-card:nth-child(4) { animation-delay: 0.4s; }
.website-card:nth-child(5) { animation-delay: 0.5s; }
.website-card:nth-child(6) { animation-delay: 0.6s; }
.website-card:nth-child(7) { animation-delay: 0.7s; }
.website-card:nth-child(8) { animation-delay: 0.8s; }
.website-card:nth-child(9) { animation-delay: 0.9s; }
.website-card:nth-child(10) { animation-delay: 1.0s; }
.website-card:nth-child(11) { animation-delay: 1.1s; }
.website-card:nth-child(12) { animation-delay: 1.2s; }