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

body {
	background: var(--theme-bg, #f5f7fa);
	color: var(--theme-text, #333333);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
}

#header {
	width: 85%;
	margin: auto;
	position: relative;
	min-height: 220px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	overflow: hidden;
}

.header-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	opacity: 0.3;
}

.header-content {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-logo {
	height: 50px;
	width: 50px;
	border-radius: 10px;
}

.site-title {
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-right {
	display: flex;
	gap: 20px;
}

.header-link {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	padding: 8px 16px;
	background: rgba(255,255,255,0.2);
	border-radius: 20px;
	transition: all 0.3s;
}

.header-link:hover {
	background: rgba(255,255,255,0.3);
}

.mobile-menu-btn {
	display: none;
	background: rgba(255,255,255,0.2);
	border: none;
	color: #ffffff;
	font-size: 20px;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
}

.mobile-menu-btn:hover {
	background: rgba(255,255,255,0.3);
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
}

.mobile-menu.show {
	display: block;
}

.mobile-menu-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 80%;
	max-width: 280px;
	height: 100%;
	background: #ffffff;
	overflow-y: auto;
	box-shadow: 2px 0 15px rgba(0,0,0,0.2);
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: var(--theme-primary, #3b82f6);
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
}

.mobile-menu-close {
	background: rgba(255,255,255,0.2);
	border: none;
	color: #ffffff;
	font-size: 20px;
	padding: 5px 10px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
}

.mobile-menu-close:hover {
	background: rgba(255,255,255,0.3);
}

.mobile-menu-link {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s;
}

.mobile-menu-link:hover {
	background: rgba(59, 130, 246, 0.08);
	padding-left: 25px;
}

.mobile-menu-link img {
	width: 20px;
	height: 20px;
	margin-right: 12px;
	border-radius: 4px;
}

.search-area {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 15px 30px;
}

.search-tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.search-tabs a {
	padding: 6px 14px;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	font-size: 13px;
	border-radius: 15px;
	transition: all 0.3s;
}

.search-tabs a:hover {
	background: rgba(255,255,255,0.2);
	color: #ffffff;
}

.search-tabs .tab-active {
	background: rgba(255,255,255,0.95);
	color: #333;
	font-weight: 500;
}

.search-box-wrapper {
	display: flex;
	gap: 0;
}

.search-input {
	flex: 1;
	height: 44px;
	padding: 0 20px;
	border: none;
	border-radius: 8px 0 0 8px;
	font-size: 15px;
	outline: none;
}

.search-btn {
	height: 44px;
	padding: 0 30px;
	background: var(--theme-primary, #3b82f6);
	color: #ffffff;
	border: none;
	border-radius: 0 8px 8px 0;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
}

.search-btn:hover {
	background: var(--theme-hover, #60a5fa);
}

.ad-banner {
	background: linear-gradient(90deg, #ff6b6b, #ffa07a);
	padding: 12px 15px;
	text-align: center;
}

.ad-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
}

.ad-icon {
	font-size: 20px;
}

.ad-text {
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#container {
	max-width: 85%;
	margin: 0 auto;
	padding: 20px 0px;
}

.category-block {
	background: var(--theme-card, #ffffff);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.category-icon {
	margin-right: 8px;
	color: var(--theme-primary, #3b82f6);
	font-size: 16px;
}

.category-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--theme-text, #333333);
}

.more-link {
	font-size: 13px;
	color: #999;
	text-decoration: none;
	padding: 4px 12px;
	border-radius: 4px;
	transition: all 0.3s;
}

.more-link:hover {
	background: var(--theme-primary, #3b82f6);
	color: #ffffff;
}

.site-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 5px;
}

.site-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px;
	background: #fff;
	border-radius: 5px;
	text-decoration: none;
	color: var(--theme-text, #333333);
	transition: all 0.3s;
}

.site-card:hover {
	background: rgba(59, 130, 246, 0.08);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.site-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	margin-bottom: 6px;
	object-fit: cover;
}

.site-name {
	font-size: 13px;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	color: #666;
}

.site-card:hover .site-name {
	color: var(--theme-primary, #3b82f6);
	font-weight: 500;
}

.footer {
	background: #2c2c2c;
	color: #999;
	padding: 30px 15px;
	margin-top: 30px;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 60px;
	padding-bottom: 20px;
	border-bottom: 1px solid #3c3c3c;
}

.footer-section h4 {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
}

.link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.link-list a {
	color: #999;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.3s;
}

.link-list a:hover {
	color: #ffffff;
}

.footer-bottom {
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 20px;
	text-align: center;
}

.footer-bottom p {
	font-size: 13px;
	margin-bottom: 8px;
	color: #666;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 44px;
	height: 44px;
	background: var(--theme-primary, #3b82f6);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 999;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: var(--theme-hover, #60a5fa);
	transform: translateY(-3px);
}

.float-ad {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 998;
}

.float-ad img {
	width: 60px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	transition: all 0.3s;
}

.float-ad:hover img {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.small-icon-ad {
	position: fixed;
	bottom: 100px;
	right: 20px;
	z-index: 997;
	margin-bottom: 10px;
}

.small-icon-ad img {
	width: 48px;
	height: auto;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	transition: all 0.3s;
}

.small-icon-ad:hover img {
	transform: scale(1.15);
	box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
	#header {
		min-height: 180px;
	}
	#container{
		padding:5px;
	}

	.header-content {
		display: flex;
		gap: 15px;
		text-align: center;
	}

	.header-right {
		flex-wrap: wrap;
		justify-content: center;
	}

	.header-link {
		display: none;
	}

	.mobile-menu-btn {
		display: block;
	}

	.site-title {
		font-size: 22px;
	}

	.search-area {
		padding-bottom: 20px;
	}

	.search-input {
		height: 40px;
		font-size: 14px;
	}

	.search-btn {
		height: 40px;
		padding: 0 20px;
		font-size: 14px;
	}

	.category-block {
		padding: 15px;
	}

	.site-grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 5px;
	}

	.site-icon {
		width: 32px;
		height: 32px;
	}

	.site-name {
		font-size: 11px;
	}

	.footer-content {
		flex-direction: column;
		gap: 25px;
	}

	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}

	.ad-text {
		font-size: 14px;
	}

	.float-ad, .small-icon-ad {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	#header {
		min-height: 160px;
	}
	#container{
		padding:5px;
	}

	.header-link {
		padding: 6px 12px;
		font-size: 12px;
	}

	.site-logo {
		height: 40px;
		width: 40px;
	}

	.site-title {
		font-size: 18px;
	}

	.site-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 3px;
	}

	.site-card {
		padding: 5px;
	}

	.site-icon {
		width: 28px;
		height: 28px;
	}

	.site-name {
		font-size: 10px;
	}

	.search-tabs {
		gap: 3px;
	}

	.search-tabs a {
		padding: 4px 10px;
		font-size: 12px;
	}

	.category-header {
		display: flex;
		gap: 10px;
		text-align: left;
	}
}