/*
 Theme Name:   Astra 子主题
 Template:     astra
 Text Domain:  astra-child
*/

/* ================================================================
   案例列表页（archive-cases.php）专用样式
   ================================================================ */
/* 归档页头：英文大标题 */
.cases-archive-head {
	max-width: 760px;
	margin: 8px auto 44px;
	padding: 0 20px;
	text-align: center;
}
.cases-eyebrow {
	display: inline-block;
	color: #e49a07;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.cases-head-line {
	display: block;
	width: 48px;
	height: 3px;
	background: #e49a07;
	margin: 0 auto 18px;
}
.cases-archive-title {
	font-family: 'Playfair Display', serif;
	font-size: 42px;
	line-height: 1.2;
	margin-bottom: 16px;
	color: #000;
}
.cases-archive-lead {
	color: #7a7f8a;
	font-size: 17px;
	line-height: 1.7;
	max-width: 600px;
	margin: 0 auto;
}

.cases-list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1320px;
	margin: 40px auto;
	padding: 0 20px;
}

.cases-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.cases-item:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	transform: translateY(-3px);
}

/* 图片区：固定 4:3 比例，无特色图时也不塌陷 */
.cases-list-grid .cases-item-img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}
.cases-list-grid .cases-item-img a {
	display: block;
	height: 100%;
}
.cases-list-grid .cases-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* 无特色图时的占位提示 */
.cases-list-grid .cases-item-img .cases-item-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #9a9a9a;
	font-size: 14px;
}

.cases-list-grid .cases-item-title {
	margin: 14px 16px 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	font-family: 'Inter', sans-serif;
}
.cases-list-grid .cases-item-title a {
	color: #000;
	text-decoration: none;
}
.cases-list-grid .cases-item-title a:hover {
	color: #e49a07;
}

.no-cases {
	text-align: center;
	font-size: 18px;
	padding: 60px 0;
	color: #7a7f8a;
}

/* 分页（astra_pagination / paginate_links 通用样式） */
.ast-pagination,
.navigation.pagination {
	margin: 44px 0 0;
	text-align: center;
}
.ast-pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	color: #333;
	font-size: 15px;
	font-weight: 500;
	margin: 4px;
	transition: .2s;
	text-decoration: none;
}
.ast-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
	border-color: #e49a07;
	background: #fdf6e6;
	color: #000;
}
.ast-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	background: #000;
	color: #fff;
	border-color: #000;
}


/* 平板：2 列（跟 Elementor 平板断点一致 ≤1024px） */

/* 手机：1 列（跟 Elementor 手机断点一致 ≤767px；双类名保证压过平板 2 列规则） */


/* ================================================================
   cases 系列页面：全白背景统一
   （Astra 分隔容器 ast-separate-container 会给 body 灰底 + 单篇白卡片，
    与全站白底风格割裂，这里针对 cases 列表/详情强制白底、去掉卡片化）
   ================================================================ */
body.single-cases.ast-separate-container,
body.post-type-archive-cases.ast-separate-container {
	background-color: #fff;
}
/* 去掉单篇白色卡片的 padding / 阴影 / 背景（间距交给 .cases-single-wrap 自己管） */
body.single-cases.ast-separate-container .ast-article-single,
body.single-cases.ast-separate-container .ast-article-inner {
	padding: 0;
	box-shadow: none;
	background: transparent;
}
/* 去掉 Astra 给详情页图片加的投影 */
body.single-cases .ast-article-single img,
body.single-cases .ast-article-single figure {
	box-shadow: none;
}

/* ================================================================
   案例详情页（single-cases.php）专用样式
   ================================================================ */
.cases-single-wrap {
	max-width: 1320px;          /* 封面/标题/正文/导航统一容器 */
	margin: 0 auto;
	padding: 50px 20px 80px;
}

/* ① 封面图：全宽、固定比例、圆角 */
.cases-cover-link,
.cases-cover-ph {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;       /* 桌面固定比例，裁切填充 */
	border-radius: 12px;
	overflow: hidden;
	background: #f1f1f1;
}
.cases-cover-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.cases-cover-link:hover .cases-cover-img {
	transform: scale(1.02);
}
.cases-cover-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7a7f8a;
	font-size: 15px;
	letter-spacing: .5px;
}

/* ② 标题区（居中，与列表页页头统一：复用 .cases-eyebrow / .cases-head-line） */
.cases-single-head {
	text-align: center;
	max-width: 900px;
	margin: 42px auto 32px;
}
.cases-single-title {
	font-family: 'Playfair Display', serif;
	font-size: 42px;
	line-height: 1.2;
	color: #000;
	margin: 0;
}

/* ③ 正文：1320px 容器内排版（含古腾堡块样式统一） */
.cases-single-content {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	max-width: 1320px;
}
.cases-single-content p {
	margin: 0 0 1.4em;
}
.cases-single-content h2 {
	font-family: 'Playfair Display', serif;
	font-size: 28px;
	color: #000;
	margin: 1.6em 0 .6em;
}
.cases-single-content h3 {
	font-size: 20px;
	font-weight: 600;
	color: #000;
	margin: 1.4em 0 .5em;
}
.cases-single-content ul,
.cases-single-content ol {
	margin: 0 0 1.4em 1.4em;
	padding: 0;
}
.cases-single-content li {
	margin-bottom: .4em;
}
.cases-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.cases-single-content blockquote {
	border-left: 3px solid #e49a07;
	margin: 1.6em 0;
	padding: .4em 1.2em;
	color: #555;
	font-style: italic;
}
.cases-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
}
.cases-single-content th,
.cases-single-content td {
	border: 1px solid #e5e5e5;
	padding: 10px 14px;
	text-align: left;
}
.cases-single-content th {
	background: #f8f8f8;
}
/* 古腾堡宽对齐块不溢出容器 */
.cases-single-content .alignwide,
.cases-single-content .alignfull {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

/* ⑤ 上下篇案例跳转 */
.cases-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #e5e5e5;
}
.cases-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 26px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.cases-post-nav a:hover {
	border-color: #e49a07;
	background: #fdf8ec;
}
.cases-nav-next {
	text-align: right;
	align-items: flex-end;
}
.cases-nav-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #e49a07;
}
.cases-nav-title {
	font-size: 17px;
	font-weight: 600;
	color: #000;
}
.cases-nav-empty {
	display: none;
}

/* 响应式：电脑 / 平板 / 手机 */



/* ================================================================
   手机端底部固定栏：只固定「底部菜单栏」+「版权 / Privacy Policy」
   Site-wide Footer(post 365) 结构：
     .elementor-365
       ├─ 20a30df  footer-style   桌面版页脚（手机端隐藏）
       ├─ aef5fba  footer-mob
       │    ├─ dd49c4e  菜单 + 联系方式（hidden-desktop / hidden-tablet）
       │    │            ↑ 只在手机显示，【不固定，保持正常文档流随页面滚动】
       │    └─ 2890fec  footer-troub  底部菜单栏（Home / Products / Blog）
       └─ d4044f0  footer-caopy  版权 + Privacy Policy
   不能 fixed 整个 .elementor-365，否则 dd49c4e 会被一起钉住。
   这里只对 2890fec 与 d4044f0 分别 fixed，上下分层；dd49c4e 不写任何规则。
   --mudiya-mob-copy-h = 深灰版权条的实测高度，同时用于菜单栏 bottom 与 body 底部补偿，
   若版权文字在更窄的屏换行变高，把这一个数值调大即可，三处自动同步。
   ⚠️ 深灰背景(#464444)在子容器 e980ab2 上，外层 d4044f0 绝不能强设 height 或白底，
   否则容器比深灰条高，多出来的部分会显示成一条白色空白（2026-11-10 实测踩过）。
   选择器用 elementor-element-<id>，不依赖 footer-troub 等全局类标签。
   仅 <=767px 生效；平板与桌面完全不受影响。
   ================================================================ */
@media (max-width: 767px) {
	:root {
		/* 375x812 视口实测：版权条锁 34px、菜单栏去掉底部内边距后 66px */
		--mudiya-mob-copy-h: 34px;
		--mudiya-mob-menu-h: 66px;
	}

	/* 1) 版权 + Privacy Policy：贴底，高度锁成变量值，
	      保证菜单栏 bottom 与版权条顶边精确对齐，不随设备字号变化出现缝隙 */
	.turbo-footer-template .elementor-element-d4044f0 {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		height: var(--mudiya-mob-copy-h) !important;
		box-sizing: border-box !important;
		z-index: 100002 !important;
		background-color: #464444;
	}

	/* 2) 底部菜单栏：叠在版权块正上方，去掉 Elementor 自带 10px 底部内边距，
	      否则图标文字与版权条之间会露出一条空白带（部分设备上呈白色）。
	      不再设白底，沿用 Elementor 原生灰底，避免浅色渲染时看成间隙。
	      z-index 取 100001：压过 tahefobu 移动菜单容器 99999 与 Astra 页眉 100000，
	      保证上方卡片的三条横线按钮滚到重叠区时，固定菜单栏仍在最上层。 */
	.turbo-footer-template .elementor-element-2890fec {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: var(--mudiya-mob-copy-h) !important;
		z-index: 100001 !important;
		padding-bottom: 0 !important;
	}

	/* 3) dd49c4e（菜单 + 联系方式）不设规则，保持正常文档流 */

	/* 4) 底部补偿 = 固定栏总高（版权 34 + 菜单 66 = 100px），不多留余量。
	      版权条或菜单栏高度有变化，同步改 :root 里的两个变量即可。 */
	body {
		padding-bottom: calc(var(--mudiya-mob-copy-h) + var(--mudiya-mob-menu-h)) !important;
	}
}


/* ================================================================
   产品画廊：transform-origin 跟随鼠标缩放（JS 每帧更新 origin，移动期间 transition=0 即时跟手）
   ================================================================ */
.woocommerce-product-gallery__image {
	overflow: hidden;              /* 放大后裁掉溢出 */
}
.woocommerce-product-gallery .flex-active-slide img,
.woocommerce-product-gallery .wp-post-image {
	cursor: zoom-in;
	will-change: transform, transform-origin;
}
.woocommerce-product-gallery .flex-active-slide img,
.woocommerce-product-gallery .wp-post-image {
	transition: transform .25s ease;
	transform-origin: 50% 50%;     /* 由 JS 动态更新为鼠标百分比 */
	cursor: zoom-in;
}
.woocommerce-product-gallery .flex-active-slide img.mudiya-zooming,
.woocommerce-product-gallery .wp-post-image.mudiya-zooming {
	transform: scale(2);
}


/* ================================================================
   产品详情页重设计（content-single-product.php 配套样式）
   全白底 · 1320px 容器 · #E49A07 点缀 · 跟随鼠标缩放
   ================================================================ */

/* ---- 面包屑 ---- */
.mudiya-breadcrumb{padding:20px 0 10px;font-size:13px;color:#7a7f8a;}
.mudiya-breadcrumb a{color:#7a7f8a;}
.mudiya-breadcrumb a:hover{color:#e49a07;}
.mudiya-breadcrumb .sep{margin:0 8px;color:#ccc;}

/* ---- 详情主体两栏 ---- */
.mudiya-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;padding:10px 0 50px;grid-template-areas:"gallery info";}

.mudiya-gallery .woocommerce-product-gallery__image{overflow:hidden;}
.mudiya-gallery .flex-control-nav{margin-top:14px;}
.mudiya-gallery .woocommerce-product-gallery .flex-active-slide img,
.mudiya-gallery .woocommerce-product-gallery .wp-post-image{cursor:zoom-in;will-change:transform,transform-origin;}
.mudiya-gallery .woocommerce-product-gallery img{transition:transform .25s ease;transform-origin:50% 50%;}

/* ---- 右侧信息 ---- */
.mudiya-p-title{font-family:'Playfair Display',serif;font-size:22px;line-height:1.3;margin-bottom:10px;font-weight:600;}
.mudiya-p-sub{color:#7a7f8a;font-size:12px;line-height:1.55;margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mudiya-p-sub p{margin:0;}

/* 价格块 */

.mudiya-spec{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:10px 0;margin-bottom:24px;}
.mudiya-spec .spec-row{display:flex;gap:16px;padding:7px 0;align-items:flex-start;font-size:14px;}
.mudiya-spec .lbl{min-width:96px;color:#7a7f8a;font-weight:500;}
.mudiya-spec .val{flex:1;color:#000;}
.mudiya-size{margin-bottom:18px;}
.mudiya-label{font-size:13px;color:#7a7f8a;font-weight:500;margin-bottom:10px;}
.mudiya-size-options{display:flex;flex-wrap:wrap;gap:10px;}
.mudiya-size .size-pill{min-width:48px;padding:8px 14px;border:1px solid #e5e5e5;background:#fff;border-radius:4px;font-size:14px;text-align:center;color:#000;cursor:default;}
.mudiya-color{margin-bottom:18px;margin-top:0;}
.mudiya-color-options{display:grid;grid-template-columns:repeat(10,1fr);gap:10px;max-width:100%;}
.mudiya-color .color-switch-btn{width:48px;height:48px;border:1px solid #ddd;border-radius:4px;overflow:hidden;cursor:pointer;background:#fff;padding:0;}
.mudiya-color .color-switch-btn img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-color .color-switch-btn.active{outline:2px solid #e3a82b;outline-offset:2px;}
.mudiya-cta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:0;}
.mudiya-cta a{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px 20px;border-radius:4px;font-weight:600;font-size:15px;transition:.2s;}
.mudiya-cta .btn-primary{background:#e49a07;color:#fff;}
.mudiya-cta .btn-primary:hover{background:#b57d00;}
.mudiya-cta .btn-secondary{background:#000;color:#fff;}
.mudiya-cta .btn-secondary:hover{background:#222;}
.mudiya-tabs{padding:50px 0 20px;}
.mudiya-tab-header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid #e5e5e5;margin-bottom:36px;}
.mudiya-tab-bar{display:flex;gap:0;}
.mudiya-tab-btn{background:none;border:none;padding:14px 24px;cursor:pointer;font-size:15px;color:#333;border-bottom:2px solid transparent;margin-bottom:-1px;transition:.2s;outline:none;}
.mudiya-tab-btn:hover{background:#fff8ec;color:#e49a07;}
.mudiya-tab-btn.active{background:#fff8ec;color:#000;font-weight:600;border-bottom-color:#e49a07;}
.mudiya-help-link{font-size:13px;color:#333;padding-bottom:14px;}
.mudiya-help-link:hover{color:#e49a07;}
.mudiya-tab-pane{display:none;}
.mudiya-tab-pane.active{display:block;}
.mudiya-info-block{max-width:900px;margin:0 auto;}
.mudiya-info-block .info-title{font-size:42px;font-weight:700;color:#000;line-height:1.1;margin-bottom:16px;font-family:'Inter',sans-serif;}
.mudiya-info-block .info-tag{font-size:18px;color:#333;line-height:1.4;margin-bottom:32px;}
.mudiya-info-block .info-image{position:relative;width:100%;aspect-ratio:3/2;background:#f8f8f8;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.mudiya-info-block .info-img{width:100%;height:100%;object-fit:cover;}
.mudiya-info-block .img-placeholder{color:#7a7f8a;font-size:14px;}
.mudiya-info-block .img-badge{position:absolute;left:24px;bottom:24px;background:rgba(255,255,255,.92);padding:8px 18px;border-radius:99px;font-size:14px;font-weight:600;color:#000;}
.mudiya-grid{display:grid;gap:20px;}
.mudiya-grid-12{grid-template-columns:repeat(4,1fr);}
.mudiya-grid-8{grid-template-columns:repeat(4,1fr);}
.mudiya-card{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e5e5e5;transition:.25s;cursor:pointer;display:flex;flex-direction:column;}
.mudiya-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.08);}
.mudiya-card .card-img{aspect-ratio:1/1;background:#f8f8f8;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.mudiya-card .card-img img{width:100%;height:100%;object-fit:cover;}
.mudiya-card .card-body{padding:14px 14px 18px;}
.mudiya-card .card-name{font-size:14px;color:#000;margin-bottom:6px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mudiya-card .card-price{font-size:14px;color:#e49a07;font-weight:600;}
.mudiya-card .card-price .woocommerce-Price-amount{color:#e49a07;}
.no-items{color:#7a7f8a;text-align:center;padding:40px 0;}
.mudiya-recommend{padding:40px 40px 44px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;position:relative;}

.mudiya-recommend .container{max-width:1320px;margin:0 auto;padding:0 20px;}
.mudiya-recommend .section-eyebrow{display:block;color:#e49a07;font-size:12px;font-weight:600;letter-spacing:3px;text-transform:uppercase;margin-bottom:10px;text-align:left;}
.mudiya-recommend .section-title{font-family:'Playfair Display',serif;font-size:20px;text-align:left;border-bottom:1px solid #e5e5e5;padding-bottom:14px;margin:0 0 8px;color:#000;}
.mudiya-recommend .section-sub{text-align:left;color:#7a7f8a;font-size:14px;margin-bottom:36px;}


/* ================================================================
   产品详情页重设计（content-single-product.php 配套样式）
   全白底 · 1320px 容器 · #E49A07 点缀 · 跟随鼠标缩放
   ================================================================ */
.mudiya-breadcrumb{padding:20px 0 10px;font-size:13px;color:#7a7f8a;}
.mudiya-breadcrumb a{color:#7a7f8a;}
.mudiya-breadcrumb a:hover{color:#e49a07;}
.mudiya-breadcrumb .sep{margin:0 8px;color:#ccc;}
.mudiya-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;padding:10px 0 0px;grid-template-areas:"gallery info";}

.mudiya-gallery .woocommerce-product-gallery__image{overflow:hidden;}
.mudiya-gallery .flex-control-nav{margin-top:14px;}
.mudiya-gallery .woocommerce-product-gallery .flex-active-slide img,
.mudiya-gallery .woocommerce-product-gallery .wp-post-image{cursor:zoom-in;will-change:transform,transform-origin;}
.mudiya-gallery .woocommerce-product-gallery img{transition:transform .25s ease;transform-origin:50% 50%;}
.mudiya-p-title{font-family:'Playfair Display',serif;font-size:22px;line-height:1.3;margin-bottom:10px;font-weight:600;}
.mudiya-p-sub{color:#7a7f8a;font-size:12px;line-height:1.55;margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mudiya-p-sub p{margin:0;}
.mudiya-price-block{background:#f8f8f8;padding:16px 20px;border-radius:6px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.mudiya-price-block .price-from{font-size:13px;color:#7a7f8a;}
.mudiya-price-block .price-num{font-size:30px;font-weight:600;color:#e49a07;font-family:'Inter',serif;position:relative;top:0px;}
.mudiya-price-block .currency{font-size:18px;color:#7a7f8a;font-weight:300;margin-right:3px;font-family:'Inter',sans-serif;vertical-align:baseline;position:relative;top:0px;}
.mudiya-price-block .price-mini{font-size:13px;color:#333;}
.mudiya-price-block .badge{display:inline-block;background:#fff;border:1px solid #e49a07;color:#e49a07;padding:2px 10px;border-radius:3px;margin-left:6px;font-weight:600;}
.mudiya-price-block .price-main{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;}
.mudiya-price-block .printing-tip-wrap{align-self:center;}
.mudiya-price-block .printing-cost{font-size:13px;color:#7a7f8a;font-weight:400;}
.mudiya-price-block .printing-tip-wrap{position:relative;display:inline-flex;vertical-align:middle;}
.mudiya-price-block .printing-icon{
    display:inline-flex;align-items:center;justify-content:center;
    width:18px;height:18px;border-radius:50%;
    background:#e5e5e5;color:#666;font-size:12px;font-weight:600;
    cursor:help;line-height:1;transition:background .2s ease;
}
.mudiya-price-block .printing-tip-wrap:hover .printing-icon{background:#d0d0d0;}
.mudiya-price-block .printing-tooltip{
    position:absolute;left:calc(100% + 8px);top:50%;
    transform:translateY(-50%);
    width:210px;max-width:240px;
    background:#333;color:#fff;font-size:10px;line-height:1.4;
    padding:7px 10px;border-radius:6px;
    white-space:normal;text-align:left;
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .2s ease,visibility .2s ease;
    z-index:10;
}
.mudiya-price-block .printing-tooltip::after{
    content:'';position:absolute;top:50%;right:100%;
    transform:translateY(-50%);
    border:6px solid transparent;border-right-color:#333;
}
.mudiya-price-block .printing-tip-wrap:hover .printing-tooltip,
.mudiya-price-block .printing-tip-wrap:focus-within .printing-tooltip{
    opacity:1;visibility:visible;
}

.mudiya-spec{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:10px 0;margin-bottom:24px;}
.mudiya-spec .spec-row{display:flex;gap:16px;padding:7px 0;align-items:flex-start;font-size:14px;}
.mudiya-spec .lbl{min-width:96px;color:#7a7f8a;font-weight:500;}
.mudiya-spec .val{flex:1;color:#000;}
.mudiya-size{margin-bottom:18px;}
.mudiya-label{font-size:13px;color:#7a7f8a;font-weight:500;margin-bottom:10px;}
.mudiya-size-options{display:flex;flex-wrap:wrap;gap:10px;}
.mudiya-size .size-pill{min-width:48px;padding:8px 14px;border:1px solid #e5e5e5;background:#fff;border-radius:4px;font-size:14px;text-align:center;color:#000;cursor:default;}
.mudiya-color{margin-bottom:18px;margin-top:0;}
.mudiya-color-options{display:grid;grid-template-columns:repeat(10,1fr);gap:10px;max-width:100%;}
.mudiya-color .color-switch-btn{width:48px;height:48px;border:1px solid #ddd;border-radius:4px;overflow:hidden;cursor:pointer;background:#fff;padding:0;}
.mudiya-color .color-switch-btn img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-color .color-switch-btn.active{outline:2px solid #e3a82b;outline-offset:2px;}
.mudiya-cta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top: 20px;}
.mudiya-cta a{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px 20px;border-radius:4px;font-weight:600;font-size:15px;transition:.2s;}
.mudiya-cta .btn-primary{background:#e49a07;color:#fff;}
.mudiya-cta .btn-primary:hover{background:#b57d00;}
.mudiya-cta .btn-secondary{background:#000;color:#fff;}
.mudiya-cta .btn-secondary:hover{background:#222;}
.mudiya-tabs{padding:50px 0 20px;}
.mudiya-tab-header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid #e5e5e5;margin-bottom:36px;}
.mudiya-tab-bar{display:flex;gap:0;}
.mudiya-tab-btn{background:none;border:none;padding:14px 24px;cursor:pointer;font-size:15px;color:#333;border-bottom:2px solid transparent;margin-bottom:-1px;transition:.2s;outline:none;}
.mudiya-tab-btn:hover{background:#fff8ec;color:#e49a07;}
.mudiya-tab-btn.active{background:#fff8ec;color:#000;font-weight:600;border-bottom-color:#e49a07;}
.mudiya-help-link{font-size:13px;color:#333;padding-bottom:14px;}
.mudiya-help-link:hover{color:#e49a07;}
.mudiya-tab-pane{display:none;}
.mudiya-tab-pane.active{display:block;}
.mudiya-info-block{max-width:900px;margin:0 auto;}
.mudiya-info-block .info-title{font-size:42px;font-weight:700;color:#000;line-height:1.1;margin-bottom:16px;font-family:'Inter',sans-serif;}
.mudiya-info-block .info-tag{font-size:18px;color:#333;line-height:1.4;margin-bottom:32px;}
.mudiya-info-block .info-image{position:relative;width:100%;aspect-ratio:3/2;background:#f8f8f8;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.mudiya-info-block .info-img{width:100%;height:100%;object-fit:cover;}
.mudiya-info-block .img-placeholder{color:#7a7f8a;font-size:14px;}
.mudiya-info-block .img-badge{position:absolute;left:24px;bottom:24px;background:rgba(255,255,255,.92);padding:8px 18px;border-radius:99px;font-size:14px;font-weight:600;color:#000;}
.mudiya-grid{display:grid;gap:20px;}
.mudiya-grid-12{grid-template-columns:repeat(4,1fr);}
.mudiya-grid-8{grid-template-columns:repeat(4,1fr);}
.mudiya-card{background:#fff;border-radius:6px;overflow:hidden;border:1px solid #e5e5e5;transition:.25s;cursor:pointer;display:flex;flex-direction:column;}
.mudiya-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.08);}
.mudiya-card .card-img{aspect-ratio:1/1;background:#f8f8f8;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.mudiya-card .card-img img{width:100%;height:100%;object-fit:cover;}
.mudiya-card .card-body{padding:14px 14px 18px;}
.mudiya-card .card-name{font-size:14px;color:#000;margin-bottom:6px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mudiya-card .card-price{font-size:14px;color:#e49a07;font-weight:600;}
.mudiya-card .card-price .woocommerce-Price-amount{color:#e49a07;}
.no-items{color:#7a7f8a;text-align:center;padding:40px 0;}
.mudiya-recommend{padding:20px 0px 44px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;position:relative;margin-top:30px;}

.mudiya-recommend .container{max-width:1320px;margin:0 auto;padding:0 20px;}
.mudiya-recommend .section-eyebrow{display:block;color:#e49a07;font-size:12px;font-weight:600;letter-spacing:3px;text-transform:uppercase;margin-bottom:10px;text-align:left;}
.mudiya-recommend .section-title{font-family:'Playfair Display',serif;font-size:20px;text-align:left;border-bottom:1px solid #e5e5e5;padding-bottom:14px;margin:0 0 8px;color:#000;}
.mudiya-recommend .section-sub{text-align:left;color:#7a7f8a;font-size:14px;margin-bottom:36px;}


/* ================================================================
   鑷覆鏌撶敾寤婏紙content-single-product.php 鑷粯锛屼笉渚濊禆 WC 鐢诲粖 JS锛?   涓诲浘鍥哄畾澶у昂瀵搞€佺瓑姣旓紱缂╃暐鍥捐锛涢鑹叉寜閽垏鎹紱璺熼殢缂╂斁
   ================================================================ */
.mudiya-gallery-main{
    width:100%;
    aspect-ratio:1/1;                 /* 涓诲浘姝ｆ柟褰㈢姸 */
    border:1px solid #e5e5e5;
    border-radius:6px;
    overflow:hidden;
    background:#f8f8f8;
    position:relative;
}
.mudiya-gallery-main img{
    width:100%;
    height:100%;
    object-fit:cover;                 /* 閾烘弧瀹瑰櫒锛屼笉鍙樺舰 */
    display:block;
    cursor:zoom-in;
    transition:transform .25s ease;
    transform-origin:50% 50%;
    will-change:transform,transform-origin;
}
.mudiya-gallery-ph{display:flex;align-items:center;justify-content:center;height:100%;color:#7a7f8a;}
.mudiya-gallery-thumbs{
    display:grid;
    grid-template-columns:repeat(5,1fr);   /* 5 涓缉鐣ュ浘涓€琛?*/
    gap:10px;
    margin-top:14px;
}
.mudiya-thumb{
    aspect-ratio:1/1;
    border:1px solid #e5e5e5;
    border-radius:4px;
    overflow:hidden;
    background:#fff;
    cursor:pointer;
    padding:0;
    transition:border-color .2s;
}
.mudiya-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-thumb:hover{border-color:#e49a07;}
.mudiya-thumb.active{border-color:#e49a07;box-shadow:0 0 0 1px #e49a07;}


/* 产品信息 Tab：WC 长描述内容 */
.mudiya-prod-desc{line-height:1.7;color:#2e2e2e;font-size:15px;}
.mudiya-prod-desc img{max-width:100%;height:auto;display:block;}
.mudiya-prod-desc h2,.mudiya-prod-desc h3,.mudiya-prod-desc h4,.mudiya-prod-desc h5{margin:20px 0 10px;line-height:1.3;font-size: 22px;font-family:'Inter',sans-serif;}
.mudiya-prod-desc p{margin:0 0 14px;font-size: 16px;}
.mudiya-prod-desc ul,.mudiya-prod-desc ol{margin:0 0 14px 22px;}
.mudiya-prod-desc table{border-collapse:collapse;width:100%;margin:14px 0;}
.mudiya-prod-desc td,.mudiya-prod-desc th{border:1px solid #e5e5e5;padding:8px 10px;}

/* Color-below-gallery layout: assign grid areas (desktop + responsive) */
.mudiya-gallery{grid-area:gallery;align-self:start;}
.mudiya-info{grid-area:info;}

/* ---- 移动/平板：颜色块用 flex order 提前到画廊正下方（右栏此时为单格 info） ---- */


@media (max-width: 1024px) {
	.cases-list-grid.cases-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* 平板端标题单行显示，超出省略 */
	.cases-list-grid .cases-item-title {
		font-size: 14px;
		line-height: 1.4;
	}
	.cases-list-grid .cases-item-title a {
		display: block;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}


@media (max-width: 1024px) {
	.cases-single-wrap {
		padding: 40px 20px 70px;
	}
	.cases-cover-link,
	.cases-cover-ph {
		aspect-ratio: 16 / 7;
	}
}


@media (max-width:1024px){
    .mudiya-detail-grid{grid-template-columns:1fr;gap:32px;grid-template-areas:"gallery" "info";}
    .mudiya-gallery{position:static;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(3,1fr);}
    .mudiya-color-options{grid-template-columns:repeat(9,1fr);gap:8px;}
}



@media (max-width:1024px){
    .mudiya-detail-grid{grid-template-columns:1fr;gap:32px;grid-template-areas:"gallery" "info";}
    .mudiya-gallery{position:static;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(3,1fr);}
    .mudiya-color-options{grid-template-columns:repeat(9,1fr);gap:8px;}
}



@media (max-width:1024px){
    .mudiya-detail-grid{grid-template-columns:1fr;gap:32px;grid-template-areas:"gallery" "info";}
    .mudiya-gallery{position:static;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(3,1fr);}
	.mudiya-cta{margin-top: 20px;}
    .mudiya-color-options{grid-template-columns:repeat(9,1fr);gap:8px;}
}



@media (max-width:1024px){
    .mudiya-info{display:flex;flex-direction:column;}
    .mudiya-color{order:-1;}
    .mudiya-color-options{grid-template-columns:repeat(9,1fr);gap:8px;}
}



@media (max-width: 640px) {
	.ast-pagination .page-numbers,
	.navigation.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		font-size: 14px;
		margin: 3px;
	}
}


@media (max-width: 767px) {
	.cases-list-grid.cases-list-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		padding: 0 16px;
	}
	/* 手机端标题单行显示，超出省略 */
	.cases-list-grid .cases-item-title {
		margin: 10px 10px 12px;
		font-size: 12px;
		line-height: 1.4;
	}
	.cases-list-grid .cases-item-title a {
		display: block;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.cases-archive-title {
		font-size: 30px;
	}
}


@media (max-width: 767px) {
	.cases-single-wrap {
		padding: 30px 16px 60px;
	}
	.cases-cover-link,
	.cases-cover-ph {
		aspect-ratio: 4 / 3;
	}
	.cases-single-title {
		font-size: 30px;
	}
	/* 上下篇：手机端也保持两列并排 */
	.cases-post-nav {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.cases-post-nav a {
		padding: 14px 12px;
	}
	.cases-nav-label {
		font-size: 10px;
		letter-spacing: 1px;
	}
	.cases-nav-title {
		font-size: 14px;
	}
	.cases-nav-next {
		text-align: right;
		align-items: flex-end;
	}
}


/* 原「@media(max-width:767px){ body{padding-bottom:70px!important} }」已删除（2026-11-10）：
   那是旧单层固定栏时代留下的底部补偿，位置在本文件「手机端底部固定栏」段之后，
   同为 !important 会把新的 calc() 补偿覆盖掉，导致 dd49c4e 底部被固定栏遮住。
   手机端 body 底部留白现统一由本文件「手机端底部固定栏」段管理，勿在此重复添加。 */


@media (max-width:767px){
    .mudiya-p-title{font-size:26px;}
    .mudiya-info-block .info-title{font-size:28px;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(2,1fr);}
    .mudiya-cta{grid-template-columns:1fr 1fr;}
    .mudiya-color-options{grid-template-columns:repeat(5,1fr);max-width:100%;}
    .mudiya-tab-header{flex-direction:column;align-items:flex-start;gap:8px;}
    .mudiya-help-link{display:none;}
    .mudiya-detail-grid{grid-template-columns:1fr;grid-template-areas:"gallery" "info";}
    .mudiya-size-options{gap:6px;}
    .mudiya-size .size-pill{min-width:32px;padding:5px 9px;font-size:12px;}
    .mudiya-color-options{grid-template-columns:repeat(8,1fr);gap:6px;max-width:100%;}
    .mudiya-color .color-switch-btn{width:36px;height:36px;}
    .mudiya-cta a{padding:12px 8px;font-size:13px;}
    .mudiya-cta{display:none;}
}


@media (max-width:767px){
    .mudiya-p-title{font-size:26px;}
    .mudiya-info-block .info-title{font-size:28px;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(2,1fr);}
    .mudiya-cta{grid-template-columns:1fr 1fr;}
    .mudiya-color-options{grid-template-columns:repeat(5,1fr);max-width:100%;}
    .mudiya-tab-header{flex-direction:column;align-items:flex-start;gap:8px;}
    .mudiya-help-link{display:none;}
    .mudiya-detail-grid{grid-template-columns:1fr;grid-template-areas:"gallery" "info";}
    .mudiya-size-options{gap:6px;}
    .mudiya-size .size-pill{min-width:32px;padding:5px 9px;font-size:12px;}
    .mudiya-color-options{grid-template-columns:repeat(8,1fr);gap:6px;max-width:100%;}
    .mudiya-color .color-switch-btn{width:36px;height:36px;}
    .mudiya-cta a{padding:12px 8px;font-size:13px;}
    .mudiya-cta{display:none;}
}


@media (max-width:767px){
    .mudiya-p-title{font-size: 1.1rem;}
    .mudiya-info-block .info-title{font-size:28px;}
    .mudiya-grid-12,.mudiya-grid-8{grid-template-columns:repeat(2,1fr);}
    .mudiya-cta{grid-template-columns:1fr 1fr;}
    .mudiya-color-options{grid-template-columns:repeat(5,1fr);max-width:100%;}
    .mudiya-tab-header{flex-direction:column;align-items:flex-start;gap:8px;}
    .mudiya-help-link{display:none;}
    .mudiya-detail-grid{grid-template-columns:1fr;grid-template-areas:"gallery" "info";}
    .mudiya-size-options{gap:6px;}
    .mudiya-size .size-pill{min-width:32px;padding:5px 9px;font-size:12px;}
    .mudiya-color-options{grid-template-columns:repeat(8,1fr);gap:6px;max-width:100%;}
    .mudiya-color .color-switch-btn{width:36px;height:36px;}
    .mudiya-cta a{padding:12px 8px;font-size:13px;}
    .mudiya-cta{display:none;}
}


@media (max-width:767px){
    .mudiya-info{display:flex;flex-direction:column;}
    .mudiya-color{order:-1;}
	.mudiya-tabs{padding-top: 20px;}
}

/* Mobile tooltip: show above icon to avoid right-edge overflow */
@media (max-width:767px){
    .mudiya-price-block .printing-tooltip{
        left:50%;top:auto;bottom:calc(100% + 8px);
        transform:translateX(-50%);
        right:auto;text-align:left;
        width: 194px;max-width:80vw;
        font-size:9px;
        white-space:normal;
    }
    .mudiya-price-block .printing-tooltip::after{
        top:100%;left:50%;right:auto;
        transform:translateX(-50%);
        border:6px solid transparent;border-top-color:#333;
    }
}
/* ========== 产品列表页-第一步框架 ========== */

/* --- 1. 整体包装与侧栏让位 --- */
.mudiya-archive-wrap { position: relative; }
/* 桌面端让位已由 .mudiya-archive-body 的 flex 布局替代（侧栏在容器内作 flex 子项） */

/* --- 2. 顶部一级分类图标导航 --- */
.mudiya-top-cat-nav { margin: 0 0 28px; }
.mudiya-top-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.mudiya-top-cat-item { flex: 1 1 0; min-width: 0; }
.mudiya-top-cat-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #2e2e2e;
    transition: background-color .2s ease;
}
.mudiya-top-cat-item a:hover { background-color: transparent; }
.mudiya-top-cat-thumb {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
}
.mudiya-top-cat-thumb img {
    width: 55px;
    height: 45px;
    object-fit: contain;
    display: block;
}
.mudiya-top-cat-item a:hover .mudiya-top-cat-thumb { background-color: #f0c14b; }
.mudiya-top-cat-item.is-active .mudiya-top-cat-thumb { background-color: #e3a82b; }
.mudiya-top-cat-item.is-active a:hover .mudiya-top-cat-thumb { background-color: #f5c964; }
.mudiya-top-cat-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mudiya-top-cat-item.is-active a { background-color: transparent; }
.mudiya-top-cat-item.is-active .mudiya-top-cat-name { color: #e3a82b; font-weight: 700; }
@media (max-width: 767px) {
    .mudiya-top-cat-nav {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9;
        background: #fff;
        border-bottom: 1px solid #eee;
        margin: 0;
        padding: 10px 16px;
    }
    /* 抬升 Astra 页眉层级，确保其下拉菜单始终压在吸顶分类导航之上 */
    .site-header {
        z-index: 100000 !important;
    }
    .mudiya-top-cat-list {
        gap: 8px;
        justify-content: flex-start;
    }
    .mudiya-top-cat-item {
        flex: 0 0 auto;
        min-width: 0;
    }
    .mudiya-top-cat-item a {
        flex-direction: row;
        padding: 0;
        gap: 0;
    }
    .mudiya-top-cat-thumb { display: none; }
    .mudiya-top-cat-name {
        display: inline-block;
        font-size: 12px;
        padding: 6px 12px;
        border: 1px solid #e5e5e5;
        border-radius: 999px;
        background: #fff;
        color: #2e2e2e;
        text-align: center;
        white-space: nowrap;
    }
    .mudiya-top-cat-item.is-active .mudiya-top-cat-name {
        background: #fff7e6;
        border-color: #e3a82b;
        color: #e3a82b;
        font-weight: 700;
    }
}

/* --- 3. 左侧分类侧栏（糖葫芦竖线版：flex 内 sticky，对齐容器左缘） --- */
.mudiya-archive-body { display: flex; align-items: flex-start; gap: 20px; }
.mudiya-fixed-sidebar {
    position: sticky;
    top: 160px; /* 头部约 80px + 用户要求的 80px 留白；按实际头部高度微调 */
    width: 120px;
    flex-shrink: 0;
    align-self: flex-start;
    /* 高度由菜单内容自适应撑开，禁止 100vh */
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 18px 10px;
    overflow: visible;
    z-index: 5;
}
.mudiya-fixed-sidebar-inner { position: relative; }
.mudiya-cat-tree { list-style: none; margin: 0; padding: 0; position: relative; }

/* 主竖线：居中贯穿所有一级分类项，到最后一个节点中心处终止；虚线 */
.mudiya-cat-tree--top::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 14px; /* 在最后一个一级节点文字中心处截断，避免继续向下延伸 */
    width: 1px;
    background-color: #e3a82b;
    transform: translateX(-50%);
    z-index: 0;
}

/* 一级节点：纯文字 + 不透明白底覆盖竖线，无圆角边框 */
.mudiya-cat-tree--top > .mudiya-cat-tree-item {
    position: relative;
    margin: 14px 0;
    z-index: 1;
    text-align: center;
}
.mudiya-cat-tree--top > .mudiya-cat-tree-item:first-child { margin-top: 0; }
.mudiya-cat-tree--top > .mudiya-cat-tree-item:last-child { margin-bottom: 0; }
.mudiya-cat-tree--top > .mudiya-cat-tree-item > a {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    background: #fff;
    color: #2e2e2e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.mudiya-cat-tree--top > .mudiya-cat-tree-item > a:hover,
.mudiya-cat-tree--top > .mudiya-cat-tree-item.is-active > a,
.mudiya-cat-tree--top > .mudiya-cat-tree-item.is-scrolling-active > a {
    background: #fff7e6;
    color: #e3a82b;
}

/* 二级分类：整体居中缩进，共用次级竖线串联，节点覆盖次级竖线 */
.mudiya-cat-tree--sub {
    width: 80px;
    margin: 8px auto 0;
    padding: 0;
    position: relative;
    list-style: none;
}
.mudiya-cat-tree--sub::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.8px;
    background-color: #d0d0d0;
    transform: translateX(-50%);
    z-index: 0;
}
.mudiya-cat-tree--sub .mudiya-cat-tree-item {
    position: relative;
    margin: 8px 0;
    z-index: 1;
    text-align: center;
}
.mudiya-cat-tree--sub .mudiya-cat-tree-item:first-child { margin-top: 0; }
.mudiya-cat-tree--sub .mudiya-cat-tree-item:last-child { margin-bottom: 0; }
.mudiya-cat-tree--sub .mudiya-cat-tree-item > a {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    background: #fff;
    color: #6a6a6a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.mudiya-cat-tree--sub .mudiya-cat-tree-item > a:hover,
.mudiya-cat-tree--sub .mudiya-cat-tree-item.is-active > a,
.mudiya-cat-tree--sub .mudiya-cat-tree-item.is-scrolling-active > a {
    background: #fff7e6;
    color: #e3a82b;
}

/* 移动端隐藏侧栏，主内容全宽 */
@media (max-width: 1024px) {
    .mudiya-fixed-sidebar { display: none; }
    .mudiya-archive-body { display: block; }
}

/* --- 4. 商店首页板块头部（可折叠） --- */
.mudiya-cat-section { margin-bottom: 40px; }
.mudiya-cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f3f3f3;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 18px;
}
.mudiya-cat-section-title { margin: 0; font-size: 18px; font-weight: 700; color: #2e2e2e; }
.mudiya-cat-section-title a { color: inherit; text-decoration: none; }
.mudiya-cat-section-title a:hover { color: #e3a82b; }
.mudiya-cat-section-toggle {
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
    color: #2e2e2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mudiya-cat-section-toggle:hover,
.mudiya-cat-section-toggle:focus,
.mudiya-cat-section-toggle:focus-visible,
.mudiya-cat-section-toggle:active {
    background: #e3a82b !important;
    color: #fff !important;
    outline: none !important;
}
.mudiya-toggle-arrow { transition: transform .25s ease; }
.mudiya-cat-section.is-collapsed .mudiya-toggle-arrow { transform: rotate(180deg); }
.mudiya-cat-section.is-collapsed .mudiya-cat-section-body { display: none; }

/* --- 5. 商品网格与卡片 --- */
.mudiya-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .mudiya-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 767px)  { .mudiya-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.mudiya-product-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.mudiya-product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.mudiya-product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
}
.mudiya-product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mudiya-product-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #fff;
}
.mudiya-product-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mudiya-product-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* --- 5.1 卡片内颜色缩略图条（悬停切换当前卡片主图） --- */
.mudiya-color-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px 0;
    background-color: #fff;
}
.mudiya-color-track {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto; /* 填满箭头之外的剩余宽度 */
    width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.mudiya-color-track::-webkit-scrollbar { display: none; }
.mudiya-color-dot {
    flex: 0 0 auto;
    width: calc((100% - 4 * 6px) / 5); /* 桌面端：5 个缩略图均匀铺满轨道 */
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    background-color: #f7f7f7;
    transition: border-color .15s ease, transform .15s ease;
}
@media (max-width: 1024px) {
    .mudiya-color-dot { width: calc((100% - 3 * 6px) / 4); } /* 平板端：4 个 */
}
@media (max-width: 767px) {
    .mudiya-color-dot { width: calc((100% - 2 * 6px) / 3); } /* 移动端：3 个 */
}
.mudiya-color-dot:hover {
    border-color: #e3a82b;
    transform: scale(1);
}
.mudiya-color-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mudiya-color-scroll {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    line-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #2e2e2e;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease;
}
.mudiya-color-scroll:hover { background-color: #e3a82b; color: #fff; }
.mudiya-color-scroll[hidden] { display: none; }

@media (max-width: 767px) {
    .mudiya-color-dot { width: 28px; height: 28px; }
    .mudiya-color-scroll { width: 20px; height: 20px; line-height: 18px; }
}

.mudiya-product-card-price {
    font-size: 15px;
    font-weight: 600;
    color: #e3a82b;
    text-align: left;
    font-family: 'Inter', Georgia, serif;
}
.mudiya-product-card-price .amount { color: #e3a82b; }

.mudiya-empty {
    color: #888;
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

/* --- 6. 原生 loop 卡片适配（单/二级分类页使用 content-product.php） --- */
.mudiya-archive-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mudiya-archive-main ul.products::before,
.mudiya-archive-main ul.products::after { display: none !important; }
.mudiya-archive-main ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.mudiya-archive-main ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
}
.mudiya-archive-main ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    display: block;
}
.mudiya-archive-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2e2e2e !important;
    padding: 12px 14px 0 !important;
    line-height: 1.4 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mudiya-archive-main ul.products li.product .price {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e3a82b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding: 0 14px 14px !important;
    display: block;
}
.mudiya-archive-main ul.products li.product .price .amount { color: #e3a82b !important; }
.mudiya-archive-main ul.products li.product .button,
.mudiya-archive-main ul.products li.product .added_to_cart { display: none !important; }
@media (max-width: 1024px) {
    .mudiya-archive-main ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 767px) {
    .mudiya-archive-main ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* --- 7. 平板/手机端修正顶部主导航与分类导航之间的留白 --- */
@media (max-width: 1024px) {
    #primary.content-area.primary {
        margin-top: 0px !important;
    }
}

/* =====================================================================
   8. 博客单篇文章详情页（Mudiya 自定义双栏布局）
   仅作用于单篇文章页；白底、深灰文字、浅金点缀，柔和分隔不靠重边框。
   ===================================================================== */

/* --- 8.1 双栏布局容器：桌面左主内容 + 右 300px 侧栏，整体约束 1320px 居中 ---
   注意：站点全局启用了 Astra「狭窄容器」(body.ast-narrow-container)，
   其规则 .ast-narrow-container .site-content > .ast-container{max-width:750px}
   specificity=(0,0,3,0) 且 @media(min-width:922px)，比原先的
   body.single-post .ast-container (0,0,2,1) 更specific，会把容器钉在 750px，
   导致左主内容区被右侧 300px 侧栏挤成很窄的一列。
   因此这里改用同结构 + 更高 specificity + !important 强制恢复到 1320px 设计基线。
   断点取 min-width:1025px（与下方 .mudiya-single-wrap 单列断点 max-width:1024px 对齐）：
   仅桌面双栏时撑满 1320；平板/手机(≤1024)仍走 Astra 窄容器 + 单列，避免横向溢出。 */
@media (min-width: 1025px) {
    body.single-post .site-content > .ast-container {
        max-width: 1320px !important;
    }
}
body.single-post #primary { width: 100% !important; }

/* 8.1b 单篇文章：移除 Astra 默认 #primary 顶部 64px(4em) 外边距，主体距顶部导航约 30px */
body.single-post #primary.content-area.primary { margin-top: 0 !important; }

.mudiya-single-wrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}
.mudiya-single-main {
    flex: 1 1 auto;   /* 主内容自适应占满剩余宽度 */
    min-width: 0;     /* 防止 flex 子项因内容撑破布局 */
}
.mudiya-single-sidebar {
    flex: 0 0 300px;  /* 固定 300px，不伸缩 */
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- 8.2 文章头部：面包屑 / H1 / 元信息 / 摘要 --- */
.mudiya-article-head { margin-bottom: 22px; }

/* ① 面包屑：小字 + 简约浅灰底修饰；单行展示，标题过长自动省略 */
.mudiya-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    background: #fafafa;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 18px;
    overflow: hidden;
}
.mudiya-breadcrumb a { color: #6b6b6b; text-decoration: none; flex: 0 0 auto; white-space: nowrap; }
.mudiya-breadcrumb a:hover { color: #e3a82b; }
.mudiya-breadcrumb .sep { color: #ccc; flex: 0 0 auto; }
.mudiya-breadcrumb .current {
    color: #2e2e2e;
    font-weight: 600;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mudiya-bc-home { display: inline-flex; align-items: center; color: #6b6b6b; }
.mudiya-bc-home:hover { color: #e3a82b; }
.mudiya-bc-home-icon { display: block; }

/* ② H1 大标题（系统原生输出，此处仅做视觉排版） */
.mudiya-article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    line-height: 1.22;
    font-weight: 700;
    color: #2e2e2e;
    margin: 0 0 14px;
}

/* ③ 元信息：作者 + 发布时间 */
.mudiya-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #888;
    margin-bottom: 22px;
}
.mudiya-article-meta .mudiya-meta-dot { color: #ccc; }

/* ④ 摘要区块：浅底 + 左侧金线装饰，避免重背景 */
.mudiya-article-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    background: #fafafa;
    border-left: 3px solid #e3a82b;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 28px;
}

/* --- 8.3 正文主体：图片自适应、合理行宽与段距 --- */
.mudiya-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.mudiya-article-body p { margin: 0 0 18px; }
.mudiya-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 18px 0;
}
.mudiya-article-body h2,
.mudiya-article-body h3 {
    color: #2e2e2e;
    line-height: 1.3;
    margin: 30px 0 12px;
}
.mudiya-article-body h2 { font-size: 26px; }
.mudiya-article-body h3 { font-size: 21px; }
.mudiya-article-body a { color: #e3a82b; }
.mudiya-article-body ul,
.mudiya-article-body ol { margin: 0 0 18px 22px; }
.mudiya-article-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 3px solid #e3a82b;
    background: #fafafa;
    color: #555;
}

/* --- 8.4 上一篇 / 下一篇（Prev 靠左、Next 靠右，各占一半，含箭头） --- */
.mudiya-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 30px;
    padding: 22px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.mudiya-post-nav-prev,
.mudiya-post-nav-next {
    flex: 1 1 0;        /* 左右各占一半，确保两端紧贴内容区边缘 */
    min-width: 0;
}
.mudiya-post-nav-prev { text-align: left; }
.mudiya-post-nav-next { text-align: right; }
.mudiya-post-nav a {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    max-width: 100%;
}
.mudiya-post-nav .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e3a82b;
    font-weight: 700;
}
.mudiya-post-nav .nav-arrow { font-size: 14px; line-height: 1; }
.mudiya-post-nav .nav-title {
    font-size: 15px;
    line-height: 1.4;
    color: #444;
}
.mudiya-post-nav-next a { align-items: flex-end; }  /* Next 内容靠右 */

/* --- 8.5 社交分享（简约圆形图标按钮，无文字、无色块填充） --- */
.mudiya-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 36px;
}
.mudiya-share-icon { display: inline-flex; color: #999; }
.mudiya-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #555;            /* 单色图标，无色块填充 */
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.mudiya-share-btn:hover { color: #e3a82b; border-color: #e3a82b; }

/* 产品详情页专用：与上方 CTA 保持 16px 间距，下方不额外留白 */
.single-product .mudiya-share { margin: 16px 0 0; }

/* --- 8.6 通用区块标题（款式推荐 / 侧栏模块共用） --- */
.mudiya-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.mudiya-sec-title {
    font-family: 'Inter', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: #2e2e2e;
    margin: 0;
}
.mudiya-sec-more {
    font-size: 14px;
    font-weight: 600;
    color: #e3a82b;
    text-decoration: none;
}
.mudiya-sec-more:hover { text-decoration: underline; }

/* --- 8.7 款式推荐（复用 .mudiya-product-card，仅图片/标题/价格） --- */
.mudiya-stylerec { margin-top: 6px; }
.mudiya-stylerec-grid { margin-top: 2px; }
/* 款式推荐卡片不显示描述与颜色缩略图（本板块无颜色切换交互） */
.mudiya-stylerec .mudiya-product-card-desc { display: none; }
.mudiya-stylerec .mudiya-color-strip { display: none; }

/* --- 8.8 右侧侧边栏模块与列表 --- */
.mudiya-side-block {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.mudiya-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mudiya-side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.mudiya-side-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 63px;            /* 固定 4:3 比例 */
    border-radius: 6px;
    overflow: hidden;
    background: #f7f7f7;
}
.mudiya-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* 完整展示特色图，不裁切左右、不变形 */
    object-position: center;
    display: block;
}
.mudiya-side-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #2e2e2e;
    /* 标题最多两行，超出省略截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mudiya-side-item:hover .mudiya-side-text { color: #e3a82b; }
.mudiya-side-empty { margin: 0; font-size: 13px; color: #999; }

/* --- 8.9 响应式：≤1024px 取消双栏，侧边栏落到正文下方（单列） --- */
@media (max-width: 1024px) {
    .mudiya-single-wrap {
        flex-direction: column;
        gap: 30px;
        padding: 22px 16px 40px;
    }
    .mudiya-single-main { width: 100%; }
    .mudiya-single-sidebar {
        width: 100%;
        flex-basis: auto;
    }
    .mudiya-article-title { font-size: 32px; }
    /* 侧栏列表在平板/手机利用横向空间，改为两列网格 */
    .mudiya-side-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 18px;
    }
}

@media (max-width: 767px) {
    .mudiya-article-title { font-size: 26px; }
    .mudiya-side-list { grid-template-columns: 1fr; }  /* 手机端列表回到单列 */
    .mudiya-post-nav { flex-direction: column; gap: 14px; }
    .mudiya-post-nav a { max-width: 100%; }
    .mudiya-post-nav-next a { align-items: flex-start; text-align: left; }
}

/* =========================================================================
   9. 博客总栏目汇总列表页（Mudiya 子主题）
   模板：template-parts/blog/blog-layout.php
   视觉基线与全站统一：白底 / 深灰文字(#2e2e2e) / 浅金点缀(#e3a82b) / 圆角(10px) / 统一间距
   ========================================================================= */

/* 9.0 容器宽度：站点全局开启 Astra「狭窄容器」(750px)，与 single-post 同样处理，
   博客汇总页恢复到 1320px 设计基线（仅桌面双栏带宽 ≥1025px 时生效）；
   平板 / 手机(≤1024px) 仍走 Astra 窄容器 + 单列，避免横向溢出。 */
@media (min-width: 1025px) {
    body.blog .site-content > .ast-container,
    body.category .site-content > .ast-container {
        max-width: 1320px !important;
    }
}
body.blog #primary,
body.category #primary {
    width: 100% !important;
    min-height: 0 !important;   /* 内容结束即贴近 footer，不强制撑高 */
}

/* 9.1 外层包裹 */
.mudiya-blog-summary {
    padding: 24px 0 40px;
}

/* 9.2 单个子栏目板块 */
.mudiya-blog-cat {
    margin-bottom: 46px;
}

/* 板块头部：左标题 + 右 More 跳转链接 */
.mudiya-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.mudiya-cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #2e2e2e;
    margin: 0;
}
/* 标题前浅金圆角小方块图标（inline SVG，呼应品牌金） */
.mudiya-cat-title-icon {
    flex: 0 0 auto;
    display: block;
}
.mudiya-cat-more {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: #e3a82b;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.mudiya-cat-more:hover { color: #c8920f; }
/* More 后箭头，悬停右移微交互 */
.mudiya-cat-more-arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform .15s ease;
}
.mudiya-cat-more:hover .mudiya-cat-more-arrow { transform: translateX(3px); }

/* 标题下方横向分隔线（与板块同宽） */
.mudiya-cat-divider {
    height: 1px;
    background: #e6e6e6;
    margin: 12px 0 22px;
}

/* 9.4 内容区：左大图首文 + 右双列文字列表（底部对齐） */
.mudiya-cat-body {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

/* 左：大图首文块（卡片化：白卡片 + 浅边框 + 极淡阴影 + 10px 圆角，呼应全站产品页圆角） */
.mudiya-cat-feature {
    flex: 0 0 560px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    box-sizing: border-box;
}
.mudiya-cat-feature-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
}
.mudiya-cat-feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* 完整显示，不裁切左右两侧 */
    display: block;
}
.mudiya-cat-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}
.mudiya-cat-feature-title {
    display: block;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: #2e2e2e;
    transition: color .15s ease;
}
.mudiya-cat-feature:hover .mudiya-cat-feature-title { color: #e3a82b; }
.mudiya-cat-feature-excerpt {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #888;
}

/* 右：双列文字列表（纯文字，无缩略图）
   关键：min-width:0 解除 flex/grid 子项默认的 min-width:auto，
   避免长标题把网格列撑宽、导致整块超出 1320px 父容器。
   6 条 = 3 行 2 列；行高用内容自然高度（不写 grid-auto-rows:1fr），
   否则栏目文章少于 6 条时每行被 1fr 拉成 ~200px、内容垂直居中显出大空隙。
   align-content:start 让行从顶部排列，文章不足时空白留在底部而非撑开居中。 */
.mudiya-cat-list {
    flex: 1 1 auto;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 16px;
    align-content: start;
}
.mudiya-cat-item {
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* 内容顶部对齐，避免被拉高后垂直居中显空隙 */
}
.mudiya-cat-item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;        /* 标题两行 */
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #2e2e2e;
    text-decoration: none;
    overflow: hidden;
}
.mudiya-cat-item-title:hover { color: #e3a82b; }
.mudiya-cat-item-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;        /* 摘要三行 */
    min-width: 0;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #999;
    overflow: hidden;
}

.mudiya-blog-empty {
    font-size: 15px;
    color: #999;
    padding: 20px 0;
}

/* 桌面端：左侧大图首文块通常高于右侧 6 篇列表，
   .mudiya-cat-body 的 align-items:stretch 会把列表拉到同等高度。
   原 align-content:start 使 3 行贴顶、底部留一大块空白（上下不均）；
   改 center 则 3 行挤在中间、上下两头各留空白（也不匀）。
   改 space-between：第 1 行顶到列表顶端（与左侧大图卡顶端平齐），
   最后 1 行落到底端（与左侧卡底端平齐），中间行距自动均匀撑开，
   实现「与左侧对齐 + 行距均匀」且与左卡等高，不再挤在中间。
   仅 PC（≥1025px），平板/手机沿用各自规则（仍是 start），不改变移动端样式。 */
@media (min-width: 1025px) {
    .mudiya-cat-list {
        align-content: space-between;
    }
}

/* =========================================================================
   9.5 响应式
   平板(≤1024px)：内容区仍左右分栏，右侧保持双列文字列表；
   手机(≤640px)：取消左右分栏，大图首文置顶，文字列表接下方并改单列。
   ========================================================================= */
@media (max-width: 1024px) {
    /* 平板：内容容器满宽，需补左右边距，避免版块贴屏幕边 */
    body.blog .site-content > .ast-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .mudiya-cat-body {
        flex-direction: column;
        gap: 22px;
    }
    .mudiya-cat-feature {
        flex: 0 0 auto;
        width: 100%;
    }
    .mudiya-cat-list {
        grid-template-columns: 1fr 1fr;     /* 平板仍双列 */
    }
}

@media (max-width: 767px) {
    /* 手机：与全站断点(767px)保持一致；边距再收紧到 6px，仍留出与屏幕的距离 */
    body.blog .site-content > .ast-container {
        padding-left: 6px;
        padding-right: 6px;
    }
    .mudiya-cat-title { font-size: 20px; }
    .mudiya-cat-list {
        grid-template-columns: 1fr;         /* 手机单列 */
    }
    .mudiya-cat-feature-thumb {
        aspect-ratio: 16 / 9;               /* 手机大图更舒展 */
    }
    /* 手机端首图铺满，去除 contain 带来的左右留白 */
    .mudiya-cat-feature-thumb img {
        object-fit: cover;
    }

    /* 产品详情页分享专用：与上方 CTA 保持 0px 间距，下方不额外留白 */
   .single-product .mudiya-share { margin: 0px 0 0; }
}

/* =========================================================================
   10. 博客子分类列表页（/category/xxx/）
   视觉基线与全站统一：白底 / 深灰文字(#2e2e2e) / 浅金点缀(#e3a82b) / 圆角(10px)
   ========================================================================= */

/* 10.1 外层包裹 */
.mudiya-cat-archive {
    padding: 24px 0 30px;
}

/* 10.1.1 归档页 h1：视觉隐藏，仅保留标签供搜索引擎与读屏器识别
   说明：不用 display:none，用 clip 方式隐藏，标签仍在可访问树内 */
.mudiya-archive-h1.mudiya-h1-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* 10.2 子分类切换标签栏：跟随内容宽度，左/右内距 20px（不再等宽） */
.mudiya-cat-tabs {
    display: flex;
    flex-wrap: wrap;            /* 窄屏自动换行，避免内容宽标签溢出 */
    justify-content: center;    /* 标签整体水平居中 */
    gap: 10px;
    margin: 0 0 28px;
}
.mudiya-cat-tab {
    flex: 0 0 auto;             /* 跟随内容宽度，不强制等分 */
    text-align: center;
    padding: 10px 20px;         /* 左右 20px 内距 */
    font-size: 14px;
    font-weight: 600;
    color: #2e2e2e;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.mudiya-cat-tab:hover {
    border-color: #e3a82b;
    color: #e3a82b;
}
.mudiya-cat-tab.is-active {
    background: #e3a82b;
    border-color: #e3a82b;
    color: #fff;
}

/* 10.3 文章列表行：三栏（左图 4:3 / 中标题+摘要 / 右日期+阅读量+箭头） */
.mudiya-cat-rows {
    display: flex;
    flex-direction: column;
}
.mudiya-cat-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 165px;  /* 中 > 左 > 右（右栏加宽容纳隔断+箭头） */
    gap: 24px;
    align-items: center;
    padding: 18px 4px;
    border-bottom: 1px solid #f0f0f0;   /* 柔和分隔线 */
    text-decoration: none;
    color: inherit;
    transition: background .15s ease;
}
.mudiya-cat-row:hover {
    background: #fafafa;
}
.mudiya-row-thumb {
    width: 220px;
    aspect-ratio: 4 / 3;
    background: #f7f7f7;
    border-radius: 10px;
    overflow: hidden;
}
.mudiya-row-thumb img,
.mudiya-row-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* 完整显示，不裁切 */
    display: block;
}
.mudiya-row-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: #eee;
}
.mudiya-row-main {
    min-width: 0;               /* 防标题/摘要撑破网格列 */
}
.mudiya-row-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #2e2e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;    /* 标题单行截断 */
    transition: color .15s ease;
}
.mudiya-cat-row:hover .mudiya-row-title { color: #e3a82b; }
.mudiya-row-excerpt {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #999;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;      /* 桌面摘要 2 行 */
    overflow: hidden;
}
.mudiya-row-meta {
    display: flex;
    justify-content: flex-end;    /* 整体右对齐 */
    align-items: center;
    padding-left: 18px;           /* 隔断线到文字的距离 */
    padding-right: 10px;          /* 离右边缘约 10px */
    border-left: 1px solid #eee;  /* 与左侧标题/摘要的隔断线 */
    min-width: 0;
}
.mudiya-row-meta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;        /* 日期/箭头/阅读量右对齐 */
    gap: 6px;
    text-align: right;
    font-size: 12px;
}
.mudiya-row-date { color: #888; }
.mudiya-row-views { color: #bbb; }
.mudiya-row-arrow {
    font-size: 18px;
    line-height: 1;
    color: #e3a82b;
    transition: transform .15s ease;
}
.mudiya-cat-row:hover .mudiya-row-arrow { transform: translateX(3px); }

/* 10.4 底部分页：复用全站 .navigation.pagination .page-numbers 风格，居中 */
.mudiya-cat-pagination {
    margin: 32px 0 0;
    text-align: center;
}

/* 10.5 响应式 */
@media (max-width: 1024px) {
    /* 平板：容器满宽补边距（与博客汇总页一致 10px），压缩三栏间距与底部留白 */
    body.category .site-content > .ast-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    body.category .mudiya-cat-archive {
        padding-bottom: 16px;
    }
    .mudiya-cat-row {
        grid-template-columns: 180px minmax(0, 1fr) 110px;
        gap: 18px;
        padding: 16px 4px;
    }
    .mudiya-row-thumb { width: 180px; }
    .mudiya-cat-tab { font-size: 13px; padding: 9px 6px; }
    .mudiya-row-title{
        font-size: 15px;
        line-height: 1.2;
    }
}
@media (max-width: 767px) {
    /* 手机：容器边距 6px；左图 + 右文两栏，隐藏 meta，底部留白收紧 */
    body.category .site-content > .ast-container {
        padding-left: 6px;
        padding-right: 6px;
    }
    body.category .mudiya-cat-archive {
        padding-bottom: 10px;
    }
    .mudiya-cat-tab { font-size: 12px; }
    .mudiya-cat-row {
        grid-template-columns: 110px 1fr;  /* 手机：左图 + 右文两栏，沿用 PC 逻辑（第三栏 meta 隐藏） */
        gap: 12px;
        padding: 14px 0;
        align-items: center;
    }
    .mudiya-row-thumb {
        width: 110px;
        aspect-ratio: 4 / 3;       /* 手机缩略图改为 4:3 小图，与 PC 一致 */
    }
    .mudiya-row-excerpt {
        -webkit-line-clamp: 3;   /* 手机摘要 3 行 */
    }
    .mudiya-row-meta {
        display: none;             /* 手机端隐藏日期/阅读量/箭头整栏，保持简洁 */
    }
    .mudiya-row-title{
        font-size: 13px;
        line-height: 1.1;
    }
}

/* =========================================================================
   11. 首页短代码动态卡片（[mudiya_home_products] / [mudiya_home_cases]）
   说明：原先商品卡片配套 CSS 由 functions.php 经 wp_footer 输出，已统一迁移至此，
   便于维护；案例卡片样式参照首页 Our Work 静态卡片（上圆角 / 轻阴影 / hover 上浮）。
   全部代码仅作用于 .mudiya-hp-* 作用域，不影响主题其它元素。
   ========================================================================= */

/* 11.1 商品卡片（首页产品展示区） */
.mudiya-hp-section{margin:0 0 40px;}
.mudiya-hp-head{display:flex;justify-content:flex-end;margin:0 0 26px;}
.mudiya-hp-more{font-size:14px;color:#e3a82b;font-weight:600;text-decoration:none;white-space:nowrap;}
.mudiya-hp-more:hover{color:#2e2e2e!important;}
.mudiya-hp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.mudiya-hp-card{display:block;background:#fff;text-decoration:none;color:#2e2e2e;border:1px solid #eee;border-radius:6px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;}
.mudiya-hp-card:hover{transform:translateY(-6%);box-shadow:0 8px 22px rgba(0,0,0,.10);}
.mudiya-hp-thumb{position:relative;width:100%;aspect-ratio:1/1;background:#f5f5f5;overflow:hidden;}
.mudiya-hp-img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-hp-noimg{display:block;width:100%;height:100%;background:#eee;}
.mudiya-hp-name{font-size:15px;font-weight:600;line-height:1.35;margin:12px 12px 6px;color:#2e2e2e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px;}
.mudiya-hp-price{display:flex;align-items:baseline;gap:2px;margin:0 12px 14px;color:#e3a82b;font-weight:700;}
.mudiya-hp-cur{font-size:14px;}
.mudiya-hp-amt{font-size:18px;}
@media (max-width:1024px){.mudiya-hp-grid{grid-template-columns:repeat(2,1fr);gap:14px;}}
@media (max-width:767px){.mudiya-hp-grid{grid-template-columns:repeat(2,1fr);gap:10px;}.mudiya-hp-name{font-size:14px;margin:8px 8px 4px;}.mudiya-hp-price{margin:0 8px 10px;}}

/* 11.2 案例卡片（首页 Our Work 区，参照原静态卡片：上圆角 / 轻阴影 / hover 上浮） */
.mudiya-hp-case-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;width:100%;}
.elementor .mudiya-hp-case-card{display:block;background:#fff;text-decoration:none;color:#2e2e2e;border-radius:10px 10px 0 0;box-shadow:0 4px 14px rgba(0,0,0,.12);overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;}
.elementor .mudiya-hp-case-card:hover{transform:translateY(-4px);box-shadow:0 6px 18px rgba(0,0,0,.12);color:#2e2e2e!important;text-decoration:none;}
.elementor .mudiya-hp-case-card:visited{color:#2e2e2e;}
.mudiya-hp-case-thumb{position:relative;width:100%;aspect-ratio:4/3;background:#f5f5f5;overflow:hidden;}
.mudiya-hp-case-img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-hp-case-noimg{display:block;width:100%;height:100%;background:#eee;}
.mudiya-hp-case-body{padding:14px 16px 20px;}
.mudiya-hp-case-title{font-size:18px;font-weight:600;line-height:1.3;margin:0 0 8px;color:#2e2e2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mudiya-hp-case-title a{color:#2e2e2e;text-decoration:none;}
.elementor .mudiya-hp-case-card:hover .mudiya-hp-case-title{color:#2e2e2e;}
.mudiya-hp-case-industry{display:block;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mudiya-hp-case-industry-label{color:#e3a82b;font-size:10px;letter-spacing:.04em;text-transform:uppercase;margin-right:6px;}
.mudiya-hp-case-industry-sep{color:#e3a82b;font-size:14px;line-height:1;margin:0 6px;}
.mudiya-hp-case-industry-val{color:#e3a82b;font-weight:500;}
@media (max-width:1024px){.mudiya-hp-case-grid{grid-template-columns:repeat(2,1fr);gap:14px;width:100%;}.mudiya-hp-case-title{font-size:16px;}}
@media (max-width:767px){.mudiya-hp-case-grid{grid-template-columns:repeat(2,1fr);gap:12px;width:100%;}.mudiya-hp-case-title{font-size:10px;}.mudiya-hp-case-body{padding:12px 14px 16px;}}
/* 让包裹短代码的 Elementor flex 容器链逐层占满，避免案例卡片在平板/手机端靠左、右侧留白 */
.elementor .elementor-element-42d7b29{width:100%;}
.elementor .elementor-element-42d7b29 .elementor-widget-container,
.elementor .elementor-element-42d7b29 .elementor-shortcode{width:100%;}

/* 11.3 博客文章卡片（首页 Insights & News 区，参照原静态版块样式） */
.mudiya-hp-news{width:100%;}
.mudiya-hp-news a{color:#2e2e2e;text-decoration:none;}

/* 特色块：最新 1 篇 → 封面图(3:2) + 标题(2行) + 摘要(2行) */
.mudiya-hp-news-feat{display:block;background:#fff;}
.mudiya-hp-news-feat-img{width:100%;aspect-ratio:3/2;background:#f5f5f5;overflow:hidden;}
.mudiya-hp-news-feat-img img{width:100%;height:100%;object-fit:cover;display:block;}
.mudiya-hp-news-feat-body{padding:10px 0 0;}              /* 与原 e33c33e padding 10px 0 0 0 对齐 */
.mudiya-hp-news-feat-title{font-size:16px;font-weight:600;line-height:1.3;margin:0 0 6px;color:#2e2e2e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.mudiya-hp-news-feat-excerpt{font-size:14px;font-weight:400;line-height:1.5;color:#555;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* 列表块：第 2~5 篇 → 左日期 / 右标题(2行)，条目间浅分隔线 */
.mudiya-hp-news-list{margin-top:6px;border-top:1px solid #eee;}
.mudiya-hp-news-item{display:flex;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid #eee;}
.mudiya-hp-news-date{flex:0 0 72px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25;color:#e3a82b;font-weight:600;}
.mudiya-hp-news-date-top{font-size:13px;}
.mudiya-hp-news-date-year{font-size:13px;margin-top:3px;}
.mudiya-hp-news-item-title{flex:1 1 auto;min-width:0;font-size:14px;font-weight:500;line-height:1.5;color:#2e2e2e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* hover：标题变浅金黄（全站不用蓝） */
.elementor .mudiya-hp-news-feat:hover .mudiya-hp-news-feat-title,
.elementor .mudiya-hp-news-item:hover .mudiya-hp-news-item-title{color:#e3a82b;}

/* 列表底部 MORE 按钮：跳转到对应博客子栏目（金黄，hover 变黑，不用蓝） */
.elementor .mudiya-hp-news-more{display:block;text-align:right;margin-top:12px;padding-top:12px;font-size:13px;font-weight:600;letter-spacing:.08em;color:#e3a82b;text-decoration:none;}
.elementor .mudiya-hp-news-more:hover{color:#2e2e2e;text-decoration:none;}

@media (max-width:767px){.mudiya-hp-news-date{flex:0 0 64px;}}

/* 11.4 首页 Insights & News 三栏整体布局（适配 Elementor 大容器内三栏结构） */
.mudiya-hp-news-all{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;width:100%;}
.mudiya-hp-news-col{min-width:0;padding:10px;background:#fff;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.10);}
.mudiya-hp-news-col-title{display:flex;align-items:center;justify-content:center;gap:10px;font-size:28px;font-weight:600;line-height:1.2;color:#2e2e2e;text-align:center;margin:0 0 20px;padding:0;}
.mudiya-hp-news-col-icon{flex:0 0 auto;width:26px;height:26px;display:block;}

@media (max-width:1024px){
.mudiya-hp-news-all{grid-template-columns:1fr;gap:40px;}
.mudiya-hp-news-col-title{font-size:32px;}
}

/* 平板端（768px-1024px）：列表标题单行，日期横向一行显示；手机/PC 保持原样 */
@media (min-width:768px) and (max-width:1024px){
.mudiya-hp-news-date{flex:0 0 96px;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:4px;}
.mudiya-hp-news-date-year{margin-top:0;}
.mudiya-hp-news-item-title{-webkit-line-clamp:1;}
}

@media (max-width:767px){
.mudiya-hp-news-all{gap:32px;}
.mudiya-hp-news-col-title{font-size:22px;}
}

/* ==========================================================================
   12 案例详情页（single-cases.php）
   仅对 cases 自定义文章类型生效；CSS 独立，不依赖 Elementor class。
   ========================================================================== */

/* 外层容器 */
/* 抵消 Astra 父主题 #primary{margin:4em 0} 在 cases 单页的上下外边距，
   改由 .cases-detail 精确控制：上距导航 50px、下距 footer 100px */
/* 覆盖 Astra 动态 inline CSS：.ast-plain-container.ast-no-sidebar #primary{margin-top:60px;margin-bottom:60px}
   用 body 上已有的 .single-cases 提升特异性：(1,3,0) > (1,2,0) */
.single-cases.ast-plain-container.ast-no-sidebar #primary{margin:0;}
.cases-detail{padding:50px 0 100px;}

/* 面包屑 */
.cases-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.4;color:#888;margin:0 0 24px;}
.cases-breadcrumb a{color:#2e2e2e;text-decoration:none;transition:color .2s ease;}
.cases-breadcrumb a:hover{color:#e3a82b;}
.cases-breadcrumb-home{display:inline-flex;align-items:center;color:#2e2e2e;}
.cases-breadcrumb-home svg{display:block;}
.cases-breadcrumb-sep{color:#ccc;font-size:12px;}
.cases-breadcrumb-current{color:#888;}

/* 手机端：面包屑单行显示，超出省略 */
@media (max-width:767px){
.cases-breadcrumb{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
}

/* H1 标题 */
.cases-detail-title{font-size:42px;font-weight:700;line-height:1.2;color:#2e2e2e;margin:0 0 16px;text-align:center;}

/* 元信息 */
.cases-detail-meta{display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;color:#777;margin:0 0 32px;}
.cases-meta-item{display:inline-flex;align-items:center;gap:6px;}
.cases-meta-icon{color:#e3a82b;flex:0 0 auto;display:block;}
.cases-meta-sep{color:#ccc;}

/* 参数信息卡片：两行两列 */
.cases-detail-params{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:0 0 40px;}
.cases-param-card{background:#fff;border:1px solid #eee;border-radius:8px;padding:18px 20px;}
.cases-param-label{display:block;font-size:12px;font-weight:600;color:#e3a82b;text-transform:uppercase;letter-spacing:.06em;margin:0 0 6px;}
.cases-param-value{display:block;font-size:16px;font-weight:400;color:#494949;line-height:1.4;}

/* 图库组件 */
.cases-gallery{--case-thumb-h:240px;display:flex;flex-wrap:nowrap;gap:16px;justify-content:center;margin:0 0 48px;}
.cases-gallery-main{position:relative;flex:1 1 auto;max-width:950px;min-width:0;background:#f8f8f8;border-radius:10px;overflow:hidden;aspect-ratio:4/3;}
.cases-gallery-main img{width:100%;height:100%;object-fit:cover;display:block;}

/* 缩略图区域 */
.cases-gallery-thumbs-wrap{display:flex;flex-direction:column;flex:0 0 280px;width:280px;gap:10px;}
.cases-gallery-thumbs{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;overflow:hidden;max-height:calc(var(--case-thumb-h) * 3 + 20px);}
.cases-gallery-thumbs::-webkit-scrollbar{width:4px;}
.cases-gallery-thumbs::-webkit-scrollbar-thumb{background:#ddd;border-radius:2px;}

.cases-thumb{display:block;box-sizing:border-box;width:100%;height:var(--case-thumb-h);flex:0 0 var(--case-thumb-h);border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;padding:0;background:#f5f5f5;transition:border-color .2s ease,opacity .2s ease;}
.cases-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cases-thumb:hover{opacity:.85;}
.cases-thumb.is-active{border-color:#e3a82b;}

/* 缩略图上下箭头 */
.cases-thumb-arrow{display:flex;align-items:center;justify-content:center;width:100%;height:34px;border:1px solid #eee;border-radius:6px;background:#fff;color:#2e2e2e;cursor:pointer;transition:background .2s ease,border-color .2s ease;}
.cases-thumb-arrow:hover{background:#f5f5f5;border-color:#e3a82b;color:#e3a82b;}
.cases-thumb-arrow svg{display:block;}

/* 正文 */
.cases-detail-content{font-size:16px;line-height:1.7;color:#2e2e2e;max-width:100%;}
.cases-detail-content > *:first-child{margin-top:0;}
.cases-detail-content h2,.cases-detail-content h3{margin-top:36px;margin-bottom:16px;color:#2e2e2e;}
.cases-detail-content p{margin:0 0 18px;}
.cases-detail-content img{max-width:100%;height:auto;border-radius:6px;}
.cases-detail-content figure{margin-top:24px;margin-bottom:24px;}

/* 上下篇导航 */
.cases-detail-nav{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:56px;padding-top:32px;border-top:1px solid #eee;}
.cases-detail-nav a{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid #eee;border-radius:8px;background:#fff;text-decoration:none;color:#2e2e2e;transition:border-color .2s ease,box-shadow .2s ease;}
.cases-detail-nav a:hover{border-color:#e3a82b;box-shadow:0 4px 12px rgba(0,0,0,.08);}
.cases-nav-prev{text-align:left;}
.cases-nav-next{text-align:right;align-items:flex-end;}
.cases-nav-sub{font-size:12px;font-weight:600;color:#e3a82b;text-transform:uppercase;letter-spacing:.06em;}
.cases-nav-title{font-size:15px;font-weight:500;line-height:1.4;}
.cases-nav-empty{display:block;}

/* 响应式：平板 */
@media (max-width:1024px){
.cases-detail-title{font-size:34px;}
.cases-detail{padding:32px 0 64px;}
}

/* 响应式：手机 767px 以下，大图在上，缩略图横向排布 */
@media (max-width:767px){
.cases-detail-title{font-size:22px;}
/* 手机端参数卡片：短值不需要独占一行，改为 2 列并排 */
.cases-detail-params{grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 32px;}
.cases-param-card{padding:14px 16px;}
.cases-param-label{font-size:11px;margin:0 0 4px;}
.cases-param-value{font-size:12px;}
.cases-gallery{flex-direction:column;}
.cases-gallery-main{max-width:100%;width:100%;flex:1 1 auto;}
.cases-gallery-thumbs-wrap{flex-direction:row;align-items:center;width:100%;flex:1 1 auto;gap:8px;}
.cases-thumb-arrow{display:none;}
.cases-gallery-thumbs{flex-direction:row;gap:8px;overflow-x:auto;overflow-y:hidden;max-height:none;}
.cases-thumb{flex:0 0 72px;width:72px;height:72px;}
.cases-thumb-arrow{width:34px;height:72px;flex:0 0 34px;}
.cases-thumb-arrow svg{transform:rotate(-90deg);}
/* 手机端上下篇：改为左右两列，避免上下堆叠太空 */
.cases-detail-nav{grid-template-columns:1fr 1fr;gap:10px;margin-top:40px;padding-top:24px;}
.cases-detail-nav a{padding:14px 16px;gap:4px;}
.cases-nav-sub{font-size:11px;}
.cases-nav-title{font-size:14px;line-height:1.35;word-break:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.cases-nav-prev,.cases-nav-next{text-align:left;align-items:flex-start;}
}

/* === 产品详情正文两栏 + 右侧吸顶公司卡片（2026-08-25） === */
.mudiya-prod-layout{display:flex;gap:40px;align-items:flex-start;}
.mudiya-prod-layout .mudiya-info-block{flex:1 1 auto;min-width:0;max-width:none;margin:0;}
.mudiya-prod-aside{flex:0 0 350px;width:350px;position:sticky;top:90px;}
.mudiya-aside-card{background:#fff;border:1px solid #ececec;border-radius:12px;padding:24px;box-shadow:0 4px 18px rgba(0,0,0,.07);}

/* 卡片头部：Logo + 公司名 */
.mudiya-aside-header{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
.mudiya-aside-logo{flex:0 0 48px;width:48px;height:48px;border-radius:10px;background:#e3a82b;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(227,168,43,.35);}
.mudiya-aside-title-wrap{flex:1 1 auto;min-width:0;}
.mudiya-aside-company{font-size:22px;font-weight:700;color:#2e2e2e;font-family:'Inter',sans-serif;line-height:1.2;}
.mudiya-aside-sub{font-size:12px;color:#888;margin-top:4px;line-height:1.4;}

/* 元信息行 */
.mudiya-aside-meta{margin:0 0 18px;}
.mudiya-aside-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid #f0f0f0;font-size:13px;line-height:1.4;}
.mudiya-aside-row dt{display:flex;align-items:center;gap:7px;color:#888;margin:0;}
.mudiya-aside-icon{color:#e3a82b;flex:0 0 14px;}
.mudiya-aside-row dd{color:#2e2e2e;margin:0;text-align:right;font-weight:600;line-height:1.4;}

/* 主营业务说明 */
.mudiya-aside-scope{background:#fafafa;border:1px solid #f0f0f0;border-radius:10px;padding:14px 16px;margin-bottom:18px;}
.mudiya-aside-scope-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#2e2e2e;margin-bottom:8px;}
.mudiya-aside-scope-title svg{color:#e3a82b;flex:0 0 15px;}
.mudiya-aside-scope p{font-size:12px;color:#666;line-height:1.65;margin:0;}

/* CTA 按钮（统一实心按钮） */
.mudiya-aside-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 14px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;margin-top:10px;transition:.2s;box-sizing:border-box;border:none;cursor:pointer;}
.mudiya-aside-btn span{line-height:1;}
.mudiya-contact-btn{background:#e3a82b;color:#fff;}
.mudiya-contact-btn:hover{background:#c99523;color:#fff;}
.mudiya-wa-btn{background:#25D366;color:#fff;}
.mudiya-wa-btn:hover{background:#1ebe5b;color:#fff;}

/* 平板 / 手机隐藏右侧栏，正文铺满单栏 */
@media (max-width:1024px){
.mudiya-prod-layout{display:block;}
.mudiya-prod-aside{display:none;}
}

/* === 全站右侧客服浮窗 + 返回顶部（2026-08-26） === */
.mudiya-side-contact{position:fixed;right:18px;bottom:234px;z-index:9998;display:flex;flex-direction:column;align-items:flex-end;gap:12px;}
.mudiya-sc-list{display:flex;flex-direction:column;align-items:flex-end;gap:12px;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease,visibility .25s;pointer-events:none;}
.mudiya-sc-list.is-open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
.mudiya-sc-item{position:relative;display:flex;align-items:center;text-decoration:none;}
.mudiya-sc-ico{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff;color:#e3a82b;box-shadow:0 4px 14px rgba(0,0,0,.15);transition:background .2s ease,color .2s ease;}
.mudiya-sc-item:hover .mudiya-sc-ico{background:#e3a82b;color:#fff;}
.mudiya-sc-label{position:absolute;right:56px;white-space:nowrap;background:#e3a82b;color:#fff;font-size:13px;font-weight:600;padding:7px 12px;border-radius:6px;opacity:0;visibility:hidden;transform:translateX(6px);transition:opacity .2s ease,transform .2s ease,visibility .2s;box-shadow:0 2px 8px rgba(0,0,0,.15);}
.mudiya-sc-item:hover .mudiya-sc-label{opacity:1;visibility:visible;transform:translateX(0);}
.mudiya-sc-toggle{display:flex;align-items:center;justify-content:center;width:54px;height:54px;padding:0;border:none;border-radius:50%;background:#2e2e2e;color:#fff;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.4);transition:background .2s ease,transform .2s ease;}
.mudiya-sc-toggle:hover{background:#1a1a1a;}
.mudiya-sc-toggle.is-active{transform:rotate(90deg);}
/* 强制压过 Astra 全局 button 背景（var(--ast-global-color-0) 会命中普通 button） */
button.mudiya-sc-toggle{background-color:#e3a82b !important;color:#fff !important;}
button.mudiya-sc-toggle:hover{background-color:#1a1a1a !important;}
.mudiya-sc-top{position:fixed;right:18px;bottom:168px;z-index:9998;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:none;border-radius:50%;background:#e3a82b;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease,visibility .25s,background .2s ease;}
.mudiya-sc-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);}
.mudiya-sc-top:hover{background:#c99523;}
button.mudiya-sc-top{background-color:#e3a82b !important;color:#fff !important;}
button.mudiya-sc-top:hover{background-color:#c99523 !important;}

/* 手机端：仅保留返回顶部，隐藏客服浮窗 */
@media (max-width:767px){
.mudiya-side-contact{display:none;}
.mudiya-sc-top{width:46px;height:46px;right:14px;bottom:40vh;}
}

/* 屏蔽 Astra 原生返回顶部（免费版后台无关闭选项，避免与自定义回顶重复出现） */
body #ast-scroll-top{display:none !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;}

/* WeChat 复制提示 toast */
.mudiya-sc-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%) translateY(10px);z-index:10000;background:rgba(46,46,46,.95);color:#fff;font-size:13px;font-weight:600;padding:10px 18px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.25);opacity:0;visibility:hidden;transition:opacity .25s ease,transform .25s ease,visibility .25s;pointer-events:none;max-width:80vw;text-align:center;}
.mudiya-sc-toast.is-show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}

/* ================================================================
   产品列表页 WooCommerce 分页：品牌配色 + 右对齐 + 间距 + 三端适配
   说明：之前只覆盖了博客/文章归档的 .navigation.pagination，
   产品页用的是 .woocommerce-pagination，漏掉了，所以仍是 Astra 默认蓝。
   品牌主金 #e3a82b；桌面/平板通用 → 手机（≤767px）单独缩尺寸。
   ================================================================ */
/* 桌面 / 平板通用：右对齐、与上方卡片间距 ≥10px、清掉 WooCommerce 默认边框背景 */
.woocommerce nav.woocommerce-pagination {
	margin: 30px 0 0;
	text-align: right;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	border: 0;
	margin: 0;
	padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	background: transparent;
	display: inline-block;
	float: none;
}
.woocommerce nav.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	margin: 0 3px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	color: #333;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: .2s;
}
.woocommerce nav.woocommerce-pagination .page-numbers:hover {
	border-color: #e3a82b;
	background: #fdf6e6;
	color: #000;
}
.woocommerce nav.woocommerce-pagination .page-numbers.current {
	background: #e3a82b !important;
	color: #fff !important;
	border-color: #e3a82b !important;
}

/* 手机端（≤767px）：保持右对齐，缩小尺寸、保证单行可读、间距 ≥10px */
@media (max-width: 767px) {
	.woocommerce nav.woocommerce-pagination {
		margin: 20px 0 0;
		text-align: right;
	}
	.woocommerce nav.woocommerce-pagination .page-numbers {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: 14px;
		margin: 0 2px;
	}
}

/* =========================================================================
   隐私政策页专用版面（模板 page-privacy-policy.php，仅 body.page-id-3）
   与博客文章详情页完全解耦：无作者 / 日期 / 摘要 / 分享 / 推荐 / 上下篇，
   单一 H1 + 简洁面包屑 + 完整正文，按政策文件的阅读节奏排版。
   全部规则用 mudiya-pp- 前缀（仅该模板输出），并由 body.page-id-3 收窄作用域，
   保证不影响站内任何其它页面。主色 #fff / #2e2e2e / #e3a82b，不用蓝。
   ========================================================================= */

/* 桌面端（≥1025px）把 Astra 750px 窄容器恢复到站点 1320px 基线，
   与 single-post / blog / category 页面保持一致；
   平板 / 手机(≤1024px)仍走 Astra 窄容器 + 单列，避免横向溢出。 */
@media (min-width: 1025px) {
	body.page-id-3 .site-content > .ast-container {
		max-width: 1320px !important;
	}
}
body.page-id-3 #primary { width: 100% !important; }

/* 清掉 Astra 给主内容区的默认上边距，留白统一交给 .mudiya-pp-wrap */
body.page-id-3 #primary.content-area.primary {
	margin-top: 0 !important;
}

/* 桌面正文栏：1200px，贴近站点 1320px 容器基线，避免正文挤成「中间一条窄条」。
   平板 / 手机在下方媒体查询里改回 100%。 */
.mudiya-pp-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 44px 20px 90px;
	box-sizing: border-box;
}

/* --- 面包屑 --- */
.mudiya-pp-breadcrumb {
	margin: 0 0 28px;
	font-size: 13px;
	line-height: 1.5;
	color: #8a8a8a;
}
.mudiya-pp-breadcrumb a {
	color: #2e2e2e;
	text-decoration: none;
}
.mudiya-pp-breadcrumb a:hover {
	color: #e3a82b;
}
.mudiya-pp-bc-sep {
	margin: 0 8px;
	color: #c8c8c8;
}
.mudiya-pp-bc-current {
	color: #8a8a8a;
}

/* --- 标题区：金色下边线收口，不用大 Banner --- */
.mudiya-pp-head {
	margin: 0 0 34px;
	padding: 0 0 22px;
	border-bottom: 2px solid #e3a82b !important;
}
.mudiya-pp-title.mudiya-pp-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 42px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: #2e2e2e !important;
	letter-spacing: -.5px;
}

/* --- 正文 --- */
.mudiya-pp-body {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	color: #2e2e2e;
}
.mudiya-pp-body p {
	margin: 0 0 18px !important;
	font-size: 16px !important;
	line-height: 1.8 !important;
	color: #2e2e2e !important;
}
/* 首个段落为版本说明（Last updated: ...），弱化为文件元信息 */
.mudiya-pp-body > p:first-child {
	margin-bottom: 28px !important;
	font-size: 14px !important;
	color: #8a8a8a !important;
}

/* --- 分节标题 --- */
.mudiya-pp-body h2 {
	margin: 44px 0 16px !important;
	padding: 0 0 0 14px !important;
	border-left: 4px solid #e3a82b !important;
	font-size: 23px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #2e2e2e !important;
}
.mudiya-pp-body h3 {
	margin: 30px 0 12px !important;
	font-size: 19px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: #2e2e2e !important;
}

/* --- 列表 --- */
.mudiya-pp-body ul,
.mudiya-pp-body ol {
	margin: 0 0 22px !important;
	padding-left: 24px !important;
}
.mudiya-pp-body li {
	margin: 0 0 8px !important;
	padding-left: 4px;
	font-size: 16px !important;
	line-height: 1.75 !important;
	color: #2e2e2e !important;
}
.mudiya-pp-body li::marker {
	color: #e3a82b;
}

/* --- 强调与链接：不用蓝，静态深灰 + 金色下划线，hover 转金 --- */
.mudiya-pp-body strong {
	font-weight: 600;
	color: #2e2e2e;
}
.mudiya-pp-body a {
	color: #2e2e2e !important;
	text-decoration: none !important;
	border-bottom: 1px solid #e3a82b;
	transition: color .2s, border-color .2s;
}
.mudiya-pp-body a:hover {
	color: #e3a82b !important;
	border-bottom-color: #2e2e2e;
}
.mudiya-pp-body img {
	max-width: 100%;
	height: auto;
}
.mudiya-pp-body figure {
	margin: 24px 0;
}

/* --- 平板 ≤1024px --- */
@media (max-width: 1024px) {
	.mudiya-pp-wrap { max-width: 100%; padding: 32px 20px 70px; }
	.mudiya-pp-title.mudiya-pp-title { font-size: 36px !important; }
	.mudiya-pp-body h2 { font-size: 21px !important; margin-top: 36px !important; }
}

/* --- 手机 ≤767px --- */
@media (max-width: 767px) {
	.mudiya-pp-wrap { padding: 24px 16px 56px; }
	.mudiya-pp-breadcrumb { margin-bottom: 20px; font-size: 12px; }
	.mudiya-pp-head { margin-bottom: 24px; padding-bottom: 16px; }
	.mudiya-pp-title.mudiya-pp-title { font-size: 30px !important; }
	.mudiya-pp-body p,
	.mudiya-pp-body li { font-size: 15px !important; line-height: 1.75 !important; }
	.mudiya-pp-body h2 {
		font-size: 19px !important;
		margin: 30px 0 12px !important;
		padding-left: 12px !important;
		border-left-width: 3px;
	}
	.mudiya-pp-body h3 { font-size: 17px !important; }
}

/* ================================================================
   产品详情页 Tab 按钮：修正 Astra 默认蓝色下框线
   Astra 的 button:hover / button:focus 会设 border-color: var(--ast-global-color-1)，
   特异性 0,1,1 高于基础 .mudiya-tab-btn 的 0,1,0，悬停时把 2px 下框线染蓝。
   这里只对未激活按钮提高特异性，换回品牌金色，并固定 hover/focus 反馈色，
   避免点击后残留 Astra 的蓝底白字。激活态仍由 .mudiya-tab-btn.active 控制。
   ================================================================ */
.mudiya-tabs .mudiya-tab-btn:not(.active):hover,
.mudiya-tabs .mudiya-tab-btn:not(.active):focus,
.mudiya-tabs .mudiya-tab-btn:not(.active):focus-visible {
	background: #fff8ec !important;
	color: #e49a07 !important;
	border-bottom-color: #e3a82b !important;
	text-decoration: none !important;
	outline: none !important;
}

/* ================================================================
   产品详情页 CTA 第二个按钮：Free Sample（黑底）→ WhatsApp 实心按钮
   按 2026-11-11 用户参考图：#25D366 实心、白字、白色 WhatsApp 图标。
   与左侧金色实心 Request Quote 共用 .mudiya-cta a 的全部几何
   （高度 / 圆角 / 字号 / 字重 / padding 一律不覆盖），只换配色，
   避免一个描边一个实心并排时视觉不协调。
   hover 变深一档同色系绿 + 上移 + 阴影，反馈明显且不与左侧撞色。
   号码取自「外观 → 自定义 → 联系方式」，与右侧客服浮窗同一配置。
   选择器只命中带 .btn-whatsapp 的链接，不影响其它页面与按钮。
   ================================================================ */
.mudiya-cta a.btn-whatsapp {
	background: #25D366 !important;
	color: #fff !important;
	border: none !important;
	box-shadow: none;
	text-decoration: none !important;
	white-space: nowrap;
}
.mudiya-cta a.btn-whatsapp .mudiya-wa-ico {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: #fff;
	transition: transform .2s;
}
.mudiya-cta a.btn-whatsapp:hover,
.mudiya-cta a.btn-whatsapp:focus,
.mudiya-cta a.btn-whatsapp:focus-visible {
	background: #1DA851 !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
	text-decoration: none !important;
	outline: none !important;
}
.mudiya-cta a.btn-whatsapp:hover .mudiya-wa-ico,
.mudiya-cta a.btn-whatsapp:focus .mudiya-wa-ico,
.mudiya-cta a.btn-whatsapp:focus-visible .mudiya-wa-ico {
	transform: scale(1.08);
}

/* 左侧主 CTA 补齐同一套 hover 动效。
   原来左侧只有背景变深，右侧却会上移 2px，并排悬停时看起来一高一低。
   这里只补位移与金色同色系阴影，背景色仍由原有 .btn-primary:hover 控制。 */
.mudiya-cta a.btn-primary:hover,
.mudiya-cta a.btn-primary:focus,
.mudiya-cta a.btn-primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(228, 154, 7, .35);
}

/* ===== 产品分类页 H1 与描述（2026-11-11 追加，配套 woocommerce/archive-product.php 的 H1 输出） =====
   只作用于 .mudiya-cat-intro，不改动任何既有选择器；容器宽度由 .mudiya-archive-main 控制。
   2026-11-11 晚按用户要求改为视觉隐藏（sr-only）：H1 标签、分类标题、描述文字全部
   保留在 HTML 中，搜索引擎与读屏软件可读；屏幕上不显示、不占高度，产品网格位置不受影响。
   恢复可见时把下面这条规则换成注释里的原始样式即可：
   .mudiya-cat-intro { margin: 6px 0 30px; max-width: 880px; }
   .mudiya-cat-intro-title { margin: 0 0 14px; font-size: 40px; font-weight: 700; line-height: 1.15; color: #2e2e2e; }
   .mudiya-cat-intro-text { font-size: 16px; line-height: 1.7; color: #555; } */
.mudiya-cat-intro {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ===== 产品中心首页引导区（2026-11-11 追加，配套 woocommerce/archive-product.php 的 shop H1） =====
   只作用于 .mudiya-shop-intro，不改动任何既有选择器；宽度由 .mudiya-archive-main 控制。 */
.mudiya-shop-intro {
	margin: 4px 0 30px;
	padding: 0;
}
.mudiya-shop-intro::before {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	background: #e3a82b;
	border-radius: 2px;
	margin-bottom: 16px;
}
.mudiya-shop-intro-title {
	margin: 0 0 10px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	color: #2e2e2e;
}
.mudiya-shop-intro-sub {
	margin: 0;
	max-width: 720px;
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

/* 平板 */
@media (max-width: 1024px) {
	.mudiya-shop-intro {
		margin-bottom: 26px;
	}
	.mudiya-shop-intro-title {
		font-size: 30px;
	}
}

/* 手机 */
@media (max-width: 767px) {
	.mudiya-shop-intro {
		margin: 2px 0 20px;
	}
	.mudiya-shop-intro::before {
		width: 34px;
		margin-bottom: 12px;
	}
	.mudiya-shop-intro-title {
		font-size: 25px;
	}
	.mudiya-shop-intro-sub {
		font-size: 15px;
		line-height: 1.65;
	}
}
