* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
}


:root {
	--bg-color: #f0f2f5;
	--text-color: #333;
	--card-bg: white;
	--card-shadow: rgba(0, 0, 0, 0.1);
	--hover-color: #7d5fff;
	--base-font-size: 16px;
	--primary-color: #1a1a1a;
	--secondary-color: #252525;
	--accent-color: #7d5fff;
	--text-secondary: #b3b3b3;
	--gradient-start: #7d5fff;
	--gradient-middle: #a55eea;
	--gradient-end: #cd84f1;
}

[data-theme="dark"] {
	--bg-color: #1a1a1a;
	--text-color: #ffffff;
	--card-bg: #2d2d2d;
	--card-shadow: rgba(0, 0, 0, 0.3);
	--hover-color: #a55eea;
	--accent-color: #7d5fff;
	--gradient-start: #7d5fff;
	--gradient-middle: #a55eea;
	--gradient-end: #cd84f1;
}

body {
	font-family: 'Microsoft YaHei', sans-serif;
	background: var(--bg-color);
	color: var(--text-color);
	transition: all 0.3s ease;
	/* 修复字体大小问题 */
	font-size: var(--base-font-size);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; /* 隐藏水平溢出 */
	overflow-y: auto; /* 允许垂直滚动 */
	text-rendering: optimizeSpeed; /* 优化文本渲染速度 */
}

/* 添加硬件加速和性能优化 */
.hardware-accelerated {
	transform: translateZ(0);
	backface-visibility: hidden;
	perspective: 1000px;
	will-change: transform, opacity;
}

/* 顶部导航栏 */
.navbar {
	background: transparent;
	padding: 10px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: fixed !important; /* 强制使用fixed定位 */
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000; /* 提高z-index确保导航栏显示在最上层 */
	transition: all 0.3s;
	width: 100%;
	transform: translateZ(0); /* 启用硬件加速 */
	-webkit-transform: translateZ(0);
	-ms-transform: translateZ(0);
	will-change: transform, background; /* 优化性能 */
	/* 移除sticky定位 */
}

.navbar.scrolled {
	background: var(--card-bg);
	box-shadow: 0 2px 4px var(--card-shadow);
	padding: 8px 40px;
}

.nav-left {
	display: flex;
	align-items: center;
}

.logo-container {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 3px 10px;
	display: flex;
	align-items: center;
	transition: all 0.3s;
	margin-right: 20px;
}

.navbar.scrolled .logo-container {
	background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .navbar.scrolled .logo-container {
	background: rgba(0, 0, 0, 0.3);
}

.logo {
	width: 100px;
	height: 35px;
	object-fit: contain;
}

.nav-links {
	display: flex;
	gap: 30px;
}

.nav-links a {
	color: white;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s;
}

.navbar.scrolled .nav-links a {
	color: var(--text-color);
}

[data-theme="dark"] .navbar.scrolled .nav-links a {
	color: white;
}

.nav-links a:hover {
	color: var(--hover-color);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.search-container {
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 5px 15px;
	display: flex;
	align-items: center;
	transition: all 0.3s ease-in-out;
	position: relative;
	width: 200px;
}

.search-container:focus-within {
	width: 300px;
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .search-container:focus-within {
	background: rgba(0, 0, 0, 0.3);
}

.search-icon {
	color: white;
	font-size: 16px;
	margin-right: 8px;
	transition: all 0.3s ease-in-out;
}

.navbar.scrolled .search-icon {
	color: #333;
}

[data-theme="dark"] .navbar.scrolled .search-icon {
	color: white;
}

.search-input {
	background: transparent;
	border: none;
	outline: none;
	padding: 5px;
	width: 100%;
	color: white;
	font-size: 14px;
	transition: all 0.3s ease-in-out;
}

.navbar.scrolled .search-input {
	color: #333;
}

[data-theme="dark"] .navbar.scrolled .search-input {
	color: white;
}

[data-theme="dark"] .search-input {
	color: white;
}

.search-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	transition: all 0.3s ease-in-out;
}

.navbar.scrolled .search-input::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar.scrolled .search-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

/* 顶部横幅 */
.banner {
	display: none;
}

/* 主要内容区域 */
.main-content {
	max-width: 100%;
	margin: 0;
	padding: 0;
	padding-top: 0; /* 移除顶部内边距，让滚动图紧贴上方边缘 */
	width: 100%;
	position: relative;
	z-index: 1;
	will-change: transform; /* 优化性能 */
}

/* 中间部分布局 */
.middle-section {
	display: block;
	margin: 0;
	position: relative;
	width: 100%;
	padding: 0;
	will-change: transform; /* 优化性能 */
	margin-top: 0; /* 确保没有顶部外边距 */
}

/* 轮播图 */
.carousel {
	background: white;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	position: relative;
	width: 100vw;
	height: 850px;
	margin: 0;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	transform: translateZ(0); /* 启用硬件加速 */
	will-change: transform; /* 优化性能 */
	margin-top: 0px; /* 添加顶部外边距，为固定导航栏留出空间 */
}

.carousel-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	transition: transform 0.5s ease-in-out;
	transform: translateZ(0); /* 启用硬件加速 */
	will-change: transform; /* 优化性能 */
}

.carousel-slide {
	min-width: 100%;
	height: 100%;
	position: relative;
}

.carousel-slide::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background: linear-gradient(to bottom, transparent, var(--bg-color));
	pointer-events: none;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-title {
	position: absolute;
	bottom: 80px;
	left: 40px;
	color: white;
	font-size: 32px;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 10;
}

.carousel-btn {
	position: absolute;
	bottom: 40px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 15px 20px;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.3s;
	font-size: 20px;
	z-index: 10;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
	right: 110px;
}

.carousel-btn.next {
	right: 40px;
}

/* 立即播放按钮样式 */
.carousel-play-btn {
	position: absolute;
	bottom: 40px;
	right: 180px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
	border: none;
	padding: 0 20px;
	cursor: pointer;
	border-radius: 30px;
	transition: all 0.3s;
	font-size: 16px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 500;
	height: 50px;
}

.carousel-play-btn:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-play-btn i {
	font-size: 14px;
}

/* 添加指示点样式 */
.carousel-dots {
	position: absolute;
	bottom: 40px;
	left: 40px;
	display: flex;
	gap: 12px;
	z-index: 10;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s;
}

.carousel-dot.active {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
}

/* 横向选项框区域 - 修改为固定布局，直接展示在页面上 */
.horizontal-section {
	padding: 20px 40px; /* 调整内边距 */
	margin-top: 20px;
	margin-bottom: 0px; /* 减少下外边距从20px到0px */
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
	overflow: visible; /* 允许内容溢出 */
	position: relative;
	z-index: 20; /* 提高z-index确保内容可以显示在其他元素之上 */
}

.section-title {
	font-size: 26px; /* 增大字体 */
	font-weight: bold;
	margin-bottom: 20px;
	color: var(--text-color);
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative; /* 添加相对定位 */
	flex-wrap: nowrap; /* 防止换行 */
	line-height: 1.2;
}

.section-title i {
	color: var(--hover-color);
	font-size: 22px; /* 增大图标 */
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 添加标题下划线效果 */
.section-title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	border-radius: 3px;
	clear: both;
}

/* 查看全部按钮样式 */
.view-all-btn {
	margin-left: 15px;
	font-size: 14px;
	color: white;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	font-weight: normal;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	padding: 0 12px;
	border-radius: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	height: 24px;
	line-height: 1;
	align-self: center;
}

/* 暗色模式下的按钮样式 */
[data-theme="dark"] .view-all-btn {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.view-all-btn:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .view-all-btn:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.anime-grid {
	display: flex;
	justify-content: space-between; /* 均匀分布五个卡片 */
	width: 100%;
	overflow: visible; /* 确保内容可以溢出 */
	position: relative;
	padding: 20px 0 10px; /* 减少下内边距到10px */
	margin: 20px 0 0; /* 移除下外边距 */
	min-height: 150px; /* 进一步减少最小高度到150px */
	flex-wrap: nowrap; /* 确保卡片不会换行 */
	gap: 2%; /* 添加间隙 */
	z-index: 15; /* 提高z-index确保内容可以显示在其他元素之上 */
}

.anime-card {
	position: relative;
	width: 100%; /* 设置宽度为父容器的100% */
	border-radius: 10px; /* 增加圆角 */
	overflow: hidden;
	box-shadow: none; /* 删除卡片阴影 */
	cursor: pointer;
	background: var(--card-bg);
	/* 设置16:9比例 */
	aspect-ratio: 16/9;
	height: auto;
	flex-shrink: 0;
	transform-origin: center center; /* 确保从中心点放大 */
	will-change: transform; /* 优化性能 */
	transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.0); /* 添加过渡效果 */
}

.anime-card img,
.anime-card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.anime-card:hover img,
.anime-card:hover video {
	transform: scale(1.05);
}

.anime-card .error-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ff5252;
	font-size: 48px;
	opacity: 0.8;
	transition: opacity 0.3s;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

.anime-card:hover .error-icon {
	opacity: 1;
}

.anime-title {
	margin-top: 8px; /* 减少与卡片的间距从12px到8px */
	color: var(--text-color);
	font-size: 15px; /* 增大字体 */
	font-weight: 500; /* 增加字重 */
	line-height: 1.4;
	text-align: center; /* 居中显示 */
	padding: 0 5px; /* 添加左右内边距 */
	white-space: nowrap; /* 防止文本换行 */
	overflow: hidden; /* 隐藏溢出内容 */
	text-overflow: ellipsis; /* 显示省略号 */
	transition: color 0.3s;
}

/* 添加鼠标悬停效果，提示可点击 */
[style*="cursor: pointer"] .anime-title:hover,
[style*="cursor: pointer"] .title:hover {
	color: var(--hover-color);
	text-decoration: underline;
}

/* 下方竖排选项框 */
.vertical-section-container {
	margin-top: 60px; /* 增加与上方内容的间距 */
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 40px 40px;
	background: var(--bg-color);
	position: relative;
}

/* 调整垂直卡片容器的标题样式 */
.vertical-section-container .section-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px; /* 增加与卡片的间距 */
}

/* 添加滚动指示器 */
.vertical-section-container::after {
	display: none; /* 隐藏滚动指示器 */
}

.vertical-section {
	display: flex;
	flex-wrap: wrap; /* 改为wrap，允许换行显示 */
	gap: 20px;
	margin-top: 40px;
	overflow: hidden;
	padding-bottom: 10px;
	max-width: 100%;
	justify-content: flex-start; /* 从左侧开始排列 */
}

/* 移除滚动条样式，因为已经不需要了 */
.vertical-section::-webkit-scrollbar {
	display: none;
}

.vertical-section::-webkit-scrollbar-track {
	display: none;
}

.vertical-section::-webkit-scrollbar-thumb {
	display: none;
}

/* 确保垂直卡片和时间表卡片的图片容器有相对定位 */
.vertical-card,
.schedule-card {
	background: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	margin-bottom: 15px;
	padding: 0;
}

.vertical-card {
	flex: 0 0 200px;
	width: 200px;
	margin-bottom: 20px; /* 增加底部间距，确保换行后有足够空间 */
}

/* 移除重复的悬停效果，因为我们已经在img-container上定义了 */
.vertical-card:hover,
.schedule-card:hover {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 移除重复的图片样式，因为我们已经在img-container img上定义了 */
.vertical-card img,
.schedule-card img {
	width: 100%;
	aspect-ratio: 0.7;
	object-fit: cover;
}

/* 图片容器样式 */
.img-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-container img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

/* 国家标签样式 */
.country-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

/* 类型标签样式 */
.type-tag {
	position: absolute;
	top: 10px;
	left: 50px;
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	color: white;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

/* 话数/时长标签样式 */
.episode-count {
	background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
	color: white;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* 卡片悬停时标签效果 */
.vertical-card:hover .country-tag,
.vertical-card:hover .type-tag,
.vertical-card:hover .episode-count,
.schedule-card:hover .country-tag,
.schedule-card:hover .type-tag,
.schedule-card:hover .episode-count {
	transform: translateY(-2px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

/* 卡片标题样式 */
.vertical-card .title,
.schedule-card .title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.vertical-card:hover .title,
.schedule-card:hover .title {
    color: var(--hover-color);
}

/* 发布日期和时间样式 */
.vertical-card .release-date,
.schedule-card .time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    transition: color 0.3s ease;
}

.vertical-card:hover .release-date,
.schedule-card:hover .time {
    color: var(--accent-color);
}

/* 毛玻璃效果 */
.glass-effect {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* 响应式调整 */
@media (min-width: 2800px) {
	.main-content {
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
	}
	
	.carousel {
		height: 900px;
	}
	
	.anime-card {
		min-width: 400px;
	}
	
	.vertical-section {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
	
	.carousel-title {
		font-size: 42px;
		bottom: 100px;
	}
	
	.carousel-slide::after {
		height: 400px;
	}
	
	.vertical-card img {
		aspect-ratio: 0.7;
	}
	
	.anime-title, .vertical-card .title {
		font-size: 16px;
	}
	
	.section-title {
		font-size: 28px;
	}
}

/* 修改主题切换按钮样式 */
.theme-toggle {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle), 70%);
	border-radius: 8px;
	padding: 5px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	height: 36px;
	width: 36px;
	border: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.theme-toggle i {
	font-size: 16px;
	color: white;
	transition: all 0.3s ease-in-out;
}

/* 浅色主题下的图标颜色 */
[data-theme="light"] .theme-toggle i {
	color: #333; /* 深色文字颜色 */
}

/* 移动端主题切换按钮在浅色主题下也应用深色图标 */
[data-theme="light"] .mobile-theme-toggle i {
	color: #333;
}

.theme-toggle:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	transform: translateY(-2px);
}

/* 修改用户头像按钮样式 */
.user-avatar {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle), 70%);
	border-radius: 50%;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	height: 36px;
	width: 36px;
}

.user-avatar i {
	font-size: 18px;
	color: white;
	transition: all 0.3s ease-in-out;
}

/* 浅色主题下的用户图标颜色 */
[data-theme="light"] .user-avatar i {
	color: #333; /* 深色文字颜色 */
}

.user-avatar:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	transform: translateY(-2px);
}

/* 回到顶部按钮样式 */
.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 45px;
	height: 45px;
	background: var(--gradient-middle);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
	opacity: 1;
	transform: translateY(0);
}

.back-to-top i {
	color: white;
	font-size: 20px;
	transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 公告区域样式 */
.announcement {
	position: fixed;
	bottom: 30px;
	left: 30px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	border-radius: 8px;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	max-width: 300px;
	opacity: 0;
	transform: translateY(20px);
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement.visible {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.announcement i {
	color: white;
	font-size: 16px;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.announcement.visible i {
	opacity: 1;
	transform: translateX(0);
}

.announcement-content {
	color: white;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.announcement.visible .announcement-content {
	opacity: 1;
	transform: translateX(0);
}

.announcement-close {
	cursor: pointer;
	color: white;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateX(10px);
}

.announcement.visible .announcement-close {
	opacity: 1;
	transform: translateX(0);
}

.announcement-close:hover {
	opacity: 0.8;
	transform: scale(1.1);
}

/* 动漫更新时间表区域 */
.schedule-section {
	margin-top: 20px; /* 减少顶部外边距从40px到20px */
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 40px;
	position: relative;
}

/* 使用纯JavaScript实现水平选项卡 */
.schedule-tabs-container {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	margin-bottom: 20px;
	background-color: var(--bg-color);
	border-radius: 10px;
	padding: 10px 0;
	overflow-x: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
	gap: 5px; /* 减小选项卡之间的间距 */
}

.schedule-tabs-container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.schedule-tab {
	flex: 0 0 auto;
	margin: 0 2px; /* 减小外边距 */
	padding: 8px 12px;
	background-color: var(--card-bg);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 2px 4px var(--card-shadow);
	color: var(--text-color);
	font-weight: 500;
	text-align: center;
	display: block;
	white-space: nowrap;
	font-size: 15px; /* 增大字体大小 */
}

.schedule-tab:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px var(--card-shadow);
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
}

/* 使用CSS选择器和:checked伪类控制选项卡显示 */
.schedule-radio {
	display: none;
}

.schedule-radio:checked + .schedule-tab {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
}

.schedule-tab.active {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
}

.schedule-content {
	margin-top: 20px;
	min-height: 300px;
	width: 100%;
}

.schedule-content > div {
	display: none;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	width: 100%;
}

/* 底栏样式 */
.footer {
	margin-top: 60px;
	padding: 40px 0 20px;
	background-color: var(--card-bg);
	color: var(--text-color);
	text-align: center;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
}

.foot {
	padding: 20px;
	line-height: 2;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.foot a {
	color: var(--text-color);
	text-decoration: none;
	transition: all 0.3s;
	font-size: 14px;
	padding: 5px 10px;
	border-radius: 4px;
	display: inline-block;
	margin: 3px 5px;
}

.foot a:hover {
	color: var(--hover-color);
	background-color: rgba(125, 95, 255, 0.1);
	transform: translateY(-2px);
}

.brand {
	color: var(--hover-color);
	font-weight: 600;
	letter-spacing: 0.5px;
}

.footer-logo {
	margin-bottom: 25px;
	display: inline-block;
	opacity: 0.9;
	transition: opacity 0.5s ease;
}

.footer-logo:hover {
	opacity: 1;
}

.footer-logo img {
	height: 120px; /* 增大logo尺寸 */
	width: auto;
	transition: all 0.3s ease;
	border-radius: 10px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
	object-fit: contain;
	max-width: 100%;
}

.footer-logo:hover img {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 10px 0;
}

.footer-social {
	margin: 15px 0;
	display: flex;
	justify-content: center;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(125, 95, 255, 0.1);
	color: var(--hover-color);
	margin: 0 5px;
	transition: all 0.3s;
}

.footer-social a:hover {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
	transform: translateY(-3px);
}

.footer-divider {
	width: 60px;
	height: 2px;
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	margin: 15px auto;
	opacity: 0.5;
}

.footer-runtime {
	margin: 10px 0;
	font-size: 14px;
}

/* 移动设备响应式样式 */
@media (max-width: 768px) {
	.navbar {
		padding: 10px 20px;
	}
	
	.navbar.scrolled {
		padding: 8px 20px;
	}
	
	.nav-links {
		gap: 15px;
	}
	
	.carousel {
		height: 450px;
	}
	
	.horizontal-section {
		padding: 20px;
	}
	
	.schedule-tabs-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 10px 5px;
	}
	
	.schedule-tab {
		white-space: nowrap;
		min-width: 60px;
		padding: 8px 5px;
		font-size: 14px;
	}
	
	.footer {
		margin-top: 40px;
		padding: 30px 0 15px;
	}
	
	.footer-logo img {
		height: 90px;
		max-width: 90%;
	}
	
	/* 移动设备上查看全部按钮样式 */
	.view-all-btn {
		font-size: 12px;
		padding: 3px 8px;
		margin-left: 10px;
		height: 22px;
	}
	
	.section-title {
		font-size: 22px;
	}
	
	.section-title i {
		font-size: 18px;
	}
	
	/* 移动设备上的列表样式 */
	.vertical-section {
		padding-bottom: 5px;
		flex-wrap: wrap; /* 确保在移动设备上也是换行显示 */
		justify-content: space-between; /* 在移动设备上均匀分布 */
		gap: 15px; /* 减小间距 */
	}
	
	.vertical-card {
		flex: 0 0 160px;
		width: 160px;
		margin-bottom: 15px; /* 减小底部间距 */
	}
	
	.vertical-section-container {
		padding: 0 20px 20px; /* 减小内边距 */
	}
	
	.vertical-section::-webkit-scrollbar {
		height: 4px;
	}
	
	/* 移动设备上的标签样式调整 */
	.country-tag, .type-tag {
		padding: 1px 4px;
		font-size: 10px;
	}
	
	.type-tag {
		left: 45px;
	}
	
	.episode-count {
		padding: 1px 4px;
		font-size: 10px;
	}
	
	.vertical-card .episode-count,
	.schedule-card .episode-count {
		top: calc(0.7 * 100% - 25px); /* 调整移动设备上的位置 */
	}
	
	.vertical-card .title,
	.schedule-card .title {
		font-size: 13px;
		margin: 8px 4px 4px 4px;
	}
	
	.vertical-card .release-date,
	.schedule-card .time {
		font-size: 11px;
		margin: 0 4px 4px 4px;
	}
}

@media (max-width: 480px) {
	.schedule-tab {
		min-width: 50px;
		padding: 6px 2px;
		font-size: 12px;
		margin: 0 2px;
	}
	
	.footer-logo img {
		height: 70px;
		max-width: 85%;
	}
	
	/* 小屏幕设备上查看全部按钮样式 */
	.view-all-btn {
		font-size: 10px;
		padding: 2px 6px;
		margin-left: 5px;
		border-radius: 10px;
		height: 20px;
	}
	
	.section-title {
		font-size: 20px;
		gap: 5px;
	}
	
	.section-title i {
		font-size: 16px;
	}
	
	/* 小屏幕设备上的列表样式 */
	.vertical-section {
		gap: 10px; /* 进一步减小间距 */
		justify-content: center; /* 在小屏幕上居中显示 */
	}
	
	.vertical-card {
		flex: 0 0 140px;
		width: 140px;
		margin-bottom: 10px; /* 进一步减小底部间距 */
	}
	
	.vertical-section-container {
		padding: 0 15px 15px; /* 进一步减小内边距 */
	}
	
	.vertical-card .title,
	.schedule-card .title {
		font-size: 12px;
		margin: 6px 3px 3px 3px;
	}
	
	/* 小屏幕设备上的标签样式调整 */
	.country-tag, .type-tag {
		padding: 1px 3px;
		font-size: 8px;
	}
	
	.type-tag {
		left: 40px;
	}
	
	.episode-count {
		padding: 1px 3px;
		font-size: 8px;
	}
	
	.vertical-card .episode-count,
	.schedule-card .episode-count {
		top: calc(0.7 * 100% - 20px); /* 调整小屏幕设备上的位置 */
	}
	
	.vertical-card .release-date,
	.schedule-card .time {
		font-size: 10px;
		margin: 0 3px 3px 3px;
	}
}

/* 添加卡片悬停放大效果 */
.anime-grid > div {
	transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.0);
	position: relative;
	z-index: 1;
	transform-origin: center center;
	transform: scale(1); /* 确保初始状态有明确的transform值 */
	margin: 0; /* 确保初始状态有明确的margin值 */
	will-change: transform, z-index; /* 优化性能 */
	width: 18%; /* 设置宽度为容器的18%，确保五个卡片均匀分布 */
	flex-shrink: 0; /* 防止卡片被压缩 */
	transform: translateZ(0); /* 启用硬件加速 */
}

.anime-grid > div:hover {
	transform: scale(1.3) !important; /* 使用!important确保优先级，增加放大比例 */
	z-index: 100 !important; /* 使用!important确保优先级 */
	box-shadow: none !important; /* 删除底部阴影，使用!important确保优先级 */
	transform-origin: center center !important; /* 确保从中心点放大 */
	transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.0) !important; /* 确保有过渡效果 */
}

/* 为第一个卡片添加特殊的悬停样式 */
.anime-grid > div:first-child:hover {
	transform-origin: left center !important; /* 从左侧中心点放大 */
}

/* 为最后一个卡片添加特殊的悬停样式 */
.anime-grid > div:last-child:hover {
	transform-origin: right center !important; /* 从右侧中心点放大 */
}

/* 添加渐变按钮样式 */
.gradient-btn {
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
	color: white;
	border: none;
	border-radius: 20px;
	padding: 8px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gradient-btn:hover {
	background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 添加主题过渡样式 */
.theme-transition {
	transition: background-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

/* 卡片悬停效果 */
.vertical-card:hover .img-container,
.schedule-card:hover .img-container {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.vertical-card:hover .img-container img,
.schedule-card:hover .img-container img {
    transform: scale(1.05);
}

.vertical-card:hover .country-tag,
.schedule-card:hover .country-tag {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
}

.vertical-card:hover .type-tag,
.schedule-card:hover .type-tag {
    background: linear-gradient(to right, var(--gradient-end), var(--gradient-middle), var(--gradient-start));
}

.vertical-card:hover .episode-count,
.schedule-card:hover .episode-count {
    background: linear-gradient(to right, var(--gradient-start), rgba(0, 0, 0, 0.5));
    color: white;
}

/* 移动端底部导航栏样式 */
.mobile-navbar {
	display: none; /* 默认隐藏 */
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--card-bg);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding: 10px 0;
	z-index: 1000;
	justify-content: space-around;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mobile-navbar {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--text-color);
	text-decoration: none;
	padding: 5px 0;
	transition: all 0.3s;
	width: 25%;
	text-align: center;
}

.mobile-nav-item i {
	font-size: 20px;
	margin-bottom: 4px;
}

.mobile-nav-item span {
	font-size: 12px;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
	color: var(--hover-color);
}

/* 移动端主题切换按钮 */
.mobile-theme-toggle {
	position: fixed;
	right: 20px;
	bottom: 100px; /* 调整位置，确保在回到顶部按钮的下方 */
	width: 45px;
	height: 45px;
	background: var(--card-bg);
	border-radius: 50%;
	display: none; /* 默认隐藏 */
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	transition: all 0.3s ease;
}

.mobile-theme-toggle:hover {
	transform: scale(1.1);
}

.mobile-theme-toggle i {
	font-size: 1.2rem;
	color: var(--text-color);
}

.mobile-view .navbar {
	display: none;
}

.mobile-view .mobile-navbar {
	display: flex;
}

.mobile-view .mobile-theme-toggle {
	display: flex; /* 在移动端显示 */
	bottom: 100px; /* 确保与回到顶部按钮保持一定距离且与底部导航栏有足够距离 */
}

.mobile-view .main-content {
	margin-top: 0;
}

.mobile-view .back-to-top {
	bottom: 160px; /* 调整位置，确保在移动端主题切换按钮的上方 */
}

.mobile-view .announcement {
	bottom: 100px; /* 调整公告区域的位置，避免与底部导航栏重叠 */
}

@media (max-width: 768px) {
	/* 已有的移动设备样式 */
	/* ... */
	
	/* 增加移动视图样式 */
	.mobile-view .carousel {
		margin-top: 0;
	}
	
	.mobile-view .carousel-title {
		font-size: 1.2rem;
	}
	
	.mobile-view .carousel-btn {
		display: none;
	}
	
	.mobile-view .carousel-btn.prev {
		display: none;
	}
	
	.mobile-view .carousel-play-btn {
		display: none;
	}
	
	.mobile-view .carousel-dots {
		display: none;
	}
	
	.mobile-view .footer {
		margin-bottom: 60px;
	}
}

@media (max-width: 480px) {
	/* 已有的小屏幕设备样式 */
	/* ... */
	
	/* 增加小屏幕移动视图样式 */
	.mobile-view .carousel {
		height: 200px;
	}
	
	.mobile-view .carousel-title {
		font-size: 1rem;
	}
	
	.mobile-view .carousel-play-btn {
		display: none;
	}
	
	.mobile-view .mobile-nav-item i {
		font-size: 1.2rem;
	}
	
	.mobile-view .mobile-nav-item span {
		font-size: 0.8rem;
	}
}
