/* style.css */
body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: #f4f6f8;
	margin: 0;
	padding: 0;
	color: #333;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

h1,
h2 {
	color: #2c3e50;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}

/* 导航栏 */
.nav {
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
	position: relative;
	z-index: 100;
}

/* 导航容器：桌面端 Flex 布局 */
.nav .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-links a {
	font-weight: bold;
	color: #555;
	font-size: 15px;
}

.nav-links a:hover {
	color: #52cfd3;
}

/* 网站 Logo (桌面端限制高度) */
.site-logo-img {
	height: 40px;
	width: auto;
	object-fit: contain;
	vertical-align: middle;
}

/* 星期/番剧区块 */
.day-section {
	margin-bottom: 40px;
}

.day-title {
	border-left: 5px solid #52cfd3;
	padding-left: 10px;
	margin-bottom: 15px;
	font-size: 1.3em;
	font-weight: bold;
}

.special-section .day-title {
	border-left-color: #9b59b6;
	color: #8e44ad;
}

/* 番剧卡片网格 */
.anime-grid {
	display: grid;
    /* 桌面端逻辑：最小宽度 180px */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.anime-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
	display: block;
}

/* --- 移动端强制优化 (小于 600px) --- */
@media (max-width: 600px) {
    .anime-grid {
        /* 手机端强制一行两个，间距调小 */
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
        padding: 10px 5px; /* 减少边缘留白 */
    }

    .anime-card {
        border-radius: 6px; /* 稍微减小圆角 */
    }

    .anime-info {
        padding: 8px; /* 减小文字区域内边距 */
    }

    .anime-title {
        font-size: 14px; /* 调整标题大小 */
        /* 限制标题最多显示1行，超出省略，保持卡片高度一致 */
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .anime-meta {
        font-size: 12px;
    }
}

.anime-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.anime-cover {
	width: 100%;
    aspect-ratio: 2 / 3; /* 强制 2:3 比例，不再依赖 height: auto */
    object-fit: cover;   /* 裁剪图片填满容器 */
    display: block;      /* 消除图片底部间隙 */
    border-radius: 8px 8px 0 0;
}

.anime-title {
	padding: 5px;
	font-size: 0.9em;
	text-align: center;
	height: 40px;
	line-height: 40px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* 懒加载 */
.lazy-img {
	opacity: 0;
	transition: opacity 0.5s ease-in;
}

.lazy-img.loaded {
	opacity: 1;
}

/* 分类胶囊 */
.category-nav-wrapper {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
	padding: 0 10px;
}

.category-link {
	padding: 6px 16px;
	background: #fff;
	border-radius: 2px;
	color: #595959;
	border: 1px solid #d9d9d9;
	transition: all 0.3s;
	font-size: 14px;
}

.category-link:hover,
.category-link.active {
	color: #52cfd3;
	border-color: #52cfd3;
}

.category-link.active {
	background: #e6f7ff;
}

.cat-item {
	display: none;
}

@media (min-width: 769px) {
	.cat-item:nth-child(-n+12) {
		display: block;
	}
}

/* 头部 Banner 区域 */
.bangumi-header {
	position: relative;
	width: 100%;
	min-height: 380px;
	/* 头部高度 */
	margin-top: -20px;
	/* 抵消掉 nav 的 margin-bottom */
	margin-bottom: 20px;
	overflow: hidden;
	background-color: #222;
	/* 图片加载失败时的底色 */
	color: #fff;
	display: flex;
	align-items: center;
}

/* 导航栏如果是透明的需要调整，这里假设导航栏是白色的 */
/* 为了让头部紧贴导航栏，我们要在 detail.php 里移除 .container 的默认 padding */

/* 毛玻璃背景层 */
.bangumi-header-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	filter: blur(20px) brightness(0.6);
	/* 模糊 + 变暗 */
	transform: scale(1.1);
	/* 放大一点防止模糊边缘漏白 */
	z-index: 0;
}

/* 底部 */
.site-footer {
	background-color: #ffffff;
	text-align: center;
}

/* 头部内容容器 */
.bangumi-header .header-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	padding-top: 40px;
	padding-bottom: 40px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	gap: 30px;
}

/* 海报图片 */
.bangumi-poster {
	width: 200px;
	height: 280px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.2);
	object-fit: cover;
	flex-shrink: 0;
	background: #fff;
}

/* 头部右侧信息 */
.bangumi-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bangumi-title {
	color: #ffffff;
	font-size: 2rem;
	font-weight: bold;
	margin: 0 0 5px 0;
	line-height: 1.2;
}

.bangumi-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 0.9em;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 20px;
}

.bangumi-stat-item {
	display: flex;
	/*align-items: center;*/
}

.bangumi-stat-item b {
	margin-right: 5px;
	color: #ffffff;
	/* 关键数据高亮色，B站粉色是 #fb7299，这里用蓝色系 */
}

/* 风格胶囊 */
.bangumi-tags {
	margin-bottom: 15px;
}

.style-tag {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 4px;
	font-size: 0.85em;
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
}

/* 简介 (头部精简版) */
.bangumi-desc-short {
	font-size: 0.95em;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	max-width: 800px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	/* 只显示3行 */
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ================== 主体内容区域 ================== */
.detail-body-container {
	max-width: 1200px;
	margin: 0 auto 40px auto;
	display: flex;
	gap: 30px;
}

.detail-main {
	flex: 1;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-side {
	width: 300px;
	flex-shrink: 0;
}

/* 章节标题 */
.section-title {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	color: #333;
	display: flex;
	align-items: center;
}

.section-title::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 18px;
	background: #52cfd3;
	margin-right: 10px;
	border-radius: 3px;
}

/* 简介展开版 */
.detail-long-desc {
	line-height: 1.8;
	color: #555;
	font-size: 15px;
	margin-bottom: 40px;
}

/* 声优和制作列表优化 */
.staff-cast-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.sc-box h4 {
	margin: 0 0 15px 0;
	font-size: 1.1em;
	color: #444;
}

.sc-list li {
	margin-bottom: 8px;
	font-size: 0.95em;
	color: #333;
	display: flex;
}

.sc-label {
	color: #999;
	min-width: 60px;
	/* 对齐标签 */
	display: inline-block;
}

/* 侧边栏卡片 */
.side-card {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

.side-info-item {
	margin-bottom: 12px;
	font-size: 0.95em;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px dashed #eee;
	padding-bottom: 8px;
}

.side-info-item:last-child {
	border-bottom: none;
}

.side-label {
	color: #888;
}

.side-val {
	color: #333;
	font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.bangumi-header {
		min-height: auto;
		display: block;
	}

	.bangumi-header .header-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding-top: 20px;
	}

	.bangumi-poster {
		width: 160px;
		height: 220px;
		margin-bottom: 20px;
	}

	.bangumi-info {
		align-items: center;
	}

	.bangumi-stats {
		justify-content: center;
		/*gap: 10px;*/
	}

	.detail-body-container {
		flex-direction: column;
	}

	.detail-side {
		width: 100%;
	}

	.staff-cast-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.bangumi-desc-short {
		display: none;
		/* 移动端头部不显示简介，太挤 */
	}

}

/* 移动端侧边栏 (Zibll 风格) */
.mobile-menu-btn {
	display: none;
	font-size: 24px;
	cursor: pointer;
	color: #555;
	padding: 5px;
}

.mobile-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 260px;
	height: 100%;
	background: #fff;
	z-index: 10000;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}

.mobile-sidebar.active {
	transform: translateX(0);
}

.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

.sidebar-header {
	padding: 20px 20px 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.close-btn {
	font-size: 24px;
	color: #aaa;
	padding: 5px;
	cursor: pointer;
}

.sidebar-menu {
	padding: 10px 0;
	overflow-y: auto;
	flex: 1;
}

.sidebar-menu ul {
	list-style: none;
	padding: 0 15px;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.sidebar-menu li {
	padding: 0;
	margin-bottom: 5px;
	border-radius: 8px;
	transition: background 0.2s;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	color: #444;
	font-size: 15px;
	font-weight: 500;
	width: 100%;
	box-sizing: border-box;
}

.sidebar-menu li:hover {
	background-color: #f5f5f5;
}

.sidebar-menu li:hover a {
	color: #52cfd3;
}

/* 侧边栏粉色圆点 */
.sidebar-menu a::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border: 1.5px solid #ff69b4;
	border-radius: 50%;
	margin-right: 12px;
	flex-shrink: 0;
	background: transparent;
}

/* Zibll 风格角标 */
.badge {
	display: inline-block;
	font-size: 10px;
	padding: 1px 4px;
	border-radius: 4px;
	margin-left: 4px;
	vertical-align: super;
	line-height: 1.2;
	font-weight: normal;
	transform: scale(0.9);
}

.badge.hot {
	background-color: #ff6d36;
	color: #fff;
}

.badge.new {
	background-color: #1abc9c;
	color: #fff;
	transform: translate(-10px, -10px) scale(.85);
}

/* style.css - 返回顶部按钮 */
#back-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	width: 46px;
	/* 圆形的宽度 */
	height: 46px;
	/* 圆形的高度 */
	background: #ffffff;
	/* 白色背景 */
	border-radius: 50%;
	/* 变成圆形 */

	/* 居中内部的箭头 */
	display: flex;
	justify-content: center;
	align-items: center;

	/* 阴影效果 */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

	cursor: pointer;
	z-index: 999;

	/* 默认隐藏状态 */
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;

	/* 移除原有文字样式 */
	color: transparent;
	font-size: 0;
}

/* 使用 CSS 绘制蓝色三角形箭头 */
#back-to-top::after {
	content: '';
	width: 0;
	height: 0;

	/* 调整这里改变三角形大小 */
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 9px solid #52cfd3;
	/* 蓝色箭头颜色 */

	/* 微调位置，让视觉更居中 */
	margin-bottom: 2px;
}

/* 悬停效果 */
#back-to-top:hover {
	box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
	transform: translateY(-2px);
	/* 悬停时微微上浮 */
}

/* 显示状态 (配合 footer.php 的 JS) */
#back-to-top.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* 移动端调整 */
@media (max-width: 768px) {
	#back-to-top {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
}

/* 后台/其他通用 */
.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.btn {
	padding: 4px 8px;
	background: #2ecc71;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: inline-block;
	font-size: 0.8em;
}

.btn-danger {
	background: #e74c3c;
	color: #fff;
}

.table-responsive {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 20px;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #fff;
	min-width: 600px;
}

th,
td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

/* =========================================
   移动端响应式 (重要：Logo居中逻辑)
   ========================================= */
@media (max-width: 768px) {

    /* 1. 导航容器：保持相对定位，用于子元素绝对定位的参考 */
    .nav .container {
        display: flex !important;
        justify-content: center !important; /* 让 Logo 居中 */
        align-items: center !important;
        position: relative; 
        height: 60px; /* 强制高度，防止坍塌 */
        padding: 0 15px;
    }

    /* 2. 左侧：汉堡菜单按钮 (绝对定位) */
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        left: 15px;      /* 固定在左侧 */
        top: 50%;
        transform: translateY(-50%); /* 垂直居中 */
        z-index: 20;
        font-size: 24px;
        cursor: pointer;
        color: #555;
    }

    /* 3. 右侧：搜索按钮 (绝对定位) */
    .mobile-search-trigger {
        display: block !important;
        position: absolute;
        right: 15px;     /* 固定在右侧 */
        top: 50%;
        transform: translateY(-50%); /* 垂直居中 */
        z-index: 20;
        cursor: pointer;
        color: #555;
        padding: 5px; /* 增加点击区域 */
    }
    
    .mobile-search-trigger svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    /* 4. 中间：Logo (Flex 居中) */
    .site-logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        /* 防止 Logo 太大遮挡左右按钮 */
        max-width: 60%; 
    }

    .site-logo-img {
        height: 32px; /* 移动端 Logo 高度限制 */
        width: auto;
    }

    /* 5. 隐藏桌面端菜单 */
    .nav-links {
        display: none !important;
    }
    
    /* 搜索框相关修正 */
    .search-close {
        right: 20px;
        top: 20px;
    }
    
    
    /**/
    
    /* 5. 分类和内容适配 */
	.cat-item:nth-child(-n+3) {
		display: block;
		margin-bottom: 15px;
	}

	/* 移动端只显示前3个分类 */
	.anime-grid {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 10px;
		padding-right: 40px;
		scrollbar-width: none;
	}
    
    .anime-grid::-webkit-scrollbar {
		display: none;
	}

	.anime-card {
		min-width: 120px;
		width: 120px;
		flex-shrink: 0;
	}

	.anime-cover {
		height: 160px;
	}

	.detail-content-box {
		flex-direction: column;
		padding: 25px;
		align-items: center;
	}

	.detail-poster {
		width: 220px;
	}

	.detail-right {
		text-align: center;
	}

	.detail-stats-row {
		flex-direction: column;
		border-bottom: none;
		gap: 20px;
	}

	.detail-description {
		text-align: left;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}
}

/* style.css 新增部分 - 弹窗公告样式 */
.notice-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10001;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	backdrop-filter: blur(2px);
}

/*.notice-overlay.show {*/
/*	opacity: 1;*/
/*	visibility: visible;*/
/*}*/

/*.notice-box {*/
/*	background: #fff;*/
/*	width: 90%;*/
/*	max-width: 500px;*/
/*	border-radius: 12px;*/
/*	padding: 0;*/
/*	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);*/
/*	transform: scale(0.8);*/
/*	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);*/
/*	overflow: hidden;*/
/*	display: flex;*/
/*	flex-direction: column;*/
/*}*/

/*.notice-overlay.show .notice-box {*/
/*	transform: scale(1);*/
/*}*/

.notice-header {
	background: linear-gradient(135deg, #3498db, #8e44ad);
	color: #fff;
	padding: 15px 20px;
	font-size: 1.1em;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.notice-close {
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	opacity: 0.8;
}

.notice-close:hover {
	opacity: 1;
}

.notice-body {
	padding: 25px 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #444;
	overflow-y: auto;
	max-height: 60vh;
}

.notice-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.notice-footer {
	padding: 10px 20px 20px;
	text-align: center;
}

.notice-btn {
	background: #3498db;
	color: #fff;
	border: none;
	padding: 10px 30px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.notice-btn:hover {
	background: #2980b9;
}

/* 播放时间角标样式 */

/* 确保父元素相对定位，以便角标绝对定位 */
.anime-card {
	position: relative;
	/* 必须加上这一行 */
}

.anime-time-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.6);
	/* 黑透明背景 */
	color: #fff;
	/* 白字 */
	padding: 3px 6px;
	font-size: 12px;
	line-height: 1;
	z-index: 10;
	border-bottom-right-radius: 6px;
	/* 右下角稍微圆润一点，左上角会被父元素切圆角 */
	pointer-events: none;
	/* 让鼠标事件穿透，不影响点击卡片 */
	font-family: Arial, sans-serif;
}

/* --- 数字分页样式 --- */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	/* 按钮之间的间距 */
	margin-top: 40px;
	margin-bottom: 40px;
	flex-wrap: wrap;
	/* 移动端自动换行 */
	font-size: 14px;
}

/* 通用页码按钮 */
.page-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 4px;
	background: #f4f6f8;
	/* 浅灰背景 */
	border: 1px solid #f4f6f8;
	border-radius: 4px;
	/* 圆角 */
	color: #555;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	box-sizing: border-box;
}

/* 悬停效果 */
.page-btn:hover:not(.active):not(.disabled) {
	background: #e1e5e9;
	color: #333;
	border-color: #e1e5e9;
}

/* 选中状态 (粉色背景) */
.page-btn.active {
	background: #ff8eb3;
	/* 图1的粉色，也可改为 #ff6d81 */
	color: #fff;
	border-color: #ff8eb3;
	cursor: default;
	font-weight: bold;
	box-shadow: 0 2px 6px rgba(255, 142, 179, 0.4);
}

/* 省略号 */
.page-dots {
	color: #999;
	letter-spacing: 2px;
	margin: 0 4px;
}

/* 上一页/下一页 文字调整 */
.page-btn.prev-next {
	padding: 0 12px;
	width: auto;
}

/* --- 跳转区域样式 --- */
.page-jump-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

/* 跳转输入框 */
.page-jump-input {
	width: 40px;
	height: 36px;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	outline: none;
	transition: border 0.2s;
	background: #fff;
	font-size: 14px;
	color: #333;
}

.page-jump-input:focus {
	border-color: #ff8eb3;
}

/* 跳转按钮 */
.page-jump-btn {
	height: 36px;
	padding: 0 12px;
	background: #f4f6f8;
	border: none;
	border-radius: 4px;
	color: #555;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.2s;
}

.page-jump-btn:hover {
	background: #e1e5e9;
	color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.pagination {
		gap: 5px;
	}

	.page-btn {
		min-width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.page-jump-form {
		margin-left: 0;
		width: 100%;
		justify-content: center;
		margin-top: 10px;
	}
}

/* --- 统计区域样式 (style.css 末尾添加) --- */

.stats-container {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-header {
	font-size: 1.1em;
	font-weight: bold;
	margin-bottom: 20px;
	color: #333;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.stats-grid {
	display: flex;
	justify-content: space-around;
	/* 电脑端平均分布 */
	align-items: center;
}

.stat-item {
	display: flex;
	flex-direction: column;
	/* 电脑端垂直布局：上图标下数字 */
	align-items: center;
	gap: 8px;
	color: #555;
	flex: 1;
	/* 平分宽度 */
	position: relative;
}

/* 电脑端添加竖线分隔符（可选） */
.stat-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 10%;
	height: 80%;
	width: 1px;
	background: #eee;
}

.stat-icon-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95em;
}

/* 图标样式 */
.stat-icon-wrapper svg {
	width: 24px;
	height: 24px;
	stroke: #666;
	/* 默认灰色 */
}

/* 数字样式 */
.stat-num {
	font-size: 1.4em;
	font-weight: bold;
	color: #333;
}

/* --- 移动端响应式样式 (修改版：仿电脑端网格布局) --- */
@media (max-width: 768px) {
	.stats-container {
		padding: 15px;
		margin-bottom: 20px;
	}

	.stats-header {
		text-align: center;
		/* 标题居中 */
		border-bottom: 1px solid #f0f0f0;
		/* 恢复分割线 */
		padding-bottom: 10px;
		margin-bottom: 15px;
		font-size: 1em;
	}

	.stats-grid {
		/* 关键：使用 Flex 布局并允许换行 */
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		/* 居中对齐 */
		gap: 15px 0;
		/* 行间距 15px */
	}

	.stat-item {
		/* 强制一行显示 3 个 (33.33%) */
		flex: 0 0 33.33%;
		width: 33.33%;

		/* 恢复电脑端的垂直排列 (内容在上，数字在下) */
		flex-direction: column;
		align-items: center;
		justify-content: center;

		/* 去掉之前的列表分割线 */
		border-bottom: none;
		padding: 0;
	}

	/* 隐藏电脑端的竖线分隔符 */
	.stat-item::after {
		display: none;
	}

	.stat-icon-wrapper {
		/* 手机端为了省空间，可以将图标和文字也垂直排列，或者保持水平 */
		/*这里保持水平，但缩小字体*/
		flex-direction: row;
		font-size: 0.8em;
		/* 字体缩小，防止换行 */
		color: #666;
		margin-bottom: 5px;
	}

	.stat-icon-wrapper svg {
		width: 18px;
		height: 18px;
		margin-right: 4px;
	}

	.stat-name {
		/* 防止文字过长换行 */
		white-space: nowrap;
	}

	.stat-num {
		font-size: 1.2em;
		font-weight: bold;
		color: #333;
	}
}


/* 导航栏搜索图标 */
.search-trigger {
	cursor: pointer;
	/*margin-left: 15px;*/
	padding: 8px;
	color: #666;
	display: flex;
	align-items: center;
	transition: color 0.3s;
}

.search-trigger:hover {
	color: #52cfd3;
}

/* 搜索遮罩层 (背景模糊) */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	/* 毛玻璃核心 */
	-webkit-backdrop-filter: blur(10px);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	display: flex;
	justify-content: center;
	padding-top: 100px;
	/* 距离顶部位置 */
}

.search-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 搜索容器动画 */
.search-container {
	width: 600px;
	max-width: 90%;
	transform: translateY(-20px);
	transition: transform 0.3s ease;
	position: relative;
}

.search-overlay.active .search-container {
	/*transform: translateY(0);*/
	transform: translateY(-200px);
}

/* 搜索表单样式 (仿 Zibll 圆角与阴影) */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-radius: 50px;
	background: #fff;
	overflow: hidden;
	border: 1px solid #eee;
}

.search-input {
	flex: 1;
	height: 50px;
	border: none;
	outline: none;
	padding: 0 25px;
	font-size: 16px;
	background: transparent;
}

.search-submit-btn {
	width: 60px;
	height: 50px;
	border: none;
	background: linear-gradient(135deg, #52cfd3 0%, #3498db 100%);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-close {
	position: absolute;
	right: -40px;
	top: 10px;
	font-size: 30px;
	cursor: pointer;
	color: #666;
}

@media (max-width: 768px) {
	.search-close {
		right: 0;
		top: -40px;
	}
}

.nav-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 15px;
}

/* 默认隐藏移动端搜索图标，只在手机上显示 */
.mobile-search-trigger {
    display: none;
    cursor: pointer;
    padding: 10px;
    
}

@media (max-width: 768px) {
    .mobile-search-trigger {
        display: block;
        order: 3; /* 放在右侧 */
    }
    
    .logo-wrapper {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-btn {
        order: 1;
    }
}

/* 搜索结果卡片美化 (仿图2) */
.anime-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    display: block;
}
.anime-card:hover { transform: translateY(-5px); }
.anime-title { padding: 10px; color: #333; font-weight: 500; font-size: 14px; }

/* 历史记录标签样式 */
.hist-tag {
    display: inline-block;
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.hist-tag:hover {
    background: #52cfd3;
    color: #fff;
}


/* === 新增样式：电脑端下拉菜单 & 移动端新布局 === */

/* 电脑端：右侧功能区容器 (用于加分割线) */
/* === 1. 电脑端：右侧功能区布局 (修复间距过大) === */
.nav-right-group { 
    display: flex; 
    align-items: center; 
    gap: 8px; /* 使用 gap 控制元素间距，更紧凑 */
}
.nav-divider { 
    width: 1px; 
    height: 14px; 
    background: #e0e0e0; 
    margin: 0 4px; /* 极小的外边距 */
}
.search-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px; /* 增加一点点击热区 */
}

/* === 2. 电脑端：头像与下拉菜单交互 (修复鼠标跟丢) === */
.user-dropdown-container { 
    position: relative; 
    cursor: pointer; 
    height: 100%; 
    display: flex; 
    align-items: center;
    /* 关键：增加底部内边距，让鼠标移动路径“连起来” */
    padding-bottom: 15px; 
    margin-bottom: -15px; 
    z-index: 1001; 
}

.nav-user-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid #f0f0f0; 
    display: block;
}

/* 下拉菜单容器 */
.nav-user-dropdown {
    display: none; 
    position: absolute; 
    top: 100%; /* 紧贴 .user-dropdown-container 底部 */
    right: -10px; 
    width: 280px;
    padding-top: 5px; /* 顶部透明填充，防止鼠标划过缝隙时菜单消失 */
    animation: fadeIn 0.2s ease;
}

/* 实际的白色菜单卡片 (与上方透明区分离) */
.dropdown-card {
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px; 
    position: relative;
    border: 1px solid #f5f5f5;
}

/* 小三角 */
.dropdown-card::before {
    content: ''; position: absolute; top: -6px; right: 18px;
    width: 12px; height: 12px; background: #fff; 
    transform: rotate(45deg); 
    border-top: 1px solid #f0f0f0; border-left: 1px solid #f0f0f0;
}

.user-dropdown-container:hover .nav-user-dropdown { display: block; }

/* 下拉菜单内容样式 */
.dropdown-header-info { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; }
.dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; }
.dropdown-name { font-weight: bold; font-size: 16px; color: #333; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dropdown-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 10px; background: #fff; border-radius: 8px; text-decoration: none; color: #666; font-size: 12px; transition: 0.2s;
}
.dropdown-item:hover { background: #f9f9f9; color: #4a90e2; }
.dropdown-icon-circle {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; font-size: 18px; color: #fff;
}

/* === 3. 移动端：去圆点 & 样式修复 === */
/* 强制去掉 sidebar-menu 下所有 a 标签的伪元素圆点 */
.sidebar-menu .m-action-row a::before,
.sidebar-menu .mobile-auth-grid a::before,
.sidebar-menu .mobile-user-panel a::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
}

/* 移动端图标容器 */
.mobile-auth-grid { display: flex; justify-content: space-around; padding: 20px 10px; }
.mobile-auth-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; color: #333; font-size: 13px; font-weight: bold; }
.mobile-icon-circle {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; font-size: 20px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 移动端已登录面板 */
.mobile-user-panel { padding: 20px; }
.m-user-header { display: flex; align-items: center; margin-bottom: 20px; }
.m-user-avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.m-user-name { font-size: 18px; font-weight: bold; color: #333; }
.m-action-row { display: flex; justify-content: space-around; }

/* 颜色工具类 */
.circle-blue { background: #e3f2fd; color: #2196f3; }
.circle-green { background: #e8f5e9; color: #4caf50; }
.circle-purple { background: #f3e5f5; color: #ab47bc; }
.circle-red { background: #ffebee; color: #ef5350; }
.circle-orange { background: #fff3e0; color: #ff9800; }

/* 筛选功能样式 */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.schedule-header h1 {
    margin-bottom: 0;
}
.filter-btn {
    padding: 6px 20px;
    border: 1px solid #52cfd3;
    background: #fff;
    color: #52cfd3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    margin-top: 28px;
}
.filter-btn:hover {
    background: #52cfd3;
    color: #fff;
}
.filter-panel {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
}
.filter-group {
    margin-bottom: 12px;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-label {
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    display: inline-block;
    width: 50px;
}
.filter-group label {
    margin-right: 15px;
    cursor: pointer;
    color: #555;
    user-select: none;
    display: inline-flex;
    align-items: center;
}
.filter-group input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #52cfd3;
}