/* 维易峰商城：电商店铺样式，仅作用于 body.shop-page */

/* ---------- 店铺招牌 ---------- */
.mall-banner { position: relative; overflow: hidden; padding: 70px 0 60px; background: linear-gradient(180deg, #eef2ff 0%, #fff 100%); }
.mall-banner::after { content: ""; position: absolute; width: 780px; height: 780px; left: -300px; top: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.14), transparent 68%); pointer-events: none; }
.mall-banner-inner { position: relative; display: grid; grid-template-columns: 1.1fr .8fr; gap: 64px; align-items: center; }
.mall-banner-copy h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -1.6px; margin: 18px 0 16px; font-weight: 800; }
.mall-banner-copy > p { font-size: 16px; line-height: 1.9; color: var(--body); max-width: 540px; margin: 0 0 24px; }
.mall-banner-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.mall-banner-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mall-banner-meta .ico { width: 15px; height: 15px; color: var(--brand); }

.mall-shop-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); }
.mall-shop-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.mall-shop-mark { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, #6d6dfb, #4f46e5); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; flex: none; }
.mall-shop-top b { display: block; font-size: 17px; }
.mall-shop-top small { color: var(--muted); font-size: 12px; }
.mall-badge { margin-left: auto; align-self: flex-start; background: #eef2ff; color: var(--brand); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.mall-shop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.mall-shop-stats div { text-align: center; }
.mall-shop-stats b { display: block; font-size: 22px; letter-spacing: -.5px; }
.mall-shop-stats span { font-size: 12px; color: var(--muted); }
.mall-shop-lines { padding-top: 16px; display: grid; gap: 11px; font-size: 13px; }
.mall-shop-lines div { display: flex; justify-content: space-between; gap: 12px; }
.mall-shop-lines span { color: var(--muted); flex: none; }
.mall-shop-lines b { font-weight: 600; text-align: right; word-break: break-all; }
.mall-shop-lines a { color: var(--brand); }

/* ---------- 工具栏 ---------- */
.mall-main { padding: 52px 0 80px; background: var(--bg-soft); }
.mall-toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.mall-search { position: relative; flex: 1; min-width: 260px; max-width: 460px; }
.mall-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.mall-search input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 24px; padding: 0 18px 0 44px; font-size: 14px; background: #fff; color: var(--ink); outline: none; }
.mall-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,246,.12); }
.mall-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mall-tab { border: 1px solid var(--line); background: #fff; color: var(--body); border-radius: 22px; padding: 9px 18px; font-size: 13px; cursor: pointer; transition: all .16s; }
.mall-tab:hover { border-color: var(--brand); color: var(--brand); }
.mall-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.mall-layout { display: grid; grid-template-columns: 1fr 270px; gap: 24px; align-items: start; }
.mall-goods-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.mall-goods-head h2 { font-size: 22px; margin: 0; letter-spacing: -.5px; }
.mall-goods-head span { font-size: 13px; color: var(--muted); }
.mall-empty { color: var(--muted); padding: 40px 0; }

/* ---------- 商品卡片 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.goods-card { padding: 0; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.goods-media { position: relative; aspect-ratio: 1 / 1; background: #f3f5f8; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.goods-media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }
.goods-card:hover .goods-media img { transform: scale(1.05); }
.goods-tag { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #6d6dfb, #4f46e5); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }
.goods-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.goods-name { font-size: 16px; margin: 0 0 7px; letter-spacing: -.2px; }
.goods-spec { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; min-height: 40px; }
.goods-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.goods-meta span { display: inline-flex; align-items: center; gap: 4px; }
.goods-meta .ico { width: 13px; height: 13px; color: #f59e0b; fill: #f59e0b; }
.goods-price { color: #e11d48; display: flex; align-items: baseline; gap: 2px; margin-bottom: 14px; }
.goods-price .cur { font-size: 15px; font-weight: 700; }
.goods-price b { font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.goods-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.goods-actions .btn { padding: 10px 8px; font-size: 13px; }

/* ---------- 侧栏 ---------- */
.mall-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.mall-side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.mall-side-card h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 7px; }
.mall-side-card h3 .ico { width: 17px; height: 17px; color: var(--brand); }
.mall-side-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 11px; }
.mall-side-card li { display: flex; gap: 8px; font-size: 12px; line-height: 1.6; color: var(--body); }
.mall-side-card li .ico { width: 14px; height: 14px; color: #16a34a; flex: none; margin-top: 2px; }
.mall-side-card p { font-size: 13px; line-height: 1.8; color: var(--body); margin: 0 0 14px; }
.mall-side-card.accent { background: linear-gradient(160deg, #fff, #f2f3ff); border-color: #e0e3ff; }
.mall-side-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--brand); margin-top: 10px; }
.mall-side-link .ico { width: 13px; height: 13px; }

/* ---------- 购物车 ---------- */
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav-cart .ico { width: 17px; height: 17px; }
.nav-cart span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; }
.nav-cart span.bump { animation: cartBump .35s; }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.cart-overlay { position: fixed; inset: 0; background: rgba(15,18,40,.45); z-index: 80; }
.cart-drawer { position: fixed; top: 0; right: 0; width: min(420px, 92vw); height: 100vh; background: #fff; z-index: 81; box-shadow: -12px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; }
/* hidden 属性优先级需高于上面的 display:flex，否则购物车默认展开遮挡页面 */
.cart-overlay[hidden], .cart-drawer[hidden] { display: none !important; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 18px; margin: 0; }
.cart-head h3 span { color: var(--muted); font-size: 14px; font-weight: 400; }
.cart-close { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 4px; }
.cart-close .ico { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 60px 0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #f3f5f8; border-radius: 10px; flex: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { display: block; font-size: 14px; margin-bottom: 4px; }
.cart-unit { color: #e11d48; font-size: 13px; font-weight: 700; }
.cart-qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 18px; padding: 2px 4px; }
.cart-qty button { border: 0; background: transparent; cursor: pointer; font-size: 16px; width: 22px; height: 22px; color: var(--body); }
.cart-qty span { font-size: 13px; min-width: 14px; text-align: center; }
.cart-remove { position: absolute; right: 0; top: 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; }
.cart-remove .ico { width: 15px; height: 15px; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total span { color: var(--muted); font-size: 14px; }
.cart-total b { font-size: 24px; color: #e11d48; }
.cart-tip { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------- 资质证照页沿用 ---------- */
.cert-layout { display: grid; grid-template-columns: 1fr .82fr; gap: 28px; align-items: start; }
.cert-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); }
.cert-panel h3 { font-size: 17px; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.cert-panel h3 .ico { width: 18px; height: 18px; color: var(--brand); }
.cert-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cert-table th, .cert-table td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cert-table th { width: 132px; color: var(--muted); font-weight: 500; }
.cert-table td { color: var(--ink-2); font-weight: 500; word-break: break-all; }
.cert-table tr:last-child th, .cert-table tr:last-child td { border-bottom: 0; }
.cert-tip { margin-top: 18px; padding: 13px 15px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; line-height: 1.75; }
.cert-shot { border: 1px dashed #c7cdfa; border-radius: 14px; background: #fafbff; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--muted); }
.cert-shot .ico { width: 38px; height: 38px; color: #a9b0fa; }
.cert-shot b { color: var(--ink-2); font-size: 15px; }
.cert-shot span { font-size: 12px; line-height: 1.7; }
.cert-shot img { max-width: 100%; max-height: 460px; border-radius: 10px; display: block; }
.cert-shot.filled { border-style: solid; background: #fff; cursor: zoom-in; }
.cert-shot a { display: block; width: 100%; text-align: center; }
.cert-shot.filled:hover img { opacity: .92; }
.cert-label { font-size: 12px; color: var(--muted); margin: 9px 0 0; text-align: center; }
.cert-label a { color: var(--brand); }

/* 资质页专用头图（沿用旧类，避免 qualification.html 失样式） */
.shop-hero { position: relative; overflow: hidden; padding: 76px 0 64px; background: linear-gradient(180deg, #f8faff 0%, #fff 100%); }
.shop-hero-glow { position: absolute; width: 760px; height: 760px; right: -300px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(91,91,246,.16), transparent 68%); pointer-events: none; }
.shop-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .78fr; gap: 70px; align-items: center; }
.shop-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.18; letter-spacing: -1.6px; margin: 18px 0 18px; font-weight: 800; }
.shop-hero .lead { font-size: 16px; line-height: 1.9; color: var(--body); max-width: 560px; margin: 0 0 26px; }
.shop-hero-foot { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.shop-hero-foot span { display: inline-flex; align-items: center; gap: 7px; }
.shop-hero-foot .ico { color: var(--brand); width: 15px; height: 15px; }
.shop-id-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; }
.shop-id-card::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(91,91,246,.18); border-radius: 20px; z-index: -1; }
.shop-id-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.shop-id-mark { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #6d6dfb, #4f46e5); color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 800; flex: none; }
.shop-id-top b { display: block; font-size: 18px; }
.shop-id-top small { color: var(--muted); font-size: 12px; }
.shop-id-card dl { margin: 20px 0 0; display: grid; grid-template-columns: 84px 1fr; gap: 13px 12px; font-size: 14px; }
.shop-id-card dt { color: var(--muted); }
.shop-id-card dd { margin: 0; color: var(--ink-2); font-weight: 500; word-break: break-all; }
.shop-id-card dd a:hover { color: var(--brand); }
.shop-id-note { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; line-height: 1.7; }
.shop-section { padding: 76px 0; }
.shop-section.soft { background: var(--bg-soft); }
.shop-head { margin-bottom: 36px; }
.shop-head .eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.shop-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; letter-spacing: -.8px; margin: 10px 0 10px; }
.shop-head p { color: var(--body); font-size: 15px; line-height: 1.85; margin: 0; max-width: 720px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.promise-card .ico { width: 22px; height: 22px; color: var(--brand); margin-bottom: 14px; }
.promise-card h3 { font-size: 16px; margin: 0 0 8px; }
.promise-card p { font-size: 13px; line-height: 1.85; color: var(--body); margin: 0; }
.promise-card a { color: var(--brand); }

@media (max-width: 980px) {
  .mall-banner-inner { grid-template-columns: 1fr; gap: 30px; }
  .mall-layout { grid-template-columns: 1fr; }
  .mall-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-hero-grid, .cert-layout { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 620px) {
  .mall-banner { padding: 48px 0 40px; }
  .goods-grid, .mall-side, .promise-grid { grid-template-columns: 1fr; }
  .mall-tabs { width: 100%; }
  .mall-search { max-width: none; }
  .shop-id-card { padding: 22px; }
  .cert-table th { width: 104px; }
}
