/* 
 Theme Name:   布料网站子主题
 Theme URI:    https://wps.laojiang1688.top/
 Description:  布料外贸
 Author:       老姜
 Author URI:   https://wps.laojiang1688.top
 Template:     woostify
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* 联系表单样式 */
.contact-form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin-top: 60px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.contact-form-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group-full {
    flex: 0 0 100%;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

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

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 50px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 首页轮播图 */
.lj-hero-slider{position:relative;width:100%;max-width:1920px;margin:0 auto}
.lj-hero-track{position:relative;overflow:hidden}
.lj-slide{display:none}
.lj-slide.active{display:block}
.lj-slide img{width:100%;height:auto;aspect-ratio:1920/650;object-fit:cover}
.lj-hero-dots{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:8px}
.lj-dot{width:10px;height:10px;border-radius:50%;background:#fff;opacity:.6;cursor:pointer}
.lj-dot.active{opacity:1;background:#e76f00}
.lj-hero-prev,.lj-hero-next{position:absolute;top:50%;transform:translateY(-50%);border:none;background:rgba(0,0,0,.35);color:#fff;width:56px;height:56px;border-radius:50%;cursor:pointer;font-size:24px;line-height:56px}
.lj-hero-prev:hover,.lj-hero-next:hover{background:rgba(0,0,0,.5)}
.lj-hero-prev{left:18px}
.lj-hero-next{right:18px}
@media(max-width:768px){.lj-slide img{aspect-ratio:16/9}.lj-hero-prev,.lj-hero-next{width:44px;height:44px;font-size:20px;line-height:44px}}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 40px 15px;
        margin-top: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-form-header h2 {
        font-size: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

.ali-product-panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-top: 16px;
    font-size: 13px;
}
.ali-title {font-size:14px; font-weight:700; color:#111; margin-bottom:10px;}
.ali-price-tiers {display:grid; grid-template-columns: repeat(2,1fr); gap:8px; margin-bottom:12px;}
.ali-tier {border:1px solid #f0f2f5; border-radius:8px; padding:10px; background:#fff; transition:all .2s ease;}
.ali-tier.active {border-color:#ffa566; background:#fff7ee;}
.ali-tier.active .ali-tier-price {color:#e76f00;}
.ali-tier-qtylabel {font-size:11px; color:#6b7280; margin-bottom:4px;}
.ali-tier-price {font-size:18px; font-weight:700; color:#111;}
.ali-tier-price.ali-accent {color:#e76f00;}
.ali-tier-price .ali-currency{margin-right:4px;font-weight:700}
.ali-samplebar {display:flex; align-items:center; gap:8px; border:1px solid #e6e8eb; background:#f5f7fa; border-radius:8px; padding:8px 10px; margin-bottom:12px;}
.ali-check-icon{width:20px;height:20px;display:inline-block;position:relative}
.ali-check-circle{border-radius:50%;background:#10b981}
.ali-check-circle:after{content:"";position:absolute;left:6px;top:3px;width:6px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.ali-check-outline{border:2px solid #10b981;border-radius:50%}
.ali-check-outline:after{content:"";position:absolute;left:6px;top:3px;width:6px;height:10px;border-right:2px solid #10b981;border-bottom:2px solid #10b981;transform:rotate(45deg)}
.ali-check-square{border:2px solid #10b981;border-radius:4px}
.ali-check-square:after{content:"";position:absolute;left:6px;top:3px;width:6px;height:10px;border-right:2px solid #10b981;border-bottom:2px solid #10b981;transform:rotate(45deg)}
.ali-check-minimal:before{content:"✔";position:absolute;left:0;top:0;color:#10b981;font-weight:700}
.ali-sample-text {font-size:12px; color:#333; flex:1; font-weight:600;}
.ali-sample-btn {display:inline-block; padding:4px 8px; border:1px solid #d0d5dd; border-radius:16px; background:#fff; color:#111; text-decoration:none; font-weight:600; font-size:11px;}
.ali-section {padding:8px 0; border-top:1px solid #eef0f3;}
.ali-section-head {display:flex; justify-content:space-between; align-items:center; margin-bottom:6px;}
.ali-arrow {font-size:16px; color:#6b7280;}
.ali-row {display:flex; align-items:center; gap:4px; font-size:12px; color:#111; margin:4px 0;}
.ali-dot {color:#111;}
.ali-list {margin:0; padding-left:14px;}
.ali-text {color:#555; font-size:12px;}
.ali-verified {color:#1e67ff; font-weight:600; margin-left:4px; font-size:11px;}
.ali-actions {margin-top:12px;}
.ali-chat-btn {display:inline-block; padding:8px 16px; border-radius:20px; text-decoration:none; font-weight:600; font-size:12px;}
.ali-chat-btn.ali-outline {background:#fff; color:#111; border:1px solid #d0d5dd; box-shadow:0 1px 4px rgba(0,0,0,0.04);} 
.ali-chat-btn.ali-outline:hover {background:#f9fafb;}

@media (max-width: 768px) {
    .ali-price-tiers {grid-template-columns: repeat(2,1fr);}
}

/* 修复产品详情页显示问题 */
.woocommerce div.product {
    position: relative;
}

.woocommerce div.product .ali-product-panel {
    margin-bottom: 2em;
    transform: translateY(-25px);
}

.woocommerce div.product .product_title {
    clear: both;
}
.lj-top-title {margin-bottom:12px; font-size:24px; font-weight:700;}
.woocommerce div.product .entry-summary .product_title.entry-title {display:none !important;}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.25em;
}

.woocommerce div.product form.cart {
    margin: 2em 0;
}

.woocommerce div.product .woocommerce-tabs {
    clear: both;
    margin-top: 2em;
}
.woocommerce div.product .woocommerce-tabs {display:none !important;}

.ali-commerce-block .price del {display:none !important;}

.key-attrs-grid {display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #e5e7eb; border-radius:6px; overflow:hidden;}
.key-attrs-grid .ka-cell {padding:10px 12px; font-size:14px; color:#111; border-bottom:1px solid #eef0f3; border-right:1px solid #eef0f3;}
.key-attrs-grid .ka-name {background:#f6f7f7; font-weight:600;}
.key-attrs-grid .ka-value {background:#fff;}
.lj-stacked-tabs {margin-top:4em;}
.lj-stacked-tabs {width:70%; margin-left:auto; margin-right:auto;}
.lj-tabs-nav {display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.lj-tabs-nav .lj-tab-link {display:inline-block; padding:6px 12px; border:1px solid #d0d5dd; border-radius:20px; background:#fff; color:#111; text-decoration:none; font-weight:600;}
.lj-tabs-nav .lj-tab-link:hover {background:#f9fafb;}
.lj-tab-section {border:1px solid #e5e7eb; border-radius:8px; padding:16px; background:#fff; margin-bottom:16px; position:relative;}
.lj-tab-section.collapsed{max-height:580px; overflow:hidden}
.lj-tab-section.collapsed:after{content:""; position:absolute; left:0; right:0; bottom:32px; height:48px; background:linear-gradient(to bottom, rgba(255,255,255,0), #fff)}
.lj-tab-toggle{margin-top:0; margin-bottom:32px; text-align:left}
.lj-tab-toggle .lj-tab-toggle-link{display:inline-block; color:#111; font-weight:600; text-decoration:none}
.lj-tab-title {font-size:16px; font-weight:700; margin:16px 0 10px;}

@media (max-width: 768px) {
  .lj-stacked-tabs {width:100%;}
}
.lj-tab-section#lj-tab-reviews #review_form_wrapper .comment-form p {display:block; width:100%; clear:both; margin-bottom:14px;}
.lj-tab-section#lj-tab-reviews .comment-form-author,
.lj-tab-section#lj-tab-reviews .comment-form-email,
.lj-tab-section#lj-tab-reviews .comment-form-comment {float:none; width:100%;}
.lj-tab-section#lj-tab-reviews .comment-form-author label,
.lj-tab-section#lj-tab-reviews .comment-form-email label,
.lj-tab-section#lj-tab-reviews .comment-form-comment label {display:block; font-weight:600; margin-bottom:6px;}
.lj-tab-section#lj-tab-reviews .comment-form-author input,
.lj-tab-section#lj-tab-reviews .comment-form-email input,
.lj-tab-section#lj-tab-reviews .comment-form-comment textarea {width:100%; max-width:100%; box-sizing:border-box; border:1px solid #ddd; border-radius:6px; padding:10px 12px;}

/* 隐藏心愿单按钮与相关图标 */
.yith-wcwl-add-to-wishlist,
.yith-wcwl-add-button,
.yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-wishlistexistsbrowse,
a.add_to_wishlist,
.woostify-product-wishlist,
.woostify-single-product-wishlist,
.woostify-wishlist-button,
.woostify-product-actions .action-item.wishlist,
.woostify-product-actions,
.tinvwl_add_to_wishlist_button,
.tinvwl .tinvwl_add_to_wishlist_button,
button[aria-label="Add to Wishlist"],
a[aria-label="Add to Wishlist"]{
    display:none !important;
}

i.fa-heart,
svg[data-icon="heart"],
svg[class*="wishlist"],
span[class*="wishlist"]{
    display:none !important;
}

/* 隐藏页头心形图标及其链接（心愿单入口） */
header .wishlist,
.site-header .wishlist,
.woostify-header .wishlist,
.site-header a[href*="wishlist"],
header a[href*="wishlist"],
.site-header .header-action .wishlist,
.site-header .woostify-wishlist,
.site-header .header-action-buttons .action-item.wishlist,
header i.fa-heart,
header svg[data-icon="heart"],
.site-header i[class*="heart"],
.site-header svg[class*="heart"]{
    display:none !important;
}

/* 精确隐藏 Woostify 顶部心形图标 */
.site-header .woostify-svg-icon.icon-heart,
header .woostify-svg-icon.icon-heart{
    display:none !important;
}
.lj-tab-section#lj-tab-reviews .form-submit {margin-top:10px;}
.lj-tab-section#lj-tab-video .lj-video-wrap{position:relative; padding-top:56.25%;}
.lj-tab-section#lj-tab-video .lj-video-wrap iframe, .lj-tab-section#lj-tab-video .lj-video-wrap video {position:absolute; top:0; left:0; width:100%; height:100%; border-radius:8px;}
.ali-actions {display:none !important;}
/* 隐藏航运模块与前台分类 */
.ali-section.ali-shipping {display:none !important;}
.woocommerce div.product .product_meta .posted_in {display:none !important;}
.lj-highlights-panel{width:70%;margin-left:auto;margin-right:auto;background:linear-gradient(90deg,#ffe5d0 0%,#fff7ee 100%);border:1px solid #ffd6b3;border-radius:12px;padding:16px 18px;box-shadow:0 4px 16px rgba(0,0,0,0.04)}
.lj-highlights-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.lj-spark{color:#e76f00;font-size:18px;line-height:1}
.lj-highlights-title{color:#e76f00;font-weight:700;font-size:16px}
.lj-highlights-content{color:#111;font-size:14px}
@media (max-width: 768px){.lj-highlights-panel{width:100%}}
.single-product .yith-wcwl-add-to-wishlist,
.single-product .yith-wcwl-add-button,
.single-product .yith-wcwl-wishlistexistsbrowse,
.single-product .yith-wcwl-wishlistaddedbrowse,
.single-product .tinvwl,
.single-product .tinvwl_add_to_wishlist_button,
.single-product .woostify-product-add-to-wishlist,
.single-product .woostify-wishlist {display:none !important;}
.woostify-trust-badge-box{display:none !important;}
.ali-commerce-block{display:flex;align-items:center;gap:16px}
.ali-commerce-block .price{margin:0}
.ali-commerce-block form.cart{margin:0;display:flex;align-items:center;gap:12px}
.ali-commerce-block form.cart .quantity{margin:0}
.ali-commerce-block form.cart .quantity input.qty{width:90px;text-align:center}
@media (max-width:768px){.ali-commerce-block{flex-direction:column;align-items:flex-start}.ali-commerce-block form.cart{width:100%}.ali-commerce-block form.cart .single_add_to_cart_button{width:100%}}
.single-product .woocommerce-error{display:none !important;}

.woocommerce div.product .woocommerce-product-gallery{opacity:1 !important;visibility:visible !important}
.woocommerce-product-gallery__wrapper{opacity:1 !important;visibility:visible !important}
.woocommerce-product-gallery__image{opacity:1 !important;visibility:visible !important}
.woocommerce-product-gallery__image img{display:block !important;width:100%;height:auto}
/* 隐藏产品分类页侧栏的分类与归档模块 */
.tax-product_cat .widget_categories,
.tax-product_cat .widget_archive,
.tax-product_cat .wp-block-categories,
.tax-product_cat .wp-block-archives,
.tax-product_cat .widget_meta,
.tax-product_cat .wp-block-meta{display:none !important}
 
/* 滑动轮播模块 */
.layout.layout-1200{max-width:1200px;margin:0 auto}
#bd_5.layout.layout-1200{max-width:1920px;width:100%;margin:0 auto}
#bd_5{padding:20px 0}
#bd_5 .lj-updown{position:relative;display:block}
#bd_5 .lj-updown-viewport{overflow:hidden;width:100%;position:relative}
#bd_5 .lj-updown-track{position:relative;width:100%;transition:transform .3s ease}
#bd_5 .lj-updown-item{position:absolute;left:0;right:0;top:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}
#bd_5 .lj-updown-item img{display:block;width:100%;height:auto}
#bd_5 .lj-updown-item.revealed{transform:translateY(-110%);opacity:0;pointer-events:none;transition:transform .3s ease, opacity .3s ease}
 
#lj-hot{padding:24px 0}
.lj-hot-wrap{max-width:1280px;margin:0 auto}
.lj-hot-head{text-align:center;margin-bottom:12px}
.lj-hot-title{font-size:24px;font-weight:700;color:#111}
.lj-hot-sub{font-size:14px;color:#555}
.lj-hot-banner{display:flex;justify-content:center;align-items:center;margin-bottom:16px}
.lj-hot-banner img{width:100%;max-width:1280px;height:250px;object-fit:cover;border-radius:8px}
.lj-hot-products{position:relative}
.lj-hot-foot{margin-top:10px;display:flex;justify-content:flex-end}
.lj-hot-more{display:inline-block;background:#f1f1f1;color:#111;padding:8px 12px;border-radius:6px;text-decoration:none;font-weight:600}
.lj-hot-products{max-width:1280px;margin:0 auto}
.lj-hot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.lj-hot-item{flex:0 0 calc(100%/4.5);position:relative;display:block;text-decoration:none;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}
.lj-hot-item img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
.lj-hot-name{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;background:rgba(255,255,255,.7);color:#111;font-size:14px;font-weight:600;text-align:center}
@media(max-width:768px){.lj-hot-grid{grid-template-columns:repeat(2,1fr)}.lj-hot-item:nth-child(n+5){display:none}}
.lj-hot-prev,.lj-hot-next{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:rgba(0,0,0,.35);color:#fff;border-radius:50%;cursor:pointer;z-index:2}
.lj-hot-prev{left:-18px}
.lj-hot-next{right:-18px}
.lj-hot-prev:hover,.lj-hot-next:hover{background:rgba(0,0,0,.5)}
#lj-na{padding:24px 0}
.lj-na-wrap{max-width:1280px;margin:0 auto}
.lj-na-head{text-align:center;margin-bottom:12px}
.lj-na-title{font-size:24px;font-weight:700;color:#111}
.lj-na-sub{font-size:14px;color:#555}
.lj-na-grid{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:auto;gap:12px}
.lj-na-item{position:relative;display:block;text-decoration:none;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.lj-na-item img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
.lj-na-item .lj-na-name{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;background:rgba(255,255,255,.7);color:#111;font-size:14px;font-weight:600;text-align:center}
.lj-na-big{grid-row:1 / span 2}
@media(max-width:768px){.lj-na-grid{grid-template-columns:1fr 1fr}.lj-na-big{grid-row:auto}.lj-na-item:nth-child(n+5){display:none}.lj-na-big img{height:48vw}.lj-na-item img{height:40vw}}
#lj-cat-solid,#lj-cat-digital,#lj-cat-application{padding:24px 0}
.lj-cat-wrap{max-width:1280px;margin:0 auto;position:relative}
.lj-cat-head{text-align:left;margin-bottom:12px}
.lj-cat-title{font-size:20px;font-weight:700;color:#111}
.lj-cat-banner{display:flex;justify-content:center;align-items:center;margin-bottom:16px}
.lj-cat-banner img{width:100%;max-width:1280px;height:250px;object-fit:cover;border-radius:8px}
@media(max-width:768px){
  .lj-hot-banner img{height:auto;object-fit:unset}
  .lj-cat-banner img{height:auto;object-fit:unset}
}
.lj-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.lj-cat-item{position:relative;display:block;text-decoration:none;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.lj-cat-item img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
.lj-cat-fav{display:none !important}
.lj-cat-name{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;background:rgba(255,255,255,.7);color:#111;font-size:14px;font-weight:600;text-align:center}
.lj-cat-foot{margin-top:10px;display:flex;justify-content:flex-end}
.lj-cat-more{display:inline-block;background:#f1f1f1;color:#111;padding:8px 12px;border-radius:6px;text-decoration:none;font-weight:600}
@media(max-width:768px){.lj-cat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){.lj-cat-item:nth-child(n+5){display:none}}
.lj-imgwrap{position:relative;display:block;aspect-ratio:1/1}
.lj-imgwrap img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease}
.lj-imgwrap .img1{opacity:1}
.lj-imgwrap .img2{opacity:0}
.lj-hot-item:hover .lj-imgwrap .img1,.lj-na-item:hover .lj-imgwrap .img1,.lj-cat-item:hover .lj-imgwrap .img1{opacity:0}
.lj-hot-item:hover .lj-imgwrap .img2,.lj-na-item:hover .lj-imgwrap .img2,.lj-cat-item:hover .lj-imgwrap .img2{opacity:1}
@media(max-width:768px){
  .trp-language-switcher, .gtranslate_wrapper, .goog-te-gadget, .goog-te-gadget-simple, .goog-te-banner-frame, #google_translate_element{display:none !important}
  .menu-item.lj-language-switch .trp-language-switcher{display:block !important}
}
.lj-na-foot{margin-top:10px;display:flex;justify-content:flex-end}
.lj-na-more{display:inline-block;background:#f1f1f1;color:#111;padding:8px 12px;border-radius:6px;text-decoration:none;font-weight:600}
/* 隐藏产品折扣角标 */
.woocommerce span.onsale, span.onsale, .onsale, .woostify-badge--sale{display:none !important}
@media(max-width:768px){
  .yith-wcwl-add-to-wishlist,
  .yith-wcwl-add-button,
  .yith-wcwl-wishlistexistsbrowse,
  .yith-wcwl-wishlistaddedbrowse,
  .tinvwl,
  .tinvwl_add_to_wishlist_button,
  .woostify-product-add-to-wishlist,
  .woostify-wishlist,
  .add_to_wishlist,
  .wishlist-button{display:none !important}
}
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce div.product div.images img{border-radius:12px}
.lj-imgwrap{border-radius:12px;overflow:hidden}
.lj-hot-item,.lj-na-item,.lj-cat-item{border-radius:12px}
