/* 首页改版样式：仅作用于 .zd-home，避免影响其它页面原有样式 */

body {
	min-width: 0 !important;
}

.zd-home {
	--zd-ink: #151922;
	--zd-ink-soft: #2a3040;
	--zd-accent: #b4232b;
	--zd-accent-dark: #8f171e;
	--zd-cream: #faf6f2;
	--zd-card: #ffffff;
	--zd-line: #e8e1da;
	--zd-muted: #6b6f76;
	background: var(--zd-cream);
	color: var(--zd-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	overflow: hidden;
}

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

.zd-home a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.zd-home a:hover {
	color: var(--zd-accent);
	text-decoration: none;
}

.zd-home h1,
.zd-home h2,
.zd-home h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: -.01em;
}

.zd-home p {
	margin: 0;
}

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

.zd-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--zd-accent);
	margin-bottom: 10px;
}

/* 顶部主视觉 */
.zd-hero {
	position: relative;
	background:
		radial-gradient(circle at 82% 18%, rgba(180, 35, 43, .42), transparent 42%),
		radial-gradient(circle at 8% 92%, rgba(90, 104, 140, .35), transparent 46%),
		var(--zd-ink);
	color: #fff;
	padding: 40px 0 34px;
}

.zd-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.zd-hero-copy h1 {
	font-size: 34px;
	line-height: 1.12;
	margin-bottom: 14px;
}

.zd-hero-copy .zd-kicker {
	color: #f19aa0;
}

.zd-lead {
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .78);
	max-width: 540px;
}

.zd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.zd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid transparent;
}

.zd-btn-primary {
	background: #fff;
	color: var(--zd-ink) !important;
}

.zd-btn-primary:hover {
	background: #f3e9e2;
	color: var(--zd-ink) !important;
}

.zd-btn-ghost {
	border-color: rgba(255, 255, 255, .34);
	color: #fff !important;
}

.zd-btn-ghost:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff !important;
}

.zd-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
	margin: 28px 0 0;
	padding: 22px 0 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.zd-stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zd-stats strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.1;
}

.zd-stats span {
	font-size: 12px;
	color: rgba(255, 255, 255, .6);
	letter-spacing: .02em;
}

/* 右侧榜单 */
.zd-hero-panel {
	background: #fff;
	color: var(--zd-ink);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .7);
}

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

.zd-panel-head span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

.zd-panel-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.zd-panel-list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px dashed #efe8e1;
}

.zd-panel-list li:last-child a {
	border-bottom: 0;
}

.zd-panel-rank {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--zd-cream);
	color: var(--zd-accent);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.zd-panel-name {
	flex: 1;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 700;
}

.zd-panel-origin {
	font-size: 11px;
	color: var(--zd-muted);
	background: #f4f1ee;
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
}

.zd-panel-note {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--zd-muted);
}

/* 通用区块 */
.zd-section {
	padding-top: 44px;
}

.zd-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
}

.zd-section-head h2 {
	font-size: 26px;
	line-height: 1.15;
}

.zd-more {
	font-size: 13px;
	font-weight: 700;
	color: var(--zd-accent) !important;
	white-space: nowrap;
}

/* 热门名字列表 */
.zd-popular-grid {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.zd-rank-list {
	background: var(--zd-card);
	border: 1px solid var(--zd-line);
	border-radius: 16px;
	padding: 4px 16px;
}

.zd-rank-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid #f1ece7;
}

.zd-rank-item:last-child {
	border-bottom: 0;
}

.zd-rank {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--zd-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.zd-rank-item:nth-child(-n+3) .zd-rank {
	background: var(--zd-accent);
}

.zd-rank-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.zd-rank-body strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	line-height: 1.2;
}

.zd-rank-body em {
	font-style: normal;
	font-size: 12px;
	line-height: 1.45;
	color: var(--zd-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zd-rank-origin {
	flex: 0 0 auto;
	font-size: 11px;
	color: var(--zd-muted);
	background: #f6f2ee;
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
}

.zd-rank-more {
	display: block;
	padding: 13px 0 12px;
	border-top: 1px solid #f1ece7;
	font-size: 13px;
	font-weight: 700;
	color: var(--zd-accent) !important;
}

.zd-letters {
	background: var(--zd-ink);
	color: #fff;
	border-radius: 16px;
	padding: 20px;
}

.zd-letters h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
	margin-bottom: 10px;
}

.zd-letters h3:not(:first-child) {
	margin-top: 18px;
}

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

.zd-chips a {
	width: 29px;
	height: 29px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .09);
	color: rgba(255, 255, 255, .9) !important;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.zd-chips a:hover {
	background: var(--zd-accent);
	color: #fff !important;
}

.zd-letter-note {
	margin-top: 16px;
	font-size: 12px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .55);
}

/* 宠物名字 */
.zd-pet-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.zd-pet-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 132px;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(150deg, #fff 0%, #f7efe8 100%);
	border: 1px solid var(--zd-line);
}

.zd-pet-card:hover {
	transform: translateY(-3px);
	border-color: #d9c8bc;
}

.zd-pet-count {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--zd-accent);
}

.zd-pet-card h3 {
	font-size: 22px;
	line-height: 1.15;
}

.zd-pet-go {
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
	color: var(--zd-muted);
}

.zd-pet-names {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.zd-mini {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 12px;
}

.zd-mini strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
}

.zd-mini span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--zd-accent);
}

.zd-mini em {
	font-style: normal;
	font-size: 12px;
	color: var(--zd-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 资讯栏目 */
.zd-cat-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.zd-cat-row a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border-radius: 14px;
	background: var(--zd-ink);
	color: #fff !important;
}

.zd-cat-row a:hover {
	background: var(--zd-accent);
	color: #fff !important;
}

.zd-cat-row h3 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.zd-cat-row span {
	font-size: 11px;
	color: rgba(255, 255, 255, .6);
}

.zd-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.zd-news-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--zd-line);
	border-radius: 14px;
}

.zd-news-card:hover {
	border-color: #d9c8bc;
	transform: translateY(-2px);
}

.zd-news-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--zd-accent);
}

.zd-news-card h3 {
	font-size: 18px;
	line-height: 1.32;
}

.zd-news-card p {
	font-size: 13px;
	line-height: 1.65;
	color: var(--zd-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.zd-news-card time {
	margin-top: auto;
	font-size: 11px;
	color: #9b9fa6;
}

/* 平板 */
@media (min-width: 640px) {	.zd-hero {
		padding: 56px 0 48px;
	}

	.zd-hero-copy h1 {
		font-size: 44px;
	}

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

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

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

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

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

/* 桌面 */
@media (min-width: 1000px) {
	.zd-wrap {
		padding: 0 24px;
	}

	.zd-hero {
		padding: 66px 0 58px;
	}

	.zd-hero-inner {
		flex-direction: row;
		align-items: center;
		gap: 56px;
	}

	.zd-hero-copy {
		flex: 1 1 auto;
	}

	.zd-hero-copy h1 {
		font-size: 52px;
		max-width: 620px;
	}

	.zd-lead {
		font-size: 16px;
	}

	.zd-hero-panel {
		flex: 0 0 360px;
		padding: 24px;
	}

	.zd-section {
		padding-top: 64px;
	}

	.zd-section-head h2 {
		font-size: 32px;
	}

	.zd-popular-grid {
		flex-direction: row;
		gap: 20px;
	}

	.zd-rank-list {
		flex: 1 1 auto;
		padding: 4px 22px;
	}

	.zd-rank-item {
		padding: 14px 0;
	}

	.zd-letters {
		flex: 0 0 320px;
		padding: 24px;
	}

	.zd-chips a {
		width: 31px;
		height: 31px;
	}

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

	.zd-cat-row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* 首页头部在平板与窄桌面下的自适应 */
@media (min-width: 751px) {
	.header .container {
		min-width: 0 !important;
		width: 100% !important;
		max-width: 1200px;
		padding: 0 18px;
	}
}

@media (min-width: 751px) and (max-width: 999px) {
	.header .logo img {
		width: 140px;
		height: auto;
	}

	.header .header-left .nav-item a.header-tag {
		padding: 0 6px;
		font-size: 13px;
	}

	.header .header-left .nav-item:last-child {
		display: none;
	}
}
