/* ========== Banner轮播图 ========== */
.banner {
	width: 100%;
	height: 350px;
	overflow: hidden;
	position: relative;
	background: #333;
}

.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.swiper-pagination-bullet{
	width: 70px;
	height: 5px;
	display: inline-block;
	border-radius:0;
	background: #d8d8d8;
	opacity: 1;
}
.swiper-pagination-bullet-active{
	background: #ff0000;
}
.swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction{
	bottom: 15px;
}
.banner-slide.active {
	opacity: 1;
}

.banner-text {
	position: absolute;
	bottom: 80px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	z-index: 10;
	padding: 0 20px;
}

.banner-text h2 {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 12px;
}

.banner-text p {
	font-size: 14px;
	opacity: 0.9;
}

.banner-dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 10;
}

.banner-dots span {
	display: inline-block;
	width: 30px;
	height: 3px;
	background: rgba(255, 255, 255, 0.4);
	margin: 0 4px;
	cursor: pointer;
}

.banner-dots span.active {
	background: #9d1f2c;
}

/* ========== 主体区域 ========== */
.main-content {
	padding: 40px 0;
}

/* 通用模块样式 */
.module {
	background: #fff;
	margin-bottom: 30px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.module-title {
	background: #f8f8f8;
	padding: 12px 18px;
	border-bottom: 2px solid #9d1f2c;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.module-title a {
	float: right;
	font-size: 12px;
	font-weight: normal;
	color: #999;
}

.module-title a:hover {
	color: #9d1f2c;
}

/* 两列布局 */
.two-col {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.two-col .module {
	flex: 1;
	margin-bottom: 0;
	min-width: 250px;
}

/* 列表样式 */
.module-list {
	padding: 8px 18px;
}

.module-list li {
	list-style: none;
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	flex-wrap: wrap;
	gap: 5px;
}

.module-list li a {
	color: #555;
	flex: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.module-list li a:hover {
	color: #9d1f2c;
}

.module-list .date {
	color: #999;
	font-size: 11px;
	white-space: nowrap;
}

/* 中心简介模块 */
.about-text-only {
	padding: 18px;
}

.about-text-only p {
	font-size: 13px;
	color: #555;
	line-height: 1.8;
	margin-bottom: 12px;
	text-indent: 2em;
}

/* ========== 通栏广告图 ========== */
.ad-banner {
	width: 100%;
	margin-bottom: 30px;
	overflow: hidden;
}

.ad-banner img {
	width: 100%;
	height: auto;
	display: block;
}

/* ========== 师资风采 - 优化头像大小 ========== */
.teacher-section {
	background: #fff;
	margin-bottom: 30px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	position: relative;
}

/* PC端：2排8个（4列x2行） */
.teacher-grid-pc {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	padding: 25px;
}

/* 手机端轮播样式（默认隐藏，手机端显示） */
.teacher-mobile-carousel {
	display: none;
}

.teacher-card {
	text-align: center;
	padding: 20px 15px;
	background: #fafafa;
	border-radius: 12px;
	transition: all 0.3s ease;
	border: 1px solid #eee;
}

.teacher-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	border-color: #9d1f2c;
}

/* 头像优化：更大更醒目 */
.teacher-avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	margin: 0 auto 15px;
	overflow: hidden;
	background: linear-gradient(135deg, #9d1f2c 0%, #c0392b 100%);
	border: 3px solid #9d1f2c;
	box-shadow: 0 5px 15px rgba(157, 31, 44, 0.2);
	transition: all 0.3s ease;
}

.teacher-card:hover .teacher-avatar {
	transform: scale(1.02);
	box-shadow: 0 8px 25px rgba(157, 31, 44, 0.3);
	border-color: #7a1620;
}

.teacher-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teacher-card h4 {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #222;
}

.teacher-level {
	font-size: 14px;
	color: #9d1f2c;
	margin-bottom: 6px;
	font-weight: 600;
	letter-spacing: 1px;
}

.teacher-field {
	font-size: 12px;
	color: #666;
	margin-bottom: 12px;
	padding: 0 5px;
}

.teacher-btn {
	display: inline-block;
	padding: 6px 18px;
	background: #9d1f2c;
	color: #fff;
	font-size: 12px;
	border-radius: 25px;
	margin-top: 5px;
	transition: all 0.3s;
	font-weight: 500;
}

.teacher-btn:hover {
	background: #7a1620;
	transform: translateY(-2px);
}

/* 手机端轮播图样式 */
.teacher-carousel {
	position: relative;
}

.carousel-container {
	overflow: hidden;
	position: relative;
}

.carousel-wrapper {
	display: flex;
	transition: transform 0.5s ease;
}

.carousel-page {
	flex-shrink: 0;
	width: 100%;
	display: none;
}

.carousel-page.active-page {
	display: block;
}

/* 手机端卡片内头像稍小，但相对手机屏幕依然醒目 */
.carousel-page .teacher-avatar {
	width: 90px;
	height: 90px;
}

.carousel-page .teacher-card {
	padding: 18px 12px;
}

.carousel-page .teacher-card h4 {
	font-size: 15px;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s;
	color: #fff;
	font-size: 18px;
}

.carousel-btn:hover {
	background: #9d1f2c;
}

.carousel-btn.prev {
	left: 8px;
}

.carousel-btn.next {
	right: 8px;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 15px 0 20px;
	flex-wrap: wrap;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: all 0.3s;
}

.carousel-dot.active {
	background: #9d1f2c;
	width: 22px;
	border-radius: 4px;
}

/* ========== 讲师作品（书籍展示） ========== */
.books-section {
	background: #fff;
	margin-bottom: 30px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 20px;
}

.book-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid #eee;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	text-align: center;
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border-color: #9d1f2c;
}

.book-cover {
	width: 100%;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.book-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-info {
	padding: 15px;
}

.book-title {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1; /* 限制显示的行数为3 */
	overflow: hidden;
}

.book-author {
	font-size: 12px;
	color: #9d1f2c;
	margin-bottom: 8px;
}

.book-desc {
	font-size: 11px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 10px;
}

.book-btn {
	display: inline-block;
	padding: 5px 16px;
	background: #9d1f2c;
	color: #fff;
	font-size: 11px;
	border-radius: 20px;
	transition: all 0.3s;
}

.book-btn:hover {
	background: #7a1620;
}

/* ========== 专家分类名录 ========== */
.expert-section {
	background: #fff;
	margin-bottom: 30px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.expert-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: 20px;
	gap: 15px;
}

.expert-category {
	background: #fff;
	border-radius: 10px;
	padding: 12px 10px;
	transition: all 0.3s ease;
	border: 1px solid #eee;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
	text-align: center;
}

.expert-category:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	border-color: #9d1f2c;
}

.category-title {
	font-size: 14px;
	font-weight: 600;
	color: #9d1f2c;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 2px solid #9d1f2c;
	display: inline-block;
}

.expert-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.expert-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px 20px;
	flex-wrap: wrap;
}

.expert-row a {
	color: #555;
	font-size: 12px;
	transition: all 0.2s;
	width: 50px;
	text-align: left;
}

.expert-row a:hover {
	color: #9d1f2c;
}

.dot {
	color: #9d1f2c;
	font-weight: bold;
	font-size: 12px;
}

/* 友情链接 */
.links-section {
	background: #fff;
	margin-top: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 18px;
}

.links-title {
	font-size: 15px;
	font-weight: 600;
	color: #9d1f2c;
	padding-bottom: 10px;
	border-bottom: 2px solid #9d1f2c;
	margin-bottom: 12px;
}

.links-group {
	display: flex;
	flex-wrap: wrap;
}

.links-group a {
	display: inline-block;
	margin-right: 20px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #666;
}

.links-group a:hover {
	color: #9d1f2c;
}
/* ========== 响应式布局 - 修复边距问题 ========== */
/* 平板横屏 */
@media (max-width: 1200px) {
	.container {
		padding: 0 24px;
	}

	.main-content {
		padding: 32px 0;
	}

	.expert-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.books-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.teacher-grid-pc {
		gap: 20px;
		padding: 20px;
	}

	.teacher-avatar {
		width: 100px;
		height: 100px;
	}

	.module {
		margin-bottom: 28px;
	}

	.two-col {
		gap: 28px;
		margin-bottom: 28px;
	}

	.ad-banner {
		margin-bottom: 28px;
	}

	.teacher-section {
		margin-bottom: 28px;
	}

	.books-section {
		margin-bottom: 28px;
	}

	.expert-section {
		margin-bottom: 28px;
	}
	.expert-row{
		gap: 15px 30px;
	}
}

/* 平板竖屏 */
@media (max-width: 992px) {
	.container {
		padding: 0 20px;
	}

	.main-content {
		padding: 20px 20px;
	}

	.expert-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.books-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.two-col {
		flex-direction: column;
		gap: 24px;
		margin-bottom: 15px;
	}

	.two-col .module {
		margin-bottom: 0;
	}

	.banner {
		height: 280px;
	}

	.banner-text h2 {
		font-size: 22px;
	}

	.banner-text p {
		font-size: 12px;
	}

	.teacher-grid-pc {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		padding: 20px;
	}

	.teacher-avatar {
		width: 100px;
		height: 100px;
	}

	.module {
		margin-bottom: 24px;
	}

	.ad-banner {
		margin-bottom: 24px;
	}

	.teacher-section {
		margin-bottom: 24px;
	}

	.books-section {
		margin-bottom: 24px;
	}

	.expert-section {
		margin-bottom: 24px;
	}

	.links-section {
		margin-top: 8px;
		padding: 16px;
	}
	.expert-row{
		gap: 15px 20px;
	}
}

/* 手机端 */
@media (max-width: 768px) {
	.container {
		padding: 0 16px;
	}

	.main-content {
		padding: 20px 20px;
	}

	/* 师资：PC网格隐藏，显示手机轮播 */
	.teacher-btn{
		display: none;
	}
	.teacher-grid-pc {
	    grid-template-columns: repeat(2, 1fr);
	    gap: 15px;
	    padding: 10px;
	}
	.teacher-card {
	    text-align: center;
	    padding: 10px 0px;
	    background: #fafafa;
	    border-radius: 12px;
	    transition: all 0.3s ease;
	    border: 1px solid #eee;
	}
	.expert-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 16px;
	}

	.books-grid {
		gap: 16px;
		padding: 16px;
	}

	/* 手机端头像大小调整 */
	.carousel-page .teacher-avatar {
		width: 85px;
		height: 85px;
	}

	.module {
		margin-bottom: 20px;
	}

	.module-title {
		padding: 10px 16px;
		font-size: 14px;
	}

	.module-list {
		padding: 6px 16px;
	}

	.about-text-only {
		padding: 16px;
	}

	.ad-banner {
		margin-bottom: 20px;
	}

	.books-section {
		margin-bottom: 20px;
	}

	.teacher-section {
		margin-bottom: 20px;
	}

	.expert-section {
		margin-bottom: 20px;
	}

	.banner {
		height: 160px;
	}

	.banner-text {
		bottom: 40px;
		padding: 0 16px;
	}

	.banner-text h2 {
		font-size: 18px;
		margin-bottom: 6px;
	}

	.banner-text p {
		font-size: 11px;
	}

	.carousel-btn {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}

	.carousel-dots {
		padding: 12px 0 16px;
	}

	.links-section {
		padding: 16px;
		margin-top: 6px;
	}

	.links-group a {
		margin-right: 16px;
		margin-bottom: 8px;
		font-size: 11px;
	}
	.expert-row{
		gap: 15px 30px;
	}
}
@media (max-width: 650px) {
	.expert-row{
		gap: 15px 10px;
	}
}
/* 小手机 */
@media (max-width: 480px) {
	.container {
		padding: 0 14px;
	}

	.main-content {
		padding: 20px 10px;
	}
	.expert-row{
		gap: 15px 25px ;
	}
	.expert-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 14px;
	}

	.books-grid {
		gap: 14px;
		padding: 14px;
	}

	.carousel-page .teacher-avatar {
		width: 75px;
		height: 75px;
	}

	.carousel-page .teacher-card {
		padding: 14px 10px;
	}

	.carousel-page .teacher-grid {
		gap: 14px !important;
		padding: 14px !important;
	}

	.module {
		margin-bottom: 18px;
	}

	.module-title {
		padding: 8px 14px;
		font-size: 14px;
	}

	.module-list {
		padding: 4px 14px;
	}

	.module-list li {
		padding: 8px 0;
		font-size: 12px;
	}

	.about-text-only {
		padding: 14px;
	}

	.about-text-only p {
		font-size: 12px;
		line-height: 1.7;
	}

	.ad-banner {
		margin-bottom: 18px;
	}

	.books-section {
		margin-bottom: 18px;
	}

	.teacher-section {
		margin-bottom: 18px;
	}

	.expert-section {
		margin-bottom: 18px;
	}

	.banner {
		height: 120px;
	}

	.banner-text h2 {
		font-size: 15px;
		margin-bottom: 4px;
	}

	.banner-text p {
		font-size: 9px;
	}

	.back-to-top {
		bottom: 15px;
		right: 15px;
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.books-grid {
		gap: 14px;
	}
	.book-info {
		padding: 12px;
	}
	
	.links-section {
		padding: 14px;
	}

	.links-title {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.links-group a {
		margin-right: 12px;
		font-size: 10px;
	}

	.carousel-btn {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

/* 超小屏幕极端优化 */
@media (max-width: 360px) {
	.container {
		padding: 0 12px;
	}
	.expert-row{
		gap: 15px 20px ;
	}
	.main-content {
		padding: 16px 0;
	}

	.module-title {
		padding: 6px 12px;
		font-size: 13px;
	}

	.module-list {
		padding: 4px 12px;
	}

	.module-list .date {
		font-size: 9px;
	}

	.carousel-page .teacher-avatar {
		width: 70px;
		height: 70px;
	}

	.carousel-page .teacher-card {
		padding: 12px 8px;
	}

	.carousel-page .teacher-grid {
		gap: 12px !important;
		padding: 12px !important;
	}

	.expert-grid {
		padding: 12px;
	}

	.books-grid {
		padding: 12px;
		gap: 12px;
	}
}