:root {
    --cnvs-themecolor: #b03333;
    --cnvs-themecolor-rgb: 176, 51, 51;
    --cnvs-secondary-color: #383633;
    --cnvs-body-font: "PingFang SC", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --cnvs-primary-font: "PingFang SC", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --cnvs-secondary-font: "Open Sans", Helvetica;
    --bs-body-bg: #F8F8F8
        /*#F6F5ED*/
    ;
    --cnvs-slider-arrows-bg-color: transparent;
    --cnvs-slider-arrows-bg-hover-color: transparent;
    --cnvs-line-height-base: 1.3;
    --cnvs-line-height-content: 1.5;
}

:root {
    --bs-body-font-size: 14px;
}

body {
    text-wrap: pretty;
}

div,
h1,
h2,
h3,
h4,
p {
    text-wrap: auto;
}

.button {
    --cnvs-btn-color-dark: var(--cnvs-themecolor);
}

.wpcf7 form,
.wpcf7 p {
    margin-bottom: 0;
}

.fs-6 {
    font-size: 0.875rem !important;
}

@media (min-width: 1200px) {
    .display-6 {
        font-size: 2rem;
    }

    .fs-6 {
        font-size: 1.125rem !important;
    }
}

.dark {
    --cnvs-header-sticky-bg: var(--cnvs-themecolor);
    --cnvs-header-bg: var(--cnvs-themecolor);
    --cnvs-link-hover-color: var(--cnvs-secondary-color);
}

.post-thumbnail img {
    height: auto;
}

@media (min-width: 768px) {
    .post-thumbnail img {
        max-width: 80%;
    }
}

.error404 {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
}

.video-overlay,
.video-placeholder {
    background: none;
}

.box-img {
    position: relative;
    box-shadow: 14px -14px 0 0 rgba(var(--cnvs-themecolor-rgb, 253, 92, 99), 0.15);
}

.box-img.shadow-left {
    box-shadow: -14px -14px 0 0 rgba(var(--cnvs-themecolor-rgb, 253, 92, 99), 0.15);
}

.img-overlap+div {
    padding: 30px;
}

@media (min-width: 992px) {
    .img-overlap img {
        width: calc(100% + 50%);
        max-width: none;
    }

    .img-overlap+div {
        border-radius: 0.3rem;
        padding: 50px;
    }
}

.feature-box {
    --cnvs-featured-box-font-size: 0.875rem
}

;

.bg-color-tit {
    background-color: #F6F5ED;
}

.bg-color-2,
.h-bg-color-2:hover {
    background-color: var(--cnvs-secondary-color) !important;
}

.aspect-16-9 {
    aspect-ratio: 1600 / 900;
}

.aspect-3-2 {
    aspect-ratio: 300 / 200 !important;
}

.aspect-2-3 {
    aspect-ratio: 288 / 364;
}

.aspect-1-1 {
    aspect-ratio: 800 / 800 !important;
}

.dotted-bg:before {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 100%;
    background-size: 12px 12px;
    background-position: center;
    transform: translate(-50%, -50%);
    background-image: radial-gradient(rgba(var(--cnvs-themecolor-rgb), 0.3) 14%, transparent 14%);
    -webkit-mask-image: radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 75%);
    z-index: 0;
}

ul.wp-block-list {
    margin-left: 2rem;
}

.grid-filter-wrap,
.grid-filter {
    --cnvs-grid-filter-item-font-size: 1rem;
}

.grid-filter li a {
    color: #000;
}

.modal {
    --bs-modal-bg: #FFF
}

#header {
    --cnvs-primary-menu-active-color: #c52b2b;
    --cnvs-primary-menu-hover-color: #c52b2b;
    --cnvs-mega-menu-width-sm: 460px;
}

#header-wrap #logo img {
    height: 70px;
}

.language-switcher a {
    display: block;
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1.2rem;
    background-color: #FFF;
}

.language-switcher a:hover {
    background-color: #333;
    color: #FFF;
}

.is-expanded-menu .sub-title .menu-container>.menu-item:not(:first-child)>.menu-link::before {
    display: none;
}



#page-title,
.page-title {
    --cnvs-page-title-parallax-font-size: calc(1.5rem + 1vw);
}

.magnetic-hover {
    transition: all 0.3s linear;
}

.magnetic-hover>span,
.magnetic-hover>div {
    pointer-events: none;
    transition: all 0.1s linear;
}

.swiper_wrapper:is(.xxxl\:min-h-\[398px\]) {
    min-height: 398px;
}

.swiper_wrapper :is(.xxxl\:h-full) {
    height: 100%;
}

.swiper_wrapper :is(.xxxl\:max-h-\[398px\]) {
    max-height: 398px;
}

.swiper_wrapper :is(.xxxl\:w-auto) {
    width: auto;
}

@media (min-width: 993px) and (max-width: 1280px) {
    .swiper_wrapper:is(.xxxl\:min-h-\[398px\]) {
        min-height: 298px;
    }

    .swiper_wrapper :is(.xxxl\:max-h-\[398px\]) {
        max-height: 298px;
    }
}

@media (max-width: 768px) {
    .swiper_wrapper:is(.xxxl\:min-h-\[398px\]) {
        min-height: 240px;
    }

    .swiper_wrapper :is(.xxxl\:max-h-\[398px\]) {
        max-height: 240;
    }
}

/* Items */
.item-description h1,
.item-description h2,
.item-description h3,
.item-description h4 {
    margin-bottom: 8px;
}

.item-description h2 {
    font-weight: 700;
    font-size: 24px;
    color: rgba(var(--cnvs-themecolor-rgb), var(--bs-text-opacity, 1)) !important;
}

.item-description p {
    margin-bottom: 1rem;
}

.item-description ul {
    margin-bottom: 0;
}

.item-description li {
    list-style: none;
    padding-left: 20px;
    position: relative;
    margin-bottom: 0.3rem;
    font-weight: 300;
}

.item-description li::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('../images/icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    position: absolute;
    top: 6px;
    left: 0;
}

/* Footer */
#footer {
    border-top: none;
}

#footer .divider {
    --cnvs-divider-border-color: rgba(255, 255, 255, .2);
}

#footer .menu-item {
    font-size: 0.875rem;
    margin-bottom: 15px;
    font-weight: 400;
}

#footer .footer-nav ul li {
    margin-bottom: 0;
}

.team-image img {
    aspect-ratio: 800 / 800;
    object-fit: cover;
}

/* Front Page */
.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch;
}

.oc-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* 确保宽度正确 */
}

.cats-wrap a {
    display: block;
    position: relative;
    overflow: hidden;
}

.cats-wrap a img {
    transition: transform .5s ease-out;
    will-change: transform;
    transform-origin: center center;
}

.cats-wrap a:hover img {
    transform: scale(1.1);
}

.best-products .min-h-500 {
    min-height: 500px !important;
}

.best-products .min-h-300 {
    min-height: 300px !important;
}

#section-blog .entry-title h3 {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}

#section-blog .entry-title:hover h3 a {
    color: #DDD
}

#section-blog .btn-more {
    opacity: 0;
    font-size: 1.5rem;
    color: #FFF;
    margin-top: 15px;
    transition: opacity .3s ease;
}

#section-blog .grid-item .bg-overlay-content {
    top: auto;
    bottom: -40px;
    transition: bottom .3s ease;
}

#section-blog .grid-item:hover .bg-overlay-content {
    bottom: 0;
}

#section-blog .grid-item:hover .btn-more {
    opacity: 1;
}

#section-blog .entry-meta li {
    font-style: italic;
    font-size: 90%;
}

#section-blog .dark .entry-meta li,
#section-blog .dark .entry-meta li a {
    color: rgba(255, 255, 255, 0.8);
}

a.team-item {
    display: block;
    position: relative;
    height: 100%;
}

a.team-item span {
    opacity: 0;
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: #FFF;
}

a.team-item:hover span {
    opacity: 1;
    animation-name: fadeIn;
}

.block-sticky-cards .content-wrap,
.block-sticky-cards .section {
    overflow: visible;
}

.block-sticky-cards .sticky-section+.sticky-section {
    margin-top: 3vh;
}

@media (min-width: 992px) {
    .block-sticky-cards .sticky-section {
        --sticky-top-gap: 30px;
        position: -webkit-sticky;
        position: sticky;
        z-index: 2;
        top: calc(80px + var(--sticky-top-gap));
    }

    .block-sticky-cards .sticky-section+.sticky-section {
        margin-top: 20vh;
    }
}



/* Testimonials Front Page */
.owl-carousel {
    --cnvs-owl-nav-background: #FFF;
}

.testimonials-carousel .owl-stage {
    padding: 2rem 0 1.5rem;
}

.testimonials-carousel .owl-item {
    opacity: 1;
    transition: transform .3s ease;
    transform: scale(0.9);
}

.testimonial {
    border: 0;
    box-shadow: 0 0 35px rgba(140, 152, 164, 0.2);
    border-radius: 0.25rem;
    padding: 25px;
}

.block-testimonials .feature-box {
    --cnvs-featured-box-icon: 6rem;
}

.block-testimonials .owl-carousel .owl-nav [class*=owl-] {
    opacity: 1 !important;
}

.block-testimonials .owl-carousel .owl-nav .owl-next {
    right: -10px !important;
}

.block-testimonials .owl-carousel .owl-nav .owl-prev {
    left: -10px !important;
}


.block-testimonials .fbox-bg.fbox-center {
    border: 0 none;
    background-color: #fff;
}

.block-testimonials .fbox-bg.fbox-center .fbox-icon {
    background-color: transparent;
}

.block-testimonials .fbox-icon i,
.block-testimonials .fbox-icon img {
    background-color: #FFF;
}

.block-testimonials .fbox-content p {
    position: relative;
    z-index: 1;
}

.block-testimonials .owl-carousel .owl-dots .owl-dot {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .slider-caption h2 {
        font-size: 2.3rem;
        line-height: 1.0375;
    }
}

@media screen and (min-device-width: 320px) and (max-device-width: 480px) {
    #portfolio-carousel h5.card-title {
        font-size: 14px;
    }
}

/* Products Page */
#posts,
.posts,
.entry,
[class*=entry-] {
    --cnvs-post-sm-image: 100px;
}

.product-cats .items-nav li a {
    display: block;
    position: relative;
    padding: 12px 15px;
    color: #888;
    transition: all .1s linear;
    border-bottom: 1px solid #dee2e6;
}

.product-cats .items-nav li:last-child a {
    border-bottom: 0;
}

.product-cats .items-nav li:hover a {
    background-color: #F5F5F5;
    color: #111;
}

.product-cats .items-nav li ul.children {
    list-style: none;
}

.product-cats .items-nav li ul.children li a {
    padding-left: 2rem;
    font-weight: 300;
    font-size: 14px;
}



/* Contact Page */
.contact-section form p {
    margin-bottom: 0;
}

/* About Us */

/* 瑞士版式细节优化 */
#story-grid-timeline .dot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(var(--cnvs-themecolor-rgb), 0.05) 14%, transparent 14%);
    background-size: 20px 20px;
    background-position: center;
    pointer-events: none;
}

#story-grid-timeline .dot::after {
    content: "";
    position: absolute;
    top: 50px;
    left: -35px;
    width: 12px;
    height: 12px;
    background-color: #b03333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Blog */
.post-list .entry {
    background-color: #FFF;
    padding: 0;
    vertical-align: top;
    border-bottom: 0;
    border-radius: 4px;
    -webkit-transform-origin: 50% 50% 0px;
    transform-origin: 50% 50% 0px;
    -webkit-transition: all 250ms cubic-bezier(.02, .01, .5, 1);
    -o-transition: all 250ms cubic-bezier(.02, .01, .5, 1);
    transition: all 250ms cubic-bezier(.02, .01, .5, 1);
}

.post-list .entry:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, .05);
    -webkit-transform: translate(0, -8px);
    -ms-transform: translate(0, -8px);
    -o-transform: translate(0, -8px);
    transform: translate(0, -8px);
}

.post-list .entry-title,
.post-list .entry-meta,
.post-list .entry-content {
    padding: 0 20px;
}

.post-list .entry-title h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-list .entry-title a {
    color: #333;
}

.post-list .entry-content p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 22px !important;
}

.post-list .entry-meta {
    font-size: 0.8125rem;
    text-transform: uppercase;
    border-top: 1px solid #E9EBEE;
    padding: 15px 0;
    margin: 15px 15px 0;
}

.dark .post-list .entry-meta {
    border-top-color: #444;
}

.post-list .entry-meta li {
    margin-left: 0;
    margin-right: 0;
}

.post-list .entry::after {
    display: none;
}

.post-list .entry-meta li::before {
    content: none;
}

.post-list .entry-meta.nohover,
.post-list .entry:hover .entry-meta.hover {
    display: block;
}

.post-list .entry-meta.hover,
.post-list .entry:hover .entry-meta.nohover {
    display: none;
}

.post-list .entry-user {
    padding: 20px;
}

.post-list .entry-user img {
    display: inline-block;
    height: 48px;
    width: 48px;
    border-radius: 100%;
    background-color: white;
}

.post-list .entry-user h4 {
    display: inline-block;
    margin-bottom: 0;
    margin-left: 8px;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.25;
}

.post-list .entry-user h4 span {
    display: block;
    font-size: 11px;
    color: #AAA !important;
    text-transform: lowercase;
    font-weight: 300;
}

.post-list .entry-image .social-icon {
    display: inline-block;
    float: none;
}

.entry-content li {
    margin-bottom: 10px;
}

.tit-lang-zh-cn .entry-content {
    line-height: 1.615rem;
}

.entry-content a:not(.btn-link):not(.text-decoration-underline):not(.more-link) {
    text-decoration: underline !important;
    color: #034394;
}

/* Services */
@media (min-width: 768px) {
    .process-wrap .feature-box-border-horizontal .feature-box {
        position: relative;
    }

    .process-wrap .feature-box-border-horizontal .feature-box:not(.noborder) .fbox-icon::before,
    .process-wrap .feature-box-border-horizontal.border-hover-animate .feature-box:not(.noborder) .fbox-icon::after {
        content: "";
        position: absolute;
        top: 31px;
        left: calc(50% + 32px);
        width: calc(100% - 64px);
        height: 2px;
        border: 1px solid #EEE;
        z-index: 0;
    }

    .process-wrap .feature-box-border-horizontal.border-dashed .feature-box:not(.noborder) .fbox-icon::before,
    .process-wrap .feature-box-border-horizontal.border-dashed.border-hover-animate .feature-box:not(.noborder) .fbox-icon::after {
        border-style: dashed;
    }

    .process-wrap .feature-box-border-horizontal.border-hover-animate .feature-box:not(.noborder) .fbox-icon::after {
        display: block;
        border-color: #222;
        width: 0;
        transform-origin: top left;
        transition: width .3s ease-in-out;
    }

    .process-wrap .feature-box-border-horizontal.border-hover-animate .feature-box:not(.noborder):hover .fbox-icon::after {
        width: calc(100% - 64px);
    }

    .process-wrap .feature-box-border-horizontal .fbox-icon i,
    .process-wrap .feature-box-border-horizontal .fbox-border.fbox-light .fbox-icon i {
        line-height: 60px;
        font-size: 24px;
        z-index: 1;
        text-align: center;
        box-shadow: 0 0 0px 10px #fffef5;
    }

    .process-wrap .feature-box-border-horizontal .feature-box.flex-column:not(.noborder) .fbox-icon::before,
    .process-wrap .feature-box-border-horizontal.border-hover-animate .feature-box.flex-column:not(.noborder) .fbox-icon::after {
        left: calc(0% + 100px);
    }
}

/* Team */
@media (max-width: 991px) {
    .single-post .entry-content .entry-image.alignright {
        float: none;
        text-align: center;
        margin: 0;
    }
}

/* Portifolio */
@media screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .portfolio-item .bg-white {
        min-height: 270px;
    }

    .portfolio-item .bg-white h3 {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .grid-filter li:first-child {
        width: 100%;
    }
}

/* Misc */
.floating-btn-wrap {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 199;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    /* 两个按钮之间的间距 */
}

.floating-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--cnvs-themecolor);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--bs-dark);
}

/* 图标样式 */
.floating-btn .floating-btn-icon {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.floating-btn img.floating-btn-icon {
    width: 2.2rem;
    height: 2.2rem;
    filter: brightness(0) invert(1);
    /* 让 SVG 变成白色 */
}

/* 不同按钮可自定义颜色 */
.whatsapp-btn {
    background-color: #25D366;
    /* WhatsApp 经典绿 */
}

.whatsapp-btn:hover {
    background-color: #20ba5c;
}

/* 可选：给第一个按钮（联系我们）加一点不同样式 */
.contact-btn {
    background-color: var(--cnvs-themecolor);
}

.contact-btn:hover {
    background-color: var(--cnvs-themecolor);
    color: #FFF;
}


.beer-formula {
    font-size: 12px;
    font-style: italic;
    color: #222;
    line-height: 1.5;
}

.fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 6px;
}

.fraction .top {
    display: block;
    border-bottom: 1px solid #000;
    padding: 0 8px;
}

.fraction .bottom {
    display: block;
    font-size: .9em;
}