/*+----------------------------------------------------------
| zoui v1.0.0 MIT 2020.6.14
| 放下个人素质，享受缺德人生！拒绝精神内耗，不行咱就发疯！
| Copyright (c) 2020 http://st.swah.cn All rights reserved.
| Author: zero <m@swah.cn>
+----------------------------------------------------------*/
@import url('default.css');

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html,
body {
	/* 	background: radial-gradient(at center, #00d7c3, #00acd7); */
	background: #f5f5f5;
	height: 100%;
	-webkit-text-size-adjust: 100%;
	margin: 0;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1;
}

a {
	color: #000;
	text-decoration-line: none;
}

/* banner自动轮播样式 */
.banner {
	/* 隐藏超出展示容器的内容 */
	overflow: hidden;
	position: relative;
	border-radius: 10px;
	margin: 0 10px 10px 0;
	box-shadow: 2px 2px 5px #d2d5db;
}

.banner .banner_c {
	width: 12600px;
	height: 300px;
	overflow: hidden;
	position: absolute;
	/* 开启弹性盒，让图片横向排列 */
	display: flex;
	animation: banner 20s ease infinite;
}

.banner_c_c {
	width: 1800px;
	height: 300px;
}

/* 动画关键帧 */
@keyframes banner {

	0%,
	14% {
		/* margin-left: 0; */
		transform: translateX(0);
	}

	15%,
	28% {
		/* margin-left: -1200px;; */
		transform: translateX(-1800px);
	}

	29%,
	42% {
		/* margin-left: -2400px; */
		transform: translateX(-3600px);
	}

	43%,
	56% {
		/* margin-left: -2400px; */
		transform: translateX(-5400px);
	}

	57%,
	70% {
		/* margin-left: -3600px; */
		transform: translateX(-7200px);
	}

	71%,
	84% {
		/* margin-left: -4800px; */
		transform: translateX(-9000px);
	}

	85%,
	99% {
		/* margin-left: -4800px; */
		transform: translateX(-10800px);
	}

	100% {
		/* margin-left: 0; */
		transform: translateX(0);
	}
}

.x {
	position: absolute;
	margin: 100px;
	color: #fff;
	width: 480px;
	z-index: 1;
}

.y {
	position: absolute;
	margin: 150px 50px;
	color: #fff;
	width: 200px;
	-moz-transform: rotate(-90deg);
	-webkit-transform: rotate(-90deg);
	z-index: 1;
}

.banner_c_c_t {
	position: relative;
	margin: 60px 0 0 160px;
	font-size: 1.5rem;
	color: #fff;
}

.banner_c_c_c {
	position: relative;
	margin: 30px 0 0 160px;
	width: 40%;
	font-size: 1.1rem;
	color: #fff;
}


/* 首页 图片新闻 轮播图*/
.slider-container {
	position: relative;
	width: 530px;
	height: 350px;
	overflow: hidden;
	border-radius: 5px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.slider {
	display: flex;
	width: 100%;
	height: 88%;
	transition: transform 0.4s ease-in-out;
}

.slide {
	min-width: 100%;
	height: 100%;
}

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

.controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.control-btn {
	background: rgba(255, 255, 255, 0.7);
	color: #333;
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	justify-content: center;
	align-items: center;
}

.control-btn:hover {
	background: rgba(255, 255, 255, 0.9);
}

.dots {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.2s;
}

.dot.active {
	background: rgba(255, 255, 255, 0.9);
	transform: scale(1.1);
}

/* 鼠标悬停时显示控制按钮和圆点 */
.slider-container:hover .controls,
.slider-container:hover .dots {
	opacity: 1;
}

.slider_title {
	margin: 10px;
	font-size: 18px;
}

.slider_title:hover {
	color: var(--main-color);
}


/* 首页 文字新闻 切换*/
.butt {
	display: inline-block;
	padding: 10px 20px;
	margin: 2px;
	cursor: pointer;
}

.text {
	display: none;
	padding: 3px 10px;
	text-align: left;
}

/* 默认显示第一个内容 */
.text1 {
	display: block;
}

/* 当悬停在butt2上时显示text2 */
.butt2:hover~.text1,
.butt2:hover~.text2~.text3,
.butt2:hover~.text2~.text3~.text4 {
	display: none;
}

.butt2:hover~.text2 {
	display: block;
}

/* 当悬停在butt3上时显示text3 */
.butt3:hover~.text1,
.butt3:hover~.text2,
.butt3:hover~.text2~.text4 {
	display: none;
}

.butt3:hover~.text2~.text3 {
	display: block;
}

/* 当悬停在butt4上时显示text4 */
.butt4:hover~.text1,
.butt4:hover~.text2,
.butt4:hover~.text2~.text3 {
	display: none;
}

.butt4:hover~.text2~.text3~.text4 {
	display: block;
}

/* 单个新闻项 */
.news-item {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.news-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* 新闻标题和日期 */
.news-item h3 {
	display: inline;
	/* 让标题和日期在同一行 */
	margin: 0;
	font-size: 18px;
}

.news-item h3 a {
	color: #000;
	text-decoration: none;
}

.news-item h3 a:hover {
	color: var(--main-color);
}

/* 新闻日期 */
.news-date {
	font-size: 14px;
	color: #999;
	margin-left: 10px;
	/* 日期与标题之间的间距 */
}

/* 新闻摘要 */
.news-item p {
	margin: 8px 0 0 0;
	color: #666;
	font-size: 14px;
}

/* 公司简介 容器样式 */
.company-profile {
	margin: 5px;
	padding: 5px;
}

/* 副标题样式 */
.company-profile h3 {
	font-size: 22px;
	color: #333;
	margin-top: 15px;
	margin-bottom: 15px;
}

/* 段落样式 */
.company-profile p {
	font-size: 16px;
	color: #555;
	margin: 0 0 20px 0;
}

/* 列表样式 */
.company-profile ul {
	padding-left: 20px;
	margin: 0 0 20px 0;
}

.company-profile ul li {
	font-size: 16px;
	color: #555;
	margin-bottom: 10px;
}

/* 底部链接样式 */
.company-profile a {
	color: var(--main-color);
	text-decoration: none;
}

.company-profile a:hover {
	text-decoration: underline;
}