/*
Theme Name: 环球艺栈 · 企业站
Theme URI: https://wp260610.cnaroma.com/
Description: 基于 Twenty Twenty-Four 的子主题。为环球艺栈（北京）文化传媒有限公司企业官网定制：明亮专业风格，主色 #1B5FC1，深色赛事区块 #101F35。所有首页内容使用 WordPress 区块搭建，可在后台「页面 → 首页」自由编辑。
Author: 环球艺栈
Template: twentytwentyfour
Version: 1.0.3
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yizhan
Tags: block-theme, business, custom-colors, custom-menu, translation-ready
*/

/*
 * 自定义样式
 * ---------------------------------------------------------------
 * 这里的规则只负责「版式细节」，颜色/字号/间距主要在 theme.json 里
 * 通过「外观 → 编辑器 → 样式」可视化调整。
 * 修改前请先看 assets/README.md 里的说明。
 */

/* ===== 中文排版优化 ===== */
:root {
	--yz-brand: #1b5fc1;
	--yz-brand-dark: #134a99;
	--yz-brand-soft: #edf4fd;
	--yz-ink: #111827;
	--yz-ink-2: #4b5563;
	--yz-ink-3: #9aa3af;
	--yz-line: #ddd9d1;
	--yz-soft-bg: #eeece7;
	--yz-deep: #101f35;
	/* 纸感暖白：降低大面积纯白在高分屏上的刺眼感 */
	--yz-page-bg: #f6f4f0;
	--yz-card-bg: #fffdfa;
	--yz-hero-end: #fbfaf7;
}

.wp-site-blocks {
	font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
		BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 标题用中文字体，避免 Inter 渲染中文时的回退瑕疵 */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-site-title,
.wp-block-heading {
	font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
		BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: -0.01em;
}

/* ===== Hero 首屏 ===== */
.yz-hero {
	background: linear-gradient(160deg, #f4f8fd 0%, #ffffff 62%);
	padding: 64px 0 60px;
}

.yz-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 48px;
	align-items: center;
}

.yz-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: var(--yz-brand);
	background: var(--yz-brand-soft);
	padding: 5px 11px;
	border-radius: 20px;
	font-weight: 500;
	margin-bottom: 20px;
}

.yz-hero h1 {
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1.28;
	font-weight: 700;
	margin: 0 0 18px;
}

.yz-hero h1 em {
	font-style: normal;
	color: var(--yz-brand);
}

.yz-hero .yz-lead {
	font-size: 15px;
	color: var(--yz-ink-2);
	line-height: 1.85;
	margin: 0 0 12px;
}

.yz-hero .yz-sub {
	font-size: 13.5px;
	color: var(--yz-ink-3);
	margin: 0 0 28px;
}

.yz-hero-visual {
	position: relative;
}

.yz-hero-visual img {
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
	display: block;
}

.yz-badge {
	position: absolute;
	left: -14px;
	bottom: 26px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
	padding: 11px 15px;
	display: flex;
	align-items: center;
	gap: 11px;
}

.yz-badge .dot {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--yz-brand-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--yz-brand);
	font-weight: 700;
}

.yz-badge b {
	display: block;
	font-size: 13px;
}

.yz-badge span {
	font-size: 11px;
	color: var(--yz-ink-3);
}

/* ===== 信任数据条 ===== */
.yz-stats {
	background: var(--yz-soft-bg);
	border-radius: 12px;
	padding: 24px 16px;
}

.yz-stats .wp-block-column {
	text-align: center;
}

.yz-stats b {
	display: block;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--yz-ink);
}

.yz-stats span {
	font-size: 12.5px;
	color: var(--yz-ink-2);
}

/* ===== 服务卡片 ===== */
.yz-card {
	background: #fff;
	border: 1px solid var(--yz-line);
	border-radius: 12px;
	padding: 30px 26px 26px;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yz-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
	border-color: #d6e6fa;
}

.yz-card-ico {
	width: 46px;
	height: 46px;
	border-radius: 11px;
	background: var(--yz-brand-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--yz-brand);
	margin-bottom: 17px;
}

.yz-card h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 9px;
}

.yz-card p {
	font-size: 13.5px;
	color: var(--yz-ink-2);
	line-height: 1.75;
	margin: 0 0 15px;
}

.yz-card ul {
	list-style: none;
	border-top: 1px solid var(--yz-line);
	padding-top: 14px;
	margin: 0 0 16px;
}

.yz-card li {
	font-size: 12.5px;
	color: var(--yz-ink-3);
	padding-left: 16px;
	position: relative;
	margin-bottom: 6px;
}

.yz-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #d6e6fa;
}

.yz-link {
	font-size: 13px;
	color: var(--yz-brand);
	font-weight: 500;
}

/* ===== 行业方案 ===== */
.yz-ind {
	border: 1px solid var(--yz-line);
	border-radius: 12px;
	padding: 22px 20px;
	background: #fff;
	height: 100%;
}

.yz-ind .yz-ind-tag {
	font-size: 11px;
	color: var(--yz-brand);
	background: var(--yz-brand-soft);
	padding: 3px 8px;
	border-radius: 5px;
	display: inline-block;
	margin-bottom: 11px;
}

.yz-ind h4 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 7px;
}

.yz-ind p {
	font-size: 12.5px;
	color: var(--yz-ink-3);
	line-height: 1.7;
	margin: 0;
}

/* ===== 案例卡 ===== */
.yz-case {
	border: 1px solid var(--yz-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yz-case:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
}

.yz-case img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}

.yz-case-body {
	padding: 19px 20px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.yz-case-tag {
	font-size: 11px;
	color: var(--yz-brand);
	background: var(--yz-brand-soft);
	padding: 3px 9px;
	border-radius: 5px;
	margin-bottom: 9px;
	display: inline-block;
	align-self: flex-start;
}

.yz-case h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 9px;
}

.yz-case p {
	font-size: 13px;
	color: var(--yz-ink-2);
	line-height: 1.75;
	margin: 0 0 13px;
	flex: 1;
}

.yz-case-metric {
	font-size: 12.5px;
	color: var(--yz-ink-3);
	padding-top: 12px;
	border-top: 1px solid var(--yz-line);
}

.yz-case-metric b {
	color: var(--yz-brand);
	font-weight: 600;
}

/* ===== 开发流程 ===== */
.yz-flow {
	position: relative;
}

.yz-flow .wp-block-column {
	text-align: center;
	position: relative;
}

.yz-step-num {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #d6e6fa;
	color: var(--yz-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	margin: 0 auto 13px;
	position: relative;
	z-index: 2;
}

.yz-flow b {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 5px;
}

.yz-flow span {
	font-size: 11.5px;
	color: var(--yz-ink-3);
	line-height: 1.6;
	display: block;
}

/* ===== 赛事文化深色区块 ===== */
.yz-culture {
	background: var(--yz-deep);
	padding: 74px 0;
}

.yz-culture .yz-eyebrow {
	color: #7fb0f0;
	background: rgba(127, 176, 240, 0.14);
}

.yz-culture h2 {
	color: #fff;
	font-size: clamp(24px, 3.4vw, 30px);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 17px;
}

.yz-culture p {
	color: #9fb4ce;
	font-size: 14.5px;
	line-height: 1.85;
	margin: 0 0 22px;
}

.yz-culture-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	padding: 22px 0;
	margin: 0 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yz-culture-stats b {
	display: block;
	font-size: 25px;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
}

.yz-culture-stats span {
	font-size: 11.5px;
	color: #7c93b2;
}

.yz-culture-note {
	font-size: 12px;
	color: #6e86a6;
	margin: 14px 0 0;
}

.yz-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
}

.yz-gallery img {
	width: 100%;
	height: 104px;
	object-fit: cover;
	border-radius: 9px;
	display: block;
}

.yz-gallery .yz-cap {
	font-size: 11px;
	color: #7c93b2;
	margin-top: 6px;
}

/* ===== 客户证言 ===== */
.yz-quote {
	border-left: 2px solid var(--yz-line);
	padding-left: 14px;
	font-size: 13px;
	line-height: 1.75;
	color: var(--yz-ink-2);
	margin: 0;
}

.yz-quote-main {
	font-size: 19px;
	line-height: 1.75;
	color: var(--yz-ink);
	font-weight: 500;
	margin: 0 0 20px;
}

.yz-logo-box {
	height: 66px;
	border: 1px solid var(--yz-line);
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--yz-ink-3);
	background: #fff;
	text-align: center;
	padding: 6px;
}

/* ===== CTA 咨询区 ===== */
.yz-cta {
	background: linear-gradient(120deg, #134a99, #1b5fc1 55%, #2e76d6);
	padding: 56px 0;
}

.yz-cta h2 {
	color: #fff;
	font-size: clamp(21px, 2.8vw, 26px);
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.4;
}

.yz-cta .yz-cta-lead {
	color: #bdd4f2;
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 18px;
}

.yz-quick {
	display: flex;
	gap: 22px;
	font-size: 13px;
	color: #d3e3f8;
	flex-wrap: wrap;
}

.yz-form {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
}

.yz-form label {
	display: block;
	font-size: 12px;
	color: var(--yz-ink-3);
	margin-bottom: 5px;
}

.yz-form input,
.yz-form textarea {
	width: 100%;
	border: 1px solid var(--yz-line);
	border-radius: 7px;
	padding: 9px 11px;
	font-size: 13.5px;
	font-family: inherit;
	outline: none;
	transition: 0.15s;
	background: #fff;
	color: var(--yz-ink);
}

.yz-form input:focus,
.yz-form textarea:focus {
	border-color: var(--yz-brand);
	box-shadow: 0 0 0 3px var(--yz-brand-soft);
}

.yz-form textarea {
	resize: vertical;
	min-height: 66px;
}

.yz-form button {
	width: 100%;
	justify-content: center;
	padding: 11px;
	background: var(--yz-brand);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s;
}

.yz-form button:hover {
	background: var(--yz-brand-dark);
}

/* ===== 按钮样式 ===== */
.yz-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: 0.18s;
	margin-right: 8px;
}

.yz-btn-primary {
	background: var(--yz-brand);
	color: #fff;
}

.yz-btn-primary:hover {
	background: var(--yz-brand-dark);
}

.yz-btn-ghost {
	border-color: var(--yz-line);
	color: var(--yz-ink-2);
	background: #fff;
}

.yz-btn-ghost:hover {
	border-color: var(--yz-brand);
	color: var(--yz-brand);
}

.yz-btn-light {
	background: #fff;
	color: #134a99;
}

/* ===== 导航栏 ===== */
.yz-nav-shop {
	background: #fff !important;
	border: 1px solid var(--yz-line) !important;
	border-radius: 8px !important;
	padding: 6px 14px !important;
	font-size: 13px !important;
}

.yz-nav-shop:hover {
	border-color: var(--yz-brand) !important;
	color: var(--yz-brand) !important;
}

/* ===== 区块通用间距 ===== */
.yz-section {
	padding: 76px 0;
}

.yz-section-alt {
	background: var(--yz-soft-bg);
}

.yz-head {
	max-width: 720px;
	margin-bottom: 44px;
}

.yz-head-eyebrow {
	font-size: 12px;
	color: var(--yz-brand);
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	margin-bottom: 11px;
}

.yz-head h2 {
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 700;
	margin: 0 0 13px;
	line-height: 1.35;
}

.yz-head p {
	font-size: 15px;
	color: var(--yz-ink-2);
	line-height: 1.8;
	margin: 0;
}

/* ===== 移动端 ===== */
@media (max-width: 900px) {
	.yz-hero {
		padding: 44px 0;
	}

	.yz-hero-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.yz-hero-visual img {
		min-height: 220px;
	}

	.yz-badge {
		left: 12px;
		bottom: 12px;
	}

	.yz-section {
		padding: 52px 0;
	}

	.yz-culture {
		padding: 52px 0;
	}

	.yz-gallery {
		grid-template-columns: 1fr 1fr;
	}

	.yz-culture-stats {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.yz-culture-stats b {
		font-size: 20px;
	}

	.yz-cta {
		padding: 44px 0;
	}

	.yz-form {
		padding: 18px;
	}
}

@media (max-width: 600px) {
	.yz-stats {
		padding: 18px 10px;
	}

	.yz-stats b {
		font-size: 21px;
	}

	.yz-stats span {
		font-size: 11.5px;
	}

	.yz-quote-main {
		font-size: 16px;
	}

	.yz-gallery img {
		height: 84px;
	}
}

/* ===== PHP 模板：页头 ===== */
.yz-header {
	background: #fff;
	border-bottom: 1px solid var(--yz-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.yz-header-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.yz-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.yz-logo img {
	max-height: 30px;
	width: auto;
	display: block;
}

.yz-site-title a {
	font-size: 17px;
	font-weight: 700;
	color: var(--yz-ink);
	text-decoration: none;
	letter-spacing: 0.3px;
}

.yz-header-right {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.yz-nav ul.yz-menu-list {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.yz-nav ul.yz-menu-list li {
	position: relative;
}

.yz-nav ul.yz-menu-list li a {
	font-size: 14px;
	color: var(--yz-ink-2);
	text-decoration: none;
	padding: 4px 0;
	display: block;
	transition: color 0.18s;
}

.yz-nav ul.yz-menu-list li a:hover {
	color: var(--yz-brand);
}

.yz-nav ul.yz-menu-list li.current-menu-item > a,
.yz-nav ul.yz-menu-list li.current_page_item > a {
	color: var(--yz-brand);
	font-weight: 600;
}

.yz-nav ul.yz-menu-list li.current-menu-item > a::after,
.yz-nav ul.yz-menu-list li.current_page_item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: var(--yz-brand);
	border-radius: 2px;
}

/* 二级菜单 */
.yz-nav ul.yz-menu-list ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--yz-line);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
	padding: 6px 0;
	min-width: 150px;
	z-index: 20;
}

.yz-nav ul.yz-menu-list li:hover > ul {
	display: block;
}

.yz-nav ul.yz-menu-list ul li a {
	padding: 7px 16px;
	font-size: 13px;
	white-space: nowrap;
}

.yz-header-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.yz-btn-sm {
	font-size: 12px;
	padding: 6px 14px;
}

/* 汉堡按钮 */
.yz-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--yz-line);
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	padding: 10px 9px;
	flex-direction: column;
	justify-content: space-between;
}

.yz-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--yz-ink);
	border-radius: 2px;
}

/* ===== PHP 模板：页脚 ===== */
.yz-footer {
	background: #0f2544;
	color: #7c93b2;
	padding: 48px 0 26px;
	font-size: 13px;
}

.yz-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 34px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.yz-footer-name {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	margin-top: 10px;
}

.yz-footer-desc {
	max-width: 290px;
	margin: 11px 0 0;
	line-height: 1.8;
	color: #7c93b2;
}

.yz-footer-col h4 {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 13px;
}

.yz-footer-col a {
	color: #7c93b2;
	text-decoration: none;
	display: block;
	margin-bottom: 7px;
	transition: color 0.18s;
}

.yz-footer-col a:hover {
	color: #fff;
}

.yz-footer-bottom {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px 0;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	flex-wrap: wrap;
	gap: 10px;
}

/* ===== 通用容器 ===== */
.yz-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.yz-main {
	min-height: 40vh;
}

/* ===== 文章列表 ===== */
.yz-list-main {
	padding: 56px 0 76px;
}

.yz-post-list {
	display: grid;
	gap: 20px;
	margin-bottom: 40px;
}

.yz-post-card {
	border: 1px solid var(--yz-line);
	border-radius: 12px;
	padding: 26px 28px;
	background: #fff;
}

.yz-post-title {
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
}

.yz-post-title a {
	color: var(--yz-ink);
	text-decoration: none;
}

.yz-post-title a:hover {
	color: var(--yz-brand);
}

.yz-post-date {
	font-size: 12.5px;
	color: var(--yz-ink-3);
	margin-bottom: 12px;
}

.yz-post-excerpt {
	font-size: 13.5px;
	color: var(--yz-ink-2);
	line-height: 1.75;
}

.yz-empty {
	text-align: center;
	color: var(--yz-ink-3);
	padding: 60px 0;
}

/* ===== 移动端 ===== */
@media (max-width: 900px) {
	.yz-header-inner {
		padding: 14px 18px;
	}

	.yz-nav-toggle {
		display: flex;
	}

	.yz-nav {
		order: 3;
		width: 100%;
		display: none;
	}

	.yz-nav.is-open {
		display: block;
	}

	.yz-nav ul.yz-menu-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		border-top: 1px solid var(--yz-line);
		padding-top: 10px;
	}

	.yz-nav ul.yz-menu-list li a {
		padding: 10px 0;
		font-size: 15px;
	}

	.yz-nav ul.yz-menu-list ul {
		position: static;
		display: block;
		box-shadow: none;
		border: none;
		padding-left: 14px;
	}

	.yz-header-cta {
		margin-left: auto;
	}

	.yz-footer-inner {
		grid-template-columns: 1fr 1fr;
		gap: 26px;
		padding: 0 18px;
	}

	.yz-footer-bottom {
		padding: 18px 18px 0;
	}
}

@media (max-width: 600px) {
	.yz-site-title a {
		font-size: 15px;
	}

	.yz-header-cta .yz-btn-ghost {
		display: none;
	}

	.yz-footer-inner {
		grid-template-columns: 1fr;
	}
}

/* ===== 修复：Hero 内联 group 布局 ===== */
/* Hero 底部三个数据要横排，需要覆盖 core/group 的默认 flow 布局 */
.yz-hero .wp-block-group.yz-hero-trust {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 30px;
}

.yz-hero .wp-block-group.yz-hero-trust > p {
	margin-right: 0 !important;
	flex: 0 0 auto;
}

/* 按钮边框：core/button 的 ghost 样式在自定义 class 下不生效 */
.yz-btn.yz-btn-ghost {
	background: #fff !important;
	border: 1px solid var(--yz-line) !important;
	color: var(--yz-ink-2) !important;
	text-decoration: none !important;
}

.yz-btn.yz-btn-ghost:hover {
	border-color: var(--yz-brand) !important;
	color: var(--yz-brand) !important;
}

.yz-btn.yz-btn-primary {
	background: var(--yz-brand) !important;
	border: 1px solid var(--yz-brand) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.yz-btn.yz-btn-primary:hover {
	background: var(--yz-brand-dark) !important;
	border-color: var(--yz-brand-dark) !important;
	color: #fff !important;
}

/* 头尾 CTA 按钮同样处理 */
.yz-header-cta .yz-btn,
.yz-cta .yz-btn {
	text-decoration: none !important;
}

/* 服务卡片里的链接 */
.yz-link a {
	color: var(--yz-brand);
	text-decoration: none;
}

.yz-link a:hover {
	text-decoration: underline;
}

/* 统计条里的数字块也要保证不换行 */
.yz-stats .wp-block-column > p:first-child {
	white-space: nowrap;
}

/* 流程步骤的圆形数字不要被压缩 */
.yz-flow .wp-block-column {
	min-width: 0;
}

.yz-step-num {
	flex-shrink: 0;
}

/* 深色区块里的 CTA 按钮在深底上要有对比 */
.yz-culture .yz-btn-primary {
	background: var(--yz-brand) !important;
	border-color: var(--yz-brand) !important;
	color: #fff !important;
}

/* ===== 修复 2：赛事文化数据条 ===== */
/* 三个统计项要竖排成一列（数字在上、说明在下），不能横向摊开 */
.yz-culture .yz-culture-stats {
	display: flex !important;
	flex-direction: column;
	gap: 0;
	padding: 18px 0;
}

.yz-culture .yz-culture-stats > p {
	margin: 0 !important;
}

.yz-culture .yz-culture-stats > p:first-child {
	margin-bottom: 2px !important;
}

/* ===== 修复 3：合作方 logo 框 ===== */
.yz-logo-box {
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: auto;
	min-height: 66px;
	padding: 10px 8px;
}

.yz-logo-box p {
	margin: 0 !important;
	line-height: 1.5;
	word-break: keep-all;
}

/* logo 框所在列不能太窄 */
.yz-logo-box,
.yz-logo-box * {
	min-width: 0;
}

/* ===== 修复 4：表单输入框 ===== */
.yz-form input,
.yz-form textarea {
	display: block !important;
	width: 100% !important;
	background: #fff !important;
	color: var(--yz-ink) !important;
	border: 1px solid var(--yz-line) !important;
}

/* core/paragraph 包裹的表单控件，去掉段落默认间距 */
.yz-form p.yz-form-field {
	margin-bottom: 11px !important;
}

.yz-form p.yz-form-field:last-of-type {
	margin-bottom: 13px !important;
}

/* 表单里的 label 段落 */
.yz-form p:not(.yz-form-field) {
	margin-bottom: 5px !important;
}

/* ===== 修复 5：客户证言头像 ===== */
.yz-avatar {
	width: 40px !important;
	height: 40px;
	border-radius: 50% !important;
	background: var(--yz-brand-soft) !important;
	color: var(--yz-brand) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	flex-shrink: 0;
	margin-right: 0 !important;
}

/* ===== 修复 6：流程步骤文字换行 ===== */
.yz-flow .wp-block-column > p {
	word-break: keep-all;
}

/* ===== 修复 7：区块内的 link 样式统一 ===== */
.yz-card a,
.yz-ind a,
.yz-case a {
	text-decoration: none;
}

/* ===== 修复 8：短代码表单样式 ===== */
.yz-form-inner .yz-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.yz-form-inner .yz-form-cell {
	margin-bottom: 0;
}

.yz-form-inner label {
	display: block;
	font-size: 12px;
	color: var(--yz-ink-3);
	margin-bottom: 5px;
}

.yz-form-inner input,
.yz-form-inner textarea {
	display: block;
	width: 100%;
	border: 1px solid var(--yz-line);
	border-radius: 7px;
	padding: 9px 11px;
	font-size: 13.5px;
	font-family: inherit;
	outline: none;
	transition: 0.15s;
	background: #fff;
	color: var(--yz-ink);
	box-sizing: border-box;
}

.yz-form-inner input:focus,
.yz-form-inner textarea:focus {
	border-color: var(--yz-brand);
	box-shadow: 0 0 0 3px var(--yz-brand-soft);
}

.yz-form-inner textarea {
	resize: vertical;
	min-height: 66px;
	margin-bottom: 13px;
}

.yz-form-inner button {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--yz-brand);
	color: #fff;
	border: 1px solid var(--yz-brand);
	border-radius: 8px;
	padding: 11px;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.18s;
	text-decoration: none;
}

.yz-form-inner button:hover {
	background: var(--yz-brand-dark);
	border-color: var(--yz-brand-dark);
}

.yz-form-note {
	font-size: 11.5px;
	color: var(--yz-ink-3);
	margin: 10px 0 0;
	line-height: 1.5;
}

/* ===== 修复 9：合作方 logo 框（横排） ===== */
.yz-logo-box {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: auto;
	min-height: 62px;
	padding: 12px 8px;
	border: 1px solid var(--yz-line);
	border-radius: 9px;
	background: #fff;
	color: var(--yz-ink-3);
	font-size: 12px;
	line-height: 1.5;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* logo 框所在列给足宽度 */
.yz-logo-box {
	min-width: 0;
}

/* 让 logo 墙整体不换行挤压 */
@media (min-width: 901px) {
	.yz-logo-box {
		font-size: 11.5px;
	}
}

@media (max-width: 900px) {
	.yz-form-inner .yz-form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ===== 修复 10：合作方 logo 墙改为固定四列网格 ===== */
/* core/columns 嵌套在 core/column 里宽度计算异常，改用 grid */
.yz-logo-wall {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.yz-logo-wall > .wp-block-column {
	width: auto !important;
	flex-basis: auto !important;
}

.yz-logo-wall .yz-logo-box {
	height: 100%;
	min-height: 62px;
}

/* 父级 columns 需要让 logo 墙占满 */
.yz-logo-wall-parent .wp-block-column__inner,
.yz-logo-wall-parent > .wp-block-column {
	height: 100%;
}

@media (max-width: 600px) {
	.yz-logo-wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ===== 修复 11：导航子菜单的项目符号 ===== */
/* WordPress 给 menu-item-has-children 加了 ::before 圆点，需要清掉 */
.yz-nav ul.yz-menu-list li.menu-item-has-children::before,
.yz-nav ul.yz-menu-list li.menu-item-has-children::after {
	content: none !important;
	display: none !important;
}

.yz-nav ul.yz-menu-list li.menu-item-has-children > a::before,
.yz-nav ul.yz-menu-list li.menu-item-has-children > a::after {
	content: none !important;
	display: none !important;
}

/* 子菜单本身也要去掉列表样式 */
.yz-nav ul.yz-menu-list ul.sub-menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 6px 0 !important;
}

.yz-nav ul.yz-menu-list ul.sub-menu li {
	list-style: none !important;
}

/* 子菜单项 hover 时的背景与左边框 */
.yz-nav ul.yz-menu-list ul.sub-menu li a {
	display: block;
	padding: 8px 16px;
	font-size: 13.5px;
	color: var(--yz-ink-2);
	border-left: 2px solid transparent;
	transition: all .16s;
}

.yz-nav ul.yz-menu-list ul.sub-menu li a:hover {
	background: var(--yz-brand-soft);
	color: var(--yz-brand);
	border-left-color: var(--yz-brand);
}

/* ================================================================
   纸感暖白方案（2026-12-02）
   目的：降低大面积纯白在高分/大屏显示器上的刺眼感，
        同时让卡片与页面底色产生层次（原 #fff 与 #f7f9fb 仅差 2%）
   ================================================================ */

/* 页面底色 */
body,
.wp-site-blocks,
.yz-main {
	background-color: var(--yz-page-bg) !important;
}

/* Hero 渐变：终点从纯白改为暖白 */
.yz-hero {
	background: linear-gradient(160deg, #eef3fa 0%, var(--yz-hero-end) 62%);
}

/* 卡片类：白 → 纸白（比页面底色略亮，形成浮起层次） */
.yz-card,
.yz-ind,
.yz-case,
.yz-form,
.yz-post-card,
.yz-badge,
.yz-step-num {
	background: var(--yz-card-bg);
}

/* 页头 */
.yz-header {
	background: var(--yz-card-bg);
}

/* 导航栏的商店按钮 */
.yz-nav-shop {
	background: var(--yz-card-bg) !important;
}

/* 主按钮 */
.yz-btn-primary {
	background: var(--yz-brand);
}

/* 幽灵按钮（描边款） */
.yz-btn-ghost,
.yz-btn.yz-btn-ghost {
	background: var(--yz-card-bg) !important;
}

/* 深色区块里的白色按钮 */
.yz-btn-light {
	background: var(--yz-card-bg);
}

/* 表单控件 */
.yz-form input,
.yz-form textarea,
.yz-form-inner input,
.yz-form-inner textarea {
	background: var(--yz-card-bg) !important;
}

/* 下拉菜单保持纯白：悬浮层需要与页面明确区分 */
.yz-nav ul.yz-menu-list ul {
	background: #fff;
}

/* 移动端菜单面板保持纯白 */
.yz-nav-toggle {
	background: #fff;
}

/* 深色区块内部：稍降亮度，避免纯白刺眼 */
.yz-hero .yz-badge,
.yz-deep .yz-badge {
	background: var(--yz-card-bg);
}

/* 统计条与次级区块沿用新的浅灰 */
.yz-soft,
.yz-alt {
	background: var(--yz-soft-bg);
}

/* ================================================================
   修复 12：Hero 三个数据错位
   内联 margin-right:30px 与 flex gap 叠加，导致换行时错位
   ================================================================ */
.yz-hero .wp-block-group.yz-hero-trust {
	flex-wrap: nowrap;
	gap: 0;
}

.yz-hero .wp-block-group.yz-hero-trust > p {
	margin-right: 30px !important;
	flex: 0 0 auto;
}

.yz-hero .wp-block-group.yz-hero-trust > p:last-child {
	margin-right: 0 !important;
}

@media (max-width: 600px) {
	.yz-hero .wp-block-group.yz-hero-trust {
		flex-wrap: wrap;
		gap: 16px 0;
	}
	.yz-hero .wp-block-group.yz-hero-trust > p {
		margin-right: 22px !important;
	}
}
