@charset "utf-8";

/* 财务部首页 Banner */
.finance-hero {
	--hero-bg-h: 380px;
	--dock-h: 108px;
	--dock-overlap: 0.2;
	position: relative;
	width: 100%;
	min-height: calc(var(--hero-bg-h) + var(--dock-h) * var(--dock-overlap));
	overflow: visible;
	margin-bottom: 24px;
	padding-bottom: 0;
	background: #f3f5f8;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

.finance-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--hero-bg-h);
	z-index: 0;
	overflow: hidden;
	background: #f3f5f8;
}

/* CMS 站点大图：铺满背景 */
.finance-hero__bg-cms {
	width: 100%;
	height: 100%;
}

.finance-hero__bg-cms ul,
.finance-hero__bg-cms ol {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	height: 100%;
}

.finance-hero__bg-cms li {
	width: 100%;
	height: 100%;
}

/* 多条时只显示第一条作背景；若要做轮播可再去掉这条 */
.finance-hero__bg-cms li:not(:first-child) {
	display: none;
}

.finance-hero__bg-cms a {
	display: block;
	width: 100%;
	height: 100%;
}

.finance-hero__bg-cms img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.finance-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 43, 94, 0.08) 0%, rgba(0, 43, 94, 0.22) 100%);
}

.finance-hero__content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
	height: var(--hero-bg-h);
	box-sizing: border-box;
	padding: 0 70px 36px;
	display: flex;
	align-items: flex-end;
}

.finance-hero__text {
	max-width: 560px;
}

.finance-hero__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
	color: #1a6fc4;
	letter-spacing: 0.08em;
}

.finance-hero__subtitle {
	margin: 14px 0 0;
	font-size: 20px;
	font-weight: 500;
	color: #1a6fc4;
	letter-spacing: 0.06em;
}

.finance-hero__subtitle-en {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(26, 111, 196, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.finance-hero__btn {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 28px;
	background: #002b5e;
	color: #fff;
	font-size: 15px;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.finance-hero__btn:hover {
	background: #003d7a;
	transform: translateY(-1px);
}

/* 底部四宫格：4/5 在图片内，1/5 超出图片下沿 */
.finance-hero__dock {
	position: absolute;
	top: calc(var(--hero-bg-h) - var(--dock-h) * (1 - var(--dock-overlap)));
	left: 50%;
	bottom: auto;
	z-index: 2;
	transform: translateX(-50%);
	width: min(1200px, calc(100% - 140px));
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding: 0;
	background: rgba(0, 43, 94, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	box-shadow: 0 12px 36px rgba(0, 43, 94, 0.28);
	overflow: hidden;
}

.finance-hero__card {
	display: flex;
	align-items: center;
	gap: 14px;
	height: var(--dock-h);
	min-height: var(--dock-h);
	padding: 22px 20px;
	color: #fff;
	text-decoration: none;
	background: transparent;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0;
	box-shadow: none;
	transition: background 0.2s ease;
}

.finance-hero__card:last-child {
	border-right: 0;
}

.finance-hero__card:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: none;
	box-shadow: none;
}

.finance-hero__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	color: #fff;
}

.finance-hero__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.finance-hero__card-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.finance-hero__card-text strong {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.finance-hero__card-text span {
	font-size: 12px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1100px) {
	.finance-hero {
		--hero-bg-h: 340px;
		--dock-h: 96px;
		margin-bottom: 20px;
	}

	.finance-hero__content {
		padding: 0 20px 28px;
	}

	.finance-hero__title {
		font-size: 28px;
	}

	.finance-hero__subtitle {
		font-size: 16px;
	}

	.finance-hero__dock {
		width: calc(100% - 40px);
		grid-template-columns: repeat(2, 1fr);
		border-radius: 10px;
	}

	.finance-hero__card {
		height: var(--dock-h);
		min-height: var(--dock-h);
	}

	.finance-hero__card:nth-child(2) {
		border-right: 0;
	}

	.finance-hero__card:nth-child(1),
	.finance-hero__card:nth-child(2) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}
}

@media (max-width: 640px) {
	.finance-hero__dock {
		grid-template-columns: 1fr;
	}

	.finance-hero__card {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}

	.finance-hero__card:last-child {
		border-bottom: 0;
	}
}
