/*
Theme Name: Gzjuhui Theme
Description: 卓聚官网的最小经典/混合主题技术骨架；当前版本不用于视觉验收。
Author: Gzjuhui
Version: 0.3.0
Requires at least: 7.1
Requires PHP: 8.4
Text Domain: gzjuhui-theme
License: Proprietary
*/

/* Technical fallback styles only. This is not the approved visual design. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--gzjuhui-content-max: 72rem;
	--gzjuhui-space-1: 0.5rem;
	--gzjuhui-space-2: 1rem;
	--gzjuhui-space-3: 1.5rem;
	--gzjuhui-space-4: 2.5rem;
	--gzjuhui-border: #d9dee7;
	--gzjuhui-muted: #5b6472;
}

body {
	margin: 0;
	color: #1d2430;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

a {
	color: #1558a6;
	text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #f0a400;
	outline-offset: 2px;
}

.site-header,
.site-main,
.site-footer {
	width: min(100% - 2rem, var(--gzjuhui-content-max));
	margin-inline: auto;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gzjuhui-space-2) var(--gzjuhui-space-3);
	padding-block: var(--gzjuhui-space-3);
}

.site-identity {
	flex: 1 1 14rem;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.technical-skeleton-notice {
	margin: 0;
	color: var(--gzjuhui-muted);
	font-size: 0.875rem;
}

.site-main {
	padding-block: var(--gzjuhui-space-4);
}

.case-entry {
	--case-accent: #1558a6;
	--case-soft: #eef5fc;
	padding-block: var(--gzjuhui-space-3);
	border-bottom: 1px solid var(--gzjuhui-border);
}

.case-entry-header {
	margin-bottom: var(--gzjuhui-space-2);
}

.entry-title {
	margin-block: 0;
	color: var(--case-accent, #1d2430);
	line-height: 1.25;
}

.case-cover {
	margin: 0 0 var(--gzjuhui-space-3);
}

.case-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.case-content {
	padding: clamp(1rem, 3vw, 2.5rem);
	background: linear-gradient(180deg, var(--case-soft), #fff 14rem);
}

.editorial-entry {
	padding-block: var(--gzjuhui-space-4);
	border-bottom: 1px solid var(--gzjuhui-border);
}

.entry-type {
	margin: 0 0 var(--gzjuhui-space-1);
	color: #9a5b00;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.entry-meta {
	margin: var(--gzjuhui-space-1) 0 0;
	color: var(--gzjuhui-muted);
	font-size: 0.875rem;
}

.editorial-cover {
	margin: var(--gzjuhui-space-3) 0;
}

.editorial-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.read-more {
	font-weight: 700;
}

.related-content {
	margin-top: var(--gzjuhui-space-4);
	padding-top: var(--gzjuhui-space-3);
	border-top: 1px solid var(--gzjuhui-border);
}

.related-content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gzjuhui-space-2);
}

.related-content-card {
	padding: var(--gzjuhui-space-2);
	border: 1px solid var(--gzjuhui-border);
}

.related-content-card h3,
.related-content-card p {
	margin: var(--gzjuhui-space-1) 0 0;
}

.related-content-card p {
	color: var(--gzjuhui-muted);
	font-size: 0.875rem;
}

.related-content-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.site-footer {
	padding-block: var(--gzjuhui-space-3);
	color: var(--gzjuhui-muted);
}

@media (max-width: 40rem) {
	.site-header,
	.site-main,
	.site-footer {
		width: min(100% - 1.25rem, var(--gzjuhui-content-max));
	}

	.site-header {
		align-items: flex-start;
	}

	.case-facts {
		grid-template-columns: 1fr;
	}

	.related-content-grid {
		grid-template-columns: 1fr;
	}
}

img {
	max-width: 100%;
	height: auto;
}

table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem;
	clip: auto;
	white-space: normal;
}
