/*
 Theme Name:   Asphalt Machinery Child
 Theme URI:    https://example.com/
 Description:  Underscores子主题 - 沥青设备企业官网
 Author:       你的名字
 Template:     asphalt-machinery
 Version:      1.0.3
 Text Domain:  asphalt-machinery-child
*/

/* 这里后面写你网站自定义CSS */

/* Inter 本地字体（外贸站避免 Google Fonts 依赖，加快加载） */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-800-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('assets/kdfm/fonts/inter-latin-900-normal.woff2') format('woff2')}

/* ==========================================================================
   首页企业官网样式（子主题追加，不覆盖上方主题头信息）
   主色：深蓝；页面白底；页脚深色；PC 优先，小屏自动换行 + 汉堡菜单
   ========================================================================== */

:root {
	--am-navy: #0b1f4d;
	--am-navy-deep: #071433;
	--am-blue: #2f5bff;
	--am-blue-hover: #2448d6;
	--am-text: #1a2333;
	--am-muted: #5b6577;
	--am-line: #e6eaf2;
	--am-card: #ffffff;
	--am-bg: #ffffff;
	--am-grid: #edf1f7;
	--am-radius: 18px;
	--am-header-h: 76px;
}

/* 首页隐藏 Underscores 默认页眉页脚，改用 front-page 自定义结构 */
body.home #masthead,
body.home #colophon,
body.home .widget-area {
	display: none !important;
}

body.home {
	background: var(--am-bg);
	color: var(--am-text);
	font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.home #page {
	max-width: none;
	overflow: hidden;
}

body.home .am-front.site-main {
	margin: 0;
	padding: 0;
	max-width: none;
}

.am-container {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.am-topbar {
	background: #fff;
	border-bottom: 0.8px solid #e4e8f2;
	font-size: 12px;
	color: #5a6072;
}
.am-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
}
.am-langs {
	display: flex;
	justify-content: flex-end;
}

/* ---------- 顶部导航：白底粘性，对标 asphaltmach.com ---------- */
.am-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: 70px;
	background: #fff;
	border-bottom: 0.8px solid #e4e8f2;
	box-shadow: 0 1px 3px 0 rgba(20, 30, 60, 0.08);
	overflow: visible;
}

.am-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(1180px, calc(100% - 40px));
	height: 100%;
	margin: 0 auto;
}

.am-logo,
.am-logo a,
.am-logo img {
	display: flex;
	align-items: center;
	max-height: 44px;
}

.am-logo img {
	width: auto;
	height: 40px;
}

.am-logo-text {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1a1d29;
	text-decoration: none;
	font-weight: 900;
	letter-spacing: 0.04em;
	font-size: 13px;
	line-height: 1.25;
	max-width: 220px;
}

.am-logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: linear-gradient(135deg, #4d7dff, #1e3a8a);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

.am-nav-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.am-hamburger {
	display: none;
	cursor: pointer;
	padding: 8px;
}

.am-hamburger-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
	height: 16px;
}

.am-hamburger-line {
	display: block;
	height: 2px;
	background: #1a1d29;
	border-radius: 2px;
}

.am-nav {
	overflow: visible;
}
.am-nav .am-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-nav .am-menu a {
	color: #1a1d29;
	text-decoration: none;
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	padding: 8px 10px;
	white-space: nowrap;
	transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.am-nav .am-menu a:visited,
.am-nav .am-menu .current-menu-item > a {
	color: #3b5bdb;
}

.am-nav .am-menu a:hover,
.am-nav .am-menu a:focus,
.am-nav .am-menu a:active {
	color: #3b5bdb;
}

.am-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 覆盖父主题链接悬停色；悬停只把本色变淡，不换色相 */
body.home a.am-btn-header,
body.home a.am-btn-header:visited,
body.home a.am-btn-primary,
body.home a.am-btn-primary:visited {
	background: #3b5bdb;
	color: #fff;
}

body.home a.am-btn-header:hover,
body.home a.am-btn-header:focus,
body.home a.am-btn-header:active,
body.home a.am-btn-primary:hover,
body.home a.am-btn-primary:focus,
body.home a.am-btn-primary:active {
	background: color-mix(in srgb, #3b5bdb 80%, #fff);
	color: #fff;
}

body.home a.am-btn-ghost,
body.home a.am-btn-ghost:visited {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

body.home a.am-btn-ghost:hover,
body.home a.am-btn-ghost:focus,
body.home a.am-btn-ghost:active {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.32);
	color: rgba(255, 255, 255, 0.55);
}

/* ---------- 全屏 Banner ---------- */
.am-hero {
	position: relative;
	min-height: calc(100vh - 102px);
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
}

.am-hero-bg,
.am-hero-bg-stack,
.am-hero-bg-slide,
.am-hero-mask {
	position: absolute;
	inset: 0;
}

.am-hero-bg,
.am-hero-bg-slide {
	background-color: var(--am-navy-deep);
	background-image:
		radial-gradient(ellipse at 20% 10%, rgba(70, 110, 200, 0.35), transparent 50%),
		linear-gradient(160deg, #0a1a3a 0%, #081428 55%, #0c2740 100%);
	background-size: cover;
	background-position: center;
}

.am-hero-bg-slide {
	opacity: 0;
	transition: opacity 0.8s ease;
}

.am-hero-bg-slide.is-active {
	opacity: 1;
}

.am-hero-mask {
	background: linear-gradient(90deg, rgba(4, 12, 32, 0.82) 0%, rgba(8, 20, 48, 0.58) 48%, rgba(6, 16, 36, 0.45) 100%);
}

.am-hero-slides {
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 48px));
	min-height: calc(100vh - 102px);
	margin: 0 auto;
	padding: 80px 0 90px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.am-hero-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.am-hero-slide {
	display: none;
	max-width: 760px;
}

#am-hero-dot-1:checked ~ .am-hero-slide[data-slide="1"],
#am-hero-dot-2:checked ~ .am-hero-slide[data-slide="2"],
#am-hero-dot-3:checked ~ .am-hero-slide[data-slide="3"] {
	display: block;
}

.am-hero-kicker {
	margin: 0 0 16px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

.am-hero-title {
	margin: 0 0 18px;
	font-size: clamp(36px, 5vw, 72px);
	line-height: 0.95;
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.am-hero-sub {
	margin: 0 0 28px;
	max-width: 560px;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
}

.am-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.am-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}

.am-hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
}

#am-hero-dot-1:checked ~ .am-hero-dots .am-hero-dot[data-dot="1"],
#am-hero-dot-2:checked ~ .am-hero-dots .am-hero-dot[data-dot="2"],
#am-hero-dot-3:checked ~ .am-hero-dots .am-hero-dot[data-dot="3"] {
	width: 26px;
	background: #fff;
}

/* ---------- 企业数据 ---------- */
.am-stats {
	background: #fff;
	padding: 56px 0;
	border-bottom: 1px solid var(--am-line);
}

.am-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.am-stats-grid strong {
	display: block;
	color: var(--am-navy);
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.1;
}

.am-stats-grid span {
	display: block;
	margin-top: 8px;
	color: var(--am-muted);
	font-size: 14px;
}

/* ---------- 通用板块标题 ---------- */
.am-eyebrow {
	margin: 0 0 8px;
	text-align: center;
	letter-spacing: 0.16em;
	font-size: 12px;
	color: var(--am-blue);
	text-transform: uppercase;
}

.am-section-title {
	margin: 0 0 10px;
	text-align: center;
	color: #1a1d29;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.am-section-desc {
	margin: 0 auto 40px;
	max-width: 640px;
	text-align: center;
	color: var(--am-muted);
	line-height: 1.7;
}

.am-card-grid {
	display: grid;
	gap: 24px;
}

.am-card-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

/* ---------- 服务行业 ---------- */
.am-industries {
	padding: 88px 0;
	background-color: #f7f9fc;
	background-image:
		linear-gradient(rgba(14, 40, 90, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(14, 40, 90, 0.035) 1px, transparent 1px);
	background-size: 28px 28px;
}

.am-card {
	background: var(--am-card);
	border-radius: var(--am-radius);
	padding: 32px 28px 28px;
	box-shadow: 0 10px 30px rgba(15, 35, 80, 0.06);
	border: 1px solid rgba(15, 35, 80, 0.04);
}

.am-card-icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #eef2ff;
	color: var(--am-blue);
	margin-bottom: 18px;
}

.am-card h3 {
	margin: 0 0 10px;
	color: var(--am-navy);
	font-size: 20px;
}

.am-card p,
.am-product-body p {
	margin: 0 0 20px;
	color: var(--am-muted);
	line-height: 1.7;
	font-size: 14px;
}

.am-link-more {
	display: inline-flex;
	align-items: center;
	color: var(--am-navy);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--am-line);
	border-radius: 999px;
	padding: 8px 16px;
}

.am-link-more:hover {
	border-color: color-mix(in srgb, var(--am-line) 55%, #fff);
	color: color-mix(in srgb, var(--am-navy) 50%, #fff);
}

/* ---------- 产品展示 ---------- */
.am-products {
	padding: 88px 0 96px;
	background: #fff;
}

.am-product-card {
	background: #fff;
	border-radius: var(--am-radius);
	overflow: hidden;
	border: 1px solid var(--am-line);
	box-shadow: 0 8px 24px rgba(15, 35, 80, 0.05);
}

.am-product-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #dbe4f0;
	overflow: hidden;
}

.am-product-media img,
.am-product-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.am-product-placeholder {
	background:
		linear-gradient(135deg, #9aa9c4 0%, #5d7196 100%);
}

.am-product-body {
	padding: 20px 22px 24px;
}

.am-product-body h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.am-product-body h3 a {
	color: var(--am-navy);
	text-decoration: none;
}

.am-product-body h3 a:hover {
	color: color-mix(in srgb, var(--am-navy) 50%, #fff);
}

.am-products-cta {
	margin-top: 40px;
	text-align: center;
}

/* 首页产品卡：复用产品中心 48px 圆角卡 */
.am-home-products .am-arc-card {
	background: #fff;
	border: 1.6px solid #e5e7eb;
	border-radius: 48px;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(20, 30, 60, 0.08);
	transition: border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.am-home-products .am-arc-card:hover {
	border-color: #3b5bdb;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.am-home-products .am-arc-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eef1f6;
}
.am-home-products .am-arc-media img,
.am-home-products .am-arc-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.am-home-products .am-arc-ph {
	background: linear-gradient(135deg, #c3cbe0, #8b95ad);
}
.am-home-products .am-arc-card:hover .am-arc-media img {
	transform: scale(1.1);
}
.am-home-products .am-arc-gear {
	position: absolute;
	top: 32px;
	right: 32px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 16px;
	color: #1a1d29;
}
.am-home-products .am-arc-card:hover .am-arc-gear {
	background: #3b5bdb;
	color: #fff;
}
.am-home-products .am-arc-body {
	padding: 32px 28px 36px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.am-home-products .am-arc-pill {
	display: inline-block;
	margin: 0 0 16px;
	padding: 8px 16px;
	background: #f3f5f9;
	border: 0.8px solid rgba(229, 231, 235, 0.5);
	border-radius: 12px;
	color: #6b7280;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.am-home-products .am-arc-body h2 {
	margin: 0 0 24px;
	min-height: 56px;
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.6px;
	text-transform: uppercase;
	line-height: 1.25;
}
.am-home-products .am-arc-body h2 a {
	color: #1a1d29;
	text-decoration: none;
}
.am-home-products .am-arc-card:hover .am-arc-body h2 {
	color: #3b5bdb;
}
.am-home-products .am-arc-detail {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #3b5bdb;
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: 9999px;
}
.am-home-products .am-arc-detail:hover,
.am-home-products .am-arc-detail:visited {
	color: #fff;
}

/* ---------- 页脚 ---------- */
.am-footer {
	background: #0b1220;
	color: rgba(255, 255, 255, 0.78);
	padding-top: 64px;
}

.am-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}

.am-footer-logo,
.am-footer-col h3 {
	color: #fff;
	margin: 0 0 14px;
	font-size: 16px;
}

.am-footer-brand p {
	margin: 0;
	line-height: 1.7;
	font-size: 14px;
	max-width: 360px;
}

.am-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 14px;
	line-height: 2;
}

.am-footer-menu a:hover {
	color: rgba(255, 255, 255, 0.4);
}

.am-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 18px 0;
}

.am-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.am-copy {
	margin: 0;
	font-size: 13px;
	color: #aeb4c6;
}

.am-ft-brand-name {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	font-style: italic;
}

.am-ft-cog {
	flex: 0 0 auto;
	color: #aeb4c6;
}

.am-ft-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}

.am-ft-social a,
.am-ft-social a:visited {
	width: 36px;
	height: 36px;
	box-sizing: border-box;
	border: 0.8px solid #232735;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aeb4c6;
	background: transparent;
	text-decoration: none;
	line-height: 1;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.am-ft-social a:hover,
.am-ft-social a:focus {
	background: #3b5bdb;
	border-color: #3b5bdb;
	color: #fff;
}

.am-ft-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.am-ft-legal a,
.am-ft-legal a:visited {
	color: #aeb4c6;
	text-decoration: none;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	margin: 0;
}

.am-ft-legal a:hover,
.am-ft-legal a:focus {
	color: #fff;
}

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
	.am-card-grid-3,
	.am-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.am-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 28px;
	}

	.am-nav .am-menu a {
		padding: 8px 7px;
		font-size: 13px;
	}
}

/* ---------- 手机：汉堡折叠 + 卡片换行 ---------- */
@media (max-width: 768px) {
	.am-topbar-inner > span {
		display: none;
	}

	.am-header {
		position: sticky;
	}

	.am-header-inner {
		position: relative;
	}

	.am-hamburger {
		display: block;
		order: 2;
		margin-left: auto;
	}

	.am-btn-header {
		display: none;
	}

	.am-nav {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: #fff;
		display: none;
		padding: 8px 20px 20px;
		border-bottom: 0.8px solid #e4e8f2;
	}

	.am-nav-checkbox:checked ~ .am-nav {
		display: block;
	}

	.am-nav .am-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.am-nav .am-menu a {
		display: block;
		padding: 12px 4px;
		border-bottom: 1px solid #e4e8f2;
	}

	.am-card-grid-3,
	.am-footer-grid,
	.am-stats-grid {
		grid-template-columns: 1fr;
	}

	.am-hero-slides {
		padding: 120px 0 100px;
	}

	.am-hero-title {
		font-size: 32px;
	}

	.am-industries,
	.am-products {
		padding: 64px 0;
	}

	.am-home-products .am-arc-card {
		border-radius: 32px;
	}

	.am-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.am-ft-legal {
		justify-content: center;
	}

	.am-container {
		width: min(1180px, calc(100% - 32px));
	}
}

/* Specifications table (converted from parameter images) */
.wp-block-table.am-spec-table {
	border-collapse: collapse;
	width: 100%;
	margin: 24px 0;
}
.wp-block-table.am-spec-table th {
	background: #f4f6fa;
	font-weight: 600;
	text-align: left;
}
.wp-block-table.am-spec-table th,
.wp-block-table.am-spec-table td {
	border: 1px solid #d5dbe5;
	padding: 8px 12px;
	font-size: 14px;
	vertical-align: top;
}
.wp-block-table.am-spec-table tbody tr:nth-child(even) td {
	background: #fafbfc;
}
@media (max-width: 767px) {
	.wp-block-table.am-spec-table th,
	.wp-block-table.am-spec-table td {
		padding: 6px 8px;
		font-size: 13px;
	}
}
/* 产品页 FAQ 由 .kdfm-prod-faq 模板渲染；隐藏正文中 Rank Math FAQ 块的重复渲染，保留 schema 输出 */
.kdfm-prod .rank-math-block,
.kdfm-prod .wp-block-rank-math-faq-block { display: none !important; }
