/*
Theme Name: 紫微宝 B2 子主题
Theme URI: https://www.ziweibao.com/
Description: 紫微宝网站 B2 Child Theme
Author: 紫微宝
Template: b2
Version: 1.0.0
*/


/* =========================================================
 * 紫微宝：tdty、yszx 分类文章详情页正文图片自动居中
 * ========================================================= */

.ziweibao-tdty .entry-content figure,
.ziweibao-tdty .entry-content .wp-block-image,
.ziweibao-yszx .entry-content figure,
.ziweibao-yszx .entry-content .wp-block-image {
    text-align: center;
}

.ziweibao-tdty .entry-content img,
.ziweibao-yszx .entry-content img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    height: auto;
    max-width: 100%;
}


/* =========================================================
 * 紫微宝商家详情页
 * ========================================================= */


/* ---------------------------------------------------------
 * 商家内容整体
 * --------------------------------------------------------- */

.zwb-merchant {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * 商家简介
 * 左侧紫粉强调线 + 向右透明渐变
 * --------------------------------------------------------- */

.zwb-merchant-subtitle {
    position: relative;
    margin: 0 0 18px;
    padding: 8px 20px 8px 22px;
    border: 0;
    border-radius: 0;

    background: linear-gradient(
        90deg,
        rgba(249, 226, 241, 0) 0%,
        rgba(252, 238, 247, 0) 38%,
        rgba(255, 248, 252, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );

    color: #725468;
    font-size: 15px;
    line-height: 1.8;
    box-sizing: border-box;
}


/* 简介左侧强调线 */

.zwb-merchant-subtitle::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 4px;
    border-radius: 4px;

    background: linear-gradient(
        180deg,
        #d94c9e 0%,
        #a85acb 100%
    );
}


/* 简介底部渐隐线 */

.zwb-merchant-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72%;
    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(211, 79, 154, 0.32) 0%,
        rgba(211, 79, 154, 0) 100%
    );
}


/* =========================================================
 * 首屏区域
 * PC：左侧主图 280×210
 * 右侧联系信息自动占满剩余宽度
 * ========================================================= */

.zwb-merchant-overview {
    display: grid;

    /* 左侧主图约38%，右侧联系商家约62% */
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: 18px;

    width: 100%;
    margin-bottom: 22px;

    align-items: stretch;
}


/* ---------------------------------------------------------
 * 左侧商家主图
 * --------------------------------------------------------- */

.zwb-merchant-main-image {
    position: relative;

    width: 100%;
    min-width: 0;

    height: auto;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 12px;
    background: #f7f7f7;

    box-shadow: 0 4px 16px rgba(67, 45, 61, 0.07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.zwb-merchant-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;
    border-radius: 12px;

    object-fit: cover;
    object-position: center;
}


/* ---------------------------------------------------------
 * 右侧联系商家信息卡
 * --------------------------------------------------------- */

.zwb-merchant-info {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 15px 18px 13px;

    overflow: hidden;

    border: 1px solid #efd8e8;
    border-radius: 12px;

    background: linear-gradient(
        145deg,
        rgba(255, 249, 253, .98) 0%,
        rgba(252, 242, 250, .98) 100%
    );

    box-shadow: 0 4px 16px rgba(115, 55, 94, 0.07);

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/*
 * PHP 中目前仍保留“联系商家”h2，
 * 前台直接隐藏，不占任何空间。
 */

.zwb-merchant-info h2 {
    display: none !important;
}


/* ---------------------------------------------------------
 * 联系资料区域
 * 3 / 4 / 5 条资料自动均匀分布
 * --------------------------------------------------------- */

.zwb-merchant-info-body {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;

    gap: 0;
    min-height: 0;
}


/* 单条资料 */

.zwb-info-row {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;

    gap: 8px;

    min-width: 0;
    margin: 0;

    font-size: 14px;
    line-height: 1.45;

    flex: 0 0 auto;
}


/* 地址、电话、微信、QQ、营业标签 */

.zwb-info-row strong {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 22px;

    padding: 1px;

    border-radius: 6px;

    background: #f9e6f2;
    color: #ad3f80;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    box-sizing: border-box;
}


/* 资料内容 */

.zwb-info-row span {
    min-width: 0;

    padding-top: 2px;

    color: #55505a;

    word-break: break-word;
}


/* ---------------------------------------------------------
 * 商家特点标签
 * 固定在联系卡片底部
 * --------------------------------------------------------- */

.zwb-info-features {
    flex: 0 0 auto;

    margin-top: 4px;
    padding-top: 5px;
}


/* 不显示“商家特点”文字 */

.zwb-info-feature-title {
    display: none !important;
}


/* 特点标签容器 */

.zwb-feature-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


/* 单个特点标签 */

.zwb-feature-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    margin: 0;
    padding: 4px 12px;

    border: 1px solid #e7b9d6;
    border-radius: 999px;

    background: rgba(255, 255, 255, .78);
    color: #a53d7e;

    font-size: 12px;
    line-height: 1.4;

    white-space: nowrap;

    box-sizing: border-box;
}


/* =========================================================
 * PC 鼠标悬停效果
 * ========================================================= */

@media (hover: hover) {

    .zwb-merchant-main-image:hover {
        transform: translateY(-3px) scale(1.008);
        box-shadow: 0 13px 28px rgba(76, 48, 68, 0.15);
    }

    .zwb-merchant-info:hover {
        transform: translateY(-3px) scale(1.008);
        border-color: #e8bdd8;
        box-shadow: 0 13px 28px rgba(174, 64, 132, 0.15);
    }

    .zwb-feature-tag {
        transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease,
            transform .2s ease;
    }

    .zwb-feature-tag:hover {
        color: #fff;
        border-color: #c84b92;

        background: linear-gradient(
            135deg,
            #d8529f,
            #ad5bc7
        );

        transform: translateY(-1px);
    }
}

/* =========================================================
 * 手机
 * ≤ 1000px
 * 主图与信息卡上下排列
 * ========================================================= */

@media screen and (max-width: 1000px) {

    /* 商家简介 */

    .zwb-merchant-subtitle {
        margin-bottom: 14px;

        padding: 8px 14px 8px 17px;

        font-size: 14px;
        line-height: 1.7;
    }


    /* 首屏上下排列 */

    .zwb-merchant-overview {
        display: flex;
        flex-direction: column;

        gap: 12px;

        width: 100%;
        height: auto;

        margin-bottom: 18px;
    }


    /* 手机主图占满宽度，保持4:3 */

    .zwb-merchant-main-image {
        width: 100%;
        min-width: 0;

        height: auto;
        aspect-ratio: 4 / 3;

        border-radius: 10px;
    }

    .zwb-merchant-main-image img {
        border-radius: 10px;
    }


    /* 手机联系信息卡高度随内容变化 */

    .zwb-merchant-info {
        width: 100%;

        height: auto;
        min-height: 0;

        padding: 15px;

        border-radius: 10px;
    }


    /*
     * 手机端不使用 space-evenly。
     * 因为卡片高度为 auto，没有剩余高度可均分。
     */

    .zwb-merchant-info-body {
        flex: none;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        gap: 9px;
    }


    .zwb-info-row {
        grid-template-columns: 45px minmax(0, 1fr);

        gap: 7px;

        margin: 0;

        font-size: 13px;
        line-height: 1.5;
    }


    /* 手机特点标签 */

    .zwb-info-features {
        flex: none;

        margin-top: 12px;
        padding-top: 10px;

        border-top: 1px dashed #ead4e2;
    }

    .zwb-feature-tags {
        gap: 7px;
    }

    .zwb-feature-tag {
        min-height: 27px;

        padding: 4px 10px;

        font-size: 12px;
    }
}

/* =========================================================
 * 紫微宝商家详情页：详情说明
 * ========================================================= */

.zwb-merchant-description {
    position: relative;
    margin: 0 0 22px;
    padding: 18px 20px 19px;

    border: 1px solid #f0e3ec;
    border-radius: 10px;
    background: #fff8fc;

    box-shadow: 0 3px 12px rgba(105, 70, 94, 0.04);
    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* 详情说明标题 */

.zwb-merchant-description h2 {
    position: relative;

    margin: 0 0 13px !important;
    padding: 0 0 9px 13px !important;

    border-bottom: 1px solid #f2e7ee;

    color: #8f3f74;

    font-size: 17px !important;
    font-weight: 700;
    line-height: 1.4;
}


/* 标题左侧紫粉短线 */

.zwb-merchant-description h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 3px;

    width: 4px;
    height: 18px;

    border-radius: 4px;

    background: linear-gradient(
        180deg,
        #d94c9e 0%,
        #a85acb 100%
    );
}


/* 详情正文 */

.zwb-merchant-description .zwb-description-content {
    color: #4f4b50;

    font-size: 15px;
    line-height: 1.9;

    word-break: break-word;
}


/* 正文段落 */

.zwb-merchant-description .zwb-description-content p {
    margin: 0 0 10px;
}

.zwb-merchant-description .zwb-description-content p:last-child {
    margin-bottom: 0;
}


/* PC 鼠标悬停 */

@media (hover: hover) {

    .zwb-merchant-description:hover {
        transform: translateY(-2px);

        border-color: #ead3e2;

        box-shadow: 0 10px 24px rgba(133, 69, 110, 0.09);
    }
}


/* 手机 */

@media screen and (max-width: 700px) {

    .zwb-merchant-description {
        margin-bottom: 18px;

        padding: 15px 14px 16px;

        border-radius: 9px;
    }

    .zwb-merchant-description h2 {
        margin-bottom: 11px !important;
        padding-left: 11px !important;

        font-size: 16px !important;
    }

    .zwb-merchant-description .zwb-description-content {
        font-size: 14px;
        line-height: 1.85;
    }
}
/* =========================================================
 * 紫微宝商家详情页：商家风采
 * ========================================================= */

.zwb-merchant-gallery {
    position: relative;
    margin: 0 0 22px;
    padding: 18px 20px 20px;

    background: #fff8fc;
    border: 1px solid #f0e3ec;
    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(105, 70, 94, 0.04);
    box-sizing: border-box;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* 鼠标移入模块 */

.zwb-merchant-gallery:hover {
    transform: translateY(-2px) scale(1.006);
    border-color: #ebc9df;
    box-shadow: 0 10px 24px rgba(181, 72, 143, 0.12);
}


/* 商家风采标题 */

.zwb-merchant-gallery > h2 {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 10px 13px;

    color: #a73582;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;

    border-bottom: 1px solid #f0dce9;
}


/* 标题左侧短线 */

.zwb-merchant-gallery > h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;

    width: 3px;
    height: 18px;

    background: #d94eaa;
    border-radius: 3px;
}


/* 横向图片轨道 */

.zwb-gallery-track {
    display: flex;
    gap: 12px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 1px 1px 7px;

    box-sizing: border-box;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}


/* 隐藏 Chrome / Edge 滚动条 */

.zwb-gallery-track::-webkit-scrollbar {
    display: none;
}


/* 每张图片 */

.zwb-gallery-item {
    flex: 0 0 calc((100% - 24px) / 3);

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 8px;

    background: #f7f3f6;

    scroll-snap-align: start;

    box-sizing: border-box;
}


/* 图片本身 */

.zwb-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border: 0;
    border-radius: 8px;

}

/* =========================
 * 手机端
 * ========================= */

@media screen and (max-width: 700px) {

    .zwb-merchant-gallery {
        margin-bottom: 18px;
        padding: 15px 14px 16px;
    }

    .zwb-merchant-gallery:hover {
        transform: none;
    }

    .zwb-merchant-gallery > h2 {
        margin-bottom: 13px;
        font-size: 16px;
    }

    .zwb-gallery-track {
        gap: 10px;
    }

    .zwb-gallery-item {
        flex: 0 0 82%;
    }

}

/* =========================================================
 * 商家风采左右翻页箭头
 * ========================================================= */

.zwb-merchant-gallery {
    position: relative;
}

.zwb-gallery-arrow {
    position: absolute;
    top: 58%;
    z-index: 10;

    width: 34px;
    height: 48px;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(218, 78, 170, 0.18);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.50);

    color: #c13d94;
    font-size: 30px;
    font-weight: 300;
    line-height: 42px;
    text-align: center;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(80, 50, 70, 0.12);

    transform: translateY(-50%);

    transition:
        background .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.zwb-gallery-prev {
    left: 27px;
}

.zwb-gallery-next {
    right: 27px;
}

.zwb-gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 5px 16px rgba(181, 72, 143, 0.20);
}


/* 手机端箭头稍小 */

@media screen and (max-width: 700px) {

    .zwb-gallery-arrow {
        width: 30px;
        height: 44px;

        font-size: 26px;
        line-height: 38px;
    }

    .zwb-gallery-prev {
        left: 20px;
    }

    .zwb-gallery-next {
        right: 20px;
    }

}

/* =========================================================
 * 商家风采箭头：禁止点击时上下跳动
 * ========================================================= */

.zwb-gallery-arrow,
.zwb-gallery-arrow:hover,
.zwb-gallery-arrow:focus,
.zwb-gallery-arrow:active {
    transform: translateY(-50%) !important;

    top: 58% !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    outline: none !important;
}

/* 点击时不要产生位移、缩放 */
.zwb-gallery-arrow:active {
    transform: translateY(-50%) !important;
}

/* 去掉部分浏览器点击后的焦点效果 */
.zwb-gallery-arrow:focus {
    box-shadow: 0 3px 12px rgba(80, 50, 70, 0.12);
}

/* 鼠标悬停只改变阴影，不改变位置 */
.zwb-gallery-arrow:hover {
    background: #fff;
    box-shadow: 0 5px 16px rgba(181, 72, 143, 0.20);
}

/* =========================================================
 * 紫微宝商家详情页：有情提示
 * ========================================================= */

.zwb-merchant-notice {
    position: relative;

    margin: 0 0 22px;
    padding: 16px 20px 17px 22px;

    background: linear-gradient(
        110deg,
        #fff5fb 0%,
        #fff9fc 58%,
        #ffffff 100%
    );

    border: 1px solid #f0dce9;
    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(105, 70, 94, 0.04);

    box-sizing: border-box;
    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* 左侧紫粉渐变强调线 */

.zwb-merchant-notice::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: linear-gradient(
        180deg,
        #d94c9e 0%,
        #a85acb 100%
    );
}


/* 标题 */

.zwb-merchant-notice > h2 {
    margin: 0 0 7px !important;
    padding: 0 !important;

    border: 0 !important;

    color: #a73582;

    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.5;
}


/* 提示正文 */

.zwb-merchant-notice > p {
    margin: 0 !important;
    padding: 0 !important;

    color: #625a61;

    font-size: 14px;
    line-height: 1.85;

    word-break: break-word;
}


/* 整个提示模块悬停 */

@media (hover: hover) {

    .zwb-merchant-notice:hover {
        transform: translateY(-2px) scale(1.004);

        border-color: #e9c9de;

        box-shadow:
            0 9px 22px rgba(133, 69, 110, 0.09);
    }

}


/* =========================
 * 手机端
 * ========================= */

@media screen and (max-width: 700px) {

    .zwb-merchant-notice {
        margin-bottom: 18px;
        padding: 14px 15px 15px 18px;

        border-radius: 9px;
    }

    .zwb-merchant-notice > h2 {
        margin-bottom: 6px !important;
        font-size: 15px !important;
    }

    .zwb-merchant-notice > p {
        font-size: 14px;
        line-height: 1.8;
    }

}

/* =========================================================
 * 紫微宝商家详情页：主图卡片边框统一
 * ========================================================= */

.zwb-merchant-main-image {
    border: 1px solid #f0e3ec;
    border-radius: 10px;

    background: #fff8fc;

    box-shadow: 0 3px 12px rgba(105, 70, 94, 0.04);

    box-sizing: border-box;
    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* 图片填满卡片 */

.zwb-merchant-main-image img {
    position: absolute;

    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;

    width: calc(100% - 2px);
    height: calc(100% - 2px);

    margin: 0;

    object-fit: cover;

    border-radius: 8px;
}

/* 整个主图模块悬停 */

@media (hover: hover) {

    .zwb-merchant-main-image:hover {
        transform: translateY(-2px) scale(1.006);

        border-color: #ebc9df;

        box-shadow: 0 10px 24px rgba(181, 72, 143, 0.10);
    }

}

/* 手机版隐藏顶部搜索框 */
@media screen and (max-width: 768px) {

    .top-search .mobile-search-input {
        display: none !important;
    }

}

/* 隐藏 7B2 底部右下角 查询次数 / 耗时 */
.footer-bottom-right {
    display: none !important;
}

/* ==========================================
   紫微宝 - 恢复7B2原生最新评论头像尺寸
   原生尺寸：25×25px
   ========================================== */

.b2-widget-comment .widget-comment-user-left {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}

.b2-widget-comment .widget-comment-user-left img {
    display: block;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px;
    min-height: 25px;
    max-width: 25px !important;
    max-height: 25px !important;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 5px;
}

/* ==========================================
   紫微宝 - 7B2文章列表头像原生尺寸修复
   电脑端：20×20px
   手机端：隐藏头像
   ========================================== */

/* 电脑端：固定头像尺寸，不受原图大小影响 */
.post-list-meta-avatar picture {
    display: inline-flex;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    overflow: hidden;
    border-radius: 50%;
}

.post-list-meta-avatar img.avatar {
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0;
}

/* 手机端：遵循7B2原生规则 */
@media screen and (max-width: 768px) {
    .post-list-meta-avatar img.avatar,
    .post-list-meta-avatar picture {
        display: none !important;
    }
}

/* 紫微宝 - 7B2最新评论列表间距 */
.widget.b2-widget-comment .comment-widget ul li {
    padding: 18px !important;
    box-sizing: border-box;
}

/* 隐藏【首页】侧边栏「最新点评」发布时间 */
#comment-widget time.b2timeago{
  display: none !important;
}
/* ① 隐藏【首页】侧边栏资讯列表发布时间 */
.home .sidebar time.b2timeago,
.home .sidebar .b2-widget-post-title time,
.home .sidebar .widget-comment-user time{
  display: none !important;
}
/* ✅ 隐藏【分类页】侧边栏「杭州玩乐体验」文章发布时间 */
.archive .sidebar time.b2timeago,
.category .sidebar time.b2timeago{
  display: none !important;
}
/* ✅ 隐藏【文章详情页】右侧侧边栏文章列表的发布时间 */
.single .sidebar time.b2timeago{
  display: none !important;
}

/*首页下面*/
/* 1) 友情链接（横线以上）更像一个区块，并加分隔线 */
footer#colophon .footer-links{
  padding: 18px 0;
  margin-top: 10px;
  border-top: 2px solid rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(0,0,0,.10);
}

/*网站底部*/
/* 2) 横线下面：整体版权区 */
footer#colophon .footer-bottom{
  padding: 14px 0 18px;
}
/* 3) 关键：让左侧版权区变成“竖向两行居中” */
footer#colophon .footer-bottom-left{
  width: 100%;
  display: flex;
  flex-direction: row;        /* 👈 改成 row */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;            /* 小屏自动换行 */
  gap: 6px;
  text-align: center;            /* 两行之间的距离 */
}

/* 第一行：版权/备案字体 */
footer#colophon .footer-bottom-left .copyright,
footer#colophon .footer-bottom-left .beian{
  font-size: 13px;
  line-height: 1.8;
}
/* 4) 第二行：免责声明（追加出来，不依赖后台HTML） */
footer#colophon .footer-bottom-left::after{
  content: "免责声明：用户内容仅代表发布者其个人观点，并不代表本网站的观点或立场。本网站不对任何用户内容的真实性、准确性、完整性或合法性进行担保，不承担法律责任。";
  display: block;
  max-width: 1100px;
  padding: 0 16px;
  font-size: 12px;
  line-height: 1.8;
  opacity: .72;
}

/* 底部「关于我们」这一行：平均分布占满整行 */
footer#colophon .footer-links ul{
  display: flex;
  justify-content: space-between; /* 关键 */
  align-items: center;
  flex-wrap: nowrap;              /* 保证一行 */
  width: 100%;
  padding: 0;
  margin: 0;
}
/* 底部「关于我们」这一排：半透明灰色条（背景） */
footer#colophon .footer-links{
  background: rgba(255,255,255,0.2) !important; /* ← 改这里的颜色/透明度 */
}

/* 分类页/归档页：隐藏菜单下方那条（搜索框 + 全部标签 + 分类名） */
body.category .tax-header .tax-info,
body.archive  .tax-header .tax-info {
  display: none !important;
}
/* 分类 / 归档页：在 tax-header 上方留空隙 */
body.category .tax-header,
body.archive  .tax-header{
  margin-top: 28px; /* 你可以改成 20 / 32 / 40 */
}
/* 【搜索结果页】隐藏作者 / 上传人 / 时间 / 阅读数 */
.search .list-footer {
  display: none !important;
}

/* 隐藏用户主页顶部封面图右上角“上传封面”入口 */
.user-cover-button,
.user-cover-button label,
#cover-input {
    display: none !important;
}

/* 隐藏用户头像修改按钮 */
.editor-avatar,
#avatar-input{
    display:none !important;
}
/* 隐藏认证信息 */
.user-info .user-verify{
    display:none !important;
}
/* 隐藏用户描述信息 */
#author-index .user-info p:nth-child(3){
    display:none !important;
}
/* 隐藏财富模块 */
#author-index .user-money-and-credit{
    display:none !important;
}
/* 隐藏互动模块 */
#author-index .user-social-box{
    display:none !important;
}
/* 隐藏“财富”整个模块 */
#author-index > .user-info + .user-sidebar-gold {
    display: none !important;
}
/* 隐藏“互动”整个模块 */
#author-index > .user-info + .user-sidebar-gold + .user-sidebar-gold {
    display: none !important;
}
/* 隐藏订单整个侧边栏模块 */
.user-sidebar-info:has(a[href*="/orders"]){
    display:none !important;
}
/* 隐藏邀请码菜单 */
.user-sidebar-info a[href*="/myinv"]{
    display:none !important;
}
/* 隐藏邀请码整个模块 */
.user-sidebar-info:has(a[href*="/myinv"]){
    display:none !important;
}
/* 隐藏设置入口 */
.user-sidebar-info a[href*="/settings"]{
    display:none !important;
}
/* 隐藏设置整个模块 */
.user-sidebar-info:has(a[href*="/settings"]){
    display:none !important;
}
/* 隐藏用户下拉菜单 私信列表 */
.top-user-box-drop a[href*="directmessage"]{
    display:none !important;
}

/* 隐藏用户下拉菜单 我的设置 */
.top-user-box-drop a[href*="/settings"]{
    display:none !important;
}
/* 隐藏余额 */
.top-user-box-drop .user-money{
    display:none !important;
}

/* 隐藏积分 */
.top-user-box-drop .user-credit{
    display:none !important;
}

/* 删除整个容器 */
.top-user-box-drop .user-w-gold{
    display:none !important;
}

/* 隐藏用户主页发私信按钮 */
.user-follow button.empty{
    display:none !important;
}

/* ==========================================
   紫薇宝 - 手机端隐藏顶部消息通知及占位
   仅影响宽度 768px 及以下
   ========================================== */

@media screen and (max-width: 768px) {

    /* 顶部用户栏中的消息通知 */
    .header-user .change-theme > div:has(> a.user-tips[href*="message"]) {
        display: none !important;
    }

    /* 顶部横幅右侧的消息通知 */
    .header-banner-right .change-theme > div:has(> a.user-tips[href*="message"]) {
        display: none !important;
    }

}

/* 紫薇宝 - 手机端顶部导航宽度调整 */
@media screen and (max-width: 768px) {
    .ym-menu ul {
        width: calc(100% - 80px) !important;
    }
}

/* ==========================================
   紫薇宝：所有文章详情页隐藏日期时间
   包含商家、资讯、探店等全部分类
   ========================================== */

/* 1. 隐藏文章标题下方的发布时间 */
body.single-post .post-meta li.single-date {
    display: none !important;
}

/* 紫薇宝：隐藏所有详情页上一篇、下一篇的发布日期 */
body.single-post .post-pre-next .post-pre-next-in p,
body.single-post .post-pre-next-in p {
    display: none !important;
}

/* 紫薇宝：隐藏养生资讯分类页顶部空白筛选栏 */
body.category-yszx #filter-top {
    display: none !important;
}

/* 紫薇宝：隐藏商家详情页顶部重复的摘要 */
body.single-post .entry-content > .content-excerpt {
    display: none !important;
}

/* 紫薇宝：仅隐藏手机版海报分享按钮 */
@media screen and (max-width: 768px) {
    .content-footer-poster .poster-span {
        display: none !important;
    }
}

/* 紫薇宝：隐藏文章详情页作者信息、关注和私信模块 */
.single-article .post-user-info {
    display: none !important;
}

/* 紫薇宝：电脑和手机统一隐藏空白用户侧栏模块 */
#author .user-sidebar.h0 {
    display: none !important;
}

/* ==========================================
   紫薇宝：探店体验、养生资讯文章正文图片居中
   仅作用于这两个分类的文章详情页
   ========================================== */

/* 图片容器居中 */
.single.category-tdty .entry-content figure,
.single.category-yszx .entry-content figure,
.single.category-tdty .entry-content .wp-block-image,
.single.category-yszx .entry-content .wp-block-image {
    text-align: center;
}

/* 所有正文图片自动居中 */
.single.category-tdty .entry-content img,
.single.category-yszx .entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* ==========================================
   紫薇宝：右侧跟随栏精简
   隐藏「我的订单」和「余额」
   同时移除对应模块占位
   ========================================== */

/* 1. 隐藏个人中心的「我的订单」整排 */
.bar-user-info-row.my-order-button {
    display: none !important;
}

/* 2. 隐藏财富中的「余额」整排 */
.bar-user-info .user-money > a[href*="/gold"] {
    display: none !important;
}

/* 3. 如果余额链接外面还有独立包装，则隐藏空容器 */
.bar-user-info .user-money:empty {
    display: none !important;
}

/* 4. 紫薇宝：彻底隐藏右侧跟随栏余额模块及其占位 */
.bar-user-info .user-w-gold .user-money {
    display: none !important;
}

/* 紫薇宝：隐藏顶部搜索框“文章”后面的下拉箭头 */
.top-search-select > .b2-arrow-down-s-line {
    display: none !important;
}

/* 紫薇宝：首页 Banner 隐藏右上角轮播分页指示器 */
.home .module-sliders .flickity-page-dots {
    display: none !important;
}

/* ==========================================
   紫薇宝：手机版首页中部 Banner 去除阴影压暗
   ========================================== */

@media screen and (max-width: 768px) {

    /* 去除 Banner 图片上的滤镜 */
    .home .module-sliders .slider-img {
        filter: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    /* 去除 Banner 底部的渐变遮罩 */
    .home .module-sliders .slider-info-box,
    .home .module-sliders .slider-info {
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    /* 去除可能通过伪元素添加的渐变 */
    .home .module-sliders .slider-info-box::before,
    .home .module-sliders .slider-info-box::after,
    .home .module-sliders .slider-info::before,
    .home .module-sliders .slider-info::after {
        background: none !important;
        box-shadow: none !important;
    }
}

/* 紫薇宝：首页商家卡片隐藏价格、库存和人气 */
/* 适用于电脑、平板、手机等所有屏幕尺寸 */

body.home .shop-box-list .shop-box-price,
body.home .shop-box-list .shop-normal-item-count,
body.front-page .shop-box-list .shop-box-price,
body.front-page .shop-box-list .shop-normal-item-count {
    display: none !important;
}

/* 紫薇宝：首页商家标题统一单行显示，超出省略 */
body.home .shop-box-list .shop-list-item h2,
body.front-page .shop-box-list .shop-list-item h2 {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 22px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    margin: 12px 10px !important;
}

/* 紫薇宝：首页热度精选模块隐藏无效的“更多”按钮 */
/* 电脑、手机、平板等所有设备生效 */

body.home .shop-box-title .post-list-cats,
body.front-page .shop-box-title .post-list-cats {
    display: none !important;
}