/* --- 核心容器：Flex 垂直布局 --- */
.section-new-3 {
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	/* 垂直排列两行 */
}

/* --- 行容器：Flex 水平布局 --- */
.flex-row {
	display: flex;
	flex: 1;
	/* 平分父容器高度，即各占50% */
	width: 100%;
}

/* --- 方格通用样式 --- */
.grid-item {
	flex: 1;
	/* 平分父容器宽度，即各占33.33% */
	height: 100%;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.4s ease;
	/* 默认背景图设置 (这里用一个默认灰色图占位，具体图在HTML内联样式中设置) */
	background-color: #333;
	background-size: cover;
	background-position: center;
}

/* --- 内容排版 --- */
.content-box {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/* 文字左对齐 */
	color: #fff;
	z-index: 2;
}

/* 默认显示的标题 */
.main-title {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 10px;
	transform: translateY(0);
	transition: all 0.3s ease;
}

.sub-title {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 2px;
	opacity: 0.9;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

/* 悬停时显示的详情 */
.details {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0;
	/* 默认隐藏 */
	transform: translateY(20px);
	transition: all 0.3s ease 0.1s;
	max-width: 90%;
}

/* --- 悬停交互逻辑 --- */

/* 鼠标移入时，背景变橙色 */
.grid-item:hover {
	background-color: #FF5722!important;
	background-image: none!important;
	/* 橙色背景 */
}

/* 鼠标移入时，背景图变暗或隐藏(通过滤镜或遮罩) */
/* 这里为了效果平滑，我们给背景图加一个透明度变化，或者直接用背景色覆盖 */
/* 由于背景色在 hover 时直接变了，图片会被盖住，所以我们不需要额外隐藏图片 */

/* 鼠标移入时，隐藏英文副标题 */
.grid-item:hover .sub-title {
	opacity: 0;
	transform: translateY(-10px);
}

/* 鼠标移入时，主标题微调 */
.grid-item:hover .main-title {
	transform: translateY(-10px);
}

/* 鼠标移入时，显示详情内容 */
.grid-item:hover .details {
	opacity: 1;
	transform: translateY(0);
}

/* --- 响应式：手机端适配 --- */
@media (max-width: 768px) {
	.section-new-3 {
		flex-direction: column;
		height: auto;
		/* 移动端允许滚动 */
		overflow-y: auto;
	}

	.flex-row {
		flex-direction: column;
		/* 行内也变为垂直排列 */
		height: auto;
	}

	.grid-item {
		width: 100%;
		height: 300px;
		/* 移动端固定高度 */
		flex: none;
	}
}

/* --- 主容器：Flex 垂直布局 --- */
.join-us-container {
	display: flex;
	flex-direction: column;
	width: 100vw;
}

/* --- 顶部标题区 --- */
.header-section {
	text-align: center;
	padding: 80px 20px;
	background: #fff;
	flex-shrink: 0;
	/* 防止被压缩 */
}

.header-section h1 {
	font-size: 36px;
	font-weight: 400;
	color: #333;
	margin-bottom: 10px;
	position: relative;
	display: inline-block;
}

/* 标题下的橙色短线装饰 */
.header-section h1::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	background: #ff6600;
	/* 橙色装饰 */
	margin: 8px auto 0;
}

.header-section p {
	font-size: 24px;
	color: #666;
	margin-top: 10px;
}

/* --- 主体内容区：Flex 水平布局 --- */
.main-content {
	display: flex;
	flex: 1;
	/* 占据剩余所有高度 */
	width: 100%;
	max-width: 1680px;
	/* 限制最大宽度，防止在大屏上过宽 */
	margin: 0 auto;
	/* 居中 */
	background: #fff;
	/* 添加阴影增加层次感 */
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 左侧图片区域 */
.image-box {
	flex: 1;
	/* 占据 1 份宽度 */
	overflow: hidden;
	position: relative;
}

.image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 图片填充且不变形 */
	display: block;
}

/* 右侧文字区域 */
.text-box {
	flex: 1;
	/* 占据 1 份宽度 */
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* 内容垂直居中 */
	background-color: #F9F9F9;
}

.text-box h2 {
	color: #ff6600;
	/* 橙色标题 */
	font-size: 24px;
	margin-bottom: 20px;
	font-weight: normal;
}

.text-box .desc {
	color: #666;
	font-size: 14px;
	line-height: 1.8;
	text-align: justify;
	/* 两端对齐 */
	margin-bottom: 30px;
}

/* 按钮样式 */
.btn {
	display: inline-block;
	padding: 10px 30px;
	background-color: #e0e0e0;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	border-radius: 2px;
	transition: all 0.3s;
	align-self: flex-start;
	/* 按钮靠左 */
}

.btn:hover {
	background-color: #ff6600;
	color: #fff;
}

/* --- 响应式设计 (移动端适配) --- */
@media (max-width: 768px) {
	.main-content {
		flex-direction: column;
		/* 变为一列布局 */
		height: auto;
		/* 高度自适应 */
	}

	.image-box {
		height: 250px;
		/* 移动端图片固定高度 */
	}

	.text-box {
		padding: 30px 20px;
	}

	.header-section {
		padding: 30px 15px;
	}

	.header-section h1 {
		font-size: 24px;
	}

	.header-section p {
		font-size: 14px;
	}
}

#section4 {
	justify-content: flex-start;
}

/* --- 头部 Hero 区域 --- */
.hero {
	width: 100%;
	height: 450px;
	/* 这里使用了一个深色背景图，你可以替换成实际图片 */
	background: url('/public/static/images/news.jpg') no-repeat center center/cover;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;
	text-align: center;
}

/* 遮罩层，让文字更清晰 */
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.hero-content {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 36px;
	font-weight: normal;
	margin-bottom: 10px;
	border-bottom: 2px solid #fff;
	padding-bottom: 10px;
	display: inline-block;
}

.hero p {
	font-size: 18px;
	letter-spacing: 2px;
}

/* --- 新闻列表主体 --- */
.news-container {
	/* max-width: 1200px; */
	/* margin: 60px auto; */
	padding:80px 180px 0 180px;
}

/* Flex 布局核心：使用 flex-wrap 实现换行 */
.news-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	/* 两端对齐 */
	gap: 30px;
	/* 项目之间的间距 */
}

/* 单个新闻卡片 */
.news-item {
	background: #fff;
	/* 默认占据宽度的计算：(100% - 间距) / 4 */
	flex: 0 0 calc(25% - 30px);
	/* padding: 20px; */
	cursor: pointer;
	position: relative;
	/* 初始状态下隐藏图片占位，防止高度跳动，或者设为透明 */
	overflow: hidden;
	border: 1px solid transparent;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 320px;
	/* 固定高度以保证布局整齐 */
}

/* 悬停时的卡片效果 */
.news-item:hover {
	/* border-color: #e0e0e0; */
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

/* 默认隐藏的图片区域 */
.news-image {
	width: 100%;
	height: 100%;
	/* 图片高度 */
	background-size: cover;
	background-position: center;
	/* margin-bottom: 15px; */
	opacity: 0;
	/* 默认完全透明 */
	transform: translateY(-10px);
	/* 微微向上偏移 */
	transition: all 0.4s ease;
	/* border-radius: 4px; */
	position: absolute;
}

/* 悬停时显示图片 */
.news-item:hover .news-image {
	opacity: 1;
	/* 变为不透明 */
	transform: translateY(0);
	/* 归位 */
}

.news-title {
    font-size: 24px;
    font-weight: normal;
    padding-bottom: 20px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #FE5019;
    padding-top: 80px;
}

.news-desc {
    font-weight: normal;
    font-size: 15px;
    color: #585858;
    padding-bottom: 20px;
    /* flex-grow: 1; */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    height: 70px;
}

.news-date {
    font-size: 16px;
    color: #585858;
    /* border-top: 1px solid #eee; */
    padding-top: 10px;
    margin-top: 5px;
    text-align: left;
}

/* --- 响应式设计 --- */

/* 平板设备 (最大宽度 992px) */
@media (max-width: 992px) {
	.news-item {
		flex: 0 0 calc(50% - 20px);
		/* 一行显示2个 */
	}
}

/* 手机设备 (最大宽度 600px) */
@media (max-width: 600px) {
	.hero {
		height: 140px;
	}

	.hero h1 {
		font-size: 28px;
	}

	.news-list {
		flex-direction: column;
		/* 垂直堆叠 */
	}

	.news-item {
	    flex: 0 0 100%;
	    height: auto;
	    min-height: 200px;
	    width: 90vw;
	}
	
	/* 手机端悬停体验不好，可以考虑点击或直接显示，这里保持悬停逻辑但调整图片大小 */
	.news-image {
		height: 120px;
	}
}
/* --- 页脚核心样式 --- */
        .footer {
			width: 100vw;
            background-color: #333; /* 深灰色背景 */
            color: #fff;            /* 白色文字 */
            padding: 40px 150px;     /* 内边距 */
            display: flex;          /* 开启 Flex 布局 */
            justify-content: space-between; /* 两端对齐，中间间距自动分配 */
            align-items: center;    /* 垂直居中 */
            border-bottom: 2px solid #fff; /* 底部白色粗线条 */
        }

        /* 1. Logo 区域 */
        .footer-logo img {
            height: 60px; /* 控制 Logo 大小 */
        }

        /* 2. 导航链接区域 */
        .footer-nav ul {
            display: flex;
                flex-direction: column;
                gap: 10px;
                list-style: none;
                justify-content: flex-start;
                align-items: baseline;
        }

        .footer-nav a {
                text-decoration: none;
                color: #fff;
                font-size: 14px;
                transition: color 0.3s;
                text-align: left;
        }

        .footer-nav a:hover {
            color: #ff6600; /* 鼠标悬停变橙色（参考 Logo 颜色） */
        }

        /* 3. 公司信息区域 */
        .footer-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: left;
        }

        .footer-info h3 {
            font-size: 22px;
            margin-bottom: 5px;
            font-weight: normal;
        }

        .footer-info p {
            font-size: 14px;
            color: #fff;
        }

        /* 4. 二维码区域 */
        .footer-qr {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .footer-qr img {
            width: 150px;
            height: 150px;
        }

        .footer-qr span {
            font-size: 12px;
            color: #ccc;
        }

        /* --- 响应式适配 (手机端) --- */
        @media (max-width: 768px) {
            .footer {
                flex-direction: column; /* 垂直堆叠 */
                gap: 30px;              /* 模块之间的间距 */
                padding: 30px 20px;
                text-align: center;     /* 文字居中 */
            }

            .footer-info, .footer-nav ul {
                align-items: center;    /* 内容居中 */
            }
			.news-desc {
			    font-weight: normal;
			    font-size: 15px;
			    color: #585858;
			    padding-bottom: 20px;
			    flex-grow: unset;
			    display: -webkit-box;
			    -webkit-line-clamp: 3;
			    -webkit-box-orient: vertical;
			    overflow: hidden;
			    text-align: left;
			    height: 70px;
			}
			.news-image {
			    width: 100%;
			    height: 180px!important;
			    background-size: cover;
			    background-position: center;
			    /* margin-bottom: 15px; */
			    opacity: 1;
			    transform: translateY(-10px);
			    transition: all 0.4s ease;
			    /* border-radius: 4px; */
			    position: static;
			}
			.news-container {
			    padding: 20px 180px 0 180px;
			}
			.news-title {
			    padding-top: 10px;
			}
        }