/**
* Theme Name: Custom App
* Description: A custom theme for a website
* Version: 1.0
* Author: Yun-mo
*/
body {
    --main-max-width: 1480px;
    --main-padding-l-f: 20px;
    --banner-height: 800px;
    --widget-title-h1-fs: 40px;
    --widget-title-h2-fs: 32px;
    --widget-title-product-h2-fs: 24px;
    --widget-title-p-1-fs: 20px;
    --widget-title-p-2-fs: 18px;
    --widget-title-p-3-fs: 16px;
    --widget-title-p-4-fs: 14px;
    --widget-p-max-width: 610px;
    --theme-color: #FF5500;
    --theme-color-dark: #86340b;
    --theme-p-color: #1C1C1C;
    --section-top: max(4vw, 40px);
    --section-bottom: max(4vw, 40px);
    --product-template-padding: max(1.2vw, 20px) var(--main-padding-l-f);
    --animation-duration: 0.6s;
    --header-height: 80px;
    --footer-height: 200px;
    --page-top-padding: max(2vw, 20px);
    --post-gap: max(1.2vw, 20px);
    font-family: var(--font-primary);
    --header-bg-color: rgba(37,52,60, .2);
    --header-text-color: rgba(255,255,255,1);
    --header-bg-hover-color: rgba(37,52,60,1);
    --header-text-hover-color: #fff;
    --svg-filter-color: invert(42%) sepia(99%) saturate(20) hue-rotate(336deg) brightness(96%) contrast(101%);
}

@media screen and (max-width: 900px) {
    body {
        --widget-title-h1-fs: 18px;
        --widget-title-h2-fs: 18px;
        --widget-title-product-h2-fs: 16px;
        --widget-title-p-1-fs: 16px;
        --widget-title-p-2-fs: 16px;
        --widget-title-p-3-fs: 14px;
        --widget-title-p-4-fs: 14px;
    }
}
.pc-header {
    display: block;
}
.mobile-header {
    display: none;
}
.goverlay {
    background-color: rgba(0, 0, 0, 0.80) !important;
}
.glightbox-container .gslider {
    background-color: transparent;
}
.glightbox-container .gslider-image img {
    background-color: #fff !important;
}
@media screen and (max-width: 991px) {
    .pc-header,
    .preview-area {
        display: none !important;
    }
    .mobile-header {
        display: block;
    }
}
.ss-main.select-country {
    padding: 14px 16px !important;
    line-height: 1;
    background-color: #F8F8F8 !important;
}

.ss-main.select-country:focus,
.ss-main.select-country[aria-expanded="true"],
.ss-content .ss-search input:focus {
    border-color: var(--theme-color) !important;
    box-shadow: none !important;
}

.ss-main.select-country .ss-deselect {
    display: none;
}

.ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected,
.ss-content .ss-list .ss-option:hover {
    background-color: var(--theme-color) !important;
}

.custom-main-width {
    max-width: var(--main-max-width) !important;
    margin: 0 auto;
    padding: 0 var(--main-padding-l-f) !important;
    /* overflow: hidden; */
    height: 100%;
}

.widget-title {
    margin: var(--section-top) auto 0;
    text-align: center;
    overflow: hidden;
}

.widget-title h1,
.widget-title h2,
.widget-title h3 {
    line-height: 1;
    padding-bottom: 16px;
    position: relative;
    margin: 0;
    font-weight: bold;
    font-family: var(--font-primary);
}

.widget-title h2 {
    font-size: var(--widget-title-h2-fs);
}

.widget-title h1 {
    font-size: var(--widget-title-h2-fs);
}

.widget-title h2 span,
.module-title h3 span,
.widget-sub-title h3 span {
    color: var(--theme-color);
}

.module-title h3 {
    font-size: var(--widget-title-p-1-fs);
    margin-bottom: max(1.2vw, 20px);
    line-height: 1.5;
    font-weight: 700;
}

.widget-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background-color: var(--theme-color);
    border-radius: 2px;
}

.widget-title p {
    font-size: var(--widget-title-p-3-fs);
    line-height: 1.6;
    max-width: var(--widget-p-max-width);
    margin: 16px auto 24px;
    color: var(--theme-p-color);
}

.widget-sub-title h3 {
    font-size: var(--widget-title-h2-fs);
    line-height: 1;
    color: var(--theme-p-color);
    position: relative;
    padding-bottom: 20px;
    font-weight: bold;
    font-family: var(--font-primary);
}

.widget-sub-title h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background-color: var(--theme-color);
    border-radius: 2px;
}

.widget-sub-title p {
    font-size: var(--widget-title-p-3-fs);
    line-height: 1.6;
    max-width: var(--widget-p-max-width);
    margin: 32px 0 0 0;
    color: var(--theme-p-color);
}

.svg-white {
    filter: brightness(0) invert(1);
}

.sticky-top {
    top: calc(var(--header-height, 80px));
    position: sticky;
    z-index: 100;
    background: #fff;
    padding: 10px;
}

.custom-pc {
    display: block;
}

.custom-mobile {
    display: none;
}

.streamer-banner {
    object-fit: cover;
    width: 100%;
    height: max(16vw, 120px);
}

.streamer-banner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.streamer-banner .streamer-content {
    grid-gap: 16px;
}

.streamer-banner .streamer-content .streamer-banner-content-title h1 {
    font-size: var(--widget-title-h2-fs);
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.streamer-banner .streamer-content .streamer-banner-content-description {
    font-size: var(--widget-title-p-3-fs);
    color: #fff;
    max-width: 680px;
}

.section-item-container {
    margin: max(10vw, var(--section-top)) auto;
}
.section-item-container .section-item-content {
    display: grid;
    grid-gap: max(4vw, 40px);
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.section-item-container .section-item-content .section-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-item-container .section-item-content .section-item-info {
    grid-gap: max(1.2vw, 20px);
}
.section-item-container .section-item-info-module-container .section-item-info-module .section-item-info-value {
    font-size: max(var(--widget-title-p-2-fs), 2.4vw);
    line-height: 1;
    color: var(--theme-color);
    font-weight: bold;
}

.section-item-container .section-item-info-module-container .section-item-info-module .section-item-info-key {
    font-size: var(--widget-title-p-3-fs);
    line-height: 1;
    color: var(--theme-p-color);
}

/* Loading 效果样式 */
.page-loading,
.page-loading-other {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.page-loading.active,
.page-loading-other.active {
    display: flex;
}

.loading-wrapper {
    display: flex;
    gap: 8px;
}

.loading-wrapper .spinner-grow {
    width: 1rem;
    height: 1rem;
    animation-duration: 0.9s;
}

/* 为每个 spinner 设置不同的动画延迟 */
.loading-wrapper .spinner-grow:nth-child(1) {
    animation-delay: 0s;
}

.loading-wrapper .spinner-grow:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-wrapper .spinner-grow:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-wrapper .spinner-grow:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-wrapper .spinner-grow:nth-child(5) {
    animation-delay: 0.4s;
}

/* Footer Styles */
.site-footer {
    background-color: #2B3440;
    padding: 60px 0 30px;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: #fff;
    font-size: var(--widget-title-p-1-fs);
    font-weight: 700;
    margin-bottom: 16px;
}
.menu-section h3 {
    padding-bottom: max(1.2vw, 20px);
    position: relative;
}
/*.menu-section h3:after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    bottom: 0;*/
/*    width: 64px;*/
/*    height: 2px;*/
/*    background-color: rgba(255, 255, 255, 0.7);*/
/*}*/
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: max(1.2vw, 20px);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.footer-section ul li a:hover {
    color: #fff;
}

/* Buy online section */
.buy-online-icons img {
    height: 40px;
    width: auto;
}

/* Follow us section */
.follow-title {
    margin-top: 30px;
}

.social-icons,
.buy-online-icons {
    display: flex;
    gap: max(2vw, 20px);
    margin-bottom: max(2.8vw, 30px);
}

/* Apps section */
.apps-title {
    margin-top: 30px;
}

.app-download {
    display: flex;
    gap: 10px;
}

.app-download img {
    height: 40px;
    width: auto;
}

/* Footer bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a,
.footer-links div {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 1;
}

.footer-links div {
    margin: 0 4px;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .custom-pc {
        display: none;
    }

    .custom-mobile {
        display: block;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* 响应式调整 */
@media screen and (max-width: 770px) {
    .carousel {

        height: calc(100vh - 70px);
    }
    .section-item-container .section-item-content {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.product-grid {
    display: grid;
    grid-gap: max(2vw, 20px);
}

/* 文章卡片组件样式 */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--animation-duration) ease;
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 226px;
    position: relative;
    overflow: hidden;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-thumbnail img,
.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: top center;
    transition: transform var(--animation-duration) ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.thumbnail-placeholder {
    background-color: var(--theme-color);
}

.post-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-category {
    line-height: 1;
}

.post-category a {
    color: var(--theme-color);
    text-decoration: none;
    font-size: var(--widget-title-p-4-fs);
    transition: color 0.3s ease;
    font-weight: bold;
}

.post-category a:hover {
    color: var(--theme-hover-color);
}

.post-title {
    font-size: var(--widget-title-p-2-fs);
    margin: 0;
    line-height: 1.4;
    font-weight: bold;
    padding-bottom: 16px;
}

.post-card .post-title a {
    color: var(--theme-p-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: var(--theme-color);
}

.post-meta {
    color: #999;
    font-size: var(--widget-title-p-4-fs);
    margin-top: auto;
}

/* 产品卡片组件样式 */
.product-card {
    background: #F6F6F6;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--animation-duration) ease;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    padding: max(3.2vw, 30px) var(--section-top);
    width: 100%;
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 240px;
    height: 240px;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--animation-duration) ease;
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.08);
}

.product-card .product-title {
    font-size: var(--widget-title-p-3-fs);
    color: #333;
    font-weight: bold;
    transition: color var(--animation-duration) ease;
    font-weight: 700;
    line-height: 1.5;
}

.product-card:hover .product-title {
    color: var(--theme-color);
}

/* 分页样式 */
/* 分页样式 */
.woocommerce-pagination {
    margin-top: max(2vw, 30px);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all var(--animation-duration) ease;
    font-size: var(--widget-title-p-4-fs);
    background: #fff;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.woocommerce-pagination .page-numbers.prev svg,
.woocommerce-pagination .page-numbers.next svg {
    width: 24px;
    height: 24px;
}

.woocommerce-pagination .page-numbers.dots {
    border: none;
    padding: 0 4px;
}

.woocommerce-pagination .page-numbers.dots:hover {
    background: none;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .woocommerce-pagination {
        margin-top: max(1.5vw, 20px);
    }
    
    .woocommerce-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: var(--widget-title-p-4-fs);
    }
    
    .woocommerce-pagination .page-numbers.prev,
    .woocommerce-pagination .page-numbers.next {
        padding: 0 8px;
    }
    
    .woocommerce-pagination .page-numbers.prev svg,
    .woocommerce-pagination .page-numbers.next svg {
        width: 20px;
        height: 20px;
    }
}

/* 面包屑导航样式 */
.streamer-banner .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--widget-title-p-4-fs);
    margin: 0;
}

.streamer-banner .breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: all var(--animation-duration) ease;
}

.streamer-banner .breadcrumb a:hover {
    color: var(--theme-color);
}

.streamer-banner .breadcrumb span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.7);
}

.streamer-banner .breadcrumb span:last-child {
    color: #fff;
    margin-left: 8px;
}

/* application 卡片样式 */
.application-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: max(300px, 18vw);
    transition: all var(--animation-duration) ease;
}

.application-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.application-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.application-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,rgba(0,0,0,0.00), rgba(0,0,0,0.64));
    transition: all var(--animation-duration) ease;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) ease;
}

.application-card:hover .application-image img {
    transform: scale(1.1);
}

.application-card .application-content {
    position: absolute;
    bottom: max(2vw, 20px);
    left: 0;
    width: 100%;
    padding: 0 max(2vw, 20px);
    color: #fff;
    z-index: 2;
}

.application-card .application-content .widget-title h2 {
    font-size: var(--widget-title-h2-fs);
    margin: 0 0 12px;
    font-weight: bold;
    transition: color var(--animation-duration) ease;
}

.application-card .application-content p {
    font-size: var(--widget-title-p-4-fs);
    margin: 0;
    max-width: 80%;
    opacity: 0.9;
}

.application-card .application-content .learn-more {
    display: inline-flex;
    align-items: center;
    color: #fff;
    margin-top: max(2.2vw, 22px);
    font-size: var(--widget-title-p-4-fs);
}

.application-content .learn-more .arrow-icon {
    width: 20px;
    height: 20px;
    transform: scale(0);
    transform-origin: left center;
    transition: all var(--animation-duration) ease;
}

.application-card:hover .learn-more .arrow-icon {
    transform: scale(1) translateX(5px);
}

@media screen and (max-width: 768px) {
    .application-card {
        height: 250px;
    }

    .application-content .widget-title h2 {
        font-size: calc(var(--widget-title-h2-fs) * 0.8);
    }
}

/* 文章网格布局 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--post-gap);
}

.application-category-card {
    position: relative;
    overflow: hidden;
    height: max(300px, 18vw);
    transition: all var(--animation-duration) ease;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) ease;
}

.application-category-card:hover .category-image img {
    transform: scale(1.1);
    /* 图片放大比例稍大，因为外层已经有放大效果 */
}

.category-content {
    /* position: absolute; */
    bottom: max(2vw, 20px);
    left: 0;
    width: 100%;
    padding: 0 max(2vw, 20px);
    /* color: #fff; */
    z-index: 2;
}
.category-content h3 {
    color: var(--theme-p-color);
    font-size: var(--widget-title-p-3-fs);
    text-align: center;
}
.category-content h2 {
    font-size: var(--widget-title-h2-fs);
    margin: 0 0 12px;
    font-weight: bold;
    transition: color var(--animation-duration) ease;
}

.category-content p {
    font-size: var(--widget-title-p-4-fs);
    margin: 0;
    max-width: 80%;
    opacity: 0.9;
}

/* Learn More 按钮 */
.category-content .learn-more {
    display: inline-flex;
    align-items: center;
    color: #fff;
    margin-top: max(2.2vw, 22px);
    font-size: var(--widget-title-p-4-fs);
}

.category-content .learn-more .arrow-icon {
    width: 20px;
    height: 20px;
    transform: scale(0);
    transform-origin: left center;
    transition: all var(--animation-duration) ease;
}

.application-category-card:hover .learn-more .arrow-icon {
    transform: scale(1) translateX(5px);
}

/* Application Gallery 样式 */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: max(1.2vw, 20px);
}

.application-item {
    text-align: center;
    border-radius: 8px;
    height: 100%;
    width: 100%;
}

.application-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f2f3f4;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-duration) ease;
}

.application-title {
    font-size: var(--widget-title-p-3-fs);
    color: #fff;
    padding: 0 0 max(1.6vw, 20px) max(1.2vw, 20px);
    font-weight: bold;
}

/* 联系表单样式 */
.product-contact {
    margin: var(--section-top) 0;
    background-color: #fff;
    padding: var(--product-base-pd);
}

.contact-form-wrapper h2 {
    font-size: var(--widget-title-h2-fs);
    font-weight: bold;
    margin-bottom: max(2vw, 20px);
    text-align: center;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: max(1.6vw, 10px);
}

.contact-form label span:not([data-source]) {
    color: #ff0000;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: max(2vw, 20px);
}

.form-row p {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.form-column {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    color: #333;
    position: relative;
}

.form-group label:after {
    content: "*";
    color: #ff0000;
    margin-left: 4px;
    position: absolute;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
    background-color: #F8F8F8 !important;
    transition: all 0.3s ease;
}

.form-control:focus,
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--theme-color) !important;
    /* background-color: #fff !important; */
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.honeypot-964-wrap {
    display: none !important;
}

/* 输入框样式 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    min-width: 200px;
    padding: 12px 16px;
    background: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: var(--widget-title-p-4-fs);
    color: var(--theme-p-color);
    transition: all var(--animation-duration) ease;
}

.form-submit {
    text-align: center;
    margin-top: 16px;
}

.submit-btn {
    padding: 12px 48px;
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--theme-color-dark);
}

.wpcf7-form .wpcf7-spinner {
    display: none;
}

.wpcf7-form[data-status="submitting"] .wpcf7-spinner {
    display: inline-block;
}

/* 表单验证消息样式 */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.wpcf7 form.failed .wpcf7-response-output {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Lightbox 基础样式 */
.lightbox {
    cursor: zoom-in;
    overflow: hidden;
    display: block;
}

.lightbox img {
    transition: transform var(--animation-duration) ease;
}

.lightbox:hover img {
    transform: scale(1.05);
}

.gclose {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: fixed;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.gclose:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gnext,
.gprev {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.gnext:hover,
.gprev:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: max(2vw, 20px);
    bottom: max(2vw, 20px);
    width: 44px;
    height: 44px;
    background: var(--theme-color);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--animation-duration) ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--theme-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .application-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-content h2 {
        font-size: calc(var(--widget-title-h2-fs) * 0.9);
    }
    .product-thumbnail {
        width: auto;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .application-categories-grid {
        grid-template-columns: 1fr;
    }

    .application-category-card {
        height: 250px;
    }

    .category-content h2 {
        font-size: calc(var(--widget-title-h2-fs) * 0.8);
    }

    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* 分类侧边栏头部样式 */
.category-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.category-sidebar-header h2 {
    margin: 0;
    font-size: var(--widget-title-p-2-fs);
    font-weight: 600;
}

.mobile-category-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--theme-p-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.mobile-category-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--animation-duration) ease;
    display: block;
}

.mobile-category-toggle.active svg {
    transform: rotate(-180deg);
}

/* 移动端样式 */
@media (max-width: 991px) {
    .mobile-category-toggle {
        display: block;
    }

    .category-list {
        display: none;
        margin-top: 20px;
    }

    .category-sidebar.expanded .category-list {
        display: block;
        animation: slideDown var(--animation-duration) ease;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品卡片自定义样式，防止冲突 */
.custom-product-card-flex {
    display: flex;
    background: #f6f6f6;
    border-radius: 16px;
    padding: max(3.2vw, 20px) max(4vw, 20px);
    box-sizing: border-box;
    border: 1px solid;
    border-color: #fff;
    transition: border-color var(--animation-duration) ease;
    cursor: pointer;
    overflow: hidden;
}
.custom-product-card-flex:hover {
    border-color: #cccccc;
}
.custom-product-card-title {
    font-size: var(--widget-title-p-3-fs);
    font-weight: bold;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--theme-p-color);
}
.custom-product-card-desc {
    color: #666;
    font-size: var(--widget-title-p-4-fs);
    margin-bottom: max(2.6vw, 30px);
    max-width: 480px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    box-orient: vertical;
    line-height: 1.5;
    word-break: break-all;
}
.custom-product-card-btn {
    padding-right: 44px; /* 预留箭头空间 */
    text-align: center;
    position: relative;
    display: inline-block;
    padding: max(0.6vw, 10px) max(1.2vw, 20px);
    border: 1.5px solid #bbb;
    border-radius: 30px;
    color: #666;
    font-size: var(--widget-title-p-4-fs);
    text-decoration: none;
    transition: all var(--animation-duration);
    z-index: 1;
    overflow: hidden;
    line-height: 1;
}

.custom-product-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,85,0,0.63), #ff5500);
    opacity: 0;
    transition: opacity var(--animation-duration) ease;
    z-index: -1;
}

.custom-product-card-btn:hover {
    color: #fff;
    border-color: #f6f6f6;
}

.custom-product-card-btn:hover::before {
    opacity: 1;
}

.custom-product-card-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
    background: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 5l8 7-8 7" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center/contain;
    pointer-events: none;
    z-index: 2;
}

.custom-product-card-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-6px);
}

.custom-product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: max(4vw, 20px);
    border-left: 1px solid #eee;
    margin-left: max(4vw, 20px);
    flex: 1;
}
.custom-product-card-image img {
    width: max(12vw, 200px);
    height: max(12vw, 200px);
    object-fit: contain;
}
.custom-service-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(18, 40px);
    gap: 0 max(1.2vw, 20px);
    margin-bottom: var(--section-bottom);
}

.custom-service-content .custom-service-item-1 {
    grid-area: 1 / 1 / 12 / 2;
}

.custom-service-content .custom-service-item-2 {
    grid-area: 1 / 2 / 8 / 3;
}

.custom-service-content .custom-service-item-3 {
    grid-area: 1 / 3 / 11 / 4;
}

.custom-service-content .custom-service-item-4 {
    grid-area: 12 / 1 / 19 / 2;
    margin-top: max(1.2vw, 20px);
}

.custom-service-content .custom-service-item-5 {
    grid-area: 8 / 2 / 19 / 3;
    margin-top: max(1.2vw, 20px);
}

.custom-service-content .custom-service-item-6 {
    grid-area: 11 / 3 / 19 / 4;
    margin-top: max(1.2vw, 20px);
}

.custom-service-content .custom-service-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.custom-service-content .custom-service-item h3 {
    text-align: center;
    font-size: var(--widget-title-p-1-fs);
    font-weight: 700;
    position: absolute;
    left: 50%;
    bottom: calc(var(--section-top) / 2);
    transform: translateX(-50%);
    width: fit-content;
    color: #fff;
}
@media screen and (max-width: 990px) {
    .custom-service-content {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, max(17vw, 200px));
        gap: max(1.2vw, 10px);
    }
    .custom-service-content .custom-service-item {
        grid-area: auto;
        margin-top: 0;
    }
    

}

