/* site-d1 20261117 unified v2 */
/* 1) 窄屏布局 */
@media (max-width:1024px){.shop-layout{grid-template-columns:1fr !important}.shop-side,.ch-side{display:none !important}}
@media (max-width:820px){main,.ch-main,.shop-main{padding-bottom:96px !important}body.ch-body{padding-bottom:150px !important}.ch-buy-card{padding-bottom:0 !important}}
/* 2) 订单角标/状态 */
.uc-order-tab__count{background:#eaf1ff !important;color:#2f6bff !important}
.uc-order-tab.is-active .uc-order-tab__count{background:#2f6bff !important;color:#fff !important}
@media (min-width:821px){.uc-order-info-grid{grid-template-columns:1fr 1fr !important;column-gap:28px !important;row-gap:10px !important}.uc-order-info-item{min-width:0 !important}}
.uc-order-info-value{overflow-wrap:anywhere !important}
/* 3) 提示 */
.layui-layer-msg{border-radius:10px !important}
/* 4) 商品图 */
.goods-no-image{height:220px !important;min-height:0 !important;border-radius:14px !important;background:linear-gradient(135deg,#eef4ff,#dbe6ff) !important}
@media (max-width:820px){.goods-no-image{height:180px !important}}
.ch-gallery-main{height:200px !important;aspect-ratio:auto !important;min-height:0 !important;display:flex !important;align-items:center !important;justify-content:center !important}
.ch-gallery-main:has(img){height:auto !important;max-width:400px !important;margin:0 auto !important;background:transparent !important;box-shadow:none !important}
.ch-gallery-main img{max-height:400px !important;max-width:100% !important;width:auto !important;height:auto !important;display:block;object-fit:contain}
@media (max-width:820px){.ch-gallery-main:has(img){max-width:100% !important}.ch-gallery-main img{max-height:none !important}}
/* 5) 颜色统一 */
.ch-footer .fa-cube,.ch-footer .fa-shield,.ch-footer .fa-clock-o,footer .fa-cube,footer .fa-shield,footer .fa-clock-o{color:#2f6bff !important}
.uc-home-order__status{background:rgba(234,241,255,.9) !important;color:#2f6bff !important;border-color:rgba(47,107,255,.22) !important}
/* 6) 手机列表 */
@media (max-width:520px){
.ch-goods-table.ch-goods-table--list{grid-template-columns:1fr !important;gap:10px !important}
.ch-goods-row{display:grid !important;grid-template-columns:1fr auto !important;grid-template-areas:"name name" "price buy" !important;gap:10px 12px !important;padding:12px !important;align-items:center !important;border-radius:14px !important;border:1px solid #e6ecf7 !important}
.ch-goods-row .ch-col-name{grid-area:name}
.ch-goods-row .ch-col-price{grid-area:price;margin:0 !important}
.ch-goods-row .ch-col-stock{display:none !important}
.ch-goods-row .ch-col-buy{grid-area:buy;justify-self:end}
.ch-goods-row .ch-goods-thumb{width:88px !important;height:88px !important}
}
/* 7) 全站统一设计语言 */
:root{--d1-line:#e6ecf7;--d1-shadow:0 6px 18px rgba(28,79,214,.06)}
button,.btn,.ch-btn,.layui-btn,.ch-col-buy a,.ch-col-buy button{border-radius:10px !important}
input,textarea,select{border-radius:10px !important}
.ch-goods-row{transition:box-shadow .18s ease,transform .18s ease}
.ch-goods-row:hover{box-shadow:var(--d1-shadow) !important}
@media (min-width:821px){.ch-goods-row:hover{background:#f6f9ff !important}}
.ch-side,.ch-detail-card,.uc-card,.uc-panel{border-radius:16px !important;border-color:var(--d1-line) !important}

@media (max-width:820px){.ch-main,.shop-main{padding-bottom:24px !important}}

/* 16) 全站统一：卡片 */
.ch-card,.ch-post-card,.ch-goods-row,.uc-order-card,.ch-coupon-card,.uc-loading__panel,.uc-user-menu__dropdown,.ch-panel{border-radius:16px !important;border-color:#e6ecf7 !important}
.card,.blog-article-card{border-radius:16px !important;border-color:#e6ecf7 !important}

@media (min-width:1024px){.page-body{max-width:1200px !important;margin-left:auto !important;margin-right:auto !important}.shop-main{max-width:1200px !important;margin-left:auto !important;margin-right:auto !important}}


.ch-gallery-main{background:#f6f9ff !important;border:1px solid #eef3fb !important;border-radius:16px !important}

.ch-gallery-main{height:auto !important;min-height:0 !important;padding:0 !important}
.ch-gallery-main img{display:block !important;width:100%% !important;height:auto !important;object-fit:contain !important;border-radius:12px}
.ch-gallery-main{height:auto !important;min-height:0 !important;padding:0 !important}
.ch-gallery-main img{display:block !important;width:100% !important;height:auto !important;object-fit:contain !important;border-radius:12px}

.detail-img.ch-gallery-main img,.ch-gallery-main img{width:100% !important;max-width:100% !important;height:auto !important;object-fit:cover !important}

.detail-gallery .detail-img.ch-gallery-main > img{width:100% !important;max-width:100% !important;height:auto !important;object-fit:cover !important;border-radius:12px}
