/* 首页重设计样式：仅首页加载，全部选择器以 .zd- 前缀隔离 */
/* 首页无 jQuery，使用 CSS 实现导航下拉 */
.header .nav-item:hover .item-inner,
.header .nav-item:hover dl {
	display: block !important;
}

/* 首页导航：锁定单行，避免换行溢出 header 后被首屏遮挡 */
#head .header .container {
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
	max-width: 1240px;
	min-width: 0;
	padding: 0 20px;
}

#head .header .logo {
	float: none;
	flex: 0 0 auto;
	margin-right: 0;
}

#head .header .logo img {
	width: auto;
	height: 52px;
	margin: 0;
}

#head .header .header-left {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: flex-end;
}

#head .header .nav-container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

#head .header .nav-container .nav-item {
	float: none;
	display: flex;
	align-items: center;
	height: 80px;
}

#head .header .nav-container .nav-item > a.header-tag {
	padding: 0 6px;
	font-size: 15px;
	line-height: 80px;
	white-space: nowrap;
}

#head .header .nav-container .nav-item > a.Login_box {
	margin: 0 0 0 8px;
}

.zd-home {
	--zd-ink: #141a24;
	--zd-body: #333a45;
	--zd-muted: #6b7280;
	--zd-line: #e8ebf0;
	--zd-bg: #f5f7fa;
	--zd-accent: #ff5733;
	--zd-accent-dark: #e84118;
	background: #fff;
	color: var(--zd-body);
}

.zd-home *,
.zd-home *::before,
.zd-home *::after {
	box-sizing: border-box;
}

.zd-home img {
	border-radius: 0;
}

.zd-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.zd-home a {
	color: inherit;
}

.zd-home .zd-date {
	display: inline-block;
	font-size: 12px;
	color: var(--zd-muted);
	letter-spacing: .2px;
}

.zd-home .zd-price {
	font-style: normal;
	font-weight: 700;
	color: var(--zd-accent);
}

/* ============ 首屏 ============ */
.zd-hero {
	padding: 26px 0 0;
	background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.zd-hero-main {
	display: grid;
	grid-template-columns: minmax(0, 2.05fr) minmax(300px, 1fr);
	gap: 24px;
	align-items: stretch;
}

.zd-hero-card {
	position: relative;
	display: block;
	min-height: 456px;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #1f2937 0%, #374151 55%, #4b5563 100%);
	isolation: isolate;
}

.zd-hero-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.zd-hero-card:hover img {
	transform: scale(1.04);
}

.zd-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 14, 20, .02) 30%, rgba(10, 14, 20, .86) 100%);
}

.zd-hero-info {
	position: relative;
	z-index: 2;
	min-height: 456px;
	height: 100%;
	padding: 34px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
}

.zd-tag {
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--zd-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.zd-hero-info h1 {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.32;
	font-weight: 700;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-hero-info p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #e3e7ee;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-hero-info .zd-date {
	color: #c7cfdb;
}

.zd-hero-side {
	display: flex;
	flex-direction: column;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .25);
}

.zd-side-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--zd-line);
}

.zd-side-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--zd-ink);
}

.zd-side-head a {
	font-size: 13px;
	color: var(--zd-accent);
}

.zd-latest {
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
}

.zd-latest li {
	flex: 1;
	display: flex;
	align-items: center;
	border-bottom: 1px dashed var(--zd-line);
}

.zd-latest li:last-child {
	border-bottom: 0;
}

.zd-latest a {
	display: block;
	width: 100%;
	padding: 11px 0;
}

.zd-latest-t {
	display: -webkit-box;
	font-size: 15px;
	line-height: 1.45;
	color: var(--zd-ink);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .25s ease;
}

.zd-latest a:hover .zd-latest-t {
	color: var(--zd-accent);
}

.zd-latest-d {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--zd-muted);
}

.zd-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 22px;
	padding: 18px 10px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 14px;
	box-shadow: 0 8px 24px -20px rgba(17, 24, 39, .4);
}

.zd-stats > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	border-left: 1px solid var(--zd-line);
}

.zd-stats > div:first-child {
	border-left: 0;
}

.zd-stats strong {
	font-size: 22px;
	line-height: 1.1;
	color: var(--zd-ink);
}

.zd-stats span {
	font-size: 13px;
	color: var(--zd-muted);
}

/* ============ 通用区块 ============ */
.zd-sec {
	padding: 46px 0;
}

.zd-sec-alt {
	background: var(--zd-bg);
}

.zd-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.zd-sec-head h2 {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--zd-ink);
}

.zd-sec-head p {
	margin: 0;
	font-size: 14px;
	color: var(--zd-muted);
}

.zd-sec-more {
	flex: none;
	font-size: 14px;
	color: var(--zd-accent);
	white-space: nowrap;
}

/* ============ 资讯卡片 ============ */
.zd-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.zd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease;
}

.zd-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 36px -24px rgba(17, 24, 39, .45);
}

.zd-card-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef1f5, #dfe4ea);
	overflow: hidden;
}

.zd-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.zd-card:hover .zd-card-img img {
	transform: scale(1.05);
}

.zd-card-body {
	flex: 1;
	padding: 15px 18px 18px;
	display: flex;
	flex-direction: column;
}

.zd-card-body h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--zd-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-card-body h3 a:hover {
	color: var(--zd-accent);
}

.zd-card-body p {
	margin: 9px 0 12px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--zd-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-card-body .zd-date {
	margin-top: auto;
}

/* ============ 分类区 + 侧栏 ============ */
.zd-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 28px;
	align-items: start;
}

.zd-cat {
	margin-bottom: 22px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 14px;
}

.zd-cat:last-child {
	margin-bottom: 0;
}

.zd-cat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--zd-line);
}

.zd-cat-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--zd-ink);
}

.zd-cat-head h2 a:hover {
	color: var(--zd-accent);
}

.zd-cat-count {
	font-size: 12px;
	color: var(--zd-muted);
}

.zd-cat-more {
	margin-left: auto;
	font-size: 13px;
	color: var(--zd-accent);
	white-space: nowrap;
}

.zd-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.zd-cat-item {
	display: flex;
	gap: 12px;
	padding: 8px;
	border-radius: 10px;
	transition: background .25s ease;
}

.zd-cat-item:hover {
	background: #f6f8fa;
}

.zd-cat-img {
	flex: none;
	width: 120px;
	height: 82px;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(135deg, #eef1f5, #dfe4ea);
}

.zd-cat-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zd-cat-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.zd-cat-info strong {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--zd-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-cat-item:hover .zd-cat-info strong {
	color: var(--zd-accent);
}

.zd-cat-info em {
	font-style: normal;
	font-size: 12px;
	color: var(--zd-muted);
}

.zd-aside {
	position: sticky;
	top: 16px;
}

.zd-box {
	margin-bottom: 20px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 14px;
}

.zd-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.zd-box-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--zd-ink);
}

.zd-box-head a {
	font-size: 12px;
	color: var(--zd-accent);
}

.zd-prod-mini {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--zd-line);
}

.zd-prod-mini:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.zd-prod-mini-img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f4f7;
}

.zd-prod-mini-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zd-prod-mini-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	min-width: 0;
}

.zd-prod-mini-info strong {
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--zd-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-prod-mini:hover .zd-prod-mini-info strong {
	color: var(--zd-accent);
}

.zd-prod-mini-info .zd-price {
	font-size: 14px;
}

.zd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zd-chips a {
	padding: 6px 12px;
	border: 1px solid var(--zd-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--zd-body);
	transition: all .25s ease;
}

.zd-chips a:hover {
	border-color: var(--zd-accent);
	color: var(--zd-accent);
	background: #fff5f2;
}

.zd-side-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zd-side-list li {
	padding: 9px 0;
	border-bottom: 1px dashed var(--zd-line);
}

.zd-side-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.zd-side-list a {
	display: -webkit-box;
	font-size: 13px;
	line-height: 1.5;
	color: var(--zd-body);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-side-list a:hover {
	color: var(--zd-accent);
}

.zd-cta {
	display: block;
	padding: 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--zd-accent), var(--zd-accent-dark));
	color: #fff !important;
	box-shadow: 0 16px 30px -20px rgba(255, 87, 51, .8);
}

.zd-cta strong {
	display: block;
	font-size: 16px;
	margin-bottom: 6px;
}

.zd-cta span {
	font-size: 13px;
	line-height: 1.5;
	opacity: .92;
}

/* ============ 商品区 ============ */
.zd-prod-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.zd-prod-cats a {
	padding: 7px 14px;
	background: #f2f4f7;
	border-radius: 999px;
	font-size: 13px;
	color: var(--zd-body);
	transition: all .25s ease;
}

.zd-prod-cats a:hover {
	background: var(--zd-accent);
	color: #fff;
}

.zd-prods {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.zd-prod {
	display: flex;
	flex-direction: column;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 12px;
	transition: box-shadow .28s ease, transform .28s ease;
}

.zd-prod:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 34px -26px rgba(17, 24, 39, .5);
}

.zd-prod-img {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f8fa;
}

.zd-prod-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.zd-prod:hover .zd-prod-img img {
	transform: scale(1.05);
}

.zd-prod strong {
	min-height: 38px;
	margin: 10px 2px 8px;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--zd-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.zd-prod .zd-price {
	margin: 0 2px 2px;
	font-size: 15px;
}

/* ============ 移动端导航 ============ */
.zd-mnav {
	display: none;
}

/* 窄屏改用 logo 栏 + 横向分类导航，避免桌面导航换行溢出后被首屏遮挡 */
@media (max-width: 1240px) {
	#head {
		display: none;
	}

	.head_s {
		display: block !important;
		float: none;
		width: 100%;
		overflow: hidden;
	}

	.zd-mnav {
		display: flex;
		gap: 18px;
		overflow-x: auto;
		padding: 10px 16px;
		background: #fff;
		border-top: 1px solid #e8ebf0;
		border-bottom: 1px solid #e8ebf0;
		-webkit-overflow-scrolling: touch;
	}

	.zd-mnav a {
		flex: none;
		font-size: 14px;
		color: #333a45;
		white-space: nowrap;
	}

	.zd-mnav a:first-child {
		color: #ff5733;
		font-weight: 600;
	}
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
	.zd-hero-main {
		grid-template-columns: 1fr;
	}

	.zd-hero-card,
	.zd-hero-info {
		min-height: 400px;
	}

	.zd-grid {
		grid-template-columns: 1fr;
	}

	.zd-aside {
		position: static;
	}

	.zd-prods {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.zd-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.zd-hero-info h1 {
		font-size: 26px;
	}

	.zd-prods {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.zd-wrap {
		padding: 0 14px;
	}

	.zd-hero {
		padding-top: 16px;
	}

	.zd-hero-card,
	.zd-hero-info {
		min-height: 300px;
	}

	.zd-hero-info {
		padding: 20px;
	}

	.zd-hero-info h1 {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.zd-hero-info p {
		font-size: 13px;
		margin-bottom: 10px;
	}

	.zd-hero-side {
		padding: 16px;
	}

	.zd-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px 0;
		padding: 16px 6px;
	}

	.zd-stats > div:nth-child(3) {
		border-left: 0;
	}

	.zd-sec {
		padding: 30px 0;
	}

	.zd-sec-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 18px;
	}

	.zd-sec-head h2 {
		font-size: 20px;
	}

	.zd-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.zd-cat {
		padding: 16px;
	}

	.zd-cat-grid {
		grid-template-columns: 1fr;
	}

	.zd-cat-img {
		width: 104px;
		height: 74px;
	}

	.zd-prods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.zd-prod strong {
		min-height: 0;
	}
}
