/* 重置样式 */
* {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 头部样式 */
header {
  background-color: #2a3344;
  color: #fff;
  padding: 10px 100px;
  height: 60px;
}

/*
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
*/

header div {
  display: inline;
  float: left;
}

.logo {
  margin-top: 4px;
}

header div img {
  display: inline;
  width: 60px;
  height: 30px;  
  
}

h1 {
  display: inline;
  font-size: 26px;
}

nav {
  display: inline;
  float: right;
  height: 40px;
  padding-top: 9px;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

/* 英雄区域样式 */
.hero {
  background-image: url('../images/bg_banner.webp');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hero div {
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero form {
  display: flex;
}

.hero input[type="text"] {
  padding: 10px;
  width: 420px;
  font-size: 1rem;
  border: 1px solid #007bff;
  border-radius: 5px 0 0 5px;
}

.hero button[type="submit"] {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}




.container {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
	background-color: #f4f4f4;
}

.container h2 {
    color: #333;
	margin-bottom: 10px;
}

.container p {
    color: #666;
	margin-bottom: 10px;
}

.service-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.item {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px 50px;
    width: 300px;
    text-align: center;
}

.icon {
    font-size: 36px;
    color: #4c9dff;
    margin-bottom: 10px;
}

h3 {
    color: #333;
    margin-bottom: 10px;
}

button {
    background-color: #4c9dff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3385ff;
}



.advantage {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #07a0e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advantage h2 {
    color: #333;
	margin-bottom: 10px;
}

.advantage p {
    color: #333;
}

.advantage-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
	margin-top: 10px;
}

.image-container {
    flex: 1;
    margin-right: 40px;
	max-width: 440px;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

.advantage-list {
    flex: 1;
    max-width: 400px;
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.advantage-list li {
    margin-bottom: 10px;
    color: #333;
	line-height: 56px;
}



.news {
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}



.news-title {
    text-align: center;
    margin-bottom: 10px;
}

.news-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
	margin-top: 20px;
}

.news-item {
    width: calc(50% - 40px);
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
    display: flex; /* 新增 */
    align-items: center; /* 新增 */
}

.news-item div {
    display: block; /* 修改 */
}

.time {
	margin-right: 15px;
	margin-top: -20px;
	background-color: #F2F2F2;
}

/*
.date, .year, .news-link {
    display: block;
}
*/
.date {
	display: block;
    font-size: 24px;
    color: #333;
	margin-left: 10px;
}

.year {
    font-size: 14px;
    color: #999;
}

.news-link {
	display: block;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
	margin-bottom: 5px;
}

.news-content {
    color: #666;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 限制在两行内 */
    overflow: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 显示省略号 */
}



.site-footer {
    background: #242424;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 20px;
	margin: 20px auto;
	max-width: 90%;
}

.slogan {
	color: rgb(204, 204, 204);
	text-align: left;
    margin-bottom: 20px;
	margin-top: 10px;
}
.descp {
	color: rgb(173, 172, 172);
}
.copyright {
    font-size: 14px;
    font-family: 微软雅黑;
    color: #999999;
	margin-top: 20px;
}
.copyright span {
	margin-right: 20px;
}



/* 弹出层蒙层样式 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed; /* 固定定位 */
  z-index: 1; /* 确保弹出层在页面最上层 */
  left: 0;
  top: 0;
  width: 100%; /* 宽度100% */
  height: 100%; /* 高度100% */
  overflow: auto; /* 允许滚动 */
  background-color: rgba(0,0,0,0.4); /* 黑色背景，透明度0.4 */
}

/* 弹出层内容样式 */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto; /* 15%从顶部开始，自动居中 */
  padding: 5px;
  border: 1px solid #888;
  width: 300px; /* 宽度80% */
  height: 300px;
}

.modal-content img {
  width: 100%;
  height: 260px;
  display: block;
}

.modal-content span {
  display: block;
  text-align: center;
}

.poptip {
  float: left;
}

/* 关闭按钮样式 */
.close {
  color: #aaa;
  position: absolute;
  top: -22px;
  right: 0;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  text-decoration: none;
  cursor: pointer;
}
