/* 重置默认边距 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 幻灯片样式 */
.slider-container {
	position: relative;
	max-width: 1920px;
	height: 640px;
	overflow: hidden;
	margin: 0 auto;
}

.slider {
	position: relative;
	width: 100%;
	height: 100%;
}

/* 所有幻灯片默认绝对定位，完全重叠 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;           /* 默认隐藏 */
    transition: opacity 0.8s ease;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* 激活的幻灯片显示 */
.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
}

/* 文字保持相对定位或普通定位，但需保证在图片之上（z-index） */
.slide h1,
.slide p {
    position: relative;   /* 保持相对定位，使其脱离图片层 */
    z-index: 2;           /* 确保在图片上方 */
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide h1 {
    margin-top: 200px;
    font-size: 2.5rem;
}

.slide p {
    margin-top: 22px;
    font-size: 1.2rem;
}

/* 模糊滤镜 */
.blur {
	filter: blur(4px);
	-webkit-filter: blur(4px);
}

/* 翻页按钮 */
.slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	z-index: 10;
}

.prev, .next {
	width: 60px;
	height: 60px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.prev:hover, .next:hover {
	background-color: rgba(0, 0, 0, 0.6);
	transform: scale(1.1);
}

/* 分页指示器 */
.pagination {
	position: absolute;
	background-color: #FFF;
	bottom: 40px;
	/*width: 576px;*/
	height: 3px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}

.dot {
	width: 144px;
	height: 3px;
	background-color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.dot::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: #EB6C00;
	transition: right 0.3s;
}

.dot.active::after {
	left: 0;
}

.dot.active {
	background-color: transparent;
}

/* 父容器：固定宽1400px，使用flex换行布局 */
.card-container {
	width: 1400px;
	padding: 20px 0;          /* 上下留白，左右无内边距（因为用gap控制间隙） */
	/* 弹性布局 */
	display: flex;
	flex-wrap: wrap;
	gap: 22px;                /* 水平垂直间隙均为22px，3个卡片正好 (452*3 + 22*2 = 1400) */
	/* 确保子项在容器内左对齐，换行后依然左对齐 */
	justify-content: flex-start;
	margin-left: auto;
	margin-right: auto;
}

/* 单个卡片：固定宽度452px */
.card {
	width: 452px;
	background: white;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-align: left;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* 图片区域：固定宽452px，高度可按比例（例如 260px） */
.card-img {
	width: 100%;            /* 452px */
	height: 260px;          /* 可根据设计调整 */
	object-fit: cover;      /* 保持比例裁剪，铺满区域 */
	display: block;
}

/* 文本区域 */
.card-content {
	padding: 20px 16px 24px;
}

.card-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1e293b;
	line-height: 1.3;
}

.card-text {
	font-size: 16px;
	line-height: 1.5;
	color: #475569;
}

.card-date {
	font-size: 16px;
	color: #475569;
	margin-top: 20px;
}

.more {
	display: block;
	margin-left: auto;
	margin-right: auto;
	background-color: #000;
	color: #FFF;
	height: 54px;
	width: 180px;
	border-radius: 27px;
	font-size: 30px;
	padding-top: 6px;
	margin-top: 80px;
	text-decoration: none;
}

.lang-en .more{
	width: 210px;
}

/* 可选：保证文字在窄屏下不溢出父容器 */
@media (max-width: 1440px) {
	.slide {
		width: 100%;
		max-width: 1440px;
		height: auto;        /* 高度由内容撑开会破坏固定高度要求，一般不需要，此处仅为示例 */
		/* 若要保持固定高度，注释掉 height: auto */
	}
	/* 更严谨的做法：保持固定高度，用滚动条 */
	.slide {
		height: 600px;
	}
}

/* 响应式：当屏幕宽度小于1440px时，容器宽度改为100%并自动调整内边距，
   但保持卡片宽度452px和gap 22px不变，换行效果依然保留 */
@media (max-width: 1440px) {
	.card-container {
		width: 100%;
		max-width: 1400px;
		justify-content: center;  /* 窄屏下居中显示卡片组，美观 */
		gap: 22px;
	}
}

/* 针对极小屏幕（比如手机竖屏）让卡片自适应宽度，但这会破坏452px固定要求，可根据需要取消注释 */
/* 
@media (max-width: 600px) {
	.card {
		width: 100%;
	}
	.card-img {
		width: 100%;
		height: auto;
	}
}
*/
