/* ========== FAQ list page ========== */
.faq-page {
	background: #f5f5f5;
	color: #000;
	font-family: 'Outfit', 'Microsoft YaHei', PingFang SC, -apple-system, Arial, sans-serif;
}

.faq-inner {
	width: 85%;
	margin: 0 auto;
	padding: 6.4rem 0 8rem;
	box-sizing: border-box;
}

@media (min-width: 1921px) {
	.faq-inner {
		width: 60%;
	}
}

/* ---------- Hero ---------- */
.faq-hero {
	text-align: center;
	margin-bottom: 4rem;
}

.faq-title {
	margin: 0;
	font-size: 5.6rem;
	line-height: 1.15;
	font-weight: 700;
	color: #000;
}

.faq-search {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 64rem;
	height: 5.6rem;
	margin: 3.2rem auto 0;
	padding: 0 0.8rem 0 2.4rem;
	box-sizing: border-box;
	background: #fff;
	border-radius: 999rem;
	box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.04);
}

.faq-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 1.6rem;
	line-height: 1.4;
	color: #000;
}

.faq-search input::placeholder {
	color: #999;
}

.faq-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.4rem;
	height: 4.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.faq-search button img {
	display: block;
	width: 2rem;
	height: 2rem;
	object-fit: contain;
	opacity: 0.55;
}

.faq-search button:hover img {
	opacity: 0.9;
}

/* ---------- Layout ---------- */
.faq-layout {
	display: grid;
	grid-template-columns: 22rem minmax(0, 1fr);
	align-items: start;
	gap: 3.2rem;
}

/* ---------- Sidebar (on page grey bg) ---------- */
.faq-side {
	position: sticky;
	top: 7.2rem;
	padding: 0.8rem 0 0;
	box-sizing: border-box;
	background: transparent;
	align-self: start;
	z-index: 2;
}

.faq-side-title {
	margin: 0 0 1.6rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid #ddd;
	font-size: 1.6rem;
	line-height: 1.3;
	font-weight: 600;
	color: #000;
}

.faq-cats {
	display: flex;
	flex-direction: column;
}

.faq-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	padding: 1.8rem 0;
	border-bottom: 1px solid #e5e5e5;
	font-size: 1.6rem;
	line-height: 1.35;
	font-weight: 400;
	color: #999;
	text-decoration: none;
	transition: color 0.2s ease;
}

.faq-cat:last-child {
	border-bottom: 0;
}

.faq-cat .rf-link-arrow {
	width: 0.9rem;
	height: 0.9rem;
	opacity: 0.35;
	flex-shrink: 0;
}

.faq-cat:hover {
	color: #000;
}

.faq-cat.is-active {
	color: #000;
	font-weight: 600;
}

.faq-cat.is-active .rf-link-arrow {
	opacity: 0.85;
}

/* ---------- Main white card ---------- */
.faq-main {
	padding: 0 4.8rem 3.2rem;
	box-sizing: border-box;
	min-width: 0;
	background: #fff;
	border-radius: 1.6rem;
	box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.04);
}

.faq-empty {
	margin: 3.2rem 0;
	font-size: 1.6rem;
	font-weight: 300;
	color: #888;
}

.faq-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-item {
	border-bottom: 1px solid #eee;
}

.faq-item:last-child {
	border-bottom: 1px solid #eee;
}

.faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.4rem;
	width: 100%;
	margin: 0;
	padding: 2.2rem 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: #000;
	transition: padding-bottom 0.2s ease;
}

.faq-item.is-open .faq-trigger {
	padding-bottom: 1.2rem;
}

.faq-question {
	font-size: 1.8rem;
	line-height: 1.45;
	font-weight: 400;
	color: #000;
}

.faq-icon {
	position: relative;
	flex-shrink: 0;
	width: 1.8rem;
	height: 1.8rem;
}

.faq-icon::before,
.faq-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #000;
	transform: translate(-50%, -50%);
}

.faq-icon::before {
	width: 1.4rem;
	height: 0.14rem;
}

.faq-icon::after {
	width: 0.14rem;
	height: 1.4rem;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-item.is-open .faq-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

.faq-panel {
	display: block;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}

.faq-item.is-open > .faq-panel {
	max-height: none;
}

.faq-answer {
	margin: 0;
	padding: 0.4rem 0 2rem 2rem;
	font-family: 'Outfit', 'Microsoft YaHei', PingFang SC, -apple-system, Arial, sans-serif;
	font-size: 1.5rem;
	line-height: 1.75;
	font-weight: 300;
	color: #666;
}

.faq-answer li {
	list-style: decimal;
	margin: 0 0 1rem;
	padding-left: 0.4rem;
}

.faq-answer li:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.faq-panel,
	.faq-icon::after {
		transition: none;
	}
}

/* ---------- Pager ---------- */
.faq-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.4rem;
	margin-top: 4rem;
}

.faq-pager .rf-circle-btn {
	background: #e8e8e8;
	border-color: #e8e8e8;
	flex-shrink: 0;
}

.faq-pager .rf-circle-btn.is-dark {
	background: #000;
	border-color: #000;
}

.faq-pager .rf-circle-btn.is-disabled {
	opacity: 0.55;
	pointer-events: none;
	cursor: default;
}

.faq-pager-pages {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq-pager-pages a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 400;
	color: #999;
	text-decoration: none;
}

.faq-pager-pages a.is-active {
	font-weight: 600;
	color: #000;
}

.faq-pager-pages a:hover {
	color: #000;
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
	.faq-title {
		font-size: 4.8rem;
	}

	.faq-layout {
		grid-template-columns: 20rem minmax(0, 1fr);
		gap: 2.4rem;
	}

	.faq-main {
		padding: 0 3.6rem 3.2rem;
	}
}

@media (max-width: 1200px) {
	.faq-title {
		font-size: 4.2rem;
	}

	.faq-layout {
		grid-template-columns: 18rem minmax(0, 1fr);
		gap: 2rem;
	}

	.faq-main {
		padding: 0 2.8rem 2.8rem;
	}
}

@media (max-width: 880px) {
	.faq-inner {
		width: 90%;
		padding: 4.8rem 0 6.4rem;
	}

	.faq-hero {
		margin-bottom: 2.8rem;
	}

	.faq-title {
		font-size: 3.6rem;
	}

	.faq-search {
		height: 5rem;
		margin-top: 2.4rem;
		padding-left: 2rem;
	}

	.faq-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.faq-side {
		position: static;
		top: auto;
		padding: 0;
		background: #fff;
		border-radius: 1.6rem;
		padding: 2.4rem 2rem 1.6rem;
		box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.04);
	}

	.faq-cats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 1.6rem;
	}

	.faq-main {
		padding: 0 2rem 2.8rem;
	}

	.faq-question {
		font-size: 1.6rem;
	}

	.faq-pager {
		gap: 1.6rem;
		margin-top: 3.2rem;
	}
}

@media (max-width: 480px) {
	.faq-inner {
		width: 92%;
		padding: 4rem 0 5.6rem;
	}

	.faq-title {
		font-size: 3rem;
	}

	.faq-search {
		height: 4.8rem;
		padding-left: 1.6rem;
	}

	.faq-search input {
		font-size: 1.4rem;
	}

	.faq-cats {
		grid-template-columns: 1fr;
	}

	.faq-side,
	.faq-main {
		padding-left: 1.6rem;
		padding-right: 1.6rem;
	}

	.faq-pager-pages {
		gap: 1.4rem;
	}
}
