/* 商城页面样式（仅作用于 .shop-* 与 shop.css 引入的页面，不修改 style.css） */
.shop-wrap{ padding:60px 0; }
.shop-wrap h1,.shop-wrap h2,.shop-wrap h3,.shop-wrap h4{ font-weight:400; }

.shop-crumb{ font-size:13px; color:#999; margin-bottom:24px; }
.shop-crumb a{ color:#999; }
.shop-crumb a:hover{ color:#324e9e; }

/* 商品网格 */
.shop-grid{ display:flex; flex-wrap:wrap; margin:0 -12px; }
.shop-card{ width:33.3333%; padding:0 12px 24px; float:left; }
.shop-card-inner{ border:1px solid #e6e6e6; background:#fff; height:100%; transition:box-shadow .2s, transform .2s; }
.shop-card-inner:hover{ box-shadow:0 6px 20px rgba(0,0,0,.08); transform:translateY(-2px); }
.shop-thumb{ position:relative; padding-top:100%; background:#f4f6fa; overflow:hidden; }
.shop-thumb img{ position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; }
.shop-thumb .ph{ position:absolute; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center;
  color:#9aa7c7; font-size:14px; letter-spacing:1px; background:linear-gradient(135deg,#eef2fa,#dfe6f5); }
.shop-card-body{ padding:16px 16px 20px; }
.shop-card-name{ font-size:15px; color:#333; line-height:22px; height:44px; overflow:hidden; }
.shop-card-sum{ font-size:13px; color:#999; line-height:20px; height:40px; overflow:hidden; margin-top:6px; }
.shop-price{ color:#e2461f; font-size:20px; }
.shop-price small{ font-size:13px; }
.shop-card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.shop-btn{ display:inline-block; padding:0 18px; height:34px; line-height:34px; background:#324e9e; color:#fff; font-size:13px; border:0; cursor:pointer; }
.shop-btn:hover{ background:#2a4288; color:#fff; }
.shop-btn--ghost{ background:#fff; color:#324e9e; border:1px solid #324e9e; }
.shop-btn--ghost:hover{ background:#f2f5fc; color:#324e9e; }
.shop-btn[disabled]{ background:#c8cede; cursor:not-allowed; }

/* 两件商品时居中 */
.shop-grid--center{ justify-content:center; }

/* 商品详情 */
.shop-detail{ display:flex; flex-wrap:wrap; margin:0 -20px; }
.shop-detail-media{ width:50%; padding:0 20px; }
.shop-detail-media .box{ position:relative; padding-top:75%; background:linear-gradient(135deg,#eef2fa,#dfe6f5); }
.shop-detail-media .box img{ position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; }
.shop-detail-media .ph{ position:absolute; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; color:#9aa7c7; }
.shop-detail-info{ width:50%; padding:0 20px; }
.shop-detail-name{ font-size:22px; color:#222; line-height:32px; }
.shop-detail-sum{ color:#888; font-size:14px; margin-top:10px; }
.shop-detail-price{ background:#fff8f5; border:1px solid #ffe3d8; padding:14px 18px; margin:18px 0; }
.shop-detail-price .shop-price{ font-size:28px; }
.shop-kv{ font-size:14px; color:#666; line-height:30px; }
.shop-kv b{ color:#333; font-weight:400; display:inline-block; width:72px; }
.shop-choice{ margin:14px 0; }
.shop-choice-label{ font-size:13px; color:#888; margin-bottom:8px; }
.shop-spec{ display:inline-block; padding:0 14px; height:32px; line-height:30px; border:1px solid #d7dbe6; color:#555; font-size:13px; margin:0 8px 8px 0; cursor:pointer; }
.shop-spec.active{ border-color:#324e9e; color:#324e9e; background:#f2f5fc; }
.shop-qty{ display:inline-flex; align-items:center; }
.shop-qty button{ width:32px; height:32px; border:1px solid #d7dbe6; background:#fff; color:#555; cursor:pointer; }
.shop-qty input{ width:52px; height:32px; line-height:32px; text-align:center; border:1px solid #d7dbe6; border-left:0; border-right:0; }
.shop-buy{ margin-top:22px; }
.shop-buy .shop-btn{ height:44px; line-height:44px; padding:0 42px; font-size:15px; }
.shop-notice{ margin-top:18px; padding:12px 16px; background:#f7f8fb; color:#888; font-size:13px; line-height:24px; }

/* 结算页 */
.shop-checkout{ display:flex; flex-wrap:wrap; margin:0 -15px; }
.shop-checkout-main{ width:62%; padding:0 15px; }
.shop-checkout-side{ width:38%; padding:0 15px; }
.shop-panel{ border:1px solid #e6e6e6; background:#fff; margin-bottom:20px; }
.shop-panel-hd{ padding:14px 20px; border-bottom:1px solid #eee; font-size:16px; color:#333; }
.shop-panel-bd{ padding:20px; }
.shop-form-row{ display:flex; margin-bottom:14px; font-size:14px; }
.shop-form-row label{ width:96px; color:#666; line-height:36px; flex:0 0 96px; }
.shop-form-row label em{ color:#e2461f; font-style:normal; margin-right:4px; }
.shop-form-row .field{ flex:1; }
.shop-input{ width:100%; height:36px; line-height:36px; padding:0 12px; border:1px solid #d7dbe6; color:#333; font-size:14px; background:#fff; }
.shop-input:focus{ border-color:#324e9e; outline:0; }
.shop-err{ color:#e2461f; font-size:12px; line-height:18px; min-height:18px; }
.shop-row{ display:flex; justify-content:space-between; font-size:14px; color:#666; line-height:30px; }
.shop-row--total{ border-top:1px solid #eee; margin-top:10px; padding-top:10px; font-size:16px; color:#333; }
.shop-row--total .shop-price{ font-size:22px; }
.shop-agree{ font-size:13px; color:#777; margin:12px 0 18px; }
.shop-agree a{ color:#324e9e; }
.shop-submit{ width:100%; height:46px; line-height:46px; border:0; background:#22a35a; color:#fff; font-size:16px; cursor:pointer; }
.shop-submit:hover{ background:#1d8f4f; }
.shop-tip{ margin-top:12px; font-size:12px; color:#999; line-height:20px; }

/* 列表/政策页文字 */
.shop-text{ font-size:14px; color:#777; line-height:30px; }
.shop-text h3{ font-size:16px; color:#333; margin:26px 0 8px; }
.shop-text p{ margin:0 0 10px; }
.shop-text ul{ padding-left:20px; margin:0 0 10px; }
.shop-text li{ list-style:disc; }
.shop-text strong{ color:#444; font-weight:600; }

/* 空态 */
.shop-empty{ padding:80px 0; text-align:center; color:#999; }

@media (max-width:1199px){
  .shop-card{ width:50%; }
}
@media (max-width:991px){
  .shop-wrap{ padding:40px 0; }
  .shop-detail-media,.shop-detail-info{ width:100%; padding:0; }
  .shop-detail-info{ margin-top:20px; }
  .shop-checkout-main,.shop-checkout-side{ width:100%; }
}
@media (max-width:767px){
  .shop-card{ width:100%; }
  .shop-form-row{ display:block; }
  .shop-form-row label{ display:block; width:auto; line-height:24px; margin-bottom:6px; }
}

/* 内页头部（不依赖图片，保证白字对比度；与 style.css 的 .bannerN 互不影响） */
.shop-hero{ position:relative; height:320px; display:flex; align-items:center; justify-content:center; text-align:center;
  background:linear-gradient(135deg,#16294f 0%,#274a92 52%,#3a6fc4 100%); }
.shop-hero:after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:rgba(255,255,255,.12); }
.shop-hero h2{ color:#ffffff; font-size:32px; font-weight:400; letter-spacing:3px; margin:0; }
.shop-hero .hero-desc{ color:rgba(255,255,255,.78); font-size:14px; margin-top:12px; letter-spacing:1px; }
@media (max-width:767px){ .shop-hero{ height:200px; } .shop-hero h2{ font-size:24px; } }

/* 详情页扩展区块 */
.shop-detail-extra{ margin-top:30px; }
.shop-detail-extra .shop-panel{ margin-bottom:16px; }
#pd-desc p{ font-size:14px; color:#777; line-height:30px; margin:0 0 10px; }
.shop-params{ width:100%; border-collapse:collapse; font-size:14px; }
.shop-params th,.shop-params td{ border:1px solid #ececec; padding:10px 14px; text-align:left; line-height:22px; }
.shop-params th{ width:130px; background:#fafbfd; color:#666; font-weight:400; }
.shop-params td{ color:#444; }
.shop-gallery{ display:flex; flex-wrap:wrap; margin:0 -8px; }
.shop-gallery a{ display:block; width:25%; padding:0 8px 16px; }
.shop-gallery img{ width:100%; border:1px solid #eee; }
@media (max-width:767px){ .shop-gallery a{ width:50%; } .shop-params th{ width:96px; } }
