/* 商品详情、购物车、结算页：版面对齐参照站。手机为主，.desk 部分是电脑版。 */
.only-d { display: none !important; }
.desk .only-d { display: revert !important; }
.desk button.only-d, .desk .btn.only-d { display: inline-flex !important; }
.desk .co-side.only-d { display: block !important; }

/* ---------- 商品详情 ---------- */
.pdp .gallery { background: #f6f6f6; }
.pd-main { padding: 12px 12px 4px; background: #fff; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.pd-now .pz { color: var(--accent); }
.pd-now .pz .p-int { font-size: 30px; }
.pd-now .pz .p-cur, .pd-now .pz .p-dec { font-size: 17px; }
.pd-tax { font-size: 12px; color: #777; width: 100%; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.pd-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-chip.g { background: #e9f6e7; color: var(--trust); }
.pd-chip.o { background: var(--accent-soft); color: var(--accent-deep); }
.pd-title { font-size: 15px; font-weight: 500; color: #222; line-height: 1.45; margin-top: 10px; }
.pdp .gb-entry { margin: 12px 0 0; width: 100%; }
.pd-opts { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.pd-opt-h { font-size: 14px; margin-bottom: 8px; }
.pd-opt-h span { color: #555; }
.pd-opt.missing .pd-opt-h b, .pd-opt.missing .need { color: var(--bad); }
.pd-opts .opt { background: #fff; border: 1px solid #ccc; border-radius: 6px; height: 36px; color: #222; }
.pd-opts .opt.on { border: 2px solid #222; background: #fff; color: #222; font-weight: 600; }
.pd-opts .opt.out { color: #bbb; border-style: dashed; text-decoration: line-through; }
.pd-qty { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.pd-qty .muted { margin-left: auto; }
.pd-box { margin-top: 14px; border: 1px solid #eee; border-radius: 8px; padding: 12px; font-size: 13px; }
.pd-ship { display: flex; gap: 10px; }
.pd-ship svg { width: 22px; height: 22px; fill: none; stroke: var(--trust); stroke-width: 1.8; flex: none; }
.pd-ship div { display: flex; flex-direction: column; gap: 2px; }
.pd-ship b.g, b.g { color: var(--trust); font-weight: 700; }
.pd-commit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.pd-commit b { grid-column: 1 / -1; font-size: 14px; }
.pd-commit span { display: inline-flex; align-items: center; gap: 5px; color: #333; font-size: 12.5px; }
.pd-commit svg { width: 15px; height: 15px; fill: none; stroke: var(--trust); stroke-width: 2; flex: none; }
.pd-service { display: flex; gap: 16px; margin-top: 10px; }
.pd-service .link { gap: 4px; color: #555; }
.pd-service svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pdp .pd-desc, .pdp .pd-rev { margin-top: 10px; border-top: 8px solid #f6f6f6; }
.pdp .rec-title { margin-top: 18px; }
.pdp > .grid { padding-bottom: 16px; }
.pd-bar { gap: 4px; }
.pd-add-m { flex: 1; height: 46px; font-size: 16px; margin-left: 6px; }
.pd-add { width: 100%; height: 52px; font-size: 17px; border-radius: 26px; margin-top: 18px; justify-content: center; }

/* ---------- 购物车 ---------- */
#v-cart { background: #fff; }
.cart-top { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px 6px; }
.cart-top h1 { font-size: 20px; font-weight: 800; }
.ship-note { display: flex; gap: 10px; align-items: center; margin: 0 12px; padding: 10px 12px; border-radius: 8px; background: #e9f6e7; }
.ship-note svg { width: 22px; height: 22px; fill: none; stroke: var(--trust); stroke-width: 1.8; flex: none; }
.ship-note div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ship-note b { font-size: 13px; color: var(--trust); }
.ship-bar { height: 4px; border-radius: 4px; background: #cfe9cb; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--trust); border-radius: 4px; }
.cart-all-row { padding: 12px 12px 4px; }
.cart-all-row .all, .cart-bar .all { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.cbox.on { background: var(--accent); border-color: var(--accent); }
.citem { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) 28px; gap: 10px; padding: 12px; margin: 0; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; border-radius: 0; align-items: start; }
.citem .cbox { margin-top: 38px; }
.ci-img img { width: 96px; height: 96px; object-fit: cover; background: #f6f6f6; border-radius: 4px; }
.ci-body .t { font-size: 13px; color: #222; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-body .spec { display: inline-flex; margin-top: 6px; font-size: 12px; background: #f3f3f3; border-radius: 4px; padding: 2px 8px; color: #555; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.ci-row .stepper { height: 30px; border-color: #ccc; border-radius: 4px; }
.ci-row .stepper button { width: 30px; height: 28px; font-size: 16px; }
.ci-del { width: 28px; height: 28px; display: grid; place-items: center; color: #999; }
.ci-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cart-bar { background: #fff; gap: 10px; }
.cart-bar .cs-desk { display: none; }
.cart-bar .sum { flex: 1; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cart-bar .sum .price { color: var(--accent); font-size: 20px; font-weight: 800; }
.cart-go { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- 结算 ---------- */
.co { background: #f6f6f6; }
.co-card, .co-sum { background: #fff; padding: 14px 12px; margin-top: 8px; }
.co-card h3, .co-sum h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.co-addr { position: relative; margin-top: 0; padding-bottom: 18px; }
.co-addr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #fff 12px 18px, #2f7cf6 18px 30px, #fff 30px 36px); }
.co-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid #eee; border-radius: 8px; }
.co-radio.on { border-color: #222; }
.co-radio .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; flex: none; margin-top: 2px; }
.co-radio.on .rd { border: 5px solid var(--accent); }
.co-radio b { display: block; font-size: 14px; }
.co-radio small { display: block; font-size: 12px; color: #777; margin-top: 2px; }
.co-pays { margin-top: 10px; }
.co-pays .ic-pay.slot-ph { color: #444; }
.co-sum .fee { font-size: 13.5px; }
.co-sum .fee.total .price { color: var(--accent); font-size: 20px; font-weight: 800; }
.co-note { margin: 10px 0; line-height: 1.5; }
.co-sum .pd-commit { margin-top: 8px; }
.co-bar .total .price { color: var(--accent); }

/* ---------- 电脑版 ---------- */
.desk .layer[data-kind="product"] .scroll.pdp {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-content: start;
  padding: 24px var(--page) 60px; background: #fff;
}
.desk .layer[data-kind="product"] .scroll.pdp > * { grid-column: auto; }
.desk .layer[data-kind="product"] .scroll.pdp > .gallery { grid-column: 1; grid-row: 1; position: sticky; top: 0; align-self: start; border-radius: 8px; aspect-ratio: 1 !important; }
.desk .layer[data-kind="product"] .scroll.pdp > .pd-main { grid-column: 2; grid-row: 1; padding: 0; }
.desk .layer[data-kind="product"] .scroll.pdp > .full { grid-column: 1 / -1; }
.desk .pdp .pd-desc, .desk .pdp .pd-rev { border-top: 1px solid #eee; margin-top: 28px; padding: 18px 0 0; background: #fff; border-radius: 0; }
.desk .pdp .rec-title { margin-top: 32px; }
.desk .pd-title { font-size: 20px; margin-top: 12px; }
.desk .pd-now .pz .p-int { font-size: 36px; }
.desk .pd-commit { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.desk #v-cart, .desk #v-cart.has-bar { padding-right: calc(var(--page) + 380px); }
.desk .cart-top { padding: 4px 0 10px; }
.desk .ship-note { margin: 0; }
.desk .cart-all-row { padding: 12px 0 4px; }
.desk .citem { grid-template-columns: 28px 120px minmax(0, 1fr) 28px; padding: 16px 0; }
.desk .ci-img img { width: 120px; height: 120px; }
.desk .cart-bar { top: 140px; width: 356px; gap: 12px; padding: 20px; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .3); }
.desk .cart-bar .cs-desk { display: block; }
.desk .cart-bar .cs-mob { display: none; }
.desk .cart-bar h3 { font-size: 17px; margin-bottom: 8px; }
.desk .cart-bar .fee.total .price { color: var(--accent); font-size: 22px; font-weight: 800; }
.desk .cart-go { width: 100%; height: 50px; font-size: 17px; border-radius: 25px; justify-content: center; }
.desk .cs-foot { font-size: 12.5px; }
.desk .cs-foot .pays { margin: 10px 0; }
.desk .cs-foot .ic-pay.slot-ph { color: #444; }
.desk .cs-commit { margin-top: 6px; }

.desk .layer[data-kind="checkout"] .scroll.co { padding: 20px var(--page) 60px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-content: start; }
.desk .co-main .co-card { border-radius: 10px; margin-top: 12px; padding: 18px 20px; }
.desk .co-main .co-addr { margin-top: 0; overflow: hidden; }
.desk .co-side .co-sum { position: sticky; top: 0; margin-top: 0; border-radius: 10px; padding: 20px; }
.desk .co-submit { height: 50px; font-size: 17px; border-radius: 25px; justify-content: center; margin-top: 14px; }

.cart-all-row .cbox, .cart-bar .cbox { margin: 0; }
.desk .layer[data-kind="checkout"] .topbar { padding: 0 calc(var(--page) - 10px); }
