/*
Theme Name: HZMH Clinic
Theme URI: https://www.hzmhzx.com/
Author: 名韩整形
Description: 整形美容医院官网主题（PC 与手机端共用一套后台），1:1 复刻重庆当代整形官网设计体系，基于 AstroWind 视觉规范。含医生团队、整形项目、产品目录、科普知识、新闻动态、荣誉资质、常见问题等模块。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hzmh
*/

/* 主题样式主体在 assets/css/layout.css（编译版），此文件仅作补充修正。 */

/* ---------- 移动端导航 ---------- */
.hzmh-nav { display: none; }
.hzmh-nav.is-open {
	display: block !important;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid #f3f4f6;
	border-bottom: 1px solid #f3f4f6;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	box-shadow: 0 16px 32px rgba(0, 0, 0, .07);
	z-index: 50;
}
.dark .hzmh-nav.is-open { background: #181212; border-color: #1e293b; }
@media (min-width: 768px) {
	.hzmh-nav { display: flex; }
	.hzmh-nav.is-open { display: flex !important; }
}

/* ---------- 头部滚动背景（兜底，layout.css 已有同名规则） ---------- */
#header.scroll > div:first-child {
	background-color: #ffffffe6;
	-webkit-backdrop-filter: blur(8px) saturate(180%);
	backdrop-filter: blur(8px) saturate(180%);
}
.dark #header.scroll > div:first-child { background-color: #181212e6; }

/* ---------- 正文 ---------- */
.prose img { border-radius: 8px; height: auto; }
.prose table { display: block; width: 100%; overflow-x: auto; }
.prose iframe { max-width: 100%; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .85em; color: #6b7280; text-align: center; margin-top: .6em; }

/* 正文内图片说明（原站居中灰色小字） */
.prose p > em:only-child { display: block; font-size: .85em; color: #6b7280; text-align: center; font-style: normal; }

/* ---------- 分页 ---------- */
.page-numbers { text-decoration: none; }
.page-numbers.current { pointer-events: none; }

/* ---------- 列表卡片 ---------- */
.hzmh-grid-card img { transition: transform .35s ease; }
.hzmh-grid-card:hover img { transform: scale(1.04); }

/* ---------- 后台编辑器里图片不溢出 ---------- */
.entry-content img { max-width: 100%; height: auto; }

/* ---------- 无障碍 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* =========================================================
   品牌字标与首页首屏（这些类在预编译的 layout.css 中不存在，
   因此在这里用主题自有样式实现，避免依赖 Tailwind 构建）
   ========================================================= */

/* ---------- 品牌字标 ---------- */
.mh-logo { display: flex; align-items: center; gap: .625rem; margin-left: .25rem; }
.mh-logo__mark {
	display: flex; align-items: center; justify-content: center;
	width: 2.25rem; height: 2.25rem; border-radius: .5rem; flex: 0 0 auto;
	background: linear-gradient(135deg, #D6000F, #A0000D);
	color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1;
	box-shadow: 0 2px 6px rgba(160, 0, 13, .25);
}
.mh-logo__txt { display: flex; flex-direction: column; line-height: 1; }
.mh-logo__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--aw-color-text-default, #111827); }
.mh-logo__sub {
	margin-top: .375rem; font-size: .5rem; font-weight: 500;
	letter-spacing: .26em; text-transform: uppercase; color: #6b7280;
}
.dark .mh-logo__sub { color: #9ca3af; }
@media (min-width: 768px) { .mh-logo__name { font-size: 1.35rem; } }

/* ---------- 首页首屏：PC 横幅 ---------- */
.mh-hero { position: relative; }
.mh-hero__banner { display: none; position: relative; overflow: hidden; }
@media (min-width: 640px) { .mh-hero__banner { display: block; } }

.mh-hero__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #A8000E 0%, #D6000F 50%, #8F000C 100%); }
.mh-hero__diag { position: absolute; background: rgba(255, 255, 255, .06); transform: rotate(16deg); }
.mh-hero__diag--1 { top: -7rem; right: 26%; height: 520px; width: 11rem; }
.mh-hero__diag--2 { top: -5rem; right: 13%; height: 460px; width: 5rem; background: rgba(255, 255, 255, .045); }
.mh-hero__diag--3 { top: -3rem; right: 4%; height: 400px; width: 2.5rem; background: rgba(255, 255, 255, .035); }
.mh-hero__wm {
	position: absolute; right: -1.5rem; bottom: -5rem; pointer-events: none; user-select: none;
	font-weight: 700; font-size: 15rem; line-height: 1; letter-spacing: -.05em;
	color: #fff; opacity: .06;
}
.mh-hero__inner {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	gap: 2.5rem; max-width: 80rem; margin: 0 auto; padding: 4rem 2rem; color: #fff;
}
.mh-hero__text { min-width: 0; }
.mh-hero__eyebrow { margin: 0; font-size: .8rem; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.mh-hero__title { margin: 1.5rem 0 0; font-size: 3.4rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mh-hero__slogan { display: flex; align-items: center; gap: .875rem; margin: 1.5rem 0 0; font-size: 1.25rem; letter-spacing: .14em; }
.mh-hero__slogan i { display: inline-block; width: 2.5rem; height: 2px; background: rgba(255, 255, 255, .75); flex: 0 0 auto; }
.mh-hero__intro { margin: 1.5rem 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.75; color: rgba(255, 255, 255, .85); }
.mh-hero__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.mh-hero__btns a { min-width: 9.5rem; }

.mh-hero__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 26rem; flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
.mh-hero__card { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: .75rem; background: rgba(255, 255, 255, .07); }
.mh-hero__card i { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(255, 255, 255, .15); flex: 0 0 auto; }
.mh-hero__card svg { width: 1.25rem; height: 1.25rem; }
.mh-hero__card-txt { display: flex; flex-direction: column; min-width: 0; }
.mh-hero__card-txt b { font-size: .85rem; font-weight: 600; line-height: 1.3; color: #fff; }
.mh-hero__card-txt em { margin-top: .15rem; font-size: .72rem; font-style: normal; font-weight: 400; line-height: 1.3; color: rgba(255, 255, 255, .68); }

@media (max-width: 1180px) {
	.mh-hero__title { font-size: 2.75rem; }
	.mh-hero__cards { width: 22rem; }
}
@media (max-width: 900px) {
	.mh-hero__inner { padding: 3rem 1.5rem; gap: 1.5rem; }
	.mh-hero__cards { width: 19rem; }
	.mh-hero__card-txt b { font-size: .8rem; }
}

/* ---------- 首页首屏：手机渐变 ---------- */
.mh-hero__m {
	padding: 3.5rem 1.25rem 3rem; text-align: center; color: #fff;
	background: linear-gradient(135deg, #B00010 0%, #D6000F 50%, #8F000C 100%);
}
@media (min-width: 640px) { .mh-hero__m { display: none; } }
.mh-hero__m .mh-hero__eyebrow { color: rgba(255, 255, 255, .75); }
.mh-hero__m-title { margin: .75rem 0 0; font-size: 1.6rem; line-height: 1.25; font-weight: 700; }
.mh-hero__m-slogan { display: flex; align-items: center; justify-content: center; gap: .625rem; margin: 1rem 0 0; font-size: .95rem; letter-spacing: .12em; }
.mh-hero__m-slogan i { display: inline-block; width: 1.5rem; height: 2px; background: rgba(255, 255, 255, .8); flex: 0 0 auto; }
.mh-hero__m-intro { margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.mh-hero__m-btns { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.mh-hero__m-btns a { width: 100%; }
.mh-hero__m-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .75rem; color: rgba(255, 255, 255, .8); }
.mh-hero__m-list li { display: flex; align-items: center; gap: .375rem; }
.mh-hero__m-list li::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .8); }

/* =========================================================
   移动端：右下角咨询浮层改为底部固定双按钮条
   （原浮层在 390px 下会遮挡正文）
   ========================================================= */
@media (max-width: 767px) {
	.consult-dock {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100% !important;
		z-index: 40;
	}
	.consult-panel {
		display: flex !important;
		flex-direction: row !important;
		width: 100% !important;
		border-radius: 0 !important;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, .14) !important;
		overflow: hidden;
	}
	.consult-item {
		flex: 1 1 0 !important;
		border-radius: 0 !important;
		min-height: 54px;
		padding: 7px 0 !important;
	}
	.consult-item .consult-icon { width: 20px; height: 20px; }
	.consult-item .consult-label { font-size: 13px; line-height: 1.2; }
	.consult-tip { display: none !important; }
	.consult-collapse,
	.consult-tab { display: none !important; }
	body { padding-bottom: 54px; }
}


/* =========================================================
   品牌 Logo（图片版）
   原图 2838×654（约 4.34:1），透明底
   ========================================================= */
.mh-logo-img {
	display: block;
	height: 2.5rem;
	width: auto;
	max-width: 100%;
}
@media (min-width: 768px) {
	.mh-logo-img { height: 3rem; }
}
.mh-logo-img--footer { height: 2.5rem; }

/* 深色模式：黑字标需要浅底才看得清 */
.dark .mh-logo-img {
	background: #fff;
	padding: 3px 8px;
	border-radius: 6px;
	box-sizing: content-box;
}
