/*
Theme Name: Yinxinggu Blog Child
Theme URI: https://yinxinggu.com/
Description: Child theme for yinxinggu.com blog homepage customization.
Author: Hermes Agent
Template: twentytwentyfive
Version: 1.2.0
Text Domain: yinxinggu-blog-child
*/

.home main.wp-block-group,
.blog main.wp-block-group {
	max-width: 1220px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.home .yinxinggu-home-heading,
.blog .yinxinggu-home-heading {
	margin-bottom: 0;
}

.home .yinxinggu-hero-panel,
.blog .yinxinggu-hero-panel {
	position: relative;
	overflow: hidden;
	margin-bottom: 2.75rem;
	padding: clamp(1.6rem, 3vw, 2.4rem);
	border: 1px solid rgba(92, 127, 255, 0.14);
	border-radius: 30px;
	background:
		radial-gradient(circle at top right, rgba(95, 151, 255, 0.24), transparent 35%),
		radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.18), transparent 30%),
		linear-gradient(135deg, #0f172a 0%, #111827 58%, #172554 100%);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.home .yinxinggu-hero-panel::after,
.blog .yinxinggu-hero-panel::after {
	content: "";
	position: absolute;
	inset: auto -40px -40px auto;
	width: 240px;
	height: 240px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(59, 130, 246, 0) 72%);
}

.home .yinxinggu-hero-panel .wp-block-heading,
.blog .yinxinggu-hero-panel .wp-block-heading {
	max-width: 13ch;
	margin-bottom: 1rem;
	color: #f8fafc;
}

.home .yinxinggu-home-kicker,
.blog .yinxinggu-home-kicker,
.home .yinxinggu-section-kicker,
.blog .yinxinggu-section-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #7dd3fc;
}

.home .yinxinggu-home-intro,
.blog .yinxinggu-home-intro {
	max-width: 52rem;
	font-size: 1.05rem;
	line-height: 1.9;
	color: rgba(226, 232, 240, 0.88);
}

.home .yinxinggu-section-heading,
.blog .yinxinggu-section-heading,
.home .yinxinggu-list-heading,
.blog .yinxinggu-list-heading {
	margin-bottom: 1.35rem;
}

.home .yinxinggu-list-heading h2,
.blog .yinxinggu-list-heading h2,
.home .yinxinggu-section-heading h2,
.blog .yinxinggu-section-heading h2 {
	letter-spacing: -0.02em;
}

.home .yinxinggu-featured-zone,
.blog .yinxinggu-featured-zone {
	margin-bottom: 2.75rem;
}

.home .yinxinggu-featured-grid,
.blog .yinxinggu-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.home .yinxinggu-featured-card,
.blog .yinxinggu-featured-card {
	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(59, 130, 246, 0.1);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,245,249,0.98) 100%);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
	min-height: 100%;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home .yinxinggu-featured-card:hover,
.blog .yinxinggu-featured-card:hover {
	transform: translateY(-4px);
	border-color: rgba(59, 130, 246, 0.2);
	box-shadow: 0 26px 48px rgba(15, 23, 42, 0.14);
}

.home .yinxinggu-featured-card__cover,
.blog .yinxinggu-featured-card__cover {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
}

.home .yinxinggu-featured-card--primary .yinxinggu-featured-card__cover,
.blog .yinxinggu-featured-card--primary .yinxinggu-featured-card__cover {
	aspect-ratio: 16 / 10;
}

.home .yinxinggu-featured-card--secondary .yinxinggu-featured-card__cover,
.blog .yinxinggu-featured-card--secondary .yinxinggu-featured-card__cover {
	aspect-ratio: 16 / 8.8;
}

.home .yinxinggu-featured-card__image,
.blog .yinxinggu-featured-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.home .yinxinggu-featured-card:hover .yinxinggu-featured-card__image,
.blog .yinxinggu-featured-card:hover .yinxinggu-featured-card__image {
	transform: scale(1.04);
}

.home .yinxinggu-featured-card__fallback,
.blog .yinxinggu-featured-card__fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 1.25rem;
	background:
		linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.72) 100%),
		linear-gradient(135deg, #0f172a 0%, #1e40af 52%, #38bdf8 100%);
}

.home .yinxinggu-featured-card__fallback span,
.blog .yinxinggu-featured-card__fallback span {
	display: inline-block;
	max-width: 12ch;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
	color: #eff6ff;
}

.home .yinxinggu-featured-card > :not(.yinxinggu-featured-card__cover),
.blog .yinxinggu-featured-card > :not(.yinxinggu-featured-card__cover) {
	padding-inline: 1.4rem;
}

.home .yinxinggu-featured-card__body,
.blog .yinxinggu-featured-card__body {
	padding-bottom: 1.45rem;
}

.home .yinxinggu-featured-card--primary .yinxinggu-featured-card__body,
.blog .yinxinggu-featured-card--primary .yinxinggu-featured-card__body {
	padding-inline: clamp(1.4rem, 2vw, 2rem);
	padding-bottom: 1.8rem;
}

.home .yinxinggu-featured-card--secondary .yinxinggu-featured-card__body,
.blog .yinxinggu-featured-card--secondary .yinxinggu-featured-card__body {
	padding-bottom: 1.2rem;
}

.home .yinxinggu-featured-meta,
.blog .yinxinggu-featured-meta {
	margin: 1.15rem 0 0.8rem;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.home .yinxinggu-featured-card h3,
.blog .yinxinggu-featured-card h3 {
	margin: 0 0 0.9rem;
	font-size: 1.35rem;
	line-height: 1.3;
}

.home .yinxinggu-featured-card--primary h3,
.blog .yinxinggu-featured-card--primary h3 {
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.home .yinxinggu-featured-card--secondary h3,
.blog .yinxinggu-featured-card--secondary h3 {
	font-size: 1.18rem;
	line-height: 1.35;
}

.home .yinxinggu-featured-card h3 a,
.blog .yinxinggu-featured-card h3 a {
	text-decoration: none;
}

.home .yinxinggu-featured-card h3 a:hover,
.blog .yinxinggu-featured-card h3 a:hover {
	text-decoration: underline;
}

.home .yinxinggu-featured-excerpt,
.blog .yinxinggu-featured-excerpt {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.8;
	color: #475569;
}

.home .yinxinggu-featured-card--primary .yinxinggu-featured-excerpt,
.blog .yinxinggu-featured-card--primary .yinxinggu-featured-excerpt {
	font-size: 1.03rem;
	line-height: 1.9;
}

.home .yinxinggu-featured-card--secondary .yinxinggu-featured-excerpt,
.blog .yinxinggu-featured-card--secondary .yinxinggu-featured-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.home .yinxinggu-home-shell,
.blog .yinxinggu-home-shell {
	align-items: flex-start;
}

.home .yinxinggu-home-main,
.blog .yinxinggu-home-main {
	min-width: 0;
}

.home .yinxinggu-home-sidebar,
.blog .yinxinggu-home-sidebar {
	position: sticky;
	top: 2rem;
}

.home .yinxinggu-sidebar-card,
.blog .yinxinggu-sidebar-card {
	padding: 1.4rem 1.35rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(59, 130, 246, 0.09);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.home .yinxinggu-sidebar-card--brand,
.blog .yinxinggu-sidebar-card--brand {
	background:
		radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 30%),
		linear-gradient(135deg, #111827 0%, #172554 100%);
	border-color: rgba(125, 211, 252, 0.16);
}

.home .yinxinggu-sidebar-card h3,
.blog .yinxinggu-sidebar-card h3 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.home .yinxinggu-sidebar-card--brand h3,
.blog .yinxinggu-sidebar-card--brand h3,
.home .yinxinggu-sidebar-card--brand p,
.blog .yinxinggu-sidebar-card--brand p {
	color: #e2e8f0;
}

.home .yinxinggu-sidebar-search .wp-block-search__inside-wrapper,
.blog .yinxinggu-sidebar-search .wp-block-search__inside-wrapper {
	border: 1px solid rgba(28, 27, 26, 0.12);
	border-radius: 999px;
	background: #fff;
	padding: 0.35rem;
}

.home .yinxinggu-sidebar-search .wp-block-search__input,
.blog .yinxinggu-sidebar-search .wp-block-search__input {
	border: none;
	padding-left: 1rem;
}

.home .yinxinggu-sidebar-search .wp-block-search__button,
.blog .yinxinggu-sidebar-search .wp-block-search__button {
	margin-left: 0;
	border-radius: 999px;
	padding-inline: 1rem;
}

.home .yinxinggu-sidebar-categories,
.blog .yinxinggu-sidebar-categories,
.home .yinxinggu-popular-posts,
.blog .yinxinggu-popular-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home .yinxinggu-sidebar-categories li,
.blog .yinxinggu-sidebar-categories li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px dashed rgba(59, 130, 246, 0.16);
}

.home .yinxinggu-sidebar-categories li:last-child,
.blog .yinxinggu-sidebar-categories li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.home .yinxinggu-sidebar-categories a,
.blog .yinxinggu-sidebar-categories a {
	text-decoration: none;
}

.home .yinxinggu-sidebar-categories a:hover,
.blog .yinxinggu-sidebar-categories a:hover {
	text-decoration: underline;
}

.home .yinxinggu-popular-posts li,
.blog .yinxinggu-popular-posts li {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	padding: 0.95rem 0;
	border-bottom: 1px dashed rgba(59, 130, 246, 0.16);
}

.home .yinxinggu-popular-posts li:first-child,
.blog .yinxinggu-popular-posts li:first-child {
	padding-top: 0;
}

.home .yinxinggu-popular-posts li:last-child,
.blog .yinxinggu-popular-posts li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.home .yinxinggu-popular-posts__rank,
.blog .yinxinggu-popular-posts__rank {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	flex-shrink: 0;
}

.home .yinxinggu-popular-posts__body a,
.blog .yinxinggu-popular-posts__body a {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.98rem;
	line-height: 1.6;
	text-decoration: none;
}

.home .yinxinggu-popular-posts__body a:hover,
.blog .yinxinggu-popular-posts__body a:hover {
	text-decoration: underline;
}

.home .yinxinggu-popular-posts__body p,
.blog .yinxinggu-popular-posts__body p,
.home .yinxinggu-sidebar-empty,
.blog .yinxinggu-sidebar-empty {
	margin: 0;
	font-size: 0.88rem;
	color: #746b63;
}

.home .yinxinggu-home-query .wp-block-post-template,
.blog .yinxinggu-home-query .wp-block-post-template {
	gap: 1.2rem;
}

.home .yinxinggu-home-query .wp-block-post,
.blog .yinxinggu-home-query .wp-block-post {
	margin: 0;
	padding: 0;
}

.home .yinxinggu-home-card,
.blog .yinxinggu-home-card {
	padding: 1.55rem 1.6rem 1.65rem;
	border: 1px solid rgba(59, 130, 246, 0.1);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home .yinxinggu-home-card:hover,
.blog .yinxinggu-home-card:hover {
	transform: translateY(-2px);
	border-color: rgba(59, 130, 246, 0.26);
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.home .yinxinggu-home-card__meta,
.blog .yinxinggu-home-card__meta {
	gap: 0.8rem;
	margin-bottom: 0.9rem;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.home .yinxinggu-home-card__meta a,
.blog .yinxinggu-home-card__meta a {
	text-decoration: none;
}

.home .yinxinggu-home-card .wp-block-post-title,
.blog .yinxinggu-home-card .wp-block-post-title {
	margin: 0 0 0.95rem;
	font-size: clamp(1.65rem, 2.2vw, 2.15rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.home .yinxinggu-home-card .wp-block-post-title a,
.blog .yinxinggu-home-card .wp-block-post-title a {
	text-decoration: none;
}

.home .yinxinggu-home-card .wp-block-post-title a:hover,
.home .yinxinggu-home-card .wp-block-post-title a:focus,
.blog .yinxinggu-home-card .wp-block-post-title a:hover,
.blog .yinxinggu-home-card .wp-block-post-title a:focus {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.home .yinxinggu-home-excerpt,
.blog .yinxinggu-home-excerpt {
	margin: 0;
}

.home .yinxinggu-home-excerpt__text,
.blog .yinxinggu-home-excerpt__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
	min-height: calc(1.95em * 5);
	margin: 0;
	font-size: 1rem;
	line-height: 1.95;
	color: #475569;
}

.home .yinxinggu-home-pagination,
.blog .yinxinggu-home-pagination {
	margin-top: 2rem;
	padding-top: 0.5rem;
}

.home .yinxinggu-home-pagination .wp-block-query-pagination,
.blog .yinxinggu-home-pagination .wp-block-query-pagination {
	font-size: 0.98rem;
}

@media (max-width: 1100px) {
	.home .yinxinggu-featured-showcase,
	.blog .yinxinggu-featured-showcase {
		grid-template-columns: 1fr;
	}

	.home .yinxinggu-featured-showcase__secondary,
	.blog .yinxinggu-featured-showcase__secondary {
		grid-template-rows: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .yinxinggu-home-shell,
	.blog .yinxinggu-home-shell {
		flex-wrap: wrap !important;
	}

	.home .yinxinggu-home-main,
	.blog .yinxinggu-home-main,
	.home .yinxinggu-home-sidebar,
	.blog .yinxinggu-home-sidebar {
		flex-basis: 100% !important;
	}

	.home .yinxinggu-home-sidebar,
	.blog .yinxinggu-home-sidebar {
		position: static;
	}
}

@media (max-width: 781px) {
	.home main.wp-block-group,
	.blog main.wp-block-group {
		padding-inline: 1rem;
	}

	.home .yinxinggu-hero-panel,
	.blog .yinxinggu-hero-panel {
		padding: 1.35rem;
		border-radius: 22px;
	}

	.home .yinxinggu-featured-showcase__secondary,
	.blog .yinxinggu-featured-showcase__secondary {
		grid-template-columns: 1fr;
	}

	.home .yinxinggu-home-card,
	.blog .yinxinggu-home-card,
	.home .yinxinggu-featured-card,
	.blog .yinxinggu-featured-card,
	.home .yinxinggu-sidebar-card,
	.blog .yinxinggu-sidebar-card {
		border-radius: 18px;
	}

	.home .yinxinggu-home-card,
	.blog .yinxinggu-home-card,
	.home .yinxinggu-sidebar-card,
	.blog .yinxinggu-sidebar-card {
		padding: 1.2rem;
	}

	.home .yinxinggu-featured-card > :not(.yinxinggu-featured-card__cover),
	.blog .yinxinggu-featured-card > :not(.yinxinggu-featured-card__cover) {
		padding-inline: 1.2rem;
	}

	.home .yinxinggu-home-card .wp-block-post-title,
	.blog .yinxinggu-home-card .wp-block-post-title {
		font-size: 1.45rem;
	}

	.home .yinxinggu-home-excerpt__text,
	.blog .yinxinggu-home-excerpt__text {
		font-size: 0.98rem;
		line-height: 1.85;
		min-height: calc(1.85em * 5);
	}
}
