/* ==========================================================
   树 · 家庭网站 — 首页（杂志封面版 V3）
   配色沿用站点：主色 #c94663 / 深蓝 #364050
   ========================================================== */

.hm-wrap {
	text-shadow: none;
}

/* ---------- 顶部封面：左大图 + 右数据面板 ---------- */
.hm-mag {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(24, 31, 44, 0.22);
	margin-bottom: 2.2em;
	background: #fff;
}
.hm-cover {
	position: relative;
	min-height: 380px;
	background: linear-gradient(135deg, #6f7d92 0%, #4a5568 55%, #364050 100%);
}
.hm-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hm-cover img.is-hidden { display: none; }

/* 还没有照片时（或未登录）：显示品牌底图 */
.hm-cover.is-empty::before {
	content: '树';
	position: absolute;
	left: 50%;
	top: 40%;
	transform: translate(-50%, -50%);
	font-size: 7em;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.1);
	line-height: 1;
	letter-spacing: 0.06em;
}
.hm-flag {
	position: absolute;
	left: 1.6em;
	top: 1.6em;
	z-index: 2;
	background: rgba(255, 255, 255, 0.93);
	color: #c94663;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.12em;
	padding: 0.45em 1.1em;
	border-radius: 999px;
}
.hm-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 3.4em 1.8em 1.7em;
	background: linear-gradient(to top, rgba(18, 22, 32, 0.82), rgba(18, 22, 32, 0.12) 70%, transparent);
	color: #fff;
	font-size: 0.8em;
	line-height: 1.7;
	letter-spacing: 0.03em;
}
.hm-cap a {
	color: #fff;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
	text-decoration: none;
}
.hm-cap .hm-cap-tip {
	display: block;
	margin-top: 0.4em;
	font-size: 0.88em;
	color: rgba(255, 255, 255, 0.6);
}

.hm-panel {
	padding: 1.9em 1.8em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(160deg, #3a4557 0%, #364050 60%, #2d3644 100%);
	color: #fff;
}
.hm-panel h2 {
	margin: 0 0 0.3em;
	font-size: 1.28em;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}
.hm-sub {
	font-size: 0.74em;
	color: rgba(255, 255, 255, 0.62);
	margin: 0 0 1.4em;
	letter-spacing: 0.05em;
}
.hm-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.8em;
	padding: 0.78em 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hm-row:first-of-type { border-top: none; }
.hm-row .hm-lab {
	font-size: 0.76em;
	color: rgba(255, 255, 255, 0.72);
	white-space: nowrap;
}
.hm-row .hm-val {
	font-size: 1.42em;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	white-space: nowrap;
}
.hm-row .hm-val small {
	font-size: 0.5em;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.55);
	margin-left: 0.25em;
}
.hm-row .hm-val.hm-loading {
	font-size: 1.1em;
	color: rgba(255, 255, 255, 0.4);
}

/* ---------- 三栏 ---------- */
.hm-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4em;
	margin-bottom: 1.5em;
}
.hm-col {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(54, 64, 80, 0.1);
	padding: 1.4em 1.5em 1.5em;
	display: flex;
	flex-direction: column;
}
.hm-col h4 {
	margin: 0 0 0.5em;
	font-size: 0.9em;
	font-weight: 700;
	color: #364050;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6em;
}
.hm-col h4 .hm-h4-l {
	display: flex;
	align-items: center;
	min-width: 0;
}
.hm-col h4 .hm-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 0.55em;
	flex: none;
}
.hm-col h4 .hm-h4-num {
	font-size: 0.78em;
	font-weight: 700;
	color: #a9b1bd;
	white-space: nowrap;
}
.hm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}
.hm-list li {
	padding: 0.62em 0;
	border-bottom: 1px dashed #eef0f3;
	font-size: 0.78em;
	line-height: 1.6;
	color: #556;
}
.hm-list li:last-child { border-bottom: none; }
.hm-list li a {
	color: #556;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}
.hm-list li a:hover { color: #c94663; }
.hm-list .hm-meta {
	display: block;
	font-size: 0.9em;
	color: #a9b1bd;
	margin-top: 0.2em;
}
.hm-stars {
	color: #e6a23c;
	letter-spacing: 0.06em;
	font-size: 0.95em;
}

/* 空状态 / 未登录提示 */
.hm-empty {
	text-align: center;
	padding: 1.6em 0.5em;
	color: #a9b1bd;
	font-size: 0.78em;
	line-height: 1.9;
}
.hm-empty .hm-lock {
	display: block;
	font-size: 1.9em;
	margin-bottom: 0.35em;
	opacity: 0.55;
}
.hm-empty button {
	margin-top: 0.9em;
	padding: 0.55em 1.3em;
	border: none;
	border-radius: 9px;
	background: #c94663;
	color: #fff;
	font-size: 0.95em;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}
.hm-empty button:hover { background: #b23a56; }

.hm-skel {
	display: inline-block;
	min-width: 3.6em;
	height: 1em;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.16);
	vertical-align: middle;
}

/* 页脚小字 */
.hm-foot {
	text-align: center;
	font-size: 0.7em;
	color: #b6bdc8;
	margin: 2.4em 0 0;
	line-height: 2;
}
.hm-foot a { color: #b6bdc8; border-bottom: 1px dotted #d5dae1; text-decoration: none; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1100px) {
	.hm-mag { grid-template-columns: 1fr; }
	.hm-cover { min-height: 250px; }
	.hm-cols { grid-template-columns: 1fr; }
}
@media screen and (max-width: 736px) {
	.hm-cover { min-height: 220px; }
	.hm-cap { padding: 2.4em 1.2em 1.2em; font-size: 0.74em; }
	.hm-panel { padding: 1.4em 1.3em; }
	.hm-flag { left: 1em; top: 1em; font-size: 0.64em; }
}
