/* 核心模块：固定90%宽度（PC端），优化移动端边距 */
.advantage-section {
	width: 93.5%;
	margin: 0 auto;
    padding-top:0.99rem;
	position: relative;
	z-index: 1;
	height: auto !important;
	min-height: auto !important;
    margin-bottom: 0.51rem;
}

/* 标题容器：恢复原有居中样式 */
.advantage-section__title {
	font-size: 0.46rem;
	font-weight: 700;
	text-align: center;
	color: #101010;
    margin:0 auto;
	margin-bottom: 0.51rem;
    width: 80%;
}

/* 列表容器：改为wrap换行，实现2+3布局，间距设为0.08rem（8px） */
.advantage-section__list {
	display: flex;
	justify-content: flex-start; /* 左对齐排列 */
	align-items: flex-start;
	gap: 0.08rem; /* 列间距：设计稿8px=0.08rem */
	row-gap: 0.08rem; /* 行间距：设计稿8px=0.08rem */
	width: 100% !important;
	flex-wrap: wrap; /* 允许换行 */
	overflow: visible !important;
	padding: 0 !important;
	height: auto !important;
	min-height: 1px !important;
	position: relative !important;
}

/* 卡片包裹容器：动态宽度控制 */
.advantage-card-wrap {
	display: block !important;
	height: auto !important;
	min-height: 1px !important;
}

/* 第一行2个卡片：宽度=(100% - 1个间距)/2 */
.advantage-card-wrap:nth-child(1),
.advantage-card-wrap:nth-child(2) {
	width: calc((100% - 0.08rem) / 2) !important;
}

/* 第二行3个卡片：宽度=(100% - 2个间距)/3 */
.advantage-card-wrap:nth-child(3),
.advantage-card-wrap:nth-child(4),
.advantage-card-wrap:nth-child(5) {
	width: calc((100% - 2 * 0.08rem) / 3) !important;
}

/* 卡片核心：宽度继承父容器，高度自适应 */
.advantage-card {
	width: 100% !important;
	overflow: hidden;
	box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	cursor: pointer;
	background: #fff;
	position: relative;
	z-index: 1;
	height: auto !important;
	display: flex;
	flex-direction: column;
    border-radius: 0.1rem 0.1rem 0 0 !important;
}

/* 图片容器：保持1:1比例 */
.advantage-card__img {
	width: 100%;
	aspect-ratio: 1 / 1; /* 1:1比例 */
	object-fit: cover;
	background-color: #f9f9f9;
	display: block;
	flex-shrink: 0;
}

/* 文字区域：保持内边距和布局，内部间距也调整为0.08rem */
.advantage-card__content {
	width: 100%;
	padding: 0.4rem 0.23rem 0.31rem 0.2rem; /* 上下内边距 */
	gap: 0.08rem; /* 内部元素间距：设计稿8px=0.08rem */
}

/* 标题容器：间距设为0.08rem（8px） */
.advantage-card__heading-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.08rem; /* 设计稿8px=0.08rem */
	width: 100%;
}

/* 卡片标题：字体大小调整 */
.advantage-card__heading {
	font-size: 0.34rem;
	font-weight: 600;
	color: #101010;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
}

/* 描述文字样式 */
.advantage-card__description {
    font-size: 0.24rem;
    color:#666666;
    margin-top: 0.08rem; /* 与标题间距：设计稿8px=0.08rem */
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
}

/* 箭头大小 */
.card-arrow {
	transition: transform 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
    width: 0.33rem;
    height: 0.33rem;
}

/* 卡片hover效果 */
/* .advantage-card:hover {
	transform: scale(1.03);
} */

/* 箭头hover位移 */
.advantage-card:hover .card-arrow {
	transform: translateX(0.03rem);
}