/* 雅虎新品-顺通转运 样式表 */
/* ===== 全局 ===== */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,"Segoe UI","Hiragino Sans","Yu Gothic","Microsoft YaHei",sans-serif;background:#f5f5f5;color:#333;-webkit-text-size-adjust:100%;min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
.container{max-width:1200px;width:100%;margin:0 auto;padding:0 0px}

/* ===== 顶部 ===== */
.new-header{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.06);position:relative;z-index:200}
.new-header-rates{background:transparent;font-size:12px;color:#666;padding:8px 0;border-bottom:0}
.new-header-rates .container{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.top-left-rates{display:flex;gap:14px;flex-wrap:wrap;color:#666}
.top-left-rates .rate-item{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.top-left-rates .rate-value{color:inherit;font-weight:inherit}
.new-header-top-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.new-header-top-actions a{color:#666;cursor:pointer}
.new-header-top-actions a:hover{color:#ff6600}
.new-header-main{padding:14px 0;background:#fff;z-index:201;transition:box-shadow .2s;}
.new-header-main .container{display:flex;align-items:center;gap:18px}
.new-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.new-logo img{height:36px;width:auto;display:block;border-radius:4px}
.new-logo .yahu-logo-img{height:36px;width:auto;}
.new-search-box{flex:1;min-width:0;display:flex;gap:8px;align-items:center}
.new-search-box .search-input-wrap{flex:1;position:relative;min-width:0}
.new-search-box input{width:100%;padding:9px 18px;border:2px solid #ff6600;border-radius:25px;outline:none;font-size:14px;font-family:inherit}
.new-search-box .btn-search{background:#ff6600;color:#fff;border:1px solid transparent;padding:0 22px;border-radius:22px;height:40px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;display:inline-flex;align-items:center;gap:4px;transition:border-color .2s}
.new-search-box .btn-search:hover{border-color:#ff6600}
.new-search-box .btn-search svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.top-svg{height:24px;width:24px;display:block;margin-bottom:4px;stroke:#666;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .2s}
.icon-item:hover .top-svg{stroke:#ff6600}
.new-user-actions{display:flex;gap:22px;text-align:center;font-size:12px;color:#666;flex-shrink:0;align-items:center}
.new-user-actions .icon-item{display:flex;flex-direction:column;align-items:center;cursor:pointer;color:#666;text-decoration:none}
.new-user-actions .icon-item:hover{color:#ff6600}
.new-login-info{display:flex;align-items:center;gap:8px;font-size:12px;color:#666;white-space:nowrap;background:#f5f5f5;border-radius:14px;padding:4px 12px}
.new-login-info .login-btn{background:none;border:0;padding:0;color:#666;font-size:12px;font-weight:400;cursor:pointer;font-family:inherit}
.new-login-info .login-btn:hover{color:#ff6600}
.new-login-info .user-chip{display:inline-flex;align-items:center;gap:6px;background:none;border:0;border-radius:0;padding:0;color:#666;font-size:12px}
.new-login-info .user-name{font-weight:400;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:12px}
.new-login-info .user-id{color:#999;font-family:inherit;font-size:12px}
.new-login-info .logout-btn{background:none;border:0;padding:0;color:#666;font-size:12px;cursor:pointer;font-family:inherit;margin-left:4px}
.new-login-info .logout-btn:hover{color:#ff6600}
.new-header-sub{display:none;background:#fff;border-top:1px solid #f0f0f0;font-size:12px;color:#666;padding:6px 0;z-index:201;transition:box-shadow .2s;}
.new-header-sub .container{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.sub-left-actions{display:flex;align-items:center;gap:14px}
.sub-left-actions a{color:#666;cursor:pointer}
.sub-left-actions a:hover{color:#ff6600}
.new-header-main.is-fixed {position: fixed;top: 0; left: 0; right: 0;z-index: 999;box-shadow: 0 4px 10px rgba(0,0,0,.08);}
.header-placeholder { display: none; width: 100%; }
.header-placeholder.show { display: block; }

/* ===== 首页 ===== */
.home-page{flex:1 0 auto;padding-top:0}
.full-banner-section{width:100%;max-width:1200px;margin:0 auto;position:relative;overflow:hidden}
.banner-viewport{width:100%;position:relative;overflow:hidden;padding:30px 0; }
.banner-track-full{display:flex;gap:20px;padding:5px 0;width:max-content;position:relative;left:0;transition:transform .6s ease-in-out;will-change:transform}
.banner-card-full{flex:0 0 var(--bw,810px);width:var(--bw,810px);height:calc(var(--bw,810px) * 344 / 1200);border-radius:16px;background-size:cover;background-position:center;position:relative;padding:30px 35px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease;


box-shadow:none
    
    
    
}


.banner-card-full:hover{transform:translateY(-5px);box-shadow:none}
.banner-card-full::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:16px;pointer-events:none}
.banner-card-content{position:relative;z-index:2}
.banner-card-content h2{font-size:26px;margin-bottom:8px;font-weight:bold;text-shadow:1px 1px 3px rgba(0,0,0,.6)}
.banner-card-content p{font-size:15px;opacity:.95;text-shadow:1px 1px 2px rgba(0,0,0,.5)}
.nav-btn-full{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:50px;background:rgba(255,255,255,.95);color:#333;border:none;border-radius:50%;font-size:26px;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;transition:all .3s;box-shadow:0 4px 15px rgba(0,0,0,.15)}
.nav-btn-full:hover{background:#ff6600;color:#fff;transform:translateY(-50%) scale(1.05)}
.btn-prev-full{left:3%}
.btn-next-full{right:3%}

.category-icon-section{background:#fff;border-radius:15px;padding:25px;margin-bottom:20px;position:relative}
.category-icon-section::after{content:'';position:absolute;top:0;right:0;width:56px;height:100%;border-radius:0 15px 15px 0;background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 60%, #fff 100%);pointer-events:none;z-index:5}
.section-title{font-size:16px;font-weight:bold;margin-bottom:20px;display:flex;align-items:center}
.section-title::before{content:'';width:4px;height:16px;background:#ff6600;margin-right:8px;border-radius:2px}
.section-title .tag{background:#ffeadd;color:#ff6600;font-size:12px;padding:2px 6px;border-radius:10px;margin-left:10px;font-weight:normal}
.category-grid-icons{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:15px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:6px;scrollbar-width:thin}
.category-grid-icons .cat-icon-item{flex:0 0 calc((100% - 7 * 15px) / 8)}
/* 品牌分类卡片：整张就是一张图片，宽度铺满，高度按图片自身比例 */
.cat-icon-item{background:#f4f4f4;border:1px solid #eee;border-radius:10px;padding:0;overflow:hidden;cursor:pointer;transition:all .3s;display:block;line-height:0}
.cat-icon-item:hover{box-shadow:0 5px 15px rgba(0,0,0,.08);transform:translateY(-2px);border-color:#ffdab9}
.cat-icon-item img{width:100%;height:auto;display:block;border-radius:0}
.main-shop-layout{display:flex;gap:20px;align-items:flex-start;position:relative;padding-bottom:30px}
.sidebar{width:270px;background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.02);padding:10px 0;flex-shrink:0}
.sidebar-title{font-size:18px;font-weight:bold;padding:10px 20px 20px;color:#333}
.sidebar-menu li{padding:12px 20px;font-size:14px;color:#555;cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:all .2s;position:relative}
.sidebar-menu li:hover,.sidebar-menu li.active{background-color:#fff7f0;color:#ff6600;font-weight:bold}
.sidebar-menu li .arrow{color:#ccc;font-size:12px}
.sidebar-menu li:hover .arrow{color:#ff6600}
.mega-menu{position:absolute;left:100%;top:0;width:650px;background:#fff;border-radius:8px;box-shadow:0 5px 20px rgba(0,0,0,.12);padding:25px 30px;z-index:150;opacity:0;visibility:hidden;transform:translateX(-10px);transition:all .25s ease;border:1px solid #eee}
.sidebar-menu li.has-mega:hover .mega-menu{opacity:1;visibility:visible;transform:translateX(0)}
.mega-menu-header{font-size:16px;font-weight:bold;color:#333;margin-bottom:20px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}
.mega-menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 20px}
.mega-menu-grid a{font-size:14px;color:#333;font-weight:normal;text-decoration:none;transition:color .2s;display:block;padding:4px 0;line-height:1.4;word-break:break-word}
.mega-menu-grid a:hover{color:#ff6600;}
.mega-menu-loading{font-size:13px;color:#999;padding:10px 0}
.mega-menu-empty{font-size:13px;color:#ccc;padding:10px 0}
.shop-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:20px}
.section-block{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.02)}
.section-header{background:linear-gradient(90deg,#ff6a00 0%,#ff8c00 100%);border-radius:10px 10px 0 0;padding:20px;color:#fff;display:flex;justify-content:space-between;align-items:center;margin:-20px -20px 20px -20px;gap:12px;flex-wrap:wrap}
.section-header h2{font-size:22px;margin-bottom:5px;font-weight:bold}
.section-header p{font-size:13px;opacity:.9}
.btn-all{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.5);padding:6px 16px;border-radius:20px;font-size:13px;cursor:pointer;color:#fff;font-family:inherit;text-decoration:none;white-space:nowrap}
.btn-all:hover{background:rgba(255,255,255,.3)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.product-card{border:1px solid #f0f0f0;border-radius:8px;padding:12px;display:flex;flex-direction:column;transition:box-shadow .3s;cursor:pointer;background:#fff}
.product-card:hover{box-shadow:0 4px 15px rgba(0,0,0,.08)}
.product-img{width:100%;aspect-ratio:1 / 1;height:auto;background-color:#f9f9f9;border-radius:6px;margin-bottom:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.product-img img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.1);}
.product-title{font-size:13px;font-weight:bold;color:#333;margin-bottom:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}
.product-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.price-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;}
.price-info .old-price{font-size:12px;color:#000;text-decoration:line-through;white-space:nowrap;}
.price-info .new-price{font-size:18px;color:#ff4500;font-weight:bold;white-space:nowrap}
.price-info .new-price::before{content:'¥';font-size:13px;margin-right:2px}
.cart-btn{width:32px;height:32px;background:#fff5f0;color:#ff6600;border-radius:6px;display:flex;align-items:center;justify-content:center;border:1px solid #ffe4d6;cursor:pointer;transition:background .2s;flex-shrink:0}
.cart-btn:hover{background:#ffe4d6}
.cart-btn svg{width:16px;height:16px;fill:currentColor}

/* 加载动画 */
.loader-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:50vh;width:100%;padding:40px 20px;color:#999;font-size:13px}
.loader{width:46px;height:46px;position:relative}
.loader:before,.loader:after{content:'';position:absolute;inset:0;border-radius:50%;border:4px solid transparent;border-top-color:#ff6600;border-right-color:#ff6600;animation:loaderSpin 1s linear infinite}
.loader:after{border-top-color:#ff0033;border-right-color:#ff0033;animation-duration:1.6s;animation-direction:reverse;inset:8px}
@keyframes loaderSpin{to{transform:rotate(360deg)}}
.loader-text{letter-spacing:1px}
.loader-dots:after{content:'';animation:dots 1.4s steps(4,end) infinite}
@keyframes dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
.home-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:60px 20px;color:#999;font-size:13px}
.spinner{display:inline-block;width:14px;height:14px;border:2px solid #eee;border-top-color:#ff0033;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}

/* 内页 */
main{max-width:1200px;width:100%;margin:0px auto;padding:0 0px;flex:1 0 auto}
h2{font-size:18px;margin-bottom:14px}
.breadcrumb{background:#fff;padding:10px 14px;border-radius:6px;margin-bottom:14px;font-size:12px;color:#666;line-height:1.7;word-break:break-word;border:1px solid #eee}
.breadcrumb a{color:#ff0033;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.sibling-section{background:#fff;border:1px solid #eee;border-radius:6px;padding:12px 14px;margin-bottom:12px}
.sibling-header{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:13px;font-weight:600;color:#333}
.sh-icon{color:#ff0033;font-size:12px}
.sh-count,.sc-count{font-size:11px;color:#999;font-weight:400}
.sibling-list{display:flex;flex-wrap:wrap;gap:6px}
.sibling-chip{display:inline-flex;align-items:center;padding:5px 12px;font-size:12px;color:#333;background:#f5f5f5;border:1px solid #eee;border-radius:14px;text-decoration:none;transition:all .15s;line-height:1.4;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sibling-chip:hover{background:#ffe6ec;border-color:#ffb3c2;color:#ff0033}
.sibling-chip.current{background:#ff0033;border-color:#ff0033;color:#fff;font-weight:600;cursor:default;pointer-events:none}
.sibling-chip.current::before{content:'● ';font-size:8px;margin-right:3px;vertical-align:middle}
.subcat-section{background:#fff;border:1px solid #eee;border-radius:6px;margin-bottom:12px;overflow:hidden}
.subcat-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;user-select:none;transition:background .15s;gap:8px}
.subcat-header:hover{background:#fafafa}
.subcat-header-left{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#333;min-width:0}
.sc-icon{color:#ff0033;font-size:12px;flex-shrink:0}
.subcat-toggle{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#999;flex-shrink:0}
.subcat-toggle .arrow{display:inline-block;transition:transform .2s;font-size:12px;line-height:1}
.subcat-section.collapsed .subcat-toggle .arrow{transform:rotate(-90deg)}
.subcat-body{padding:0 14px 14px}
.subcat-section.collapsed .subcat-body{display:none}
.filter-bar{background:#fff;border:1px solid #eee;border-radius:6px;padding:12px 14px;margin-bottom:14px}
.filter-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:5px 0}
.filter-row:not(:last-child){border-bottom:1px dashed #f0f0f0}
.filter-label{font-size:12px;color:#999;flex-shrink:0;min-width:52px;font-weight:600}
.filter-chip{display:inline-flex;align-items:center;padding:5px 12px;font-size:12px;color:#333;background:#f5f5f5;border:1px solid #eee;border-radius:14px;text-decoration:none;cursor:pointer;transition:all .15s;white-space:nowrap;user-select:none}
.filter-chip:hover{background:#ffe6ec;border-color:#ffb3c2;color:#ff0033}
.filter-chip.active{background:#ff0033;border-color:#ff0033;color:#fff;font-weight:600}
.filter-price{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#666}
.filter-price input{width:70px;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px;font-family:inherit}
.filter-price input:focus{outline:0;border-color:#ff0033}
.filter-price button{padding:4px 12px;background:#ff0033;color:#fff;border:0;border-radius:4px;font-size:12px;cursor:pointer;font-family:inherit}
.filter-price button:hover{background:#d10029}
.filter-clear{font-size:12px;color:#999;text-decoration:none;margin-left:auto;cursor:pointer}
.filter-clear:hover{color:#ff0033}
.page-jump-bar{background:#fff;border:1px solid #eee;border-radius:6px;padding:10px 14px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#666}
.pjb-info b{color:#ff0033;font-weight:600;padding:0 2px}
.pjb-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
.pjb-actions input{width:60px;padding:5px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px;font-family:inherit;text-align:center}
.pjb-actions input:focus{outline:0;border-color:#ff0033}
.pjb-actions button{padding:5px 12px;background:#ff0033;color:#fff;border:0;border-radius:4px;font-size:12px;cursor:pointer;font-family:inherit}
.search-bottom{text-align:center;padding:28px 10px 20px;color:#999;font-size:13px;min-height:60px}
.loading-more{display:inline-flex;align-items:center;gap:8px;color:#666}
.no-more{color:#bbb;font-size:13px;padding:0 20px}
.no-more::before,.no-more::after{content:'';display:inline-block;width:40px;height:1px;background:#e0e0e0;vertical-align:middle;margin:0 10px}
.load-error{color:#d10029}
.load-error a{color:#ff0033;text-decoration:none;margin-left:4px;cursor:pointer}
.search-loading{display:flex;align-items:center;justify-content:center;min-height:60vh;padding:40px;color:#999;font-size:13px}
.item-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.item-card{background:#fff;border-radius:8px;overflow:hidden;transition:box-shadow .2s,transform .15s;border:1px solid #eee}
.item-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.12);transform:translateY(-2px)}
.item-card a{color:inherit;text-decoration:none;display:block}
.item-thumb{position:relative;width:100%;height:220px;background:#fafafa;overflow:hidden}
.item-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.no-img{width:100%;height:220px;background:#f0f0f0;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:13px}
.badge-wrap{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:4px;pointer-events:none}
.badge{display:inline-block;padding:3px 8px;border-radius:10px;font-size:11px;font-weight:600;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.badge-instock{background:#2eaf56}
.badge-outstock{background:#999}
.badge-new{background:#ff0033}
.badge-used{background:#f0932b}
.item-body{padding:10px 12px 12px}
.item-name{font-size:13px;line-height:1.45;height:58px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-bottom:6px;color:#333}
.item-price{font-size:17px;font-weight:700;color:#ff0033;white-space:nowrap}
.detail{background:#fff;border-radius:6px;padding:18px;display:flex;gap:20px;flex-wrap:wrap}
.detail-left{max-width:320px;width:100%}
.detail-img-wrap{position:relative;cursor:zoom-in}
.detail-img{width:100%;height:auto;border-radius:4px;background:#fafafa;display:block}
.zoom-hint{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:3px 8px;border-radius:10px;pointer-events:none}
.thumb-list{display:flex;flex-wrap:nowrap;gap:6px;margin-top:10px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.thumb-list img{flex:0 0 auto;width:50px;height:50px;object-fit:cover;border:1px solid #eee;border-radius:4px;cursor:pointer;background:#fafafa}
.thumb-list img:hover{border-color:#ff0033}
.thumb-list img.active{border:2px solid #ff0033}
.detail-info{flex:1;min-width:240px}
.detail-info h3{font-size:16px;margin-bottom:10px;line-height:1.4}
.detail-price{font-size:22px;color:#ff0033;font-weight:700;margin-bottom:14px;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
.member-price{font-size:13px;color:#999;font-weight:400}
.ship-info{font-size:12px;color:#f0932b;font-weight:500}
.detail-row{margin-bottom:7px;font-size:13px;line-height:1.6}
.detail-row .label{color:#999}
.detail-row a{color:#ff0033}
.back-link{display:inline-block;color:#ff0033;text-decoration:none;font-size:13px}
.options-wrap{margin:14px 0 12px}
.option-group{margin-bottom:14px}
.option-group-title{font-size:13px;color:#666;margin-bottom:8px;font-weight:600}
.opt-selected{color:#ff0033;font-weight:600}
.opt-hint{display:inline-block;margin-left:6px;font-size:11px;font-weight:500;color:#f0932b;background:#fff8e8;border:1px solid #fbdba1;padding:1px 7px;border-radius:10px;vertical-align:middle}
.opt-hint.gift{color:#2eaf56;background:#ebfaef;border-color:#b6ecc4}
.opt-hint.formal{color:#999;background:#f5f5f5;border-color:#e5e5e5}
.option-chips{display:flex;flex-wrap:wrap;gap:8px}
.option-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;background:#fff;border:1.5px solid #e0e0e0;border-radius:8px;cursor:pointer;transition:all .15s;font-family:inherit;font-size:13px;color:#333;position:relative;user-select:none;max-width:240px;text-align:left}
.option-chip:hover{border-color:#ff8fa3;background:#fff5f8}
.option-chip.active{border-color:#ff0033;background:#fff5f8;box-shadow:0 0 0 2px rgba(255,0,51,.12)}
.option-chip.outstock{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.opt-thumb{width:32px;height:32px;border-radius:4px;object-fit:cover;background:#fafafa;flex-shrink:0;border:1px solid #eee}
.opt-info{display:flex;flex-direction:column;min-width:0;gap:1px}
.opt-name{font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.opt-stock{font-size:10px;color:#999;line-height:1.2}
.option-chip.active .opt-name{color:#ff0033;font-weight:600}
.option-chip.active .opt-stock{color:#ff6680}
.option-chip.outstock .opt-stock{color:#d10029}
.option-chip.plain{padding:6px 12px;font-size:12.5px;max-width:100%}
.option-chip.plain .opt-name{max-width:100%;white-space:normal}
.action-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #eee;padding:10px 16px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;align-items:center;gap:10px;z-index:200;box-shadow:0 -2px 10px rgba(0,0,0,.08)}
.action-bar button{padding:10px 30px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;min-width:140px;line-height:1.3}
.btn-cart{background:#ff0033;color:#fff;border:1px solid #ff0033}
.btn-cart:hover{background:#d10029;border-color:#d10029}
.btn-cart:active{transform:scale(.97)}
.btn-fav{background:#fff;color:#ff4d8f;border:1px solid #ff4d8f}
.btn-fav:hover{background:#fff0f5}
.btn-fav:active{transform:scale(.97)}
.btn-fav.active{background:#ff4d8f;color:#fff;border-color:#ff4d8f}
#item-area{padding-bottom:90px}
.detail-html{background:#fff;border-radius:6px;padding:14px;margin-top:20px;overflow:hidden;line-height:1.8;font-size:13px;color:#444}
.detail-html img{max-width:100%;height:auto;display:block}
.detail-html table{width:100%;border-collapse:collapse}
.detail-html th,.detail-html td{border:1px solid #ddd;padding:6px 8px;font-size:12px}
.related-section{margin-top:20px}
.related-section h3{font-size:15px;margin-bottom:10px}
.related-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:6px}
.related-card{position:relative;background:#fff;border-radius:5px;transition:box-shadow .2s}
.related-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.12);z-index:5}
.related-card a{color:inherit;text-decoration:none;display:block}
.related-card img{width:100%;height:80px;object-fit:contain;background:#fafafa;display:block;border-radius:5px 5px 0 0}
.related-card .no-img{height:80px;font-size:11px;border-radius:5px 5px 0 0}
.r-name{padding:5px 6px 2px;font-size:11px;line-height:1.3;height:30px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.r-price{padding:0 6px 6px;font-size:11px;font-weight:600;color:#ff0033}
.r-tooltip{display:none;position:absolute;left:50%;bottom:100%;transform:translate(-50%,-6px);background:rgba(40,40,40,.96);color:#fff;font-size:12px;line-height:1.5;padding:8px 10px;border-radius:6px;width:200px;max-width:60vw;word-break:break-word;z-index:999;pointer-events:none}
.related-card:hover .r-tooltip{display:block}
.empty,.error{padding:30px;text-align:center;color:#999;background:#fff;border-radius:6px;font-size:13px}
.error{color:#d10029}
.detail-foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.detail-foot-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.detail-foot-actions button{padding:9px 22px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.3;transition:all .15s}
.detail-foot-actions .btn-cart{background:#ff0033;color:#fff;border:1px solid #ff0033}
.detail-foot-actions .btn-cart:hover{background:#d10029;border-color:#d10029}
.detail-foot-actions .btn-fav{background:#fff;color:#ff4d8f;border:1px solid #ff4d8f}
.detail-foot-actions .btn-fav:hover{background:#fff0f5}
.detail-foot-actions .btn-fav.active{background:#ff4d8f;color:#fff;border-color:#ff4d8f}

/* 底部 */
.site-footer{flex-shrink:0;background:#2a2a2a;color:#aaa;font-size:12px;line-height:1.8;padding:22px 16px 18px;margin-top:30px;text-align:center}
.footer-links{margin-bottom:10px}
.footer-links a{color:#ddd;text-decoration:none;margin:0 10px;cursor:pointer}
.footer-links a:hover{color:#ff0033}
.footer-copy{color:#888;margin-bottom:4px}
.footer-note{color:#666;font-size:11px}

/* 弹窗 */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9997;align-items:flex-start;justify-content:center;padding:12vh 20px 20px}
.modal.open{display:flex}
.modal-panel{background:#fff;border-radius:12px;padding:20px;width:100%;max-width:560px;box-shadow:0 16px 48px rgba(0,0,0,.3);max-height:70vh;overflow-y:auto}
.modal-title{font-size:15px;font-weight:600;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}
.close-x{cursor:pointer;color:#999;font-size:20px;padding:2px 6px;border-radius:4px}
.close-x:hover{background:#f0f0f0;color:#333}
.top-cat-list{display:flex;flex-direction:column;gap:6px}
.top-cat-row{display:block;padding:11px 14px;background:#fafafa;border:1px solid #eee;border-radius:8px;color:#333;text-decoration:none;font-size:14px;font-weight:500;line-height:1.4;transition:all .15s;word-break:break-word}
.top-cat-row:hover{background:#fff0f3;border-color:#ffb3c2;color:#ff0033;padding-left:18px}
.modal-loading{text-align:center;padding:30px;color:#999;font-size:13px}
.back-to-top{position:fixed;right:20px;bottom:24px;width:46px;height:46px;border-radius:50%;background:#ff0033;color:#fff;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600;box-shadow:0 4px 14px rgba(255,0,51,.35);z-index:9996;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s,transform .25s,visibility .25s,background .15s,bottom .25s;font-family:inherit;line-height:1}
.back-to-top:hover{background:#d10029}
.back-to-top:active{transform:translateY(2px) scale(.96)}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
body.has-bottom-bar .back-to-top{bottom:92px}
.toast{position:fixed;left:50%;bottom:50px;transform:translateX(-50%) translateY(20px);background:rgba(30,30,30,.94);color:#fff;font-size:13px;padding:10px 20px;border-radius:20px;z-index:10000;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:80vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.94);z-index:9999;align-items:center;justify-content:center;flex-direction:column}
.lightbox.open{display:flex}
.lb-stage{flex:1;display:flex;align-items:center;justify-content:center;width:100%;position:relative;padding:50px 70px 20px}
.lb-img{max-width:100%;max-height:100%;object-fit:contain;background:#fff;border-radius:4px}
.lb-close{position:absolute;top:12px;right:14px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;border:0;font-size:20px;cursor:pointer;z-index:10}
.lb-prev,.lb-next{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;border:0;font-size:24px;cursor:pointer;z-index:10}
.lb-prev{left:10px}
.lb-next{right:10px}
.lb-prev:disabled,.lb-next:disabled{opacity:.25}
.lb-counter{position:absolute;top:16px;left:50%;transform:translateX(-50%);color:#fff;font-size:13px;background:rgba(0,0,0,.55);padding:4px 12px;border-radius:12px;z-index:10}
.lb-thumbs{flex:0 0 auto;display:flex;gap:6px;max-width:90vw;overflow-x:auto;padding:8px;background:rgba(255,255,255,.08);border-radius:8px;margin-bottom:14px}
.lb-thumbs img{flex:0 0 auto;width:50px;height:50px;object-fit:contain;background:#fff;border-radius:4px;cursor:pointer;border:2px solid transparent}
.lb-thumbs img.active{border-color:#ff0033}
.notice-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9998;align-items:center;justify-content:center;padding:20px}
.notice-modal.open{display:flex}
.notice-panel{background:#fff;border-radius:10px;width:100%;max-width:1200px;height:85vh;display:flex;flex-direction:column;box-shadow:0 16px 48px rgba(0,0,0,.3);overflow:hidden;position:relative}
.notice-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eee;flex-shrink:0}
.notice-title{font-size:15px;font-weight:600;color:#333}
.notice-close-x{cursor:pointer;color:#999;font-size:22px;line-height:1;padding:2px 8px;border-radius:4px;background:none;border:0;font-family:inherit}
.notice-close-x:hover{background:#f0f0f0;color:#333}
.notice-body{flex:1;position:relative;overflow:hidden}
.notice-body iframe{width:100%;height:100%;border:0;display:block}
.notice-foot{padding:12px 16px;border-top:1px solid #eee;display:flex;justify-content:center;gap:10px;flex-shrink:0;background:#fafafa}
.notice-foot button{padding:10px 28px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;border:0;min-width:140px}
.btn-agree{background:#ff0033;color:#fff}
.btn-agree:hover{background:#d10029}

@media(max-width:1000px){.item-grid{grid-template-columns:repeat(4,1fr)}.item-thumb,.no-img{height:190px}.related-grid{grid-template-columns:repeat(6,1fr)}}
@media(max-width:900px){
  .main-shop-layout{flex-direction:column}
  .sidebar{width:100%;order:2;margin-top:12px}
  .shop-content{width:100%;order:1}
  .mega-menu{display:none !important}
}
@media(max-width:800px){
  .banner-card-full{padding:20px 24px}
  .banner-card-content h2{font-size:20px}
  .banner-card-content p{font-size:13px}
  .category-icon-section{padding:15px; margin-left: 5px; margin-right: 5px; width:auto;position:relative}
  .category-icon-section::after{width:40px}
  .section-block{padding:15px; margin-left: 5px; margin-right: 5px; width:auto;}
  .new-header-main .container{flex-wrap:wrap}
  .new-search-box{order:3;flex:1 1 100%;display:none}
  .new-user-actions{gap:12px; margin-left: auto;}
  .category-grid-icons{gap:10px}
  .category-grid-icons .cat-icon-item{flex:0 0 calc((100% - 3 * 10px) / 4)}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-card{padding:8px}
  .product-img{height:auto}
  .product-title{font-size:12px;margin-bottom:8px}
  .price-info .new-price{font-size:16px}
  .cart-btn{width:28px;height:28px}
  .cart-btn svg{width:14px;height:14px}
  .nav-btn-full{width:40px;height:40px;font-size:20px}
  .btn-prev-full{left:2%}
  .btn-next-full{right:2%}
  .cat-icon-item{padding:0}
  .section-header{padding:15px;margin:-15px -15px 15px -15px}
  .section-header h2{font-size:18px}
  .section-header p{font-size:12px}
  .btn-all{padding:4px 10px;font-size:12px}
  .new-header-rates .container{display:flex;align-items:center;justify-content:space-between;padding:0 12px}
  .top-left-rates{display:none}
  .new-header-top-actions{display:none}
  .mobile-rate-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px}
  .mobile-rate-row .rate-third{flex:0 1 auto;white-space:nowrap}
  .mobile-rate-row .rate-third.rate-left{text-align:left}
  .mobile-rate-row .rate-third.rate-right{text-align:right}
  .mobile-rate-row .rate-third.middle{flex:1 1 auto}
  .new-header-sub{display:block}
  .new-header-sub .container{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:nowrap;padding:0 12px}
  .sub-left-actions{display:flex;align-items:center;gap:14px}
  .new-header-sub .new-login-info{flex-shrink:0}
  .new-header-rates.hide{display:none}
  .new-header-sub.is-fixed{position:fixed;left:0;right:0;z-index:999;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.08);top:0}
}
@media(max-width:750px){
  .new-header-main .container{padding:10px 12px;gap:10px}
  .new-logo img{height:28px;}
  .new-logo .yahu-logo-img{height:28px;}
  .new-logo-text{font-size:15px}
  .new-login-info .user-name{max-width:70px}
}
@media(max-width:640px){
  .new-header-main .container{gap:8px}
  .new-search-box{gap:6px}
  .new-search-box .btn-search{height:36px;font-size:13px;padding:0 12px}
  .new-search-box input{font-size:13px;padding:8px 14px}
  .detail-foot-actions{display:none}
}
@media(min-width:641px){
  .action-bar{display:none}
}
@media(max-width:600px){
  main{padding:0 5px}
  .item-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .item-thumb,.no-img{height:150px}
  .item-name{font-size:12px;height:50px}
  .item-price{font-size:14px}
  .detail{padding:14px;flex-direction:column;gap:14px}
  .detail-left{max-width:100%}
  .detail-price{font-size:20px}
  .related-grid{grid-template-columns:repeat(4,1fr)}
  .related-card img{height:70px}
  .filter-label{min-width:44px;font-size:11px}
  .filter-chip{padding:4px 10px;font-size:11px}
  .filter-price input{width:55px}
  .sibling-section,.subcat-section{padding:10px}
  .sibling-chip{padding:4px 10px;font-size:11px;max-width:180px}
  .back-to-top{right:14px;bottom:80px;width:42px;height:42px;font-size:18px}
  body.has-bottom-bar .back-to-top{bottom:130px}
  .top-cat-row{padding:10px 12px;font-size:13px}
  .action-bar{padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));gap:8px}
  .action-bar button{flex:1;min-width:0;padding:12px 8px;font-size:14px;border-radius:6px}
  #item-area{padding-bottom:80px}
  .option-chip{padding:5px 8px;font-size:12px;max-width:180px}
  .opt-thumb{width:28px;height:28px}
  .opt-name{font-size:12px;max-width:110px}
  .opt-stock{font-size:9px}
  .user-chip{padding:0}
  .user-name{max-width:60px;font-size:12px}
  .user-id{font-size:12px}
  .logout-btn{font-size:12px;padding:0}
  .notice-modal{padding:0}
  .notice-panel{height:100vh;max-width:100%;border-radius:0}
  .notice-foot button{flex:1;min-width:0;padding:12px 8px}
}
@media(max-width:480px){.related-grid{grid-template-columns:repeat(3,1fr)}}
.float-service-btn {position: fixed;right: 20px;top: 50%;transform: translateY(-50%);width: 52px;height: 52px;background-color: #ff6600;border-radius: 50%;display: flex;align-items: center;justify-content: center;box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);z-index: 9995;cursor: pointer;transition: transform 0.2s, background-color 0.2s;}
.float-service-btn:hover {background-color: #e55a00;transform: translateY(-50%) scale(1.05);}
.float-service-btn svg {width: 28px;height: 28px;fill: #fff;}
@media(max-width: 600px) {
  .float-service-btn {right: 14px;top: auto;bottom: 200px;transform: none;width: 46px;height: 46px;}
  .float-service-btn:hover { transform: scale(1.05); }
  .float-service-btn svg { width: 24px; height: 24px; }
}
.mobile-search-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9998;align-items:flex-start;justify-content:center;padding:12vh 16px 16px}
.mobile-search-modal.open{display:flex}
.mobile-search-panel{background:#fff;border-radius:12px;padding:16px;width:100%;max-width:560px;box-shadow:0 16px 48px rgba(0,0,0,.3)}
.mobile-search-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:15px;font-weight:600;color:#333}
.mobile-search-close{cursor:pointer;color:#999;font-size:20px;padding:2px 8px;border-radius:4px;background:none;border:0;font-family:inherit}
.mobile-search-close:hover{background:#f0f0f0;color:#333}
.mobile-search-input{width:100%;padding:10px 16px;border:2px solid #ff6600;border-radius:25px;outline:none;font-size:14px;font-family:inherit;margin-bottom:12px}
.mobile-search-actions{display:flex;gap:8px}
.mobile-search-actions .btn-search{flex:1;height:40px;font-size:14px;padding:0 12px}
.mobile-search-actions .btn-search svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:801px){
  .new-user-actions .mobile-search-item{display:none}
  .new-header-sub{display:none}
  .mobile-rate-row{display:none}
}

.detail-html{background:#fff;border-radius:6px;padding:14px;margin-top:20px;line-height:1.8;font-size:13px;color:#444;overflow:hidden;contain:layout paint;word-break:break-word}
.detail-html img{max-width:100% !important;height:auto !important;display:block;margin:0 auto}
.detail-html table{width:100% !important;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:8px 0}
.detail-html td,.detail-html th{border:1px solid #e5e5e5;padding:6px 8px;font-size:12px;word-break:break-word;vertical-align:top}
.detail-html td.l{width:110px;background:#fafafa;font-weight:600}
.detail-html a{word-break:break-all;color:#ff0033}
.detail-html hr{border:0;border-top:1px solid #eee;margin:8px 0}
