/* 银河录像局官网 - 主页样式 */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.yhj-page {
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.yhj-page img {
	max-width: 100%;
	height: auto;
	display: block;
}

.yhj-page a {
	text-decoration: none;
	color: inherit;
}

/* Header */
.yhj-header {
	background: #1e293b;
	position: sticky;
	top: 0;
	z-index: 100;
}

.yhj-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.yhj-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.yhj-header__logo img {
	height: 36px;
	width: auto;
}

.yhj-header .yhj-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}

.yhj-header .yhj-header__logo,
.yhj-header .yhj-nav a,
.yhj-header .yhj-nav a:hover,
.yhj-header .yhj-nav a:focus,
.yhj-header .yhj-nav .current-menu-item a,
.yhj-header .yhj-nav .current-post-parent a,
.yhj-header .yhj-nav .current-menu-ancestor a {
	text-decoration: none !important;
}

.yhj-header .yhj-nav a {
	color: #e2e8f0;
	font-size: 15px;
	padding: 8px 16px;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.yhj-header .yhj-nav a:hover,
.yhj-header .yhj-nav .current-menu-item a,
.yhj-header .yhj-nav .current-post-parent a,
.yhj-header .yhj-nav .current-menu-ancestor a {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.yhj-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.yhj-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 5px 0;
	transition: transform 0.3s;
}

/* Hero */
.yhj-hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 80px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.yhj-hero__title {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	margin-bottom: 20px;
}

.yhj-hero__desc {
	font-size: 16px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 32px;
}

.yhj-promo-code {
	color: #e53935;
	font-weight: 700;
}

.yhj-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.yhj-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	border: 2px solid transparent;
}

.yhj-btn--outline {
	background: #fff;
	color: #4A90E2;
	border-color: #4A90E2;
}

.yhj-btn--outline:hover {
	background: #f0f7ff;
}

.yhj-btn--primary {
	background: #4A90E2;
	color: #fff;
	border-color: #4A90E2;
}

.yhj-btn--primary:hover {
	background: #3a7bc8;
	border-color: #3a7bc8;
}

.yhj-hero__visual img {
	border-radius: 16px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
}

/* Services */
.yhj-services {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 80px;
}

.yhj-services__title {
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 40px;
}

.yhj-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.yhj-service-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 32px 24px;
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}

.yhj-service-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.yhj-service-card__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
}

.yhj-service-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
}

.yhj-service-card__desc {
	font-size: 14px;
	color: #666;
	line-height: 1.7;
}

/* Latest Posts */
.yhj-posts {
	background: #f7f8fa;
	padding: 64px 24px 80px;
}

.yhj-posts__header {
	text-align: center;
	margin-bottom: 40px;
}

.yhj-posts__title {
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	color: #333;
	display: inline-block;
	position: relative;
	padding-bottom: 14px;
}

.yhj-posts__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 48px;
	height: 4px;
	background: #f97316;
	border-radius: 2px;
}

.yhj-posts__subtitle {
	font-size: 14px;
	color: #999;
	margin-top: 16px;
}

.yhj-posts__grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.yhj-post-card {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s, transform 0.2s;
	min-height: 90px;
}

.yhj-post-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.yhj-post-card__thumb {
	flex: 0 0 38%;
	max-width: 38%;
	overflow: hidden;
	background: #eee;
}

.yhj-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 90px;
}

.yhj-post-card__title {
	flex: 1;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 1.5;
	align-self: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Footer */
.yhj-footer {
	background: #1e293b;
	color: #94a3b8;
	padding: 32px 24px;
	text-align: center;
}

.yhj-footer__copy {
	font-size: 14px;
	margin-bottom: 12px;
	color: #cbd5e1;
}

.yhj-footer__links {
	font-size: 13px;
}

.yhj-footer .yhj-footer__links a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
}

.yhj-footer .yhj-footer__links a:hover {
	color: #fff;
}

.yhj-footer__links span {
	margin: 0 8px;
	color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
	.yhj-hero {
		grid-template-columns: 1fr;
		padding: 48px 24px 60px;
		gap: 32px;
	}

	.yhj-hero__visual {
		order: -1;
	}

	.yhj-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.yhj-posts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.yhj-nav-toggle {
		display: block;
	}

	.yhj-header .yhj-nav {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: #1e293b;
		flex-direction: column;
		padding: 16px;
		gap: 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.yhj-header .yhj-nav.is-open {
		display: flex;
	}

	.yhj-header .yhj-nav a {
		display: block;
		width: 100%;
		padding: 12px 16px;
	}

	.yhj-services__grid {
		grid-template-columns: 1fr;
	}

	.yhj-posts__grid {
		grid-template-columns: 1fr;
	}

	.yhj-post-card__thumb {
		flex: 0 0 120px;
		max-width: 120px;
	}

	.yhj-hero__actions {
		flex-direction: column;
	}

	.yhj-btn {
		text-align: center;
	}
}
