/* default 主题（MOK 风格）站点层补充样式 */

.tb-comment-wraper .comment-form-tip {
    margin-top: 12px;
    color: #8a8a8a;
    font-size: 13px;
}

.tb-comment-wraper .comment-form-tip.is-error {
    color: #e74c3c;
}

.tb-comment-wraper .comment-form-tip.is-success {
    color: #389e0d;
}

.tb-m-about .m-describe-rich > p {
    margin: 0 0 16px;
}

.tb-m-about .m-describe-rich > p:last-child {
    margin-bottom: 0;
}

/* 文章详情图片预览：适中尺寸，避免竖图撑满整屏 */
.tb-modal.-article-modal {
    box-sizing: border-box;
    padding: 64px 32px 80px;
}

.-article-modal .-art-swiper {
    position: relative;
    width: min(76vw, 720px);
    height: min(58vh, 520px);
    max-width: 720px;
    max-height: 58vh;
    margin: 0 auto;
    flex-shrink: 0;
}

.-article-modal .swiper-wrapper,
.-article-modal .swiper-slide.swiper-item {
    height: 100%;
}

.-article-modal .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.-article-modal .swiper-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
}

.article-content img,
.tb-product-top .tb-thumb img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .tb-modal.-article-modal {
        padding: 52px 16px 72px;
    }

    .-article-modal .-art-swiper {
        width: min(88vw, 720px);
        height: min(52vh, 460px);
        max-height: 52vh;
    }
}

.tb-friend-links-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
}

.tb-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 8px;
}

.tb-friend-links a {
    color: #666;
    font-size: 14px;
}

.tb-friend-links a:hover {
    color: var(--tb--main);
}

/* 产品详情：立即购买 → 悬停/点击展示微信客服图 */
.tb-product-top .pro-buy {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    margin-top: 18px;
}

.tb-product-top .pro-buy .pro-link {
    margin-top: 0;
    color: #fff;
}

.tb-product-top .pro-buy .buy-wechat-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 20;
    width: 200px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    line-height: 1.5;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tb-product-top .pro-buy .buy-wechat-panel::before {
    position: absolute;
    content: "";
    left: 24px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
}

.tb-product-top .pro-buy .buy-wechat-panel .ct-info {
    font-weight: bold;
    color: #202935;
}

.tb-product-top .pro-buy .buy-wechat-panel .ct-desc {
    margin-top: 4px;
    color: #8a8a8a;
    font-size: 12px;
}

.tb-product-top .pro-buy .buy-wechat-panel img {
    display: block;
    max-width: 140px;
    width: 100%;
    margin: 8px auto 0;
}

.tb-product-top .pro-buy:hover .buy-wechat-panel,
.tb-product-top .pro-buy.is-open .buy-wechat-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 产品列表：三维横向筛选（对照 Themebetter 截图） */
.tb-product-filter {
    margin: 0 0 24px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.tb-product-filter-row {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.tb-product-filter-row:last-child {
    border-bottom: 0;
}

.tb-product-filter-label {
    flex: 0 0 72px;
    width: 72px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 24px;
    white-space: nowrap;
}

.tb-product-filter-options {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0;
    line-height: 0;
}

.tb-product-filter-options > li {
    display: inline-block;
    margin: 0 4px 0 0;
    padding: 0;
    vertical-align: middle;
    font-size: 14px;
    line-height: 24px;
}

.tb-product-filter-options a {
    display: inline-block;
    margin: 0;
    padding: 1px 10px;
    color: #333;
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    border-radius: 2px;
    transition: none;
}

.tb-product-filter-options a:hover {
    color: var(--tb--main, #007bff);
    background: transparent;
}

.tb-product-filter-options a.is-active,
.tb-product-filter-options a.is-active:hover {
    color: #fff;
    background: var(--tb--main, #007bff);
}

/* 产品列表空状态：通栏，避免沿用 case 卡片 25% 宽度 */
.post-list-case > .post-item.is-empty {
    flex: 0 0 calc(100% - 24px);
    flex-basis: calc(100% - 24px);
    max-width: calc(100% - 24px);
    width: calc(100% - 24px);
    margin: 0 24px 24px 0;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: none;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
}

.post-list-case > .post-item.is-empty .empty-state {
    padding: 40px 24px;
    text-align: center;
}

.post-list-case > .post-item.is-empty .empty-title {
    margin: 0 0 8px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.post-list-case > .post-item.is-empty .empty-desc {
    margin: 0 0 16px;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.post-list-case > .post-item.is-empty .empty-action {
    display: inline-block;
    padding: 8px 18px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    background: var(--tb--main, #007bff);
    border-radius: 2px;
}

.post-list-case > .post-item.is-empty .empty-action:hover {
    color: #fff;
    opacity: 0.9;
}


