* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* 隐藏全局滚动条 */
::-webkit-scrollbar {
	display: none;
}

/* 通用 SVG 图标样式 */
svg.icon {
	width: 1em;
	height: 1em;
	vertical-align: -0.15em;
	fill: currentColor;
	overflow: hidden;
	color: inherit;
}

svg.icon use {
	fill: inherit;
}

:root {
	--primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	--primary-color: #6366f1;
	--secondary-color: #8b5cf6;
	--bg-body: #f3f4f6;
	--bg-card: rgba(255, 255, 255, 0.8);
	--text-color: #374151;
	--text-secondary: #6b7280;
	--radius: 20px;
	--shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
	--glass-blur: blur(20px);
}

body[data-theme="pink"] {
	--primary-gradient: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
	--primary-color: #ec4899;
	--secondary-color: #f43f5e;
	--bg-body: #fdf2f8;
	--bg-card: rgba(255, 255, 255, 0.85);
}

body[data-theme="blue"] {
	--primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
	--primary-color: #3b82f6;
	--secondary-color: #06b6d4;
	--bg-body: #eff6ff;
}

body[data-theme="green"] {
	--primary-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
	--primary-color: #10b981;
	--secondary-color: #34d399;
	--bg-body: #f0fdf4;
}

body[data-theme="dark"] {
	--primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	--primary-color: #818cf8;
	--secondary-color: #a78bfa;
	--bg-body: #0f172a;
	--bg-card: rgba(30, 41, 59, 0.9);
	--text-color: #e2e8f0;
	--text-secondary: #94a3b8;
}

body {
	background: var(--bg-body);
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
	color: var(--text-color);
	transition: background 0.3s ease;
	padding-top: 80px;
}

/* 毛玻璃导航栏 */
.glass-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: var(--shadow);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-subtitle {
	font-size: 12px;
	color: var(--text-secondary);
	font-weight: 400;
}

.nav-menu {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

.nav-menu-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px;
}

.nav-menu-item {
	display: flex;
}

.nav-menu-item a {
	padding: 8px 16px;
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.nav-menu-item a:hover {
	background: rgba(99, 102, 241, 0.1);
	color: var(--primary-color);
}

.nav-logo {
	height: 40px;
	width: 40px;
	border-radius: 12px;
	object-fit: cover;
}

.nav-title {
	font-size: 20px;
	font-weight: 700;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-share {
	display: flex;
	align-items: center;
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--primary-gradient);
	color: white;
	border: none;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.share-btn.copied {
	background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.nav-theme-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-theme-btn[data-theme="purple"] {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.nav-theme-btn[data-theme="pink"] {
	background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.nav-theme-btn[data-theme="blue"] {
	background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.nav-theme-btn[data-theme="green"] {
	background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.nav-theme-btn[data-theme="dark"] {
	background: linear-gradient(135deg, #0f172a 0%, #818cf8 100%);
}

.nav-theme-btn:hover {
	transform: scale(1.1);
}

.nav-theme-btn.active {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 主容器 */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

/* 欢迎卡片 */
.welcome-section {
	margin-bottom: 24px;
}

.welcome-card {
	background: var(--primary-gradient);
	border-radius: var(--radius);
	padding: 40px;
	text-align: center;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.6s ease forwards;
}

.welcome-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.welcome-title {
	position: relative;
	z-index: 1;
	font-size: 36px;
	font-weight: 700;
	color: white;
	margin-bottom: 12px;
}

.welcome-subtitle {
	position: relative;
	z-index: 1;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

/* 滚动图片横幅 */
.banner-section {
	margin-bottom: 24px;
}

.banner-card {
	border-radius: var(--radius);
	animation: fadeInUp 0.6s ease forwards;
	overflow: hidden;
}

/* 轮播图样式 */
.banner-carousel {
	position: relative;
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	display: block;
	text-decoration: none;
}

.banner-slide.active {
	position: relative;
	opacity: 1;
	z-index: 1;
}

.banner-slide-img {
	width: 100%;
	height: auto;
	max-height: 450px;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
}

.banner-slide:hover .banner-slide-img {
	transform: scale(1.02);
}

/* 轮播指示器 */
.banner-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.banner-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}

.banner-dot.active {
	background: rgba(255, 255, 255, 0.95);
	width: 30px;
	border-radius: 5px;
}

.banner-link {
	display: block;
	text-decoration: none;
}

.banner-img {
	width: 100%;
	border-radius: var(--radius);
	display: block;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: var(--shadow);
}

.banner-link:hover .banner-img {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner-placeholder {
	background: var(--primary-gradient);
	border-radius: calc(var(--radius) - 8px);
	padding: 48px 32px;
	text-align: center;
}

.banner-title {
	font-size: 32px;
	font-weight: 700;
	color: white;
	margin-bottom: 12px;
}

.banner-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

/* 滚动公告 */
.notice-section {
	margin-bottom: 24px;
}

.notice-card {
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-radius: var(--radius);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: fadeInUp 0.6s ease forwards;
	animation-delay: 0.1s;
}

.notice-icon {
	flex-shrink: 0;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

.marquee-wrapper {
	overflow: hidden;
	flex: 1;
}

.marquee {
	white-space: nowrap;
	display: inline-block;
	padding-left: 100%;
	animation: marquee-scroll 15s linear infinite;
	color: var(--text-color);
	font-size: 14px;
}

@keyframes marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

/* 搜索框 */
.search-section {
	margin-bottom: 24px;
}

.search-box {
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	gap: 12px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.2);
	animation: fadeInUp 0.6s ease forwards;
	animation-delay: 0.1s;
}

.search-input {
	flex: 1;
	padding: 14px 18px;
	border: 2px solid transparent;
	border-radius: 14px;
	font-size: 16px;
	outline: none;
	background: rgba(255, 255, 255, 0.5);
	color: var(--text-color);
	transition: all 0.3s ease;
}

.search-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
	color: var(--text-secondary);
}

.search-btn {
	padding: 14px 24px;
	background: var(--primary-gradient);
	border: none;
	border-radius: 14px;
	color: white;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 分组标签 */
.groups-section {
	margin-bottom: 24px;
}

.groups-scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.groups-scroll::-webkit-scrollbar {
	display: none;
}

.group-tab {
	padding: 10px 20px;
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	color: var(--text-secondary);
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.group-tab:hover {
	color: var(--text-color);
	background: rgba(255, 255, 255, 0.9);
}

.group-tab.active {
	background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
	color: white;
	border-color: transparent;
}

/* 链接卡片 */
.links-section {
	margin-bottom: 32px;
}

.links-grid {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.group-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.group-wrapper[style*="display: none"] + .group-wrapper {
	margin-top: 0;
}

.group-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	color: var(--text-color);
	padding: 0 4px;
}

.group-title span:first-child {
	font-size: 24px;
}

.link-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.link-card {
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-radius: var(--radius);
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	cursor: pointer;
}

.link-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.link-icon-wrapper {
	flex-shrink: 0;
}

.link-icon {
	width: 52px;
	height: 52px;
	background: var(--primary-gradient);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	overflow: hidden;
}

.link-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.link-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
	color: inherit;
}

.link-icon:has(img),
.link-icon:has(svg) {
	background: transparent;
	padding: 0;
}

.link-icon svg use {
	fill: inherit;
}

.link-content {
	flex: 1;
	min-width: 0;
}

.link-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 4px;
}

.link-desc {
	font-size: 13px;
	color: var(--text-secondary);
	overflow: hidden;
	text-overflow: clip;
	white-space: nowrap;
	position: relative;
}

.link-desc.empty {
	color: #9ca3af;
	font-style: italic;
}

/* 描述过长时的滚动动画 */
.link-desc.can-scroll {
	cursor: default;
	text-overflow: clip;
}

.link-desc.can-scroll .link-desc-inner {
	display: inline-block;
	white-space: nowrap;
	animation: desc-scroll var(--scroll-duration, 4s) ease-in-out infinite alternate;
}

@keyframes desc-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(var(--scroll-amount, 0px)); }
}

.link-actions {
	flex-shrink: 0;
}

.link-btn {
	padding: 8px 16px;
	background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
	border: none;
	border-radius: 12px;
	color: white;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.link-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4);
}

/* 访问按钮忽大忽小动画 */
@keyframes visit-btn-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

.visit-btn {
	animation: visit-btn-pulse 2s ease-in-out infinite;
}

.visit-btn:hover {
	animation-play-state: paused;
}

/* 底部版权 */
.footer-section {
	margin-top: 32px;
}

.footer-card {
	text-align: center;
	padding: 16px 0;
}

.footer-card p {
	color: var(--text-secondary);
	font-size: 14px;
}

/* 联系客服悬浮按钮 */
.contact-float-btn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
}

.contact-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
	color: white;
	border: none;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(96, 165, 250, 0.4);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.contact-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(96, 165, 250, 0.5);
}

.contact-btn-text-short {
	display: none;
}

/* 联系客服模态框 */
.contact-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.contact-modal-overlay.active {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.contact-modal {
	width: 90%;
	max-width: 420px;
	background: var(--bg-card);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 24px;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.3s ease;
}

.contact-modal-overlay.active .contact-modal {
	opacity: 1;
	transform: translateY(0);
}

.contact-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: var(--text-secondary);
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.2s ease;
}

.contact-close-btn:hover {
	color: var(--text-color);
}

.contact-modal-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 20px;
	text-align: center;
}

/* 联系项 */
.contact-item {
	display: flex;
	align-items: center;
	padding: 16px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 16px;
	margin-bottom: 12px;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item:hover {
	background: rgba(255, 255, 255, 0.7);
	transform: translateX(4px);
}

.contact-item-icon {
	width: 44px;
	height: 44px;
	background: var(--primary-gradient);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	margin-right: 14px;
	flex-shrink: 0;
}

.contact-item-info {
	flex-grow: 1;
}

.contact-item-name {
	font-weight: 600;
	font-size: 15px;
	color: var(--text-color);
	margin-bottom: 4px;
}

.contact-item-value {
	font-size: 14px;
	color: var(--text-secondary);
	font-family: monospace;
}

.contact-copy-btn {
	background: var(--primary-gradient);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.contact-copy-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-copy-btn.copied {
	background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* 动画 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 响应式 */
@media (max-width: 768px) {
	body {
		padding-top: 70px;
	}

	.nav-container {
		padding: 12px 16px;
	}

	.nav-title {
		font-size: 16px;
	}

	.nav-logo {
		height: 32px;
		width: 32px;
		border-radius: 10px;
	}

	.nav-theme-btn {
		width: 28px;
		height: 28px;
	}

	.nav-menu {
		display: none;
	}

	.main-container {
		padding: 16px;
	}

	.welcome-card {
		padding: 28px 20px;
	}

	.welcome-title {
		font-size: 28px;
	}

	.welcome-subtitle {
		font-size: 14px;
	}

	/* 轮播图移动端适配 */
	.banner-slide-img {
		max-height: 200px;
		object-fit: cover;
	}

	.banner-dots {
		bottom: 12px;
		gap: 6px;
	}

	.banner-dot {
		width: 6px;
		height: 6px;
	}

	.banner-dot.active {
		width: 20px;
	}

	.links-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.link-card {
		padding: 16px;
	}

	.link-icon {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}

	/* 联系客服移动端适配 */
	.contact-float-btn {
		bottom: 20px;
		right: 20px;
	}

	.contact-btn {
		padding: 10px 16px;
		font-size: 13px;
	}

	.contact-btn-text-full {
		display: none;
	}

	.contact-btn-text-short {
		display: inline;
	}

	.contact-modal {
		padding: 20px;
		margin: 16px;
	}

	.contact-item {
		padding: 12px;
	}

	.contact-item-icon {
		width: 40px;
		height: 40px;
		margin-right: 12px;
	}
}
