/* ============================================================
   分分秒秒旗舰店 · 用户端业务样式 (shop.css)
   移动优先（H5 唯一形态）：首页 / 商品 / 详情 / 购物车 /
   结算 / 支付 / 订单 / 个人中心 / 帮助
   ============================================================ */

/* ---------------- 首页 Hero / 轮播 ---------------- */
.hero { position: relative; background: var(--black); color: #f3eee4; overflow: hidden; }
.hero__slider { position: relative; height: 190px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,15,.35) 0%, rgba(13,13,15,.86) 100%); }
.hero-slide__inner { position: relative; z-index: 2; width: 100%; padding: 0 18px; }
.hero-slide__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: var(--gold-bright); margin-bottom: 10px; }
.hero-slide__eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold-bright); }
.hero-slide h1 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; letter-spacing: .5px; }
.hero-slide p { color: #cfc9bf; font-size: 12.5px; margin-bottom: 14px; }
.hero-slide .btn { padding: 9px 20px; font-size: 13px; }
.hero__dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.hero__dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.32); transition: all .3s; }
.hero__dots button.is-active { width: 20px; border-radius: 4px; background: var(--gold-bright); }

/* 首页快捷分类 */
.cat-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-quick__item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.cat-quick__item img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.cat-quick__item svg { width: 38px; height: 38px; flex: 0 0 auto; }
.cat-quick__item b { display: block; font-size: 14px; margin-bottom: 2px; }
.cat-quick__item span { font-size: 11px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 公告 */
.notice-bar { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border-radius: var(--radius); padding: 10px 14px; overflow: hidden; }
.notice-bar__label { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-deep); font-weight: 700; flex: 0 0 auto; font-size: 12.5px; }
.notice-bar__list { flex: 1 1 auto; min-width: 0; }
.notice-bar__item { display: block; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-bar__item:hover { color: var(--gold-deep); }

/* 企业介绍 / 四大业务 */
.intro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.biz-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.biz-card__img { height: 110px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.biz-card__img img { height: 100%; width: 100%; object-fit: cover; }
.biz-card__body { padding: 12px; }
.biz-card__body b { display: block; font-size: 14px; margin-bottom: 4px; }
.biz-card__body p { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* 服务承诺 */
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.promise { text-align: center; padding: 16px 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.promise svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--gold-deep); }
.promise b { display: block; font-size: 14px; margin-bottom: 4px; }
.promise span { font-size: 12px; color: var(--ink-3); }

/* 企业介绍横幅 */
.about-banner { display: block; }
.about-banner__text h2 { font-size: 20px; margin-bottom: 10px; }
.about-banner__text p { color: var(--ink-2); margin-bottom: 10px; line-height: 1.75; font-size: 13.5px; }
.about-banner__img { margin-top: 14px; }
.about-banner__img img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }

/* ---------------- 商品卡片 / 列表 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; display: block; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-card__media .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cfcfd6; }
.prod-card__tag { position: absolute; top: 8px; left: 8px; z-index: 2; }
.prod-card__body { padding: 10px 11px 13px; display: flex; flex-direction: column; flex: 1 1 auto; }
.prod-card__title { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
a.prod-card__title { color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; height: 17px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prod-card__tags { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.prod-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 9px; gap: 6px; }
.prod-card__price { line-height: 1.2; }
.prod-card__price .now { font-size: 17px; color: #c0392b; font-weight: 800; }
.prod-card__price .now .cur { font-size: 11px; }
.prod-card__sales { font-size: 11px; color: var(--ink-3); }

/* 商品专区布局（移动端单列 + 横向分类 chips） */
.shop-layout { display: block; }
.shop-side { margin-bottom: 12px; }
.shop-side__block { margin-bottom: 12px; }
.shop-side__title { font-size: 14px; font-weight: 700; margin-bottom: 9px; padding-left: 9px; border-left: 3px solid var(--gold); }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-cats a { display: inline-block; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.shop-cats a.sub { padding-left: 14px; font-size: 13px; }
.shop-cats a.is-active { background: var(--black); color: #f5efe3; border-color: var(--black); font-weight: 600; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sort-group { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-group button { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2); }
.sort-group button.is-active { background: var(--black); color: #f5efe3; border-color: var(--black); }
.sort-group button .arrow { font-size: 10px; margin-left: 2px; }
.result-count { font-size: 12.5px; color: var(--ink-3); }

/* 商品详情（移动端单列） */
.pd-top { display: block; }
.pd-gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pd-gallery__thumbs img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; border: 2px solid transparent; cursor: pointer; flex: 0 0 auto; }
.pd-gallery__thumbs img.is-active { border-color: var(--gold); }
.pd-info { margin-top: 16px; }
.pd-info h1 { font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.pd-info__sub { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.pd-pricebox { background: var(--gold-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.pd-pricebox .now { font-size: 26px; color: #c0392b; font-weight: 800; }
.pd-pricebox .now .cur { font-size: 14px; }
.pd-pricebox .meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.pd-meta-row { display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.pd-meta-row .k { color: var(--ink-3); width: 74px; flex: 0 0 auto; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-qty button { width: 40px; height: 40px; background: var(--bg-soft); font-size: 18px; color: var(--ink-2); }
.pd-qty input { width: 52px; height: 40px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pd-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1 1 120px; }
.pd-highlights li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-2); font-size: 13.5px; }
.pd-highlights li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad-gold); }
.pd-section { margin-top: 26px; }
.pd-section__title { font-size: 18px; margin-bottom: 14px; padding-left: 11px; border-left: 4px solid var(--gold); }
.pd-detail-html { line-height: 1.9; color: var(--ink-2); font-size: 14px; }
.pd-detail-html img { border-radius: var(--radius); margin: 12px 0; }
.pd-detail-html table { display: block; overflow-x: auto; }

/* 图片占位 */
.placeholder { width: 100%; height: 100%; min-height: 96px; display: flex; align-items: center; justify-content: center; color: #cfcfd6; }

/* ---------------- 购物车（移动端卡片行） ---------------- */
.cart-item { display: grid; grid-template-columns: 22px 72px 1fr auto; grid-template-areas: "chk img title title" "chk img price price" "chk img qty op"; row-gap: 6px; column-gap: 11px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__check { grid-area: chk; padding-top: 4px; }
.cart-item__media { grid-area: img; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { grid-area: title; min-width: 0; }
.cart-item__title { font-weight: 600; font-size: 14px; line-height: 1.45; display: block; }
.cart-item__sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.cart-item__price { grid-area: price; color: #c0392b; font-weight: 700; font-size: 14px; }
.cart-item__qty { grid-area: qty; }
.cart-item__qty .pd-qty button { width: 34px; height: 34px; }
.cart-item__qty .pd-qty input { width: 44px; height: 34px; }
.cart-item__op { grid-area: op; justify-self: end; align-self: center; }
.cart-summary { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; box-shadow: var(--shadow-md); }
.cart-summary__total { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.cart-summary__total b { font-size: 18px; color: #c0392b; margin-left: 4px; }
.cart-summary > .btn--gold { flex: 1 1 100%; }

/* ---------------- 结算 / 支付 ---------------- */
.co-layout { display: block; }
.co-aside { margin-top: 16px; }
.co-block { margin-bottom: 18px; }
.co-block__title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.co-goods { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.co-goods:last-child { border-bottom: 0; }
.co-goods__media { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.co-goods__media img { width: 100%; height: 100%; object-fit: cover; }
.co-goods__info { min-width: 0; }
.co-goods__info b { font-size: 13.5px; display: block; }
.co-goods__price { font-size: 13px; color: var(--ink-2); text-align: right; }
.amount-list { font-size: 14px; }
.amount-list .row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-2); }
.amount-list .row.total { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 13px; font-size: 15px; color: var(--ink); font-weight: 700; }
.amount-list .row.total b { color: #c0392b; font-size: 20px; }
.coupon-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px dashed var(--gold); border-radius: 12px; margin-bottom: 9px; background: var(--gold-soft); }
.coupon-item.is-disabled { border-color: var(--line); background: var(--bg-soft); opacity: .7; }
.coupon-item__amt { font-size: 19px; font-weight: 800; color: var(--gold-deep); flex: 0 0 auto; }
.coupon-item__info b { display: block; font-size: 13.5px; }
.coupon-item__info span { font-size: 12px; color: var(--ink-3); }

/* 收银台 */
.pay-card { margin: 6px 0 20px; }
.pay-amount { text-align: center; padding: 22px 0 16px; }
.pay-amount .num { font-size: 38px; font-weight: 800; color: #c0392b; }
.pay-amount .num .cur { font-size: 20px; }
.pay-order-no { text-align: center; color: var(--ink-3); font-size: 12.5px; word-break: break-all; }
.pay-methods { display: flex; flex-direction: column; gap: 11px; margin: 20px 0; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.pay-method.is-active { border-color: var(--gold); background: var(--gold-soft); }
.pay-method__icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.pay-method__icon.wx { background: #2bb25b; }
.pay-method__icon.ali { background: #1677ff; }
.pay-method b { font-size: 14.5px; }
.pay-method small { display: block; color: var(--ink-3); font-size: 12px; }
.pay-countdown { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 12px; }
.pay-countdown b { color: #c0392b; }
.pay-result { margin: 10px 0 24px; text-align: center; padding: 20px 16px; }
.pay-result__icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pay-result__icon.ok { background: #e8f5ec; color: #2e7d4f; }
.pay-result__icon.wait { background: var(--gold-soft); color: var(--gold-deep); }
.pay-result .btn { flex: 1 1 46%; }

/* ---------------- 订单 ---------------- */
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--bg-soft); font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.order-card__head .no { color: var(--ink-3); }
.order-goods { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.order-goods__media { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); flex: 0 0 auto; }
.order-goods__media img { width: 100%; height: 100%; object-fit: cover; }
.order-goods__info { flex: 1 1 auto; min-width: 0; }
.order-goods__info b { font-size: 13.5px; display: block; }
.order-goods__price { text-align: right; font-size: 12.5px; color: var(--ink-2); flex: 0 0 auto; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.order-total { font-size: 12.5px; color: var(--ink-2); }
.order-total b { color: #c0392b; font-size: 17px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions .btn { flex: 1 1 40%; }

.detail-rows .row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.detail-rows .row:last-child { border-bottom: 0; }
.detail-rows .row .k { color: var(--ink-3); width: 96px; flex: 0 0 auto; }
.detail-rows .row .v { flex: 1 1 auto; word-break: break-all; }
.timeline { position: relative; padding-left: 20px; }
.timeline__item { position: relative; padding-bottom: 18px; }
.timeline__item::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline__item::after { content: ""; position: absolute; left: -16px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline__item:last-child::after { display: none; }

/* ---------------- 个人中心 ---------------- */
.acct-layout { display: block; }
.acct-menu { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.acct-menu a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; }
.acct-menu a svg { width: 15px; height: 15px; }
.acct-menu a.is-active { background: var(--black); color: #f5efe3; border-color: var(--black); }
.profile-card { display: flex; align-items: center; gap: 14px; background: var(--black-2); color: #efeae0; border-radius: var(--radius); padding: 18px; }
.profile-card__info { flex: 1 1 auto; min-width: 0; }
.profile-card__info b { font-size: 17px; }
.profile-card__stats { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.profile-card__stats .s { text-align: center; }
.profile-card__stats .s b { display: block; font-size: 17px; color: var(--gold-bright); }
.profile-card__stats .s span { font-size: 11px; color: #a8a39a; }
.grid-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid-menu a { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.grid-menu a svg { width: 24px; height: 24px; color: var(--gold-deep); flex: 0 0 auto; }
.grid-menu a b { display: block; font-size: 13.5px; }
.grid-menu a span { font-size: 11.5px; color: var(--ink-3); display: block; }

/* 地址卡片 */
.addr-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.addr-item.is-default { border-color: var(--gold); background: var(--gold-soft); }
.addr-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.addr-item__body { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.addr-item__ops { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* 优惠券卡片 */
.cpn { position: relative; display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.cpn__left { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--grad-gold); color: #2a1e08; padding: 14px 6px; }
.cpn__left .v { font-size: 22px; font-weight: 800; text-align: center; }
.cpn__left .v small { font-size: 12px; }
.cpn__right { flex: 1 1 auto; min-width: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cpn__right b { font-size: 14px; display: block; }
.cpn__right span { font-size: 12px; color: var(--ink-3); }
.cpn.is-used .cpn__left { background: var(--bg-deep); color: var(--ink-3); }

/* 通知列表 */
.notif { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; background: #d9534f; margin-top: 7px; flex: 0 0 auto; }
.notif__dot.read { background: var(--line); }
.notif__body { flex: 1 1 auto; min-width: 0; }
.notif__body b { font-size: 13.5px; }
.notif__body p { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.notif__time { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }

/* 发票 / 售后条目 */
.inv-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.inv-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }

/* ---------------- 帮助中心 / 协议 ---------------- */
.help-layout { display: block; }
.article-body { line-height: 1.9; color: var(--ink-2); font-size: 14.5px; }
.article-body h1 { font-size: 20px; color: var(--ink); margin-bottom: 16px; }
.article-body h2 { font-size: 17px; color: var(--ink); margin: 22px 0 11px; }
.article-body h3 { font-size: 15px; color: var(--ink); margin: 18px 0 9px; }
.article-body p { margin-bottom: 11px; }
.article-body ul { list-style: disc; padding-left: 20px; margin-bottom: 11px; }
.article-body a { color: var(--gold-deep); text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin: 13px 0; }

/* 404 */
.err-page { text-align: center; padding: 60px 20px; }
.err-page__code { font-size: 84px; font-weight: 800; letter-spacing: 5px; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.err-page p { color: var(--ink-3); margin: 16px 0 22px; }
.err-page .flex { flex-wrap: wrap; }
