/* WordPress Overrides for PbootCorp Theme */

/* WordPress captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}
.wp-caption-text {
    font-size: 13px;
    color: #777;
    text-align: center;
    padding: 8px 0;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}
.alignright {
    float: right;
    margin: 0 0 20px 20px;
}
.aligncenter {
    display: block;
    margin: 20px auto;
}
.alignwide {
    max-width: 100%;
}
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* WordPress gallery */
.gallery {
    margin: 20px 0;
}
.gallery-item {
    display: inline-block;
    vertical-align: top;
    padding: 0 8px;
    margin-bottom: 16px;
}
.gallery-caption {
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Admin bar spacing */
body.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* WordPress post navigation */
.post-navigation {
    padding: 20px 0;
}
.post-navigation a {
    color: #274b92;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress search form in templates */
.search-form .search-field {
    border: 1px solid #dedede;
    background-color: #fbfbfb;
    font-size: 14px;
    line-height: 18px;
    padding: 10px;
    outline: medium;
    border-radius: 0;
    box-sizing: border-box;
}
.search-form .search-field:focus {
    background-color: #fff;
    border: 1px solid #274b92;
}

/* ====================================================================
   Lianxin International - Bilingual & Wholesale Theme Additions
   ==================================================================== */

/* Language switch button (auto-injected into .nav_inner) */
.nav-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    margin-left: 16px;
    padding: 0 12px;
    border: 1px solid #274b92;
    background: #fff;
    color: #274b92;
    font-family: 'Montserrat',"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: 17px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    vertical-align: middle;
}
.nav-lang-switch:hover { background: #274b92; color: #fff; }
.nav_inner { position: relative; }
@media screen and (max-width: 959px) {
    .nav-lang-switch {
        position: absolute;
        top: 50%;
        right: 64px;
        margin-left: 0;
        z-index: 100;
        /* 按钮为 34px 高的圆角胶囊，视觉重心相对 44px 汉堡图标偏下，上移 3px 修正视觉对齐 */
        transform: translateY(calc(-50% - 3px));
    }
}

/* WhatsApp floating contact button */
.floating-contact-wrap .floating-contact-button.whatsapp-cta {
    background: #25d366;
    color: #fff;
}
.floating-contact-wrap .floating-contact-button.whatsapp-cta i { color: #fff; }
.floating-contact-wrap .floating-contact-button.whatsapp-cta:hover { background: #1da851; }

/* WhatsApp prominent button on contact page */
.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 8px;
    padding: 12px 24px;
    background: #25d366;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.contact-whatsapp-btn i { color: #fff; font-size: 18px; }
.contact-whatsapp-btn:hover { background: #1da851; color: #fff; transform: translateY(-1px); }

/* Contact left info line icons */
.contact_left .ct-line { font-size: 14px; line-height: 26px; color: #444; }
.contact_left .ct-line i { width: 22px; color: #274b92; margin-right: 6px; }

/* News category tag */
.news-meta .cat {
    display: inline-block;
    padding: 2px 10px;
    background: #eef3fb;
    color: #274b92;
    font-size: 12px;
    border-radius: 10px;
    margin-right: 8px;
}
