/*
Theme Name: wltheme
Theme URI: 
Author: 那条鱼不洗澡
Author URI: 
Description: wanglink dev
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wltheme
Tags: 
*/
/*产品分类页子分类法展示样式-含短代码*/
.switch-category-container { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 60px 0; max-width: 100%; }
.switch-category-container .switch-category-glass { position: relative; width: 180px; height: 200px; background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.7)); border: 1px solid rgba(220, 38, 38, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(220, 38, 38, 0.1), inset 0 0 20px rgba(220, 38, 38, 0.05); display: flex; justify-content: center; align-items: center; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 12px; margin: 0 -45px; backdrop-filter: blur(10px); transform: rotate(calc(var(--r) * 1deg)); overflow: hidden; flex-shrink: 0; text-decoration: none; color: inherit; }
.switch-category-container .switch-category-glass:last-child { margin-right: 0; }
.switch-category-container .switch-category-glass::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, transparent, rgba(220, 38, 38, 0.1)); opacity: 0; transition: opacity 0.5s; }
.switch-category-container .switch-category-glass .switch-category-shine { display: block; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 75%, transparent); transform: rotate(45deg) translateX(-100%); transition: transform 0.6s; pointer-events: none; z-index: 2; }.switch-category-container .switch-category-glass:hover .switch-category-shine { transform: rotate(45deg) translateX(100%); }
.switch-category-container:hover .switch-category-glass { transform: rotate(0deg); margin: 0 10px; border-color: rgba(220, 38, 38, 0.6); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(220, 38, 38, 0.3), inset 0 0 30px rgba(220, 38, 38, 0.1); }
.switch-category-container:hover .switch-category-glass:last-child { margin-right: 0; }
.switch-category-container .switch-category-glass:hover::after { opacity: 1; }
.switch-category-container .switch-category-glass::before { text-align: center; content: attr(data-text); position: absolute; bottom: 0; width: 100%; height: 45px; background: linear-gradient(to top, rgba(220, 38, 38, 0.2), transparent); display: flex; justify-content: center; align-items: center; color: #f5f5f5; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; border-top: 1px solid rgba(220, 38, 38, 0.2); z-index: 1; }
.switch-category-container .switch-category-glass .switch-category-image { width: 200px; height: 200px; object-fit: contain; transition: all 0.3s; filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3)); z-index: 1; }
.switch-category-container .switch-category-glass:hover .switch-category-image { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6)); }
@media (max-width: 768px) { .switch-category-container .switch-category-glass { width: 140px; height: 160px; margin: 0 -35px; } .switch-category-container:hover .switch-category-glass { margin: 0 5px; } .switch-category-container:hover .switch-category-glass:last-child { margin-right: 0; } .switch-category-container .switch-category-glass .switch-category-image { width: 60px; height: 60px; } }
@media (max-width: 480px) { .switch-category-container .switch-category-glass { width: 100px; height: 130px; margin: 0 -25px; } .switch-category-container:hover .switch-category-glass { margin: 0 3px; } .switch-category-container:hover .switch-category-glass:last-child { margin-right: 0; } .switch-category-container .switch-category-glass::before { font-size: 12px; height: 35px; } .switch-category-container .switch-category-glass .switch-category-image { width: 45px; height: 45px; } }

/*移动端折叠菜单*/
#modal-4-content{padding:40px 24px;}

/*修复幻灯片闪动*/
.swiper:not(.swiper-initialized) .swiper-wrapper{display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important;}
.swiper:not(.swiper-initialized) .swiper-slide{width:100%!important;flex-shrink:0!important;}
.swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2){display:none!important;}

/*语言切换展示美化*/
ul.pllangs { display: inline-flex !important; align-items: center; gap: 16px; padding: 0 !important; margin: 0 !important; list-style: none !important; }
ul.pllangs li.lang-item { display: block !important; margin: 0 !important; padding: 0 !important; }
ul.pllangs li.lang-item a { display: flex !important; align-items: center; height: 32px; padding: 16px !important; font-size: 14px !important; box-sizing: border-box; color: #525252 !important; background-color: #f3f4f6 !important; border: 1px solid #e5e7eb; border-radius: 3px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
ul.pllangs li.lang-item a:hover { color: #1c1c1c !important; background-color: #ffffff !important; border-color: #0284c7 !important; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1); }
ul.pllangs li.lang-item.current-lang a { color: #ffffff !important; background-color: #1c1c1c !important; border-color: #1c1c1c !important; font-weight: 600; }
ul.pllangs li.lang-item a img { display: inline-block !important; margin-right: 6px !important; border-radius: 1px !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); filter: saturate(90%) contrast(105%); vertical-align: middle; }
ul.pllangs li.lang-item a span { margin-left: 0 !important; white-space: nowrap !important; }

@media (max-width: 768px) {
ul.pllangs { flex-wrap: nowrap !important; overflow-x: auto !important; max-width: 100%; padding-bottom: 3px !important; -webkit-overflow-scrolling: touch; }
ul.pllangs::-webkit-scrollbar { height: 2px; }
ul.pllangs::-webkit-scrollbar-thumb { background: #64748b; }
}

/*头像占位符*/
.spec-avatar-placeholder{display:inline-block;vertical-align:middle;border-radius:50%;}

/*Yarp相关产品*/
.yarpp-related h3{color:#1c1c1c;}
.yarpp.yarpp-related h3{font-size:inherit!important;;font-weight:700!important;}
.yarpp.yarpp-related.yarpp-template-thumbnails { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding: 32px 64px !important; margin: 0 !important; clear: both; }
.yarpp.yarpp-related h3 { margin-top: 0 !important; margin-bottom: 24px !important; font-size: 24px; }
.yarpp-thumbnails-horizontal { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 24px !important; width: 100% !important; margin: 0 !important; }
a.yarpp-thumbnail { display: flex !important; flex-direction: column !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 16px !important; box-sizing: border-box !important; background-color: #ffffff !important; border: 1px solid #f3f4f6!important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important; text-decoration: none !important; transition: all 0.3s ease !important; }
a.yarpp-thumbnail:hover { transform: translateY(-8px) !important; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08) !important; border-color: transparent !important; }
a.yarpp-thumbnail img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 8px !important; margin: 0 0 16px 0 !important; padding: 0 !important; }
.yarpp-thumbnail-title { font-size: 15px !important; line-height: 1.6 !important; font-weight: 500 !important; margin: 0 !important; text-align: left !important; transition: color 0.2s ease !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
a.yarpp-thumbnail:hover .yarpp-thumbnail-title { color: #991b1b!important; }
@media (max-width: 1024px) {
.yarpp.yarpp-related.yarpp-template-thumbnails { padding: 24px 32px !important; }
.yarpp-thumbnails-horizontal { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; }
}

@media (max-width: 640px) {
.yarpp.yarpp-related.yarpp-template-thumbnails { padding: 16px 16px !important; }
.yarpp-thumbnails-horizontal { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}

/*通用修复美化*/
.fcb-marque-icons .fcb-icon{top:8}
html, 
body, 
.wp-site-blocks {
    overflow-x: clip !important; 
}
.clickable{cursor: pointer;}
.noliststyle{list-style: none;padding: 0;}
.is-position-sticky{top:100px;}
.izbet-tooltip{color:inherit;border-bottom:none;}
.grap{overflow:auto;}
.grap pre>code {display:none;}
.lwptoc_item br{display:none}.lwptoc_toggle br{display:none}

/*筛选工具*/
body .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-submit-button{border-color: #000!important;background-color: #000 !important;width: auto;}
/*渐变hover边框*/
.gcard { position: relative; cursor: pointer; border-radius: 12px; padding:0 8px;transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1; }
.gcard:hover { transform: translateY(-4px); }
.gcard::before { content: ""; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(60deg, #00c6ff, #0072ff, #ee0979, #ff6a00, #00c6ff); background-size: 300% 300%; z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; padding: 2px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.gcard:hover::before { opacity: 1; animation: borderFlow 3s linear infinite; }
@keyframes borderFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.product-parameters{height:300px; over-flow:auto;}
/* 去掉链接/按钮点击、聚焦时的默认 outline */
a:focus, button:focus, .wp-block-button__link:focus {
    outline: 0 !important;
    border: none !important;
}

/*产品页面页头分类描述最多4行*/
.product-parent-cat-description {display: -webkit-box;-webkit-line-clamp: 4;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;line-height: 1.5;}

/* Tab样式改造
    .wl-responsive-tabs{border:1px solid #ddd;border-radius:8px;overflow:hidden;background:#fff}
        .wl-responsive-tabs .wl-tab-nav{display:flex;background:#f5f5f5;border-bottom:2px solid #ddd;flex-wrap:wrap}
        .wl-responsive-tabs .wl-tab-button{flex:1;min-width:120px;padding:15px 20px;background:#f5f5f5;border:none;border-right:1px solid #ddd;border-bottom:3px solid transparent;cursor:pointer;font-size:15px;font-weight:600;color:#666;transition:all .3s;text-align:center}
        .wl-responsive-tabs .wl-tab-button:last-child{border-right:none}
        .wl-responsive-tabs .wl-tab-button:hover{background:#e8e8e8;color:#333}
        .wl-responsive-tabs .wl-tab-button.active{background:#fff;color:#0073aa;border-bottom-color:#0073aa}
        .wl-responsive-tabs .wl-tab-content-wrapper{padding:24px}
        .wl-responsive-tabs .wl-tab-pane{display:none;animation:fadeIn .4s}
        .wl-responsive-tabs .wl-tab-pane.active{display:block}
        @keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
        @media (max-width:767px){
            .wl-responsive-tabs .wl-tab-button{min-width:100px;padding:12px 15px;font-size:14px}
        }
 */
/*产品页面详情导航
.wp-block-accordion.wl-responsive-tabs { border: none !important; margin-bottom: 60px; }
@media (min-width: 768px) { .wp-block-accordion.wl-responsive-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0; position: relative; } .wl-responsive-tabs .wp-block-accordion-item { display: contents; } .wl-responsive-tabs .wp-block-accordion-heading { order: 1; width: auto; margin: 0; background: transparent; } .wl-responsive-tabs .wp-block-accordion-heading button { padding: 15px 30px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 600; color: #666; background: transparent; border: none; border-bottom: 2px solid #e5e5e5; cursor: pointer; transition: all 0.3s ease; border-radius: 0; } .wl-responsive-tabs .wp-block-accordion-heading button:hover { color: #0073aa; background-color: rgba(0, 115, 170, 0.05); } .wl-responsive-tabs .wp-block-accordion-item.is-open .wp-block-accordion-heading button { color: #0073aa; border-bottom: 2px solid #0073aa; background: transparent; } .wl-responsive-tabs .wp-block-accordion-panel { order: 2; width: 100%; margin-top: 0; padding-top: 30px; border-top: 1px solid #e5e5e5; margin-top: -1px; animation: fadeIn 0.4s ease-in-out; } .wl-responsive-tabs .wp-block-accordion-heading__toggle-icon { display: none !important; } }
@media (max-width: 767px) { .wl-responsive-tabs .wp-block-accordion-item { border-bottom: 1px solid #eee; margin-bottom: 10px; } .wl-responsive-tabs .wp-block-accordion-heading button { padding: 15px 0; font-weight: 600; font-size: 15px; text-align: left; display: flex; justify-content: space-between; width: 100%; } .wl-responsive-tabs .wp-block-accordion-item.is-open .wp-block-accordion-heading button { color: #0073aa; } .wl-responsive-tabs .wp-block-accordion-panel { padding-bottom: 20px; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{text-decoration:NONE;}
*/

/*分类归档页页脚底部文章优化*/
.footerseoarticle { background-color: #f9f9f9; padding: 25px; border-radius: 8px; margin-top: 40px; max-height: 160px; overflow: hidden; position: relative; transition: max-height 0.8s ease-in-out; cursor: pointer; }
.footerseoarticle::after { content: "▼ Hover / Tap to Read Full Content"; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: linear-gradient(to bottom, rgba(249,249,249,0), rgba(249,249,249,1) 80%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 15px; color: #A61C22; font-weight: bold; font-size: 0.9rem; letter-spacing: 0.5px; transition: opacity 0.3s ease; }
.footerseoarticle:hover { max-height: 1500px; }
.footerseoarticle:hover::after { opacity: 0; pointer-events: none; }

/*产品页面标签展示美化*/
.wl-tag-scroller-container { width: 100%; margin: 30px 0; position: relative; overflow: hidden; }
.wl-tag-track { display: flex !important; gap: 15px; overflow-x: auto; padding-bottom: 15px; padding-left: 2px; padding-right: 2px; -webkit-overflow-scrolling: touch; }
.wl-tag-card { display: flex !important; flex-direction: row !important; align-items: stretch; flex: 0 0 400px; width: 400px; height: 100px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; text-decoration: none !important; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
span.wl-tag-image { display: flex !important; width: 150px; flex-shrink: 0; height: 100%; background: #f9fafb; align-items: center; justify-content: center; overflow: hidden; border-right: 1px solid #f3f4f6; }
span.wl-tag-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.5s ease; }
.wl-tag-card:hover span.wl-tag-image img { transform: scale(1.1); }
span.wl-tag-content { display: flex !important; flex-direction: column !important; justify-content: space-between; padding: 16px; flex-grow: 1; min-width: 0; }
span.wl-tag-title { display: block !important; font-family: "Barlow", sans-serif; font-size: 18px; font-weight: 700; color: #1c1c1c; margin-bottom: 4px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-tag-card:hover span.wl-tag-title { color: #b91c1c; }
span.wl-tag-desc { display: block !important; font-size: 12px; color: #6b7280; line-height: 1.3; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
span.no-image-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background-color: #f3f4f6; }

/*产品页面分类banner展示美化*/
.cat-img{width:100%;}
.wl-category-banner .product-parent-cat-name { font-family: "Barlow", sans-serif; font-size: 36px !important; font-weight: 700; color: #ffffff !important; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.wl-category-banner .product-parent-cat-description { color: rgba(255, 255, 255, 0.9) !important; font-size: 16px; line-height: 1.6; max-width: 90%; margin-bottom: 35px; }
.wl-category-banner .product-parent-cat-description p { margin: 0; }
.wl-category-banner .btn-explore { display: inline-block; padding: 8px 24px; background-color: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; font-family: "Barlow", sans-serif; font-weight: 600; font-size:16px; text-decoration: none; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.wl-category-banner .btn-explore:hover { background-color: #b91c1c; border-color: #b91c1c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(185, 28, 28, 0.4); }
.wl-category-banner .cat-img { display: block; max-width: 100%; height: auto; margin-bottom: -10px !important; filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.3)); transition: transform 0.5s ease; }
.wl-category-banner:hover .cat-img { transform: scale(1.02); }
@media (max-width: 768px) { .wl-category-banner { flex-direction: column !important; padding: 40px 20px 0 20px !important; text-align: center; } .wl-category-banner .wp-block-column { flex-basis: 100% !important; width: 100% !important; } .wl-category-banner .product-parent-cat-name { font-size: 28px !important; } .wl-category-banner .product-parent-cat-description { max-width: 100%; font-size: 14px; } .wl-category-banner .cat-img { margin-top: 30px; max-width: 80%; margin-left: auto; margin-right: auto; } }

/*产品页面卖点展示美化*/
.Keyfeaturesshow { background-color: #f9fafb; border-left: 4px solid #b91c1c; border-radius: 0 4px 4px 0; padding: 24px 30px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03); position: relative; transition: all 0.3s ease; }
.Keyfeaturesshow:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }
.Keyfeaturesshow::before { content: 'KEY FEATURES'; display: block; font-family: "Barlow", sans-serif; font-size: 12px; font-weight: 800; color: #b91c1c; letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase; opacity: 0.9; }
.Keyfeaturesshow .value p { font-family: "Barlow", "Roboto", sans-serif; font-size: 14px; line-height: 2; color: #374151; margin: 0; font-weight: 500; }
.Keyfeaturesshow .value { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
    .Keyfeaturesshow {
        padding: 8px; /* 手机端改小一点 */
    }
}

/*分类页面页头子分类展示*/
.wl-hover-cover { position: relative; overflow: hidden !important; cursor: pointer; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s ease; }
.wl-hover-cover img.wp-block-cover__image-background { width: 100%; object-fit: cover; transform: scale(1); transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; }
.wl-hover-cover:hover img.wp-block-cover__image-background { transform: scale(1.1); }
.wl-hover-cover .wp-block-cover__background { opacity: 0 !important; background-color: rgba(15, 23, 42, 0.85) !important; z-index: 1; transition: opacity 0.4s ease !important; }
.wl-hover-cover:hover .wp-block-cover__background { opacity: 1 !important; }
.wl-hover-cover .wp-block-cover__inner-container { z-index: 2; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.wl-hover-cover:hover .wp-block-cover__inner-container { opacity: 1; transform: translateY(0); }
.wl-hover-cover p { margin: 0 !important; line-height: 1; }
.wl-hover-cover a { display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; font-family: "Barlow", sans-serif; font-size: 16px !important; font-weight: 700; text-decoration: none !important; letter-spacing: 0.5px; padding: 4px 12px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50px; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.wl-hover-cover a::after { content: ' MODELS'; font-size: 11px; font-weight: 500; opacity: 0.8; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.3); }
.wl-hover-cover a:hover { background-color: #b91c1c !important; border-color: #b91c1c !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4); }

/*常用CSS*/
.title-3-c,.title-2-c,.title-1-c{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;}
.title-2-c{-webkit-line-clamp:2;}
.title-3-c{-webkit-line-clamp:3;}
.title-1-c{-webkit-line-clamp:1;}
.title-2-c a,.title-1-c a{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;}
.title-2-c a{-webkit-line-clamp:2;}
.title-1-c a{-webkit-line-clamp:1;}

/*首页partner板块图标*/
.zsicon{position: absolute;right: 24px;top: 24px;}

/*归档页面搜索框*/
.searchwrapper { width: 100%; max-width: 500px; margin: 0 auto; }
.searchwrapper .wp-block-search__inside-wrapper { display: flex; width: 100%; border: 1px solid #e5e7eb; background-color: #fff; transition: all 0.3s ease; }
.searchwrapper .wp-block-search__inside-wrapper:focus-within, .searchwrapper .wp-block-search__inside-wrapper:hover { border-color: #9ca3af; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.searchwrapper .wp-block-search__input { flex-grow: 1; border: none !important; background: transparent !important; padding: 12px 16px !important; font-family: "Barlow", sans-serif; font-size: 15px; color: var(--wp--preset--color--contrast); outline: none !important; border-radius: 0 !important; }
.searchwrapper .wp-block-search__button { margin-left: 0 !important; border: none !important; border-radius: 0 !important; background-color: var(--wp--preset--color--primary) !important; color: #fff !important; padding: 0 24px !important; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background-color 0.2s ease; }
.searchwrapper .wp-block-search__button:hover { background-color: #a11616 !important; }

/*归档页面产品分类*/
ul.product-categories { display: flex; flex-wrap: wrap; align-items: center; width: 100%; padding: 0; list-style: none !important; font-family: "Barlow", sans-serif; position: relative; z-index: 100; }
ul.product-categories > li { display: flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 0 24px; height: 60px; list-style: none !important; position: relative; font-size: 16px; font-weight: 700; color: var(--wp--preset--color--contrast); text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s ease; cursor: pointer; }
ul.product-categories > li > a { text-decoration: none !important; color: inherit; display: inline-block; padding: 0; margin-right: 4px; }
ul.product-categories > li:hover, ul.product-categories > li.current-cat, ul.product-categories > li.current-cat-ancestor { color: var(--wp--preset--color--primary); border-bottom-color: var(--wp--preset--color--primary); background-color: #fcfcfc; }
ul.product-categories .children { display: block; align-items: self-start; visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; padding: 10px 0; margin: 0 !important; border-top: 3px solid var(--wp--preset--color--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.15); transform: translateY(10px); transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 999; }
ul.product-categories > li:hover .children { visibility: visible; opacity: 1; transform: translateY(0); }
ul.product-categories .children li { margin: 0 !important; padding: 0 !important; display: flex; align-items: center; }
ul.product-categories .children li a { display: block; padding: 16px; font-size: 14px; font-weight: 500; color: #525252; text-decoration: none; border-left: 3px solid transparent; transition: all 0.2s; text-transform: none; white-space: nowrap; }
ul.product-categories .children li a:hover, ul.product-categories .children li.current-cat > a { background-color: #f9fafb; color: var(--wp--preset--color--primary); border-left-color: var(--wp--preset--color--primary); padding-left: 32px; }
@media (max-width: 768px) { ul.product-categories { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 0; } ul.product-categories > li { padding: 0 15px; height: 50px; font-size: 14px; flex-shrink: 0; } ul.product-categories::-webkit-scrollbar { display: none; } ul.product-categories .children { display: none !important; } }

/*归档页面产品卡片*/
.wl-card { position: relative !important; overflow: visible !important; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e5e7eb; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1; }
.wl-card:hover { transform: translateY(-5px); border-color: var(--wp--preset--color--primary, #b91c1c); box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; z-index: 100 !important; }
.wl-card .wp-block-post-featured-image { margin: 0 !important; overflow: hidden; position: relative; background: #f9fafb; aspect-ratio: 16/9; }
.wl-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease !important; mix-blend-mode: multiply; }
.wl-card:hover .wp-block-post-featured-image img { transform: scale(1.08); }
.wl-card .taxonomy-product-cat, .wl-card .taxonomy-product-tag {padding:0 16px;flex-wrap: wrap;gap:1px; position: absolute; z-index: 20; width: auto !important; display: flex; margin: 0 !important; line-height: 1; opacity: 0; pointer-events: none; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.wl-card .taxonomy-product-cat { top: 15px; left: 15px; transform: translateY(-10px); }
.wl-card .taxonomy-product-tag { top: calc(68% - 45px); right: 15px; transform: translateY(10px); justify-content: flex-end; }
.wl-card .taxonomy-product-cat a, .wl-card .taxonomy-product-tag a { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff !important; font-size: 11px !important; font-weight: 600; text-transform: uppercase; text-decoration: none !important; padding: 5px 12px; border-radius: 2px; letter-spacing: 0.5px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.wl-card .taxonomy-product-cat a { border-left: 3px solid var(--wp--preset--color--primary, #b91c1c); }
.wl-card .taxonomy-product-tag a { border-right: 3px solid var(--wp--preset--color--primary, #b91c1c); }
.wl-card:hover .taxonomy-product-cat, .wl-card:hover .taxonomy-product-tag { opacity: 1; transform: translate(0, 0); }
.wl-card .productmeta { position: absolute; top: 100%; left: -1px; right: -1px; width: calc(100% + 2px); background: #fff; padding: 0 20px 20px 20px !important; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: all 0.2s ease-out; border: 1px solid var(--wp--preset--color--primary, #b91c1c); border-top: none; border-radius: 0 0 4px 4px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); z-index: 90; }
.wl-card:hover .productmeta { visibility: visible; opacity: 1; transform: translateY(0); }
.wl-card .productmeta h4 { margin-top: 10px; padding-top: 15px; border-top: 1px dashed #eee; font-size: 14px !important; font-weight: 700; color: #1c1c1c; }
.wl-card .productmeta .is-acf-field { font-size: 12px !important; color: #666; max-height: 250px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ddd transparent; }

/*文章页面yarp*/
.yarpp ol { padding-left: 15px; }
.yarpp-related a { font-size: medium; }
.yarpp-related h3 { font-size: inherit; font-weight: normal; color: inherit; }
.yarpp-thumbnails-horizontal { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.yarpp-thumbnail > img, .yarpp-thumbnail-default { width: 100%; height: 100%; margin: 0; }
.yarpp-thumbnails-horizontal .yarpp-thumbnail-title { width: 100%; text-align: center; margin: 30px 0; }
.yarpp-thumbnails-horizontal .yarpp-thumbnail { width: 20.899vw; height: auto; margin: 5px; }
.yarpp-related a { font-weight: normal; text-decoration: none; color: #525252; }
.yarpp-related h3 { color: #525252; }

/*文章页面TOC目录*/
.simpletoc { background-color: var(--wp--preset--color--light-gray, #f9fafb); border: 1px solid #e5e7eb; border-left: 4px solid var(--wp--preset--color--primary, #b91c1c); padding: 24px 32px 24px 24px; margin-bottom: 3rem; border-radius: 0 4px 4px 0; position: relative; }
.simpletoc::before { content: "CONTENTS"; display: block; font-family: "Barlow", sans-serif; font-weight: 700; font-size: 0.875rem; letter-spacing: 1px; color: var(--wp--preset--color--primary, #b91c1c); margin-bottom: 16px; border-bottom: 1px solid #e5e7eb; padding-bottom: 10px; }
.simpletoc ol { margin: 0; padding: 0; list-style: none !important; counter-reset: item; }
.simpletoc li { margin-bottom: 8px; position: relative; line-height: 1.5; }
.simpletoc a { text-decoration: none !important; color: var(--wp--preset--color--tertiary, #525252); font-family: "Barlow", sans-serif; font-size: 15px; font-weight: 500; transition: all 0.2s ease; display: block; }
.simpletoc a:hover { color: var(--wp--preset--color--primary, #b91c1c); transform: translateX(4px); }
.simpletoc > ol > li > a { font-weight: 700; color: var(--wp--preset--color--contrast, #1c1c1c); font-size: 16px; margin-top: 16px; margin-bottom: 8px; }
.simpletoc > ol > li > ol { padding-left: 20px !important; border-left: 1px solid #e5e7eb; margin-left: 4px; }
.simpletoc > ol > li > ol > li { margin-bottom: 6px; }
.simpletoc > ol > li > ol > li > a { font-size: 14px; color: #64748b; padding-left: 10px; }
.simpletoc > ol > li > ol:hover { border-left-color: #d1d5db; }
.simpletoc ol ol ol { padding-left: 15px !important; margin-top: 4px; }
.simpletoc ol ol ol a { font-size: 13px; font-style: italic; }
html { scroll-padding-top: 80px; }

/*表格美化*/
.grap table { box-shadow: 0 2px 3px -3px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.05);width: 100%; border-collapse: collapse; min-width: 600px; border-bottom-left-radius: 8px; margin:16px 0;border-bottom-right-radius: 8px; overflow: hidden; }
.grap thead th { background-color: #525252; color: #ffffff; text-align: left; padding: 15px 20px; font-weight: 600;}
.grap tbody td { padding: 12px 20px; border: 1px solid #eee; vertical-align: middle; }
.grap tbody td:first-child { font-weight: 500; color: #222; }
.grap tbody td:last-child { font-weight: 500; color: #28a745; }
.grap tbody tr:nth-child(even) { background-color: #f8f8f8; }
.grap tbody tr:hover { background-color: #e6f7ff; cursor: pointer; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); transition: all 0.2s ease-in-out; }
.grap tbody tr:last-child td { border-bottom: none; }
.wp-block-table thead{border: 2px solid #555;}
.grap ul{background: #f5f6f7;margin-top:8px;LIST-STYLE: inside;border-radius: 8px;}
.grap p{padding:8px 0;}

/*产品页面粘性修正*/
.stickyproductmeta{top:80px;}

/*产品页面尺寸图*/
.productsizeimg{filter: brightness(0.97);}
.productsizeimg img{width:100%;}

/*面包屑导航对其*/
.tsf-breadcrumb ol{padding:0}

/*超级菜单csS,含js*/
.model-specs { color: var(--wp--preset--color--tertiary); line-height: 1.8 !important; word-spacing: 8px; margin: 0 !important; background-color: var(--wp--preset--color--light-gray); padding: 8px 12px; border-radius: 4px; border-left: 3px solid var(--wp--preset--color--secondary); }
.header-pill-wrapper { position: relative; z-index: 20; transition: border-radius 0.2s ease, background-color 0.3s ease !important; background-color: #fff; }
.h-header.is-menu-open .header-pill-wrapper { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; background-color: #fff !important; }
.mega-menu-panel { position: absolute; top: 100%; z-index: 10; left: 50%; transform: translateX(-50%); width: 100vw; background-color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.08); opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.25s ease-out; display: flex; flex-direction: column;justify-content: center; padding-bottom: 40px; padding-top: 0px; }
.mega-menu-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu-panel:not(.is-active) { transform: translateX(-50%) translateY(-10px); }
.mega-menu-panel > .wp-block-group, .mega-menu-panel > .wp-block-columns, .mega-menu-panel > div { width: 100%; margin: 0 auto; }
.js-mega-trigger { position: relative; height: 100%; display: flex; align-items: center; }
.js-mega-trigger::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 60px; background: transparent; z-index: 1001; }
/*粘性页头样式含js*/
.h-header {width: 100%; z-index: 100; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.h-header.scrolled { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; background-color: #fff !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.logoimg img{max-height:60px;}
/* 将 sticky 加给它的父级容器 */
header.wp-block-template-part {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/*产品页面可变产品展示*/
.variant-tabs .variant-tab-nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.variant-tabs .variant-tab-btn { font-size:18px; font-weight:600; padding:12px 24px; cursor:pointer; background:none; border:1px solid #ececec !important; outline:none; }
.variant-tabs .variant-tab-btn:focus { outline:none; }
.variant-tabs .variant-tab-btn.is-active { box-shadow:inset 0 -4px 0 0 #000000; }
.variant-tab-panel[style*="display:none"] { display:none !important; }
.variant-detail-block P{display:none}
.variant-tabs .variant-tab-btn:focus-visible { outline:4px solid #000000; outline-offset:4px; }
/*产品页面tab调整*/
.product-tab.wp-simple-js-tabs-buttons {gap: 1px;}
.product-tab { display: flex !important; flex-wrap: nowrap !important; align-items: center; border-bottom: 2px solid #e5e7eb; margin-bottom: 30px !important; padding: 0 !important; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.product-tab::-webkit-scrollbar { display: none; }
.product-tab .tab-trigger { border: none !important; border-bottom: 3px solid transparent !important; background: transparent !important; margin: 0 !important; padding: 16px 24px !important; font-family: "Barlow", sans-serif; font-size: 15px !important; font-weight: 600 !important; color: #525252; line-height: 1; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; }
.product-tab .tab-trigger:hover { color: #b91c1c; background-color: #f9fafb !important; }
.product-tab .tab-trigger.active { color: #1c1c1c !important; border-bottom-color: #b91c1c !important; background-color: #fff !important; }
@media (max-width: 768px) { .product-tab .tab-trigger { padding: 14px 18px !important; font-size: 14px !important; } }

/*tab手风琴样式,含js*/
.wp-simple-js-tabs-buttons { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-trigger { cursor: pointer; transition: all .3s ease; }
.tab-trigger.active,.tab-trigger.active h3 {background:#525252;color:#fff;border-radius: 10px;}
.active .has-icon-color svg {color:#fff !important}
.wp-simple-js-tabs-panels > * { display: none; animation: fadeIn .3s ease; }
.wp-simple-js-tabs-panels > *.active-panel { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/*按钮增加箭头*/
.btn-arrow .wp-block-button__link { display: inline-flex; align-items: center;justify-content: center; }
.btn-arrow .wp-block-button__link::after { content: ''; display: inline-block; width: 1.2em; height: 1.2em; margin-left: 0.2em; background-color: currentColor; -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-repeat: no-repeat; mask-position: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-arrow:hover .wp-block-button__link::after {transform: translate(4px, -4px);}

/*优化列表样式*/
.mega-menu-panel .wp-block-list { list-style: none !important; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--wp--preset--color--secondary); }
.mega-menu-panel .wp-block-list li { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--secondary); }
.mega-menu-panel .wp-block-list li a { display: block; padding: 8px 4px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--wp--preset--color--tertiary); transition: all 0.2s ease; position: relative; }
.mega-menu-panel .wp-block-list li a:hover { color: var(--wp--preset--color--primary); background-color: var(--wp--preset--color--light-gray); padding-left: 12px; }
.mega-menu-panel .wp-block-list li a:hover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background-color: var(--wp--preset--color--primary); }

/*超级菜单的型号部分*/
.model-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.model-tag { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; font-family: "Barlow", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5; background-color: var(--wp--preset--color--secondary); color: var(--wp--preset--color--tertiary); text-decoration: none !important; border: 1px solid transparent; border-radius: 2px; transition: all 0.2s ease; }
.model-tag:hover { color: var(--wp--preset--color--primary); background-color: #fff; border-color: var(--wp--preset--color--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.model-links { margin: 0 !important; line-height: 2.2 !important; }
.model-links a { display: inline-block; text-decoration: none; color: var(--wp--preset--color--tertiary); font-family: "Barlow", sans-serif; font-weight: 500; padding: 2px 6px; margin-right: 4px; border-radius: 2px; background-color: var(--wp--preset--color--secondary); transition: all 0.2s ease; }
.model-links a:hover { color: #fff; background-color: var(--wp--preset--color--primary); }

/*基本区块样式*/
/*列表*/
.wp-block-list{padding: 16px 32px;border-radius: 10px;}
.wp-block-list li{line-height:2;}
/*表格*/
.wl-parameters {overflow-x: auto; background-color: #fff; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.wl-parameters table { width: 100%; border-collapse: collapse; font-family: "Barlow", sans-serif; font-size: 16px; line-height: 1.5; min-width: 600px; }
.wl-parameters td { border: 1px solid #e5e7eb; padding: 10px 16px; vertical-align: middle; }
.wl-parameters tr td:not(:last-child) { background-color: #f9fafb; font-weight: 600; color: var(--wp--preset--color--contrast); white-space: nowrap; width: 1%; }
.wl-parameters tr td:last-child { font-weight: 400; color: var(--wp--preset--color--contrast); width: auto; white-space: normal; }
.wl-parameters tr:hover td { background-color: var(--wp--preset--color--light-gray) !important; }

/*正文内容*/
.wlcontent p { color: var(--wp--preset--color--tertiary); font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5em; font-weight: 400; }
.wlcontent .is-style-lead p{ font-size: 1.35rem; color: var(--wp--preset--color--contrast); line-height: 1.6; font-weight: 500; }
.wlcontent h2 { position: relative; font-size: 2rem; font-weight: 700; color: var(--wp--preset--color--contrast); margin-top: 2rem; margin-bottom: 1rem; padding-left: 20px; line-height: 1.3; }
.wlcontent h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 70%; background-color: var(--wp--preset--color--primary); }
.wlcontent h3 { font-size: 1.35rem; font-weight: 600; color: var(--wp--preset--color--contrast); margin-top: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; }
.wlcontent h4 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--wp--preset--color--primary); margin-top: 2rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--wp--preset--color--secondary); padding-bottom: 5px; display: inline-block; }
.wlcontent.wp-block-image img { border-radius: 4px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.wlcontent.wp-block-image:hover img { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04); }
.wlcontent.wp-block-image figcaption { font-size: 13px; color: #9ca3af; text-align: center; margin-top: 10px; font-family: monospace; }
.wlcontent blockquote { border-left: 4px solid var(--wp--preset--color--primary); background-color: var(--wp--preset--color--light-gray); margin: 2rem 0; padding: 1.5rem 2rem; font-style: normal; }
.wlcontent blockquote p { font-size: 1.1rem; font-weight: 500; color: var(--wp--preset--color--contrast); margin-bottom: 0; }
.wlcontent blockquote cite { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--wp--preset--color--tertiary); font-weight: 600; text-transform: uppercase; }
.wlcontent p a:not(.wp-block-button__link) { color: var(--wp--preset--color--contrast); text-decoration: none; background-image: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)); background-position: 0% 100%; background-repeat: no-repeat; background-size: 100% 1px; transition: background-size 0.3s ease, color 0.3s ease; }
.wlcontent p a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--primary); background-size: 100% 2px; }


/*联系表单美化*/
/*联系表单美化*/
.custom-contact-form p{margin:0 !important}
.custom-contact-form .row {display: flex;flex-wrap: wrap;gap: 16px;}
.custom-contact-form .column {flex: 1;min-width: 200px;}
.custom-contact-form label {display: block;margin-bottom: 8px;font-weight: bold;font-size: 14px;color: #333;}
.custom-contact-form input[type="text"],.custom-contact-form input[type="email"],.custom-contact-form input[type="tel"],.custom-contact-form input[type="url"],.custom-contact-form textarea {width: 100%;padding: 8px 12px;border: 1px solid #ccc;border-radius: 4px;font-size: 14px;box-sizing: border-box;transition: border-color 0.3s;}
.custom-contact-form input[type="text"]:focus,.custom-contact-form input[type="email"]:focus,.custom-contact-form input[type="tel"]:focus,.custom-contact-form input[type="url"]:focus,.custom-contact-form textarea:focus {border-color: #66afe9;outline: none;}
.custom-contact-form .message-row {flex-direction: column;}
.custom-contact-form .submit-row {text-align: center;margin-top: 24px;}
.custom-contact-form input[type="submit"] {background-color: #1C1C1C;border: none;padding: 10px 20px;color: #fff;font-size: 16px;border-radius: 4px;cursor: pointer;transition: background-color 0.3s;}
.custom-contact-form input[type="submit"]:hover,.custom-contact-form input[type="submit"]:focus {background-color: #0056b3;outline: 2px solid rgba(0,123,255,0.5);}
.custom-contact-form input[type="submit"]:focus {outline: 2px solid #333;outline-offset: 2px;}

/* 联系表单 3、4行全宽 */
.custom-contact-form .row:nth-child(3), .custom-contact-form .row:nth-child(4) { width: 100% !important; display: block !important; }
.custom-contact-form .row:nth-child(3) .column, .custom-contact-form .row:nth-child(4) .column { width: 100% !important; display: block !important; padding: 0 !important; }
.custom-contact-form .row:nth-child(3) input, .custom-contact-form .row:nth-child(4) input { width: 100% !important; box-sizing: border-box !important; }