/* =========================================================
   风险提示页 · 独立版式样式
   作用域：.fxr-*（只在风险提示页加载）
   颜色复用主题设计变量，并带兜底值，主题换色时自动跟随
   ========================================================= */

.fxr-page {
	background: #f6f8fb;
	color: var(--fx-color-text, #253449);
}

/* ---------- 通用容器 ---------- */

.fxr-wrap {
	width: min(calc(100% - 2.5rem), 1120px);
	margin-inline: auto;
}

/* ---------- 顶部阅读进度 ---------- */

.fxr-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	background: rgba(20, 38, 61, 0.06);
	z-index: 1200;
	pointer-events: none;
}

.fxr-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #0f8a78, #3f9fe0);
	transition: width 0.12s linear;
}

/* ---------- Hero ---------- */

.fxr-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
	color: #ffffff;
	background: #14263d;
	background-image: linear-gradient(135deg, #132538 0%, #1b3c59 58%, #132538 100%);
	isolation: isolate;
}

.fxr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 96px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 96px);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
	pointer-events: none;
	z-index: -1;
}

.fxr-hero__glow {
	position: absolute;
	top: -22rem;
	right: -14rem;
	width: 46rem;
	height: 46rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(15, 138, 120, 0.42) 0%, transparent 64%);
	pointer-events: none;
	z-index: -1;
}

.fxr-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.1rem;
}

.fxr-hero__tag {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.fxr-hero__tag--warn {
	border-color: rgba(255, 176, 152, 0.45);
	background: rgba(180, 35, 24, 0.22);
	color: #ffd9d2;
}

.fxr-hero__title {
	margin: 0 0 1rem;
	color: #ffffff;
	font-size: clamp(1.9rem, 3.6vw, 2.85rem);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.fxr-hero__sub {
	max-width: 680px;
	margin: 0;
	color: #c6d5e4;
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	line-height: 1.85;
}

.fxr-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.9rem, 2.5vw, 2.4rem);
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.fxr-hero__meta li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding-left: 1.1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.fxr-hero__meta-label {
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.fxr-hero__meta-value {
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.fxr-hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.9rem;
	color: #9ad6c9;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fxr-hero__scroll:hover {
	color: #ffffff;
}

/* ---------- 主体栅格 ---------- */

.fxr-layout {
	display: block;
	padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* ---------- 目录（横向胶囊） ---------- */

.fxr-toc {
	position: static;
	margin: 0 0 clamp(1.1rem, 2vw, 1.5rem);
}

.fxr-toc__title,
.fxr-toc__hint {
	display: none;
}

.fxr-toc__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	padding: 0;
	border-left: 0;
}

.fxr-toc__link {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #5d6b7d;
	font-size: 0.8rem;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.fxr-toc__link:hover {
	border-color: #b9d8d2;
	color: #0f8a78;
	background: #eef7f5;
}

.fxr-toc__link.is-active {
	border-color: #0f8a78;
	color: #0f8a78;
	background: #ffffff;
	font-weight: 600;
}

.fxr-toc__link.is-active::before {
	display: none;
}

.fxr-toc__num {
	color: #97a5b6;
	font-size: 0.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
}

.fxr-toc__link.is-active .fxr-toc__num {
	color: #0f8a78;
}

/* ---------- 正文卡片 ---------- */

/* 本页锚点定位：清掉主题的 scroll-padding，只保留一处偏移，避免叠加 */
html {
	scroll-padding-top: 0;
}

.fxr-content h2 {
	scroll-margin-top: 92px !important;
}

.fxr-content {
	counter-reset: fxrsec;
	padding: clamp(1.35rem, 4vw, 3rem);
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(20, 38, 61, 0.06);
	color: #253449;
	font-size: 1rem;
	line-height: 1.85;
}

.fxr-content > :first-child {
	margin-top: 0;
}

.fxr-content p {
	margin: 0 0 1rem;
}

.fxr-content strong {
	color: #14263d;
}

.fxr-content a {
	color: #0f8a78;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* 小节标题：自动编号 01 / 02 / 03 */
.fxr-content h2 {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 2.4rem 0 1rem;
	padding-top: 1.7rem;
	border-top: 1px solid #eef2f6;
	color: #14263d;
	font-size: clamp(1.12rem, 2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.5;
	counter-increment: fxrsec;
	scroll-margin-top: 6.5rem;
}

.fxr-content h2:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.fxr-content h2::before {
	content: counter(fxrsec, decimal-leading-zero);
	flex: 0 0 auto;
	padding: 0.14rem 0.42rem;
	border: 1px solid #b8ded4;
	border-radius: 6px;
	background: #e8f5f1;
	color: #0b7c6c;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	transform: translateY(-0.12em);
}

.fxr-content h3 {
	margin: 1.6rem 0 0.6rem;
	color: #14263d;
	font-size: 1rem;
	font-weight: 700;
}

/* 开篇重点段 */
.fxr-content .fxr-lead {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid #0f8a78;
	border-radius: 0 10px 10px 0;
	background: #f6f8fb;
	color: #14263d;
	font-size: 1.02rem;
	line-height: 1.8;
}

/* 列表 */
.fxr-content ul,
.fxr-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.35rem;
}

.fxr-content ul li,
.fxr-content ol li {
	margin: 0.55rem 0;
}

.fxr-content ol > li::marker {
	color: #0f8a78;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* ---------- 核心声明卡片组 ---------- */

.fxr-content .fxr-redline {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin: 1.25rem 0 1.5rem;
	padding: 0;
	list-style: none;
}

.fxr-content .fxr-redline li {
	margin: 0;
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: linear-gradient(160deg, #14263d 0%, #1d3c59 100%);
	box-shadow: 0 10px 22px rgba(20, 38, 61, 0.16);
	color: #dbe6f0;
	font-size: 0.92rem;
	line-height: 1.75;
}

.fxr-content .fxr-redline li::before {
	content: "";
	display: block;
	width: 26px;
	height: 3px;
	margin-bottom: 0.8rem;
	border-radius: 2px;
	background: #2fbfa3;
}

.fxr-content .fxr-redline strong {
	display: block;
	margin-bottom: 0.45rem;
	color: #ffffff;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}

/* ---------- 三类风险卡片组 ---------- */

.fxr-content .fxr-risks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin: 1.25rem 0 1.5rem;
	padding: 0;
	list-style: none;
}

.fxr-content .fxr-risks li {
	margin: 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid #e2e8f0;
	border-top: 3px solid #0f8a78;
	border-radius: 14px;
	background: #f7f9fc;
	color: #405065;
	font-size: 0.92rem;
	line-height: 1.75;
}

.fxr-content .fxr-risks li:nth-child(2) {
	border-top-color: #b4740f;
}

.fxr-content .fxr-risks li:nth-child(3) {
	border-top-color: #205ea8;
}

.fxr-content .fxr-risks strong {
	display: block;
	margin-bottom: 0.45rem;
	color: #14263d;
	font-size: 0.95rem;
}

/* ---------- 收尾警示带 ---------- */

.fxr-content .fxr-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin: 2rem 0 0;
	padding: 1.05rem 1.2rem;
	border: 1px solid #f4c7c3;
	border-left: 4px solid #b42318;
	border-radius: 12px;
	background: #fef0ee;
}

.fxr-alert__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 0.15rem;
	border-radius: 50%;
	background: #b42318;
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.fxr-alert__body {
	display: block;
	flex: 1 1 auto;
	color: #8a2018;
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.8;
}

.fxr-alert__body p {
	margin: 0;
}

/* ---------- 底部条 ---------- */

.fxr-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1.05rem 1.35rem;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(20, 38, 61, 0.04);
}

.fxr-foot__text strong {
	display: block;
	color: #14263d;
	font-size: 0.92rem;
}

.fxr-foot__text p {
	margin: 0.25rem 0 0;
	color: #5d6b7d;
	font-size: 0.82rem;
	line-height: 1.7;
}

.fxr-foot__top {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 1rem;
	border: 1px solid #dce3eb;
	border-radius: 8px;
	color: #14263d;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.fxr-foot__top:hover {
	border-color: #0f8a78;
	color: #0f8a78;
}

/* ---------- 回到顶部 ---------- */

.fxr-backtop {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #dce3eb;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(20, 38, 61, 0.14);
	color: #14263d;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	z-index: 900;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fxr-backtop:hover {
	border-color: #0f8a78;
	color: #0f8a78;
	transform: translateY(-2px);
}

.fxr-backtop[hidden] {
	display: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
	.fxr-content .fxr-redline,
	.fxr-content .fxr-risks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- 浮动目录（≥1024）：只露序号，悬停展开标题 ---------- */

@media (min-width: 1024px) {
	.fxr-layout {
		padding-right: 78px;
	}

	.fxr-toc {
		position: sticky;
		top: 104px;
		float: right;
		margin: 0 -78px 0 0;
		z-index: 40;
	}

	.fxr-toc__list {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.fxr-toc__link {
		width: 46px;
		height: 46px;
		padding: 0;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
		font-size: 0.78rem;
		box-shadow: 0 6px 16px rgba(15, 38, 60, 0.09);
	}

	.fxr-toc__link.is-active {
		border-color: #0f8a78;
		background: #0f8a78;
		color: #ffffff;
	}

	.fxr-toc__link.is-active .fxr-toc__num {
		color: #ffffff;
	}

	.fxr-toc__text {
		position: absolute;
		top: 50%;
		right: calc(100% + 12px);
		max-width: 240px;
		padding: 0.42rem 0.8rem;
		border-radius: 999px;
		background: #14263d;
		color: #ffffff;
		font-size: 0.78rem;
		font-weight: 600;
		line-height: 1.5;
		white-space: nowrap;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-50%) translateX(6px);
		transition: opacity 0.16s ease, transform 0.16s ease;
		box-shadow: 0 10px 26px rgba(15, 38, 60, 0.2);
	}

	.fxr-toc__link:hover .fxr-toc__text,
	.fxr-toc__link:focus-visible .fxr-toc__text {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%) translateX(0);
	}
}

@media (max-width: 782px) {
	.fxr-wrap {
		width: min(calc(100% - 2rem), 1120px);
	}

	.fxr-hero__meta {
		gap: 1rem 1.4rem;
	}

	.fxr-content {
		border-radius: 14px;
	}
}

@media (max-width: 600px) {
	.fxr-hero {
		padding: 2.25rem 0 2rem;
	}

	.fxr-hero__title {
		font-size: 1.68rem;
	}

	.fxr-hero__meta li {
		flex: 1 1 calc(50% - 1rem);
		padding-left: 0.85rem;
	}

	.fxr-content {
		padding: 1.15rem 1.05rem;
		font-size: 0.96rem;
	}

	.fxr-content .fxr-redline,
	.fxr-content .fxr-risks {
		grid-template-columns: minmax(0, 1fr);
	}

	.fxr-foot {
		padding: 1rem 1.1rem;
	}

	.fxr-backtop {
		right: 1rem;
		bottom: 1rem;
	}
}

/* ---------- 打印 ---------- */

@media print {
	.fxr-progress,
	.fxr-toc,
	.fxr-backtop,
	.fxr-hero__scroll,
	.fxr-foot__top {
		display: none !important;
	}

	.fxr-hero {
		padding: 1rem 0;
		background: #ffffff !important;
		color: #000000;
	}

	.fxr-hero__title,
	.fxr-hero__meta-value {
		color: #000000;
	}

	.fxr-hero__sub,
	.fxr-hero__meta-label {
		color: #333333;
	}

	.fxr-layout {
		display: block;
		padding: 0;
	}

	.fxr-content {
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.fxr-content .fxr-redline li {
		background: #f2f2f2;
		color: #000000;
		box-shadow: none;
	}

	.fxr-content .fxr-redline strong {
		color: #000000;
	}
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
	.fxr-progress__bar,
	.fxr-backtop,
	.fxr-toc__link {
		transition: none;
	}
}
