/* ============================================================
 * m-header.css — 头部所有样式（PC 顶部菜单选中态 + 手机端"上部分"）
 * 组成：
 *   1) 你原模板 PC 头部菜单 .active 选中态（保留你原有写法）
 *   2) 手机端首页"上部分"：顶部固定栏 / 金刚区 / 栏目标题 /
 *      产品卡片(德标整家) / 快速生成报价 —— 全部包在 @media(max-width:768px)
 * 原则：
 *   - 手机端样式只作用于 max-width:768px，PC 端完全不受影响；
 *   - 手机端类名带 .mzh- 前缀，不与你现有主题冲突。
 * 部署路径：/pub/css/m-header.css
 * ============================================================ */

/* ===== 你原模板 PC 头部菜单选中态（原样保留） ===== */
.main-menu .navigation>li>a {
    color: ;
}

.fixed-header .navigation>li>a {
    color: ;
}

.main-menu .navigation>li .active {
    padding: 0 15px;
    border-radius: 0px;
    border: 1px solid;
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 158, 47, 1);
}

/* ===== PC 端（>768px）默认隐藏手机端新增元素 =====
 * 手机端顶栏 .mzh-head 若不加这条，电脑端会以"裸 HTML"冒出来。
 * 手机端由下方 @media 内的 display:flex 覆盖本条（同优先级、靠后生效）。 */
.mzh-head, .mzh-menu { display: none; }

/* ============================================================
 * 以下为手机端"上部分"样式（参考站 bjm.yzf.com.cn）
 * ============================================================ */
@media (max-width: 768px) {

/* ===== 一、顶部固定栏（logo | 城市 | 搜索 | 菜单） ===== */
.mzh-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    box-sizing: border-box;
    padding: 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
}
.mzh-head .mzh-logo { width: 137px; }
.mzh-head .mzh-left { display: flex; gap: 7px; }
/* "城市"地址小胶囊 */
.mzh-head .mzh-address {
    display: flex;
    width: 34px;
    height: 16px;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #f5f5f5;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.04);
    font-size: 8px;
    align-items: center;
    color: #999;
    gap: 2px;
}
.mzh-head .mzh-address img { width: 5px; height: auto; }
.mzh-head .mzh-right { display: flex; align-items: center; }
.mzh-head .mzh-search { width: 18px; margin-right: 14px; }
.mzh-head .mzh-union { width: 14px; }
/* 有固定顶栏时，首屏内容需要留出高度 */
.mzh-has-head { margin-top: 44px; }

/* ===== 六、手机端全屏导航（.mzh-union 触发，默认隐藏） ===== */
.mzh-menu {
    position: fixed;
    top: 44px;          /* 紧贴固定顶栏下方 */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    overflow-y: auto;
    display: none;      /* 默认隐藏 */
    padding: 6px 0 20px;
    -webkit-overflow-scrolling: touch;
}
.mzh-menu.mzh-open { display: block; }
.mzh-menu > ul { list-style: none; margin: 0; padding: 0; }
.mzh-menu > ul > li > a {
    display: block;
    padding: 15px 18px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
}
/* 有二级菜单的一级项，右侧加个小箭头提示可展开 */
.mzh-menu .mzh-has-sub > a::after {
    content: "";
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(45deg);
    transition: transform .2s;
}
.mzh-menu .mzh-has-sub.mzh-open > a::after { transform: rotate(-135deg); }
/* 二级 / 三级菜单 */
.mzh-menu .mzh-sub,
.mzh-menu .mzh-sub2 { display: none; list-style: none; margin: 0; padding: 0; background: #fafafa; }
.mzh-menu .mzh-has-sub.mzh-open > .mzh-sub { display: block; }
.mzh-menu .mzh-sub2 { background: #f2f2f2; }
.mzh-menu .mzh-has-sub.mzh-open > .mzh-sub2 { display: block; }
.mzh-menu .mzh-sub > li > a,
.mzh-menu .mzh-sub2 > li > a {
    display: block;
    padding: 13px 18px 13px 38px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}
.mzh-menu .mzh-sub2 > li > a { padding-left: 58px; color: #888; }

/* ===== 二、金刚区（5 个快捷入口图标） ===== */
.mzh-nav {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 16px 20px 19px;
    background-color: #fff;
}
.mzh-nav a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 图标底座：灰底圆角方块 */
.mzh-nav .mzh-nav-img {
    width: 44px;
    height: 44px;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}
.mzh-nav .mzh-nav-img img { height: 20px; display: inline-block; }
/* 角标（如"送方案"红标） */
.mzh-nav .mzh-zfa {
    padding: 0 3px;
    background: #ea4326;
    border-radius: 6px 6px 6px 0;
    color: #fff;
    line-height: 14px;
    font-size: 8px;
    position: absolute;
    right: -18px;
    top: -3px;
}

/* ===== 三、栏目标题（左标题+灰副标题 | 右"更多"） ===== */
.mzh-tab {
    background-color: #f5f5f5;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}
.mzh-tab .mzh-tab-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mzh-tab .mzh-tab-title .mzh-t { font-size: 18px; display: flex; align-items: center; font-weight: 700; color: #222; }
.mzh-tab .mzh-tab-title .mzh-t .mzh-des { font-size: 12px; font-weight: 400; color: #909090; margin-left: 5px; }
.mzh-tab .mzh-tab-title .mzh-more {
    font-size: 12px;
    color: #909090;
    display: flex;
    align-items: center;
    margin-right: 7px;
    text-decoration: none;
}
.mzh-tab .mzh-tab-title .mzh-more span { margin-right: 5px; }

/* ===== 四、产品卡片（"德标整家"式卡片组） ===== */
.mzh-products { padding: 17px 10px 0; margin-bottom: 0; }
.mzh-products .mzh-tab-title { margin-bottom: 19px; }
.mzh-products .mzh-row { display: flex; gap: 8px; margin-bottom: 8px; }
.mzh-products .mzh-row img { width: 100%; display: block; }
.mzh-products .mzh-card { flex: 1; position: relative; }
/* 卡片左下角文案（深色卡片上用） */
.mzh-products .mzh-card .mzh-text { position: absolute; bottom: 9px; left: 8.62%; }
.mzh-products .mzh-card .mzh-text .mzh-price { color: #212121; font-size: 10px; }
.mzh-products .mzh-card .mzh-text .mzh-price b { font-size: 20px; color: #2a2a2a; }
.mzh-products .mzh-card .mzh-text .mzh-area { font-size: 10px; color: #757575; line-height: 17px; }
/* 变体：文案在右侧居中、白色字（深色大卡片上用，如"跃层"卡） */
.mzh-products .mzh-card.mzh-card-z .mzh-text {
    top: 50%;
    bottom: auto;
    right: 6.18%;
    left: auto;
    transform: translateY(-50%);
    opacity: .92;
    text-align: right;
}
.mzh-products .mzh-card.mzh-card-z .mzh-text .mzh-price,
.mzh-products .mzh-card.mzh-card-z .mzh-text .mzh-price b { color: #fff; }
.mzh-products .mzh-card.mzh-card-z .mzh-text .mzh-area { color: #fff; }

/* ===== 五、快速生成报价（浅色渐变卡 + 两个选项 + 输入框 + 提交按钮） ===== */
.mzh-offer { padding: 0 10px; margin-bottom: 18px; }
.mzh-offer .mzh-offer-box {
    position: relative;
    z-index: 1;
    padding: 17px 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eee9e1, #ece6e1);
}
/* 标题行 */
.mzh-offer .mzh-offer-box .mzh-offer-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.mzh-offer .mzh-offer-box .mzh-offer-title small { font-size: 12px; font-weight: 400; color: #909090; }
/* 老房翻新 / 新房装修 两个选项 */
.mzh-offer .mzh-btns { display: flex; justify-content: space-between; margin-top: 20px; }
.mzh-offer .mzh-btns span {
    position: relative;
    width: 160px;
    height: 44px;
    border: 1px solid #f0f1f3;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    color: #3d3d3d;
    background-color: #fff;
    text-align: center;
    line-height: 42px;
    box-sizing: border-box;
    cursor: pointer;
}
/* 选中态：红边红字 + 右上角对勾角标 */
.mzh-offer .mzh-btns span.mzh-cur { border-color: #e2451e; color: #e2451e; }
.mzh-offer .mzh-btns span.mzh-cur::after {
    content: "\2713";
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 13px;
    background: #e2451e;
    color: #fff;
    font-size: 9px;
    line-height: 13px;
    text-align: center;
    border-radius: 0 4px 0 10px;
}
/* 输入框 */
.mzh-offer .mzh-inputs { border-radius: 5px; overflow: hidden; margin-top: 8px; }
.mzh-offer .mzh-inputs input {
    width: 100%;
    height: 44px;
    background: #fff;
    border: none;
    outline: none;
    font-size: 12px;
    padding: 0 12px;
    box-sizing: border-box;
    display: block;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.mzh-offer .mzh-inputs input + input { border-top: 1px solid #f5f5f5; }
/* 提交按钮：橙红渐变（参考站 btnStyle） */
.mzh-offer .mzh-submit {
    width: 100%;
    height: 44px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-top: 14px;
    border: 3px solid transparent;
    border-radius: 5px;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,.25);
    background-image:
        linear-gradient(90deg, #fc7730, #ea4426),
        linear-gradient(180deg, #ea4426, #fc7730);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

} /* @media (max-width:768px) 结束 —— 以上手机端样式只作用于手机端 */
