/* =========================================================================
 * 首屏 Hero 复刻样式（2026-07-17 按参考图调整）
 * 覆盖 style.css 中的头部/导航与 Hero 区块。
 * ========================================================================= */

/* ---- 头部：站点标题 logo（真实站点配置）+ 右侧导航 + 搜索 ---- */
.site-header .logo {
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.site-header .logo .logo-text {
	font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
	line-height: 1;
}
/* 后台上传自定义 Logo 图片时生效 */
.site-header .logo .logo-img {
	height: 40px;
	width: auto;
	display: block;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}
.main-nav a {
	padding: 0 22px;
	color: rgba(255, 255, 255, 0.65);
}
.main-nav a:hover,
.main-nav li.active > a {
	color: #fff;
}

.header-search {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-left: 12px;
	transition: color 0.3s;
}
.header-search:hover { color: #fff; }

/* ---- Hero 整体 ---- */
.hero-section {
	position: relative;
	padding: 0;
	background: #000;
}
.hero-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 0;
}
.hero-slide.active {
	opacity: 1;
	z-index: 1;
}
.hero-mask {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.1) 100%);
	z-index: 1;
}

/* ---- Hero 标题 Arch Itecture ---- */
.hero-caption {
	position: absolute;
	left: 0;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	z-index: 2;
	width: 100%;
	max-width: none;
	padding: 0 60px 0 96px;
	pointer-events: none;
}
.hero-title {
	font-size: clamp(44px, 7vw, 104px);
	font-weight: 400;
	color: #fff;
	line-height: 1.08;
	margin: 0;
	font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
	letter-spacing: -1px;
}

/* ---- 底部轮播面板 ---- */
.hero-bottom {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 200;
	width: 100%;
	display: flex;
}
.hero-panel {
	display: flex;
	align-items: stretch;
	background: #fff;
	min-width: 560px;
}
.hero-panel-inner {
	display: flex;
	align-items: center;
	padding: 32px 0 32px 36px;
	gap: 40px;
	flex: 1;
}
.hero-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.hero-item .num {
	font-size: 12px;
	color: #999;
	letter-spacing: 1px;
	margin-top: 3px;
}
.hero-item .info .t {
	font-size: 14px;
	color: #111;
	font-weight: 500;
	margin: 0 0 4px;
	line-height: 1.3;
	white-space: nowrap;
}
.hero-item .info .s {
	font-size: 13px;
	color: #888;
	margin: 0;
	line-height: 1.3;
}
.hero-item.active .t { color: #111; }

.hero-arrows {
	display: flex;
	align-items: stretch;
	background: var(--accent, #eb1111);
}
.hero-arrows button {
	width: 70px;
	height: auto;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	transition: background 0.3s;
}
.hero-arrows button:hover { background: rgba(0, 0, 0, 0.15); }
.hero-arrows button + button {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* 隐藏旧的 hero 箭头/圆点 */
.hero-arrow:not(.hero-arrows .hero-prev):not(.hero-arrows .hero-next),
.hero-dots {
	display: none !important;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
	.hero-title { font-size: 80px; }
	.hero-caption { top: 50%; bottom: auto; transform: translateY(-50%); padding: 0 40px 0 60px; }
	.hero-panel { min-width: 440px; }
	.hero-panel-inner { padding: 24px 0 24px 28px; gap: 28px; }
	.hero-arrows button { width: 56px; font-size: 24px; }
}
@media (max-width: 768px) {
	.site-header { padding: 0 20px; }
	.main-nav { display: none; position: fixed; top: var(--header-h, 80px); left: 0; right: 0; background: rgba(20, 20, 20, 0.98); flex-direction: column; padding: 14px 0; gap: 0; }
	.main-nav.open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li { width: 100%; }
	.main-nav a { display: block; padding: 14px 24px; height: auto; line-height: 1.4; }
	.header-search { display: none; }
	.nav-toggle { display: block; }

	.hero-title { font-size: 52px; }
	.hero-caption { top: 50%; bottom: auto; transform: translateY(-50%); padding: 0 20px; }
	.hero-panel { width: 100%; min-width: auto; flex-direction: column; }
	.hero-panel-inner { padding: 20px; gap: 18px; justify-content: center; }
	.hero-arrows { justify-content: flex-end; }
	.hero-arrows button { width: 60px; height: 50px; }
}
