/* 首页样式，首页和联系页（用首页的询价区）加载。区块顺序与 front-page.php 一致，每个区块的响应式规则写在该区块末尾 */

/* ==========================================================================
   首页布局
   ========================================================================== */

/* 首页各区块自己控制宽度，去掉 GP 内容容器的限制 */
.rv-front .site.grid-container {
	max-width: none;
	padding-inline: 0;
}

.rv-front .site-content {
	display: block;
	padding: 0;
}

/* 自己的组件不要下划线（GP 默认给链接加下划线） */
.rv-home a {
	text-decoration: none;
}

/* 页内锚点（#industries、#inquiry）跳转时，不被吸顶页头挡住 */
.rv-home [id] {
	scroll-margin-top: 90px; /* 页头 70px + 留白 */
}

/* ==========================================================================
   首页通用区块
   ========================================================================== */

.rv-section {
	position: relative;
	padding: 96px 0;
}

.rv-section--alt {
	background: var(--rv-surface-2);
}

.rv-section__head {
	margin-bottom: 48px;
}

.rv-eyebrow {
	margin: 0 0 12px;
	color: var(--rv-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rv-section__title {
	margin: 0;
	color: var(--rv-text);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
}

.rv-section__lead {
	margin: 12px 0 0;
	color: var(--rv-muted);
	font-size: 16px;
	line-height: 1.7;
}

.rv-section__more {
	margin: 48px 0 0;
	text-align: center;
}

.rv-card {
	padding: 32px;
	border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius);
	background: var(--rv-surface);
}

.rv-card__title {
	margin: 0 0 8px;
	color: var(--rv-text);
	font-family: var(--rv-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.rv-card__text {
	margin: 0;
	color: var(--rv-muted);
	font-size: 14px;
	line-height: 1.7;
}

@media (max-width: 768px) {
	.rv-section {
		padding: 64px 0;
	}
}

/* ==========================================================================
   首屏
   ========================================================================== */

.rv-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(76vh, 760px);
	overflow: hidden;
	background: #000;
	isolation: isolate;
}

.rv-hero__bg {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

/* 左侧压暗，保证标题可读 */
.rv-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.rv-hero__deco {
	position: absolute;
	z-index: -1;
	top: 18%;
	right: 48px;
	bottom: 28%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	color: rgba(255, 255, 255, 0.06);
	font-family: var(--rv-font-display);
	font-size: clamp(64px, 9vw, 140px);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.rv-hero__deco span:last-child {
	font-size: 0.5em;
}

.rv-hero__content {
	width: 100%;
	padding-block: 96px 64px;
}

.rv-hero__title {
	margin: 0 0 24px;
	color: #fff;
	font-size: clamp(52px, 7.5vw, 104px);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
}

.rv-hero__lines {
	margin: 0 0 12px;
	color: var(--rv-accent);
	font-size: 18px;
	font-weight: 600;
}

.rv-hero__text {
	max-width: 560px;
	margin: 0 0 40px;
	color: rgba(245, 245, 245, 0.75);
	font-size: 16px;
	line-height: 1.7;
}

.rv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.rv-hero__specs {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(26, 26, 26, 0.75);
	backdrop-filter: blur(6px);
}

.rv-hero__specs dl {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-block: 0;
}

.rv-hero__specs div {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	padding-block: 24px;
}

.rv-hero__specs dd {
	margin: 0;
	color: var(--rv-text);
	font-family: var(--rv-font-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}

.rv-hero__specs dt {
	color: var(--rv-muted);
	font-size: 13px;
	font-weight: 400;
}

@media (max-width: 768px) {
	/* 手机上高度由内容决定，首屏上方不留大块空白 */
	.rv-hero {
		min-height: 0;
	}

	.rv-hero__content {
		padding-block: 56px 48px;
	}

	.rv-hero__deco {
		display: none;
	}

	.rv-hero__specs dl {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 32px;
	}
}

/* ==========================================================================
   数据条
   ========================================================================== */

.rv-stats {
	border-bottom: 1px solid var(--rv-border);
	background: var(--rv-surface-2);
}

.rv-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-block: 0;
	padding-block: 56px;
	text-align: center;
}

.rv-stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
}

.rv-stat dd {
	margin: 0;
	color: var(--rv-accent);
	font-family: var(--rv-font-display);
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
}

.rv-stat dd small {
	margin-left: 2px;
	color: var(--rv-muted);
	font-size: 0.45em;
}

.rv-stat dt {
	color: var(--rv-muted);
	font-size: 15px;
	font-weight: 400;
}

@media (max-width: 768px) {
	.rv-stats__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 32px;
	}

	.rv-stat dd {
		font-size: 44px;
	}
}

/* ==========================================================================
   产品（商品卡片的通用样式在 base.css，这里只有首页的推荐商品）
   ========================================================================== */

/* 推荐商品：通栏，左图右文 */
.rv-product--featured {
	grid-column: 1 / -1;
	flex-direction: row;
}

/* 图片绝对定位铺满，卡片高度由右侧文字决定，不被图片原始尺寸撑高 */
.rv-product--featured .rv-product__media {
	position: relative;
	flex: 0 0 45%;
	aspect-ratio: auto;
	min-height: 380px;
}

.rv-product--featured .rv-product__media img {
	position: absolute;
	inset: 0;
}

.rv-product--featured .rv-product__body {
	justify-content: center;
	overflow: hidden;
	padding: 48px;
}

.rv-product--featured .rv-tag {
	align-self: flex-start;
	margin-bottom: 16px;
}

.rv-product--featured .rv-product__name {
	font-size: 32px;
}

.rv-product--featured .rv-specs {
	max-width: 440px;
}

.rv-product__watermark {
	position: absolute;
	top: 24px;
	right: 32px;
	color: rgba(255, 255, 255, 0.04);
	font-family: var(--rv-font-display);
	font-size: clamp(56px, 7vw, 104px);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

@media (max-width: 768px) {
	.rv-product--featured {
		flex-direction: column;
	}

	.rv-product--featured .rv-product__media {
		flex: none;
		min-height: 0;
		aspect-ratio: 2 / 1;
	}

	.rv-product--featured .rv-product__media img {
		position: static;
	}

	.rv-product--featured .rv-product__body {
		padding: 24px;
	}
}

/* ==========================================================================
   为什么选择我们
   ========================================================================== */

.rv-why {
	overflow: hidden;
}

.rv-why__watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	color: rgba(255, 255, 255, 0.03);
	font-family: var(--rv-font-display);
	font-size: clamp(120px, 22vw, 320px);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transform: translate(-50%, -40%);
	pointer-events: none;
}

.rv-why .rv-container {
	position: relative;
}

.rv-why__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.rv-why__item {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.rv-why__figure {
	flex: 0 0 96px;
	margin: 0;
	color: rgba(233, 130, 12, 0.7); /* 大字对比度需 ≥ 3:1，0.35 时只有 1.8:1 */
	font-family: var(--rv-font-display);
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
}

.rv-why__figure small {
	display: block;
	margin-top: 6px;
	color: var(--rv-accent);
	font-family: var(--rv-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.rv-why__grid {
		grid-template-columns: 1fr;
	}

	.rv-why__item {
		gap: 20px;
	}

	.rv-why__figure {
		flex-basis: 72px;
		font-size: 40px;
	}
}

/* ==========================================================================
   应用行业
   ========================================================================== */

.rv-industries {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-industry {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	transition: border-color 0.2s;
}

.rv-industry:hover {
	border-color: var(--rv-accent);
}

/* 「View 8 motors」贴在卡片底部，几张卡片的链接对齐 */
.rv-industry .rv-link {
	margin-top: auto;
	padding-top: 16px;
}

@media (max-width: 1024px) {
	.rv-industries {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.rv-industries {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   询价区
   ========================================================================== */

.rv-inquiry {
	overflow: hidden;
	background: #000;
	isolation: isolate;
}

.rv-inquiry__bg {
	position: absolute;
	z-index: -1;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.25;
}

.rv-inquiry__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 64px;
}

.rv-inquiry__contact {
	display: grid;
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.rv-inquiry__contact li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--rv-accent);
}

.rv-inquiry__contact a {
	color: var(--rv-text);
	font-weight: 600;
}

.rv-inquiry__contact span {
	color: var(--rv-text);
}

/* 地址较长，图标对齐第一行，公司名单独一行 */
.rv-inquiry__contact .rv-inquiry__address {
	align-items: flex-start;
}

.rv-inquiry__address .rv-icon {
	margin-top: 4px;
}

.rv-inquiry__address strong {
	display: block;
}

.rv-inquiry__form {
	padding: 40px;
	background: rgba(33, 33, 33, 0.94);
}

.rv-inquiry__privacy {
	margin: 16px 0 0;
	color: var(--rv-muted);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 1024px) {
	.rv-inquiry__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.rv-inquiry__form {
		padding: 24px;
	}
}
