/*
Theme Name: 琢光中文官网
Theme URI: https://zhuoguang.quhenet.com/
Author: QuheNet
Author URI: https://www.quhenet.com/
Description: Child theme for the Chinese official site of the Zhuoguang WordPress theme. It keeps Chinese typography and official-site-only presentation separate from the parent commercial theme.
Version: 0.2.8
Template: zhuoguang
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.3
License: Proprietary Commercial License
License URI: https://www.quhenet.com/
Text Domain: zhuoguang-cn-official
*/

.zhuoguang-block-header .wp-block-site-logo img {
	display: block;
	height: auto;
	max-height: 44px;
	width: 210px;
}

@media (max-width: 600px) {
	.zhuoguang-block-header .wp-block-site-logo img {
		max-height: 36px;
		width: 176px;
	}
}

.zhuoguang-site-section,
.zhuoguang-site-footer-simple {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.zhuoguang-site-section h1,
.zhuoguang-site-section h2,
.zhuoguang-site-section h3,
.zhuoguang-site-section h4,
.zhuoguang-site-footer-simple h3,
.zhuoguang-site-footer-simple h4 {
	font-family: inherit;
}

.zhuoguang-site-demo-card:not(:has(.zhuoguang-site-demo-card__image)) {
	padding-top: 10px;
}

.zhuoguang-site-demo-card:not(:has(.zhuoguang-site-demo-card__image)) > :first-child {
	margin-top: 24px !important;
}

.zhuoguang-site-demo-card strong {
	color: var(--zhuoguang-color-secondary);
}

.zhuoguang-ai-preview__body {
	padding: clamp(28px, 4vw, 48px);
}

.zhuoguang-ai-preview__body > * {
	margin-block-start: 0;
}

.zhuoguang-ai-preview__prompt {
	padding: 20px 22px;
	background: var(--zhuoguang-color-surface);
	color: var(--zhuoguang-color-secondary);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.65;
}

.zhuoguang-ai-preview__status {
	margin-top: 22px !important;
	color: var(--zhuoguang-color-primary-accessible);
	font-size: 0.82rem;
	font-weight: 900;
}

.zhuoguang-ai-preview ul {
	margin: 18px 0 0;
	padding-left: 1.25rem;
	color: var(--zhuoguang-color-muted);
	line-height: 1.9;
}

.zhuoguang-ai-preview .wp-block-buttons {
	margin-top: 24px;
}

.zhuoguang-official-compare {
	gap: clamp(18px, 3vw, 32px);
	margin-top: clamp(38px, 5vw, 60px);
}

.zhuoguang-official-compare__panel {
	height: 100%;
	padding: clamp(28px, 4vw, 46px);
	border: 1px solid rgba(var(--zhuoguang-color-secondary-rgb), 0.12);
	background: var(--zhuoguang-color-white);
}

.zhuoguang-official-compare__panel h3 {
	margin-top: 0;
	color: var(--zhuoguang-color-secondary);
}

.zhuoguang-official-compare__panel ul {
	margin-bottom: 0;
	padding-left: 1.25rem;
	color: var(--zhuoguang-color-muted);
	line-height: 2;
}

.zhuoguang-official-compare__panel--dark {
	border-color: var(--zhuoguang-color-secondary);
	background: var(--zhuoguang-color-secondary);
}

.zhuoguang-official-compare__panel--dark h3 {
	color: var(--zhuoguang-color-white);
}

.zhuoguang-official-compare__panel--dark ul {
	color: rgba(var(--zhuoguang-color-white-rgb), 0.76);
}

body.blog .zhuoguang-news-index-card::before {
	aspect-ratio: 16 / 7;
	background:
		linear-gradient(135deg, rgba(var(--zhuoguang-color-secondary-rgb), 0.96), rgba(var(--zhuoguang-color-secondary-rgb), 0.78)),
		radial-gradient(circle at 78% 24%, rgba(var(--zhuoguang-color-primary-rgb), 0.72) 0 3%, transparent 3.5%),
		linear-gradient(145deg, transparent 47%, rgba(var(--zhuoguang-color-primary-rgb), 0.64) 48% 51%, transparent 52%);
}

.zhuoguang-doc-article {
	margin-block-start: 0 !important;
	background: var(--zhuoguang-color-white);
}

.zhuoguang-doc-article__header {
	margin-block-start: 0 !important;
	padding: clamp(64px, 8vw, 110px) 24px;
	background: var(--zhuoguang-color-surface);
}

.zhuoguang-doc-article__title {
	max-width: 900px;
	margin: 0;
	color: var(--zhuoguang-color-secondary);
	font-size: clamp(2.2rem, 4.5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
}

.zhuoguang-doc-article__meta {
	gap: 18px;
	margin-top: 24px;
	color: var(--zhuoguang-color-muted);
	font-size: 0.9rem;
}

.zhuoguang-doc-article__meta a {
	color: var(--zhuoguang-color-primary-accessible);
}

.zhuoguang-doc-article__body {
	margin-block-start: 0 !important;
	padding: clamp(52px, 7vw, 92px) 24px;
}

.zhuoguang-doc-article__body .wp-block-post-content {
	color: var(--zhuoguang-color-muted);
	font-size: 1.05rem;
	line-height: 1.85;
}

.zhuoguang-doc-article__body .wp-block-post-content h2 {
	color: var(--zhuoguang-color-secondary);
}

body.home .zhuoguang-site-cta {
	background:
		linear-gradient(110deg, rgba(var(--zhuoguang-color-primary-rgb), 0.16), transparent 62%),
		var(--zhuoguang-color-surface);
	color: var(--zhuoguang-color-secondary);
}

body.home .zhuoguang-site-cta .zhuoguang-site-section__title {
	color: var(--zhuoguang-color-secondary);
}

body.home .zhuoguang-site-cta .zhuoguang-site-section__text {
	color: var(--zhuoguang-color-muted);
}

body.home .zhuoguang-site-cta .wp-block-button__link {
	border-color: var(--zhuoguang-color-secondary);
	background: var(--zhuoguang-color-secondary);
	color: var(--zhuoguang-color-white);
}

body.home .zhuoguang-site-cta .wp-block-button.is-style-outline .wp-block-button__link,
body.home .zhuoguang-site-cta .is-style-outline > .wp-block-button__link {
	border-color: rgba(var(--zhuoguang-color-secondary-rgb), 0.72);
	background: transparent;
	color: var(--zhuoguang-color-secondary);
}

body.home .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(1) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/product-catalog.png") center / cover no-repeat;
}

body.home .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(2) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/custom-company.png") center / cover no-repeat;
}

body.home .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(3) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/one-page.png") center / cover no-repeat;
}

body.home .zhuoguang-site-contrast .zhuoguang-site-eyebrow,
body.home .zhuoguang-site-feature-grid .zhuoguang-site-eyebrow,
body.home .zhuoguang-site-demo-showcase .zhuoguang-site-eyebrow {
	text-align: center;
}

body.home .zhuoguang-site-demo-showcase .zhuoguang-site-section__text {
	margin-inline: auto;
	text-align: center;
}

body.home .zhuoguang-site-contrast .zhuoguang-site-section__title,
body.home .zhuoguang-site-feature-grid .zhuoguang-site-section__title,
body.home .zhuoguang-site-demo-showcase .zhuoguang-site-section__title {
	text-align: center;
}

body.page-id-67 .zhuoguang-site-feature-grid .zhuoguang-site-eyebrow,
body.page-id-67 .zhuoguang-site-contrast .zhuoguang-site-eyebrow,
body.page-id-67 .zhuoguang-site-feature-flexibility .zhuoguang-site-eyebrow,
body.page-id-67 .zhuoguang-site-feature-grid .zhuoguang-site-section__title,
body.page-id-67 .zhuoguang-site-contrast .zhuoguang-site-section__title,
body.page-id-67 .zhuoguang-site-feature-flexibility .zhuoguang-site-section__title {
	text-align: center;
}

.zhuoguang-site-feature-flexibility {
	background: var(--zhuoguang-color-surface);
}

body.page-id-67 .zhuoguang-site-feature-flexibility .zhuoguang-site-section__text {
	margin-inline: auto;
	text-align: center;
}

body.page-id-70 .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(1) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/product-catalog.png") center / cover no-repeat;
}

body.page-id-70 .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(2) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/custom-company.png") center / cover no-repeat;
}

body.page-id-70 .zhuoguang-site-demo-showcase__grid > .zhuoguang-site-demo-card:nth-child(3) .zhuoguang-site-demo-card__image {
	background: var(--zhuoguang-color-surface) url("assets/images/demos/one-page.png") center / cover no-repeat;
}

.zhuoguang-site-demo-freedom {
	background: var(--zhuoguang-color-surface);
}

body.page-id-70 .zhuoguang-site-demo-freedom .zhuoguang-site-eyebrow,
body.page-id-70 .zhuoguang-site-demo-freedom .zhuoguang-site-section__title,
body.page-id-70 .zhuoguang-site-demo-freedom > .zhuoguang-site-section__inner > .zhuoguang-site-section__text {
	text-align: center;
}

body.page-id-70 .zhuoguang-site-demo-freedom > .zhuoguang-site-section__inner > .zhuoguang-site-section__text {
	margin-inline: auto;
}

.zhuoguang-site-demo-freedom__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zhuoguang-site-ai-practical {
	background: var(--zhuoguang-color-white);
}

body.page-id-72 .zhuoguang-site-feature-grid .zhuoguang-site-eyebrow,
body.page-id-72 .zhuoguang-site-feature-grid .zhuoguang-site-section__title,
body.page-id-72 .zhuoguang-site-ai-practical .zhuoguang-site-eyebrow,
body.page-id-72 .zhuoguang-site-ai-practical .zhuoguang-site-section__title,
body.page-id-72 .zhuoguang-site-contrast .zhuoguang-site-eyebrow,
body.page-id-72 .zhuoguang-site-contrast .zhuoguang-site-section__title {
	text-align: center;
}

body.page-id-72 .zhuoguang-site-ai-practical > .zhuoguang-site-section__inner > .zhuoguang-site-section__text {
	margin-inline: auto;
	text-align: center;
}

@media (max-width: 781px) {
	.zhuoguang-site-demo-freedom__grid {
		grid-template-columns: 1fr;
	}
}

/* Keep long-form article headings distinct from marketing-page display type. */
.single-post .wp-block-post-content > h2 {
	margin-block-start: clamp(2.25rem, 4vw, 3.5rem);
	margin-block-end: 0.85rem;
	font-size: clamp(1.65rem, 2.2vw, 2.15rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.single-post .wp-block-post-content > h2 + :where(p, ul, ol) {
	margin-block-start: 0;
}

@media (max-width: 781px) {
	.single-post .wp-block-post-content > h2 {
		margin-block-start: 2rem;
		font-size: clamp(1.5rem, 7vw, 1.8rem);
		line-height: 1.3;
	}
}
