/* =========================================================================
 * rc-pages.css —— 首页（Home）/ 关于我们（About）页面版式
 * 归属：astra-child 子主题
 * 配色沿用 Astra 全局：主色 #1B9C85 / 深绿 #178E79 / 标题 #0F172A / 正文 #454F5E
 *                    浅绿底 #EDF6EE / 深底 #06140C
 * 用法：
 *   - 页面正文只用 Gutenberg 核心区块（group/heading/paragraph/columns/column/
 *     image/buttons/button/spacer），版式全部由本文件的 .rc-* 类承担；
 *   - 背景图统一用**相对路径**（/wp-content/uploads/2026/09/...），
 *     本地站与生产站同路径即生效，无需因域名不同改 CSS；
 *   - 配图由本地 ComfyUI（Z-Image-Turbo）生成，见 dev_local/08_pages/gen_img/。
 * ========================================================================= */

:root {
	--rc-primary: #1B9C85;
	--rc-primary-dark: #178E79;
	--rc-heading: #0F172A;
	--rc-text: #454F5E;
	--rc-muted: #6B7688;
	--rc-line: #E3EDE7;
	--rc-tint: #EDF6EE;
	--rc-dark: #06140C;
	--rc-dark-2: #0C2A20;
	--rc-radius: 16px;
	--rc-shadow: 0 20px 44px -24px rgba(6, 20, 12, .30);
	--rc-shadow-lg: 0 30px 60px -28px rgba(6, 20, 12, .38);
}

/* =======================================================  通栏区块骨架  */
.rc-section {
	position: relative;
}
.rc-section--tint {
	background: var(--rc-tint);
}
.rc-section--white {
	background: #fff;
}
.rc-section--dark {
	background: var(--rc-dark);
	color: #fff;
}
/* 注意：Gutenberg 的 constrained 布局会给**直接子元素**打上
   `max-width:1140px; margin-left/right:auto!important`（选择器特异性 0,1,0），
   所以本文件里凡是需要自定义宽度/间距的直接子元素，一律把选择器写成
   `.父类 .子类`（0,2,0）或 `.wp-block-columns.子类`，否则会被它盖掉。 */
.rc-section .rc-section__head {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}
.rc-section__title {
	color: var(--rc-heading);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.25;
	margin: 0 0 12px;
}
.rc-section--dark .rc-section__title {
	color: #fff;
}
.rc-section__sub {
	color: var(--rc-text);
	font-size: 16px;
	line-height: 1.75;
	margin: 0;
}
.rc-section--dark .rc-section__sub {
	color: rgba(255, 255, 255, .78);
}
.rc-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rc-primary);
	margin: 0 0 10px;
}
.rc-section--dark .rc-kicker {
	color: #6ED8A8;
}

/* ===============================================================  按钮  */
.rc-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.rc-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}
.rc-btn--primary {
	background: var(--rc-primary);
	color: #fff;
	box-shadow: 0 14px 30px -16px rgba(27, 156, 133, .9);
}
.rc-btn--primary:hover {
	background: var(--rc-primary-dark);
	color: #fff;
}
.rc-btn--ghost {
	background: rgba(255, 255, 255, .10);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .55);
}
.rc-btn--ghost:hover {
	background: rgba(255, 255, 255, .20);
	color: #fff;
}
.rc-btn--line {
	background: transparent;
	color: var(--rc-primary-dark);
	border: 1px solid var(--rc-primary);
}
.rc-btn--line:hover {
	background: var(--rc-primary);
	color: #fff;
}
/* 核心 buttons 区块包了一层，去掉多余外边距 */
.rc-cta-row {
	margin: 0;
}
.rc-cta-row .wp-block-button {
	margin: 0;
}
.rc-cta-row .wp-block-button__link {
	background: var(--rc-primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 15px 30px;
	font-size: 15px;
	font-weight: 600;
	transition: transform .18s ease, background .18s ease;
}
.rc-cta-row .wp-block-button__link:hover {
	background: var(--rc-primary-dark);
	transform: translateY(-2px);
}
.rc-cta-row .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .6);
}
.rc-cta-row .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .18);
}

/* ============================================================  首屏 Hero  */
/* 说明：hero 不做 flex 容器 —— Gutenberg 的 constrained 布局是靠「直接子元素
   max-width + margin auto」实现的，hero 一旦变成 flex，子元素会并排。
   高度靠区块自身的上下内边距撑开（内联样式给出）。 */
.rc-hero {
	position: relative;
	background-color: var(--rc-dark);
	background-image:
		linear-gradient(105deg, rgba(6, 20, 12, .93) 0%, rgba(11, 58, 47, .82) 52%, rgba(27, 156, 133, .58) 100%),
		url("/wp-content/uploads/2026/09/robotchina-home-hero-20260928.png");
	background-size: cover;
	background-position: center right;
	color: #fff;
	overflow: hidden;
}
.rc-hero--about {
	background-image:
		linear-gradient(105deg, rgba(6, 20, 12, .92) 0%, rgba(11, 58, 47, .80) 55%, rgba(27, 156, 133, .55) 100%),
		url("/wp-content/uploads/2026/09/robotchina-about-hero-20260928.png");
	background-position: center;
}
/* 联系我们区子页（成为供应商 / 加入我们 / 投资者关系）：首屏只用渐变，
   配图放在正文图文两栏里（按文件名反查附件），避免在 CSS 里写死图片 URL。 */
.rc-hero--plain {
	background-image: linear-gradient(105deg, rgba(6, 20, 12, .95) 0%, rgba(11, 58, 47, .88) 55%, rgba(27, 156, 133, .62) 100%);
}
.rc-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rc-primary), #6ED8A8, var(--rc-primary));
}
.rc-hero__crumb {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .70);
	margin: 0 0 14px;
}
.rc-hero__title {
	color: #fff;
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.14;
	letter-spacing: -.01em;
	margin: 0 0 18px;
}
.rc-hero__sub {
	color: rgba(255, 255, 255, .88);
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.8;
	margin: 0 0 30px;
	max-width: 660px;
}
.rc-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
}
.rc-hero__tags span {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	font-size: 13px;
	color: rgba(255, 255, 255, .92);
}

/* ==============================================================  数据条  */
.wp-block-columns.rc-stats {
	gap: 0;
	margin: 0;
}
.rc-stat {
	text-align: center;
	padding: 10px 14px;
}
/* 分隔线打在 column 上（.rc-stat 各自包在 wp-block-column 里，不是相邻兄弟） */
@media (min-width: 782px) {
	.wp-block-columns.rc-stats .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--rc-line);
	}
}
.rc-stat__num {
	color: var(--rc-primary-dark);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 6px;
}
.rc-stat__label {
	color: var(--rc-text);
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================  类目卡片网格  */
.rc-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}
.rc-cat {
	margin: 0;
}
.rc-cat > a {
	display: block;
	height: 100%;
	padding: 20px 18px 18px;
	background: #fff;
	border: 1px solid var(--rc-line);
	border-radius: 14px;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rc-cat > a:hover {
	transform: translateY(-4px);
	border-color: var(--rc-primary);
	box-shadow: var(--rc-shadow);
	text-decoration: none;
}
.rc-cat__code {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--rc-tint);
	color: var(--rc-primary-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	margin-bottom: 12px;
}
.rc-cat__name {
	display: block;
	color: var(--rc-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 4px;
}
.rc-cat__alt {
	display: block;
	color: var(--rc-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* ========================================================  图文两栏区块  */
.wp-block-columns.rc-split {
	gap: 56px;
	margin: 0;
}
.rc-split__body h2,
.rc-split__body h3 {
	color: var(--rc-heading);
	margin: 0 0 16px;
}
.rc-split__body p {
	color: var(--rc-text);
	line-height: 1.85;
	margin: 0 0 16px;
}
.rc-split__media {
	margin: 0;
}
/* 图文两栏正文里的按钮行（核心 buttons 区块 + .rc-cta-row）与上文拉开距离 */
.rc-split__body .rc-cta-row {
	margin-top: 26px;
}
.rc-split__media img {
	width: 100%;
	height: auto;
	border-radius: var(--rc-radius);
	box-shadow: var(--rc-shadow-lg);
	display: block;
}
.rc-points {
	margin: 22px 0 0;
	padding: 0;
}
.rc-points p {
	margin: 0 0 10px;
}
.rc-points span {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rc-primary);
	margin-right: 10px;
	vertical-align: middle;
}

/* ============================================================  三栏特性  */
.wp-block-columns.rc-features {
	gap: 26px;
	margin: 0;
}
.rc-feature {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--rc-radius);
	padding: 26px 24px;
}
.rc-feature h3 {
	color: #fff;
	font-size: 18px;
	margin: 0 0 10px;
}
.rc-feature p {
	color: rgba(255, 255, 255, .76);
	font-size: 14.5px;
	line-height: 1.8;
	margin: 0;
}
.rc-feature__idx {
	display: inline-block;
	color: #6ED8A8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	margin: 0 0 10px;
}
/* 浅底区块里的同一组件换配色（深底样式见上） */
.rc-section--tint .rc-feature,
.rc-section--white .rc-feature {
	background: #fff;
	border-color: var(--rc-line);
	box-shadow: var(--rc-shadow);
}
.rc-section--tint .rc-feature h3,
.rc-section--white .rc-feature h3 {
	color: var(--rc-heading);
}
.rc-section--tint .rc-feature p,
.rc-section--white .rc-feature p {
	color: var(--rc-text);
}
.rc-section--tint .rc-feature__idx,
.rc-section--white .rc-feature__idx {
	color: var(--rc-primary-dark);
}

/* ==========================================================  资质与备案  */
.rc-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 42px;
	background: #fff;
	border: 1px solid var(--rc-line);
	border-radius: var(--rc-radius);
	padding: 10px 30px;
	box-shadow: var(--rc-shadow);
}
.rc-fact {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 17px 0;
	border-bottom: 1px dashed var(--rc-line);
}
.rc-fact strong {
	color: var(--rc-muted);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.6;
}
.rc-fact span {
	color: var(--rc-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	word-break: break-word;
}

/* ==========================================================  使命与愿景  */
.wp-block-columns.rc-mv {
	gap: 24px;
	margin: 0;
}
.rc-mv__card {
	background: #fff;
	border: 1px solid var(--rc-line);
	border-top: 4px solid var(--rc-primary);
	border-radius: var(--rc-radius);
	padding: 30px 28px;
	box-shadow: var(--rc-shadow);
}
.rc-mv__card h3 {
	color: var(--rc-primary-dark);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.rc-mv__card p {
	color: var(--rc-heading);
	font-size: 17px;
	line-height: 1.8;
	margin: 0;
}

/* ==============================================================  CTA 带  */
.rc-cta {
	background-image:
		linear-gradient(105deg, rgba(6, 20, 12, .95) 0%, rgba(11, 58, 47, .88) 60%, rgba(27, 156, 133, .74) 100%),
		url("/wp-content/uploads/2026/09/robotchina-home-global-20260928.png");
	background-size: cover;
	background-position: center;
	color: #fff;
}
.rc-cta__title {
	color: #fff;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.3;
	margin: 0 0 12px;
}
.rc-cta__sub {
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
	line-height: 1.8;
	margin: 0 auto 28px;
	max-width: 620px;
}
.rc-cta .rc-cta__inner {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}
/* 首屏与 CTA 带共用同一套按钮外观；首屏左对齐，CTA 带居中 */
.rc-hero__actions,
.rc-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
}
.rc-hero__actions {
	margin-top: 30px;
}
.rc-cta__actions {
	justify-content: center;
}
.rc-hero__actions a,
.rc-cta__actions a {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease;
}
.rc-hero__actions a:hover,
.rc-cta__actions a:hover {
	transform: translateY(-2px);
	text-decoration: none;
}
.rc-hero__actions a.is-solid,
.rc-cta__actions a.is-solid {
	background: var(--rc-primary);
	color: #fff;
}
.rc-hero__actions a.is-solid:hover,
.rc-cta__actions a.is-solid:hover {
	background: #22B598;
}
.rc-hero__actions a.is-ghost,
.rc-cta__actions a.is-ghost {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .5);
}
.rc-hero__actions a.is-ghost:hover,
.rc-cta__actions a.is-ghost:hover {
	background: rgba(255, 255, 255, .22);
}

/* =============================================================  页脚注  */
.rc-note {
	color: var(--rc-muted);
	font-size: 13px;
	line-height: 1.7;
	margin: 18px 0 0;
}

/* ==============================================================  响应式  */
@media (max-width: 1024px) {
	.rc-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.rc-facts {
		grid-template-columns: 1fr;
		padding: 10px 24px;
	}
	.rc-split {
		gap: 36px;
	}
}

@media (max-width: 781px) {
	/* hero / cta 的上下内边距写在区块内联样式里，窄屏收紧必须 !important
	   （区块行内样式优先级高于主题 CSS，见 dev_local/readme.md 第九节 #28） */
	.rc-hero {
		padding-top: 78px !important;
		padding-bottom: 64px !important;
		background-position: center;
	}
	.rc-cta {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
	}
	.rc-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rc-fact {
		grid-template-columns: 128px minmax(0, 1fr);
	}
	.rc-section__head {
		margin-bottom: 28px;
	}
	.rc-hero__title {
		font-size: clamp(28px, 7vw, 38px);
	}
}

@media (max-width: 544px) {
	.rc-cats {
		grid-template-columns: 1fr;
	}
	.rc-fact {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.rc-hero__tags span {
		font-size: 12px;
		padding: 6px 11px;
	}
	.rc-mv__card {
		padding: 24px 20px;
	}
	.rc-feature {
		padding: 22px 20px;
	}
}
