/**
 * faq 组件样式
 *
 * 现代手风琴风格 FAQ：问题行右侧显示 + / - 图标，点击切换答案展开/收起。
 * 所有样式限定在 .rfzj_faq 命名空间内，避免影响历史 .rfj-faq-* 样式。
 */
.rfzj_faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.rfzj_faq__item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.rfzj_faq__item:hover {
	border-color: #cbd5e1;
}

.rfzj_faq__item.is-open {
	border-color: #c7d2fe;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.rfzj_faq__header {
	align-items: center;
	background: none;
	border: 0;
	box-sizing: border-box;
	color: #1f2937;
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	line-height: 1.5;
	min-height: 52px;
	padding: 14px 18px;
	text-align: left;
	transition: background .2s ease, color .2s ease;
	width: 100%;
}

.rfzj_faq__header:hover,
.rfzj_faq__header:focus {
	background: #f8fafc;
	color: #d1191a;
	outline: none;
}

.rfzj_faq__item.is-open .rfzj_faq__header {
	color: #d1191a;
}

.rfzj_faq__question {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 0;
}

.rfzj_faq__index {
	align-items: center;
	background: #eef2ff;
	border-radius: 6px;
	color: #4f46e5;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	height: 24px;
	justify-content: center;
	min-width: 24px;
	padding: 0 6px;
}

.rfzj_faq__question-text {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rfzj_faq__icon-wrap {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	height: 20px;
	justify-content: center;
	position: relative;
	width: 20px;
}

.rfzj_faq__icon {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
	transition: opacity .2s ease, transform .2s ease;
}

/* 默认收起状态：显示 + 号，隐藏 - 号 */
.rfzj_faq__icon--plus {
	opacity: 1;
	transform: rotate(0deg);
}

.rfzj_faq__icon--minus {
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transform: rotate(-90deg);
}

/* 展开状态：显示 - 号，隐藏 + 号 */
.rfzj_faq__item.is-open .rfzj_faq__icon--plus {
	opacity: 0;
	transform: rotate(90deg);
}

.rfzj_faq__item.is-open .rfzj_faq__icon--minus {
	opacity: 1;
	transform: rotate(0deg);
}

.rfzj_faq__body {
	border-top: 1px solid #e5e7eb;
	overflow: hidden;
	transition: height .25s ease;
}

.rfzj_faq__item.is-open .rfzj_faq__body {
	border-top-color: #e0e7ff;
}

.rfzj_faq__content {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.75;
	padding: 16px 18px;
}

.rfzj_faq__content :last-child {
	margin-bottom: 0;
}

/* 移动端适配：增大点击区域 */
@media (max-width: 640px) {
	.rfzj_faq__header {
		font-size: 14px;
		min-height: 56px;
		padding: 14px 14px;
	}

	.rfzj_faq__content {
		padding: 14px;
	}

	.rfzj_faq__icon-wrap {
		height: 22px;
		width: 22px;
	}

	.rfzj_faq__icon {
		height: 22px;
		width: 22px;
	}
}
