/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft Yahei", sans-serif;
}

a {
	text-decoration: none;
	color: #333;
}

ul,
li,
ol {
	list-style: none;
}

.container {
	width: 1200px;
	margin: 0 auto;
}

/* 头部样式 */
header {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	margin-top: 10px;
}

.service-hotline {
	font-size: 18px;
	font-weight: bold;
	display: flex;
	flex-direction: column;
}

.service-hotline i {
	color: #D30A07;
}

/* 导航栏样式 */
.nav {
	background-color: #96000C;
}

.nav-list {
	display: flex;
}

.nav-item {
	position: relative;
}

.nav-item a {
	display: block;
	padding: 15px 55px;
	color: #fff;
	font-size: 16px;
}

.nav-item a:hover {
	background-color: #a00;
}

/* 轮播图样式 - 【核心修改1】强化Banner尺寸限制 */
.banner {
	position: relative;
	height: 550px;
	overflow: hidden;
	width: 100%;
	/* 明确banner宽度为100% */
}

.banner-wrapper {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease;
	/* 宽度由JS动态计算 */
	position: relative;
	/* 防止溢出 */
}

.banner-slide {
	flex: 0 0 auto;
	/* 【修改】取消固定100%，改为auto配合width */
	width: 100%;
	/* 强制slide宽度等于banner宽度 */
	height: 100%;
	/* 强制slide高度等于banner高度 */
	position: relative;
	/* 保证内部text定位正确 */
}

.banner-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 保证图片填充且不变形 */
	display: block;
	/* 消除图片底部空白 */
}

.banner-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 32px;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	line-height: 1.6;
	z-index: 2;
	width: 100%;
	/* 文字容器宽度适配 */
	padding: 0 20px;
	/* 防止文字溢出 */
}

/* 轮播指示器 */
.banner-indicators {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 2;
}

.indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.3s;
}

.indicator.active {
	background-color: #fff;
}

/* 轮播左右箭头 */
.banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.3);
	color: #fff;
	text-align: center;
	line-height: 40px;
	font-size: 20px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 2;
	transition: background-color 0.3s;
}

.banner-arrow:hover {
	background-color: rgba(0, 0, 0, 0.5);
}

.arrow-left {
	left: 20px;
}

.arrow-right {
	right: 20px;
}

/* 成功案例样式 - 【核心修改】案例按整体容器切换 */
.case-section {
	padding: 50px 0;
}

.section-title {
	text-align: center;
	font-size: 24px;
	margin-bottom: 30px;
	position: relative;
}

.section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background-color: #c00;
	margin: 10px auto;
}

.case-tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.case-tab,.case-tab-list {
	padding: 8px 15px;
	margin: 0 5px;
	background-color: #f5f5f5;
	border: 1px solid #eee;
	cursor: pointer;
	transition: all 0.3s;
}

.case-tab.active,.case-tab-list.active {
	background-color: #c00;
	color: #fff;
	border-color: #c00;
}

.case-tab:hover:not(.active) {
	background-color: #eee;
}
.case-tab-list:hover:not(.active) {
	background-color: #eee;
}

/* 新增：案例整体容器，默认隐藏，仅激活的显示 */
.case-group {
	display: none;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.case-group-list {
	    display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.case-group.active {
	display: grid;
}

.case-item,.case-item-list {
	text-align: center;
}

.case-item img,.case-item-list img {
	width: 100%;
	height: 255px;
	object-fit: cover;
	margin-bottom: 10px;
}


/* 关于我们样式 */
.about-section {
	background: url(../img/gsjjbg.png) no-repeat top center;
	color: #fff;
	padding: 60px 0 100px;
}

.about-content {
	display: flex;
	align-items: center;
	gap: 30px;
}

.about-img {
	flex: 2;
}

.about-img img {
	width: 100%;
	height: 385px;
	object-fit: cover;
}

.about-text {
	flex: 2;
}

.about-text h3 {
	font-size: 22px;
	margin-bottom: 20px;
}

.about-text p {
	line-height: 1.8;
	margin-bottom: 20px;
}

.more-btn {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid #fff;
	color: #fff;
	transition: all 0.3s;
}

.more-btn:hover {
	background-color: #fff;
	color: #c00;
}

/* 优势板块样式 */
.advantage-section {
	padding: 50px 0;
	background: #F9F9F9;
}

.advantage-title {
	text-align: center;
	font-size: 24px;
	color: #c00;
	margin-bottom: 30px;
}

.advantage-content {
	display: flex;
	align-items: center;
	gap: 30px;
}

.advantage-img {
	flex: 1;
}

.advantage-img img {
	width: 100%;
}

.advantage-list {
	flex: 1;
}

.advantage-item {
	margin-bottom: 35px;
	width: 100%;
}

.advantage-item h4 {
	font-size: 18px;
	color: #c00;
	margin-bottom: 10px;
	display: flex;
	align-items: self-end;
	width: 100%;
}

.advantage-item h4 span {
	display: inline-block;
	height: 24px;
	color: #910000;
	line-height: 24px;
	margin-left: 20px;
	flex: 2;
	border-bottom: 1px solid #999;
	height: 100%;
	padding: 0 0 15px;

}

/* 新闻资讯样式 */
.news-section {
	padding: 50px 0;
}

.news-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.news-item {
	display: flex;
	gap: 20px;
}

.news-img {
	width: 200px;
	height: 131px;
}

.news-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-text {
	flex: 1;
}

.news-text h4 {
	margin-bottom: 10px;
	font-size: 16px;
}

.news-text span {
	margin-bottom: 10px;
	display: block;
	font-size: 14px;
	color: #999;
}

.news-text p {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

/* 资质证书样式 */
.cert-section {
	padding: 50px 0;
}

.cert-list {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.cert-item {
	width: 23%;
	margin-bottom: 20px;
}

.cert-item img {
	width: 100%;
	height: 190px;
	object-fit: contain;
	border: 1px solid #eee;
	padding: 10px;
}

/* 底部样式 */
footer {
	background-color: #ECECEC;
	padding: 30px 0;
}

.huanyingyu {
	background: #F0F0F0;
}

.huanyingyu p {
	width: 1200px;
	margin: 0 auto;
	height: 30px;
	line-height: 30px;
	font-size: 12px;
}

.center {
	width: 1200px;
	margin: 0 auto;
}

footer .center {
	display: flex;
}

.footer-left,
.footer-left-center,
.footer-right-center,
.footer-right {
	display: flex;
	flex-direction: column;
}

.footer-left {
	padding-right: 50px;
}

.footer-left h1 {
	font-size: 20px;
}

.footer-left p {
	margin: 5px 0;
	font-size: 14px;
	color: #333;
}

.footer-left li {
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 20px;
	padding: 20px 0 0;
}

.footer-left li img {
	width: 50%;
}

.footer-left li span {
	font-size: 14px;
	color: #333;
}

.footer-left-center,
.footer-right-center {
	border-left: 1px solid #999;
	padding: 0 50px;
}

.footer-left-center,
.footer-right-center a {
	font-size: 14px;
	color: #333;
	line-height: 30px;
}

.footer-right {
	margin-left: auto;
}

.footer-right a {
	width: 280px;
	margin-bottom: 20px;
}

.footer-right a img {
	width: 280px;
}

.footer-right span {
	font-size: 16px;
	color: #000;
	text-align: center;
}

.footer-right p {
	margin-top: 10px;
	font-size: 30px;
	color: #000;
	font-weight: bold;
	text-align: center;
	font-style: italic;
}

.footer-nav {
	background: #96000C;
}

.footer-nav .center {
	height: 45px;
	display: flex;
	justify-content: start;
	align-items: center;
}

.footer-nav .center>a,
.footer-nav .center>span {
	color: #fff;
	font-size: 14px;
}

.footer-nav .center>span {
	margin: 0 10px;
}

.footer-nav .center p {
	margin-left: auto;
	color: #fff;
	font-size: 14px;
}

.content-h1 {
	margin-top: 30px;
	font-size: 20px;
	text-align: center;
}

.content-time {
	margin: 10px 0 20px 0;
	text-align: center;
	display: block;
	font-size: 14px;
	color: #999;
}

.content {
	padding: 10px;
}

.content img {
	max-width: 80%;
}

.content-fanhui {
	display: block;
	margin: 50px auto 0;
	width: 100px;
	height: 50px;
	text-align: center;
	line-height: 50px;
	color: #fff;
	background: #D30A07;
	border: 1px solid #D30A07;
}

.content-fanhui:hover {
	background: #fff;
	color: #D30A07;
}