/* 商品详情页 v3（2026-09-24）：手机 + PC 两套布局，与分类页 v3 同一套视觉语言。
   所有规则都挂在 #gb-pdp-root 下：WoodMart 的全局 button/[type=button] 样式后加载，同权重会盖掉单类选择器。 */
body.gb-pdp-v3 .main-page-wrapper { padding-top: 0; }
html.gbp-locked, html.gbp-locked body { overflow: hidden !important; }
#gb-pdp-root { --g: #2f8a2f; --gd: #236f34; --tint: #eef6ec; --ink: #1f2a22; --mut: #6b7470; --line: #e6ebe7; --soft: #f5f7f5; --star: #ffb400; color: var(--ink); }
#gb-pdp-root *, #gb-pdp-root *::before, #gb-pdp-root *::after { box-sizing: border-box; }
/* 只重置字体与大小写：颜色由各按钮类自己给（带 id 的颜色重置会盖掉选中态的白字）。 */
#gb-pdp-root button { font: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
#gb-pdp-root a { text-decoration: none; }
#gb-pdp-root h1, #gb-pdp-root h2, #gb-pdp-root h4, #gb-pdp-root p { margin: 0; }
.gb-pdp-ssr { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.gb-pdp-ssr-img { width: 100%; max-width: 560px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: #f3f5f3; }
.gb-pdp-ssr-title { font-size: 20px; font-weight: 800; line-height: 1.3; }

#gb-pdp-root .gbp-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gb-pdp-root .gbp-icon.is-flip { transform: rotate(180deg); }
#gb-pdp-root .gbp-stars { position: relative; display: inline-block; color: #dfe3e0; font-size: 14px; letter-spacing: 1px; line-height: 1; }
#gb-pdp-root .gbp-stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--gbp-stars, 0%); overflow: hidden; color: var(--star); white-space: nowrap; }

/* 按钮 */
#gb-pdp-root .gbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font-size: 15px !important; font-weight: 800; line-height: 1.1; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s; }
#gb-pdp-root .gbp-btn:active { transform: scale(.98); }
#gb-pdp-root .gbp-btn:disabled { opacity: .6; cursor: default; }
#gb-pdp-root .gbp-btn-primary { background: var(--g) !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(47, 138, 47, .6); }
#gb-pdp-root .gbp-btn-primary:hover { background: var(--gd) !important; }
#gb-pdp-root .gbp-btn-soft { background: var(--tint) !important; color: var(--gd) !important; box-shadow: inset 0 0 0 1.5px #bcd9bc; }
#gb-pdp-root .gbp-btn-soft:hover { background: #e2f0df !important; }
#gb-pdp-root .gbp-btn-ghost { min-height: 44px; background: var(--soft) !important; color: var(--ink) !important; font-size: 14px !important; }
#gb-pdp-root .gbp-block { display: flex; width: 100%; margin-top: 12px; }
#gb-pdp-root .gbp-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
#gb-pdp-root .gbp-iconbtn.is-on { color: var(--g); }
#gb-pdp-root .gbp-iconbtn.is-on .gbp-icon { fill: currentColor; }
#gb-pdp-root .gbp-iconbtn.gbp-soft { width: 34px; height: 34px; background: var(--soft); }
#gb-pdp-root .gbp-iconbtn.gbp-outline { width: 48px; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
#gb-pdp-root .gbp-iconbtn.gbp-outline:hover { box-shadow: inset 0 0 0 1px var(--g); color: var(--g); }
#gb-pdp-root .gbp-zoom { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); color: var(--ink); cursor: zoom-in; }
#gb-pdp-root .gbp-zoom .gbp-icon { width: 13px; height: 13px; }

/* 价格 / 评分 / 标题 / 品牌 */
#gb-pdp-root .gbp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
#gb-pdp-root .gbp-price b { color: var(--g); font-size: 28px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; }
#gb-pdp-root .gbp-price s { color: #98a19a; font-size: 15px; }
#gb-pdp-root .gbp-short { margin: 4px 0 6px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#gb-pdp-root .gbp-short p { margin: 0; }
#gb-pdp-root .gbp-short p + p { margin-top: 8px; }
#gb-pdp-root .gbp-from { color: var(--mut); font-size: 15px; }
#gb-pdp-root .gbp-discount { padding: 2px 8px; border-radius: 6px; background: #e5484d; color: #fff; font-size: 13px; font-weight: 800; align-self: center; }
#gb-pdp-root .gbp-soldout { padding: 2px 8px; border-radius: 6px; background: #f1f1f1; color: #8a8a8a; font-size: 13px; font-weight: 700; align-self: center; }
#gb-pdp-root .gbp-rating { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--mut); font-size: 13.5px !important; text-align: left; cursor: pointer; }
#gb-pdp-root .gbp-rating b { color: var(--ink); }
#gb-pdp-root .gbp-title { font-size: 19px; font-weight: 800; line-height: 1.35; }
#gb-pdp-root .gbp-brand { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink) !important; font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }

/* 配送 / 承诺卡 */
#gb-pdp-root .gbp-service { margin-top: 14px; padding: 2px 14px; border-radius: 14px; background: var(--soft); }
#gb-pdp-root .gbp-service-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #e8ece9; font-size: 13px; line-height: 1.45; }
#gb-pdp-root .gbp-service-row:last-child { border-bottom: 0; }
#gb-pdp-root .gbp-service-row .gbp-icon { color: var(--g); margin-top: 1px; }
#gb-pdp-root .gbp-service-row b { display: block; font-size: 13.5px; }
#gb-pdp-root .gbp-service-row span { color: var(--mut); }
#gb-pdp-root .gbp-service-row.is-accent { margin: 0 -14px; padding: 11px 14px; background: #fff7e0; border-bottom-color: #f3e4b5; }
#gb-pdp-root .gbp-service-row.is-accent .gbp-icon { color: #b8860b; }
/* 「Доставка в」国家选择：原生 select 透明覆盖在旗帜按钮上（手机弹系统选择器、键盘可用） */
#gb-pdp-root .gbp-shipto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 11px 0; border-bottom: 1px solid #e8ece9; font-size: 13px; }
#gb-pdp-root .gbp-shipto-label { color: var(--mut); }
#gb-pdp-root .gbp-shipto-pick { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; }
#gb-pdp-root .gbp-shipto-pick:hover { border-color: #b9d8bf; }
#gb-pdp-root .gbp-shipto-pick:focus-within { outline: 2px solid var(--g); outline-offset: 2px; }
#gb-pdp-root .gbp-shipto-pick .gbp-flag { display: block; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(31, 42, 34, .14); }
#gb-pdp-root .gbp-shipto-pick .gbp-icon { width: 15px; height: 15px; color: var(--mut); }
#gb-pdp-root .gbp-shipto-pick select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; }
#gb-pdp-root .gbp-shipto-more { color: var(--mut) !important; font-size: 12.5px; text-decoration: underline dotted; text-underline-offset: 3px; }
#gb-pdp-root .gbp-shipto-more:hover { color: var(--gd) !important; }
/* 非俄罗斯：支付行改为「先联系客服」说明 */
#gb-pdp-root .gbp-service-row.is-manual { margin: 0 -14px; padding: 12px 14px; background: #eef4fb; border-bottom-color: #dbe6f3; }
#gb-pdp-root .gbp-service-row.is-manual .gbp-icon { color: #2f6db5; }
#gb-pdp-root .gbp-soon { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; color: var(--mut); font-size: 12.5px; font-style: normal; }
#gb-pdp-root .gbp-soon i { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: #dbe6f3; color: #2f5f96; font-size: 11px; font-style: normal; font-weight: 800; }
#gb-pdp-root button.gbp-service-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; min-height: 34px; height: auto; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gd); box-shadow: none; color: #fff; font-size: 13px !important; font-weight: 700; line-height: 1.2; cursor: pointer; }
#gb-pdp-root button.gbp-service-cta:hover { background: var(--g); }
#gb-pdp-root .gbp-service-row.is-manual .gbp-service-cta .gbp-icon, #gb-pdp-root .gbp-service-cta .gbp-icon { width: 16px; height: 16px; color: #fff; margin: 0; }

/* 规格选择 */
#gb-pdp-root .gbp-axis { margin-bottom: 14px; }
#gb-pdp-root .gbp-axis-title { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
#gb-pdp-root .gbp-axis-title em { margin-left: 6px; color: var(--mut); font-style: normal; font-weight: 500; }
#gb-pdp-root .gbp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#gb-pdp-root .gbp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line) !important; border-radius: 11px; background: #fff !important; color: var(--ink) !important; font-size: 13.5px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-chip:hover { border-color: var(--g) !important; }
#gb-pdp-root .gbp-chip.is-on, #gb-pdp-root .gbp-vcard.is-on { border-color: var(--g) !important; background: var(--tint) !important; color: var(--gd) !important; box-shadow: 0 0 0 2px var(--tint); }
#gb-pdp-root .gbp-chip.is-swap, #gb-pdp-root .gbp-vcard.is-swap { opacity: .62; }
#gb-pdp-root .gbp-chip.is-soldout, #gb-pdp-root .gbp-vcard.is-soldout { border-style: dashed !important; color: #a9b0aa !important; cursor: not-allowed; }
#gb-pdp-root .gbp-opt-note { font-size: 11px; font-weight: 600; color: #a9b0aa; }
#gb-pdp-root .gbp-vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#gb-pdp-root .gbp-vcard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1.5px solid var(--line) !important; border-radius: 12px; background: #fff !important; color: var(--ink) !important; font-size: 11.5px !important; font-weight: 700; text-align: center; cursor: pointer; }
#gb-pdp-root .gbp-vcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #f3f5f3; }
#gb-pdp-root .gbp-vcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-vcard .gbp-zoom { top: 4px; right: 4px; bottom: auto; width: 22px; height: 22px; }
#gb-pdp-root .gbp-vcard .gbp-opt-label { margin: 5px 4px 6px; padding: 0; overflow: hidden; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: 2.5em; }
#gb-pdp-root .gbp-picker-wrap { margin-top: 16px; padding: 2px; border-radius: 14px; transition: box-shadow .2s; }
#gb-pdp-root .gbp-picker-wrap.is-alert { box-shadow: 0 0 0 2px #f5c2c3; }
#gb-pdp-root .gbp-stepper { display: inline-flex; align-items: center; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; flex: 0 0 auto; }
#gb-pdp-root .gbp-stepper button { width: 40px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); font-size: 18px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-stepper button:disabled { color: #c3c9c4; cursor: default; }
#gb-pdp-root .gbp-stepper span { min-width: 32px; text-align: center; font-weight: 800; }
#gb-pdp-root .gbp-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 14px; font-weight: 800; }

/* 参数 */
#gb-pdp-root .gbp-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#gb-pdp-root .gbp-spec-grid div { padding: 10px 12px; border-radius: 11px; background: var(--soft); }
#gb-pdp-root .gbp-spec-grid small { display: block; color: var(--mut); font-size: 12px; }
#gb-pdp-root .gbp-spec-grid span { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
#gb-pdp-root .gbp-spec-table section + section { margin-top: 16px; }
#gb-pdp-root .gbp-spec-table h4 { margin-bottom: 6px; font-size: 14px; font-weight: 800; }
#gb-pdp-root .gbp-spec-table dl { margin: 0; }
#gb-pdp-root .gbp-spec-table dl div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#gb-pdp-root .gbp-spec-table dt { color: var(--mut); }
#gb-pdp-root .gbp-spec-table dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* 评论 */
#gb-pdp-root .gbp-review-head { display: flex; align-items: center; gap: 14px; }
#gb-pdp-root .gbp-review-avg { font-size: 34px; font-weight: 800; line-height: 1; }
#gb-pdp-root .gbp-review-head small { display: block; margin-top: 3px; color: var(--mut); font-size: 12.5px; }
#gb-pdp-root .gbp-review-strip { display: flex; gap: 6px; margin: 12px 0 4px; overflow-x: auto; scrollbar-width: none; }
#gb-pdp-root .gbp-review-strip::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-review-strip button, #gb-pdp-root .gbp-review-photos button { position: relative; flex: 0 0 auto; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #f3f5f3; cursor: zoom-in; }
#gb-pdp-root .gbp-review-strip img, #gb-pdp-root .gbp-review-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-review-strip span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 25, 20, .55); color: #fff; font-weight: 800; }
#gb-pdp-root .gbp-review { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
#gb-pdp-root .gbp-review header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
#gb-pdp-root .gbp-review header .gbp-stars { margin-left: auto; }
#gb-pdp-root .gbp-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--gd); font-size: 13px; font-weight: 800; }
#gb-pdp-root .gbp-review p { white-space: pre-line; overflow-wrap: anywhere; }
#gb-pdp-root .gbp-review p.is-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#gb-pdp-root .gbp-review-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#gb-pdp-root .gbp-review-summary { display: flex; align-items: center; gap: 18px; padding-bottom: 14px; }
#gb-pdp-root .gbp-review-big { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
#gb-pdp-root .gbp-review-num { font-size: 38px; font-weight: 800; line-height: 1.05; }
#gb-pdp-root .gbp-review-big small { margin-top: 3px; color: var(--mut); font-size: 12px; }
#gb-pdp-root .gbp-dist { flex: 1 1 auto; display: grid; grid-template-columns: 20px minmax(0, 1fr) 30px; gap: 4px 8px; align-items: center; color: var(--mut); font-size: 12px; }
#gb-pdp-root .gbp-bar { height: 6px; border-radius: 3px; background: #edf0ed; overflow: hidden; }
#gb-pdp-root .gbp-bar i { display: block; height: 100%; background: var(--star); }
#gb-pdp-root .gbp-filter-chips { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#gb-pdp-root .gbp-filter-chips::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-filter-chips button { flex: 0 0 auto; padding: 7px 13px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px !important; font-weight: 700; cursor: pointer; white-space: nowrap; }
#gb-pdp-root .gbp-filter-chips button small { color: var(--mut); font-weight: 600; }
#gb-pdp-root .gbp-filter-chips button.is-on { background: var(--ink); color: #fff; }
#gb-pdp-root .gbp-filter-chips button.is-on small { color: rgba(255, 255, 255, .7); }
#gb-pdp-root .gbp-review-empty, #gb-pdp-root .gbp-review-error { padding: 18px 0; color: var(--mut); font-size: 14px; }
#gb-pdp-root .gbp-review-empty a, #gb-pdp-root .gbp-write-review { color: var(--gd) !important; font-weight: 700; }
#gb-pdp-root .gbp-write-review { display: inline-block; margin-top: 14px; font-size: 14px; }
#gb-pdp-root .gbp-loading { display: flex; justify-content: center; gap: 6px; padding: 18px 0; }
#gb-pdp-root .gbp-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--g); animation: gbp-dot 1s ease-in-out infinite; }
#gb-pdp-root .gbp-loading i:nth-child(2) { animation-delay: .15s; }
#gb-pdp-root .gbp-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes gbp-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }

/* 描述 */
#gb-pdp-root .gbp-desc-body { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
#gb-pdp-root .gbp-desc-body img { max-width: 100%; height: auto; border-radius: 10px; }
#gb-pdp-root .gbp-desc-body p { margin: 0 0 10px; }
#gb-pdp-root .gbp-desc.is-folded .gbp-desc-body { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }

/* 相关商品 */
#gb-pdp-root .gbp-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#gb-pdp-root .gbp-related-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink) !important; transition: box-shadow .18s, transform .18s; }
#gb-pdp-root .gbp-related-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 40, 24, .08); }
#gb-pdp-root .gbp-related-img { display: block; aspect-ratio: 1 / 1; background: #f3f5f3; }
#gb-pdp-root .gbp-related-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-related-name { padding: 9px 10px 0; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
#gb-pdp-root .gbp-related-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px 10px; margin-top: auto; }
#gb-pdp-root .gbp-related-foot b { color: var(--g); font-size: 15px; }
#gb-pdp-root .gbp-related-rate { font-size: 12px; color: var(--ink); white-space: nowrap; }
#gb-pdp-root .gbp-related-rate small { color: var(--mut); }

/* 区块 / 分区导航 */
#gb-pdp-root .gbp-section { margin-top: 22px; }
#gb-pdp-root .gbp-section > h2 { display: flex; color: var(--ink); align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 18px; font-weight: 800; }
#gb-pdp-root .gbp-section > h2 button { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--gd); font-size: 13.5px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-secnav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
#gb-pdp-root .gbp-secnav::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-secnav button { flex: 0 0 auto; padding: 11px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mut); font-size: 14px !important; font-weight: 700; cursor: pointer; white-space: nowrap; }
#gb-pdp-root .gbp-secnav button.is-on { color: var(--gd); border-bottom-color: var(--g); }

/* 吐司 */
#gb-pdp-root .gbp-toast { position: fixed; left: 50%; bottom: 96px; z-index: 100200; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; background: #1f2a22; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); animation: gbp-rise .2s ease; }
#gb-pdp-root .gbp-toast.is-error { background: #a3262b; }
#gb-pdp-root .gbp-toast a { color: #b8f0b0 !important; font-weight: 800; white-space: nowrap; }
@keyframes gbp-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------- 弹层 ---------------- */
#gb-pdp-root .gbp-layer { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
#gb-pdp-root .gbp-layer-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 20, .5); animation: gbp-fade .2s ease; }
#gb-pdp-root .gbp-layer-panel { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; outline: none; }
#gb-pdp-root .gbp-layer-sheet .gbp-layer-panel { max-height: 90vh; border-radius: 20px 20px 0 0; animation: gbp-up .25s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
#gb-pdp-root .gbp-layer-page .gbp-layer-panel { height: 100%; animation: gbp-left .25s cubic-bezier(.2, .8, .2, 1); }
#gb-pdp-root .gbp-layer-viewer .gbp-layer-panel { height: 100%; background: #0d110f; }
@keyframes gbp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gbp-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes gbp-left { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
#gb-pdp-root .gbp-sheet-grip { width: 40px; height: 4px; margin: 8px auto 4px; border-radius: 2px; background: #d6dcd7; flex: 0 0 auto; }
#gb-pdp-root .gbp-sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); }
#gb-pdp-root .gbp-sheet-img { position: relative; flex: 0 0 84px; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #f3f5f3; cursor: zoom-in; }
#gb-pdp-root .gbp-sheet-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-sheet-info { flex: 1 1 auto; min-width: 0; }
#gb-pdp-root .gbp-sheet-info .gbp-price b { font-size: 22px; }
#gb-pdp-root .gbp-sheet-info small { display: block; margin-top: 4px; color: var(--mut); font-size: 12.5px; line-height: 1.35; }
#gb-pdp-root .gbp-sheet-body { flex: 1 1 auto; min-height: 0; padding: 14px 16px 6px; overflow-y: auto; overscroll-behavior: contain; }
#gb-pdp-root .gbp-sheet-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
#gb-pdp-root .gbp-sheet-foot .gbp-btn { flex: 1 1 0; }
#gb-pdp-root .gbp-menu { display: flex; flex-direction: column; padding: 4px 8px 12px; }
#gb-pdp-root .gbp-menu button, #gb-pdp-root .gbp-menu a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink) !important; font-size: 15px !important; font-weight: 600; text-align: left; cursor: pointer; }
#gb-pdp-root .gbp-menu button:hover, #gb-pdp-root .gbp-menu a:hover { background: var(--soft); }
#gb-pdp-root .gbp-page-head { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; border-bottom: 1px solid var(--line); flex: 0 0 auto; font-size: 16px; }
#gb-pdp-root .gbp-page-head b { font-weight: 800; }
#gb-pdp-root .gbp-page-head span { color: var(--mut); font-weight: 600; }
#gb-pdp-root .gbp-page-body { flex: 1 1 auto; min-height: 0; padding: 14px 16px 24px; overflow-y: auto; overscroll-behavior: contain; }

/* 看图 */
#gb-pdp-root .gbp-viewer { position: relative; display: flex; flex-direction: column; height: 100%; color: #fff; }
#gb-pdp-root .gbp-viewer-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 10px; font-weight: 700; background: linear-gradient(180deg, rgba(13, 17, 15, .7), rgba(13, 17, 15, 0)); }
#gb-pdp-root .gbp-viewer-top .gbp-iconbtn { color: #fff; }
#gb-pdp-root .gbp-viewer-hint { font-size: 12px; font-weight: 500; opacity: .6; }
#gb-pdp-root .gbp-viewer-track { flex: 1 1 auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
#gb-pdp-root .gbp-viewer-track::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-viewer-slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; overflow: hidden; cursor: zoom-in; }
#gb-pdp-root .gbp-viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
#gb-pdp-root .gbp-viewer.is-zoomed .gbp-viewer-track { overflow: hidden; }
#gb-pdp-root .gbp-viewer.is-zoomed .gbp-viewer-slide { overflow: auto; align-items: flex-start; justify-content: flex-start; cursor: zoom-out; }
#gb-pdp-root .gbp-viewer.is-zoomed .gbp-viewer-slide img { max-width: none; max-height: none; width: 220%; }
#gb-pdp-root .gbp-viewer-nav { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
#gb-pdp-root .gbp-viewer-nav:disabled { opacity: .25; cursor: default; }
#gb-pdp-root .gbp-viewer-nav.is-prev { left: 18px; }
#gb-pdp-root .gbp-viewer-nav.is-next { right: 18px; }
#gb-pdp-root .gbp-viewer-caption { max-height: 34vh; padding: 14px 18px 22px; overflow-y: auto; background: linear-gradient(180deg, rgba(13, 17, 15, 0), #0d110f 24%); font-size: 14px; line-height: 1.5; }
#gb-pdp-root .gbp-viewer-cap-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

/* ---------------- 手机 ---------------- */
#gb-pdp-root .gbp-mobile { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding-bottom: 96px; }
#gb-pdp-root .gbp-topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 10px; transition: background-color .2s, box-shadow .2s; }
#gb-pdp-root .gbp-topbar .gbp-float { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
#gb-pdp-root .gbp-topbar-title { flex: 1 1 auto; min-width: 0; padding: 0 4px; overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
#gb-pdp-root .gbp-topbar.is-solid { position: fixed; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); animation: gbp-fade .15s ease; }
#gb-pdp-root .gbp-topbar.is-solid .gbp-float { background: transparent; box-shadow: none; }
#gb-pdp-root .gbp-secnav-fixed { position: fixed; left: 0; right: 0; top: 56px; z-index: 29; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
#gb-pdp-root .gbp-mgal { position: relative; background: #f3f5f3; }
#gb-pdp-root .gbp-mgal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
#gb-pdp-root .gbp-mgal-track::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-mgal-slide { flex: 0 0 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; scroll-snap-align: center; cursor: zoom-in; }
#gb-pdp-root .gbp-mgal-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 整张下完再淡入（FadeImg），慢网下不出现半截渐进渲染；底色由 .gbp-mgal / .gbp-dgal-main 的浅灰兜住。 */
#gb-pdp-root img.gbp-fade { opacity: 0; transition: opacity .2s ease; }
#gb-pdp-root img.gbp-fade.is-loaded { opacity: 1; }
#gb-pdp-root .gbp-mgal-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(20, 30, 24, .62); color: #fff; font-size: 12px; font-weight: 700; }
#gb-pdp-root .gbp-badge-sale { position: absolute; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 8px; background: #e5484d; color: #fff; font-size: 13px; font-weight: 800; }
#gb-pdp-root .gbp-vstrip { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
#gb-pdp-root .gbp-vstrip::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-vstrip button { flex: 0 0 auto; width: 54px; height: 54px; padding: 0; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; background: #f3f5f3; cursor: pointer; }
#gb-pdp-root .gbp-vstrip button.is-on { border-color: var(--g); box-shadow: 0 0 0 2px var(--tint); }
#gb-pdp-root .gbp-vstrip img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-vstrip .gbp-vstrip-more { display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--mut); font-size: 13px !important; font-weight: 800; }
#gb-pdp-root .gbp-pad { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 0; }
/* 首屏信息块：价格 → 标题 → 品牌 · 评分 → 简介（默认 3 行，超出可展开）→ 规格。 */
#gb-pdp-root .gbp-pad > .gbp-title { margin-top: 2px; }
#gb-pdp-root .gbp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; }
#gb-pdp-root .gbp-meta .gbp-brand { align-self: center; padding: 3px 9px; font-size: 12px; }
#gb-pdp-root .gbp-meta .gbp-rating { margin: 0; font-size: 13px !important; gap: 5px; }
#gb-pdp-root .gbp-mobile .gbp-short-wrap { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
#gb-pdp-root .gbp-mobile .gbp-short { margin: 0; color: #444d48; font-size: 13.5px; }
#gb-pdp-root .gbp-short.is-clamped { max-height: 4.95em; overflow: hidden; }
#gb-pdp-root .gbp-short.is-faded { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1.6em), transparent); }
#gb-pdp-root .gbp-short-toggle { display: inline-flex; align-items: center; gap: 2px; min-height: 0; height: auto; margin-top: 4px; padding: 2px 0; border: 0; box-shadow: none; line-height: 1.3; background: none; color: var(--gd); font-size: 13.5px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-cfg { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
#gb-pdp-root .gbp-cfg img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
#gb-pdp-root .gbp-cfg-text { flex: 1 1 auto; min-width: 0; }
#gb-pdp-root .gbp-cfg-text small { display: block; color: var(--mut); font-size: 12px; }
#gb-pdp-root .gbp-cfg-text span { display: block; overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
#gb-pdp-root .gbp-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 40, 24, .06); }
#gb-pdp-root .gbp-buybar .gbp-btn { flex: 1 1 0; min-height: 46px; padding: 0 10px; }
#gb-pdp-root .gbp-buybar-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; padding: 0; border: 0; background: none; color: var(--mut) !important; font-size: 10.5px !important; font-weight: 600; cursor: pointer; }

/* ---------------- PC ---------------- */
@media (min-width: 1024px) {
  #gb-pdp-root .gbp-layer { align-items: center; }
  #gb-pdp-root .gbp-layer-sheet .gbp-layer-panel { width: 560px; max-height: 86vh; border-radius: 18px; }
  #gb-pdp-root .gbp-layer-page .gbp-layer-panel { width: 760px; height: 88vh; border-radius: 18px; overflow: hidden; }
  #gb-pdp-root .gbp-sheet-grip { display: none; }
  #gb-pdp-root .gbp-viewer-nav { display: inline-flex; }
  #gb-pdp-root .gbp-toast { bottom: 32px; }
}
#gb-pdp-root .gbp-desktop { padding: 18px 0 48px; }
#gb-pdp-root .gbp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--mut); font-size: 13px; }
#gb-pdp-root .gbp-crumbs a { color: var(--mut) !important; }
#gb-pdp-root .gbp-crumbs a:hover { color: var(--gd) !important; }
#gb-pdp-root .gbp-crumb-sep { color: #c3c9c4; }
#gb-pdp-root .gbp-backpill { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px 7px 8px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px !important; font-weight: 700; cursor: pointer; margin-right: 6px; }
#gb-pdp-root .gbp-backpill .gbp-icon { width: 18px; height: 18px; }
#gb-pdp-root .gbp-top { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 36px; align-items: start; }
#gb-pdp-root .gbp-dgal { display: flex; gap: 14px; position: sticky; top: 20px; }
#gb-pdp-root .gbp-dgal-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: none; flex: 0 0 76px; }
#gb-pdp-root .gbp-dgal-thumbs::-webkit-scrollbar { display: none; }
#gb-pdp-root .gbp-dgal-thumbs button { width: 76px; height: 76px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f3; cursor: pointer; flex: 0 0 auto; }
#gb-pdp-root .gbp-dgal-thumbs button.is-on { border-color: var(--g); box-shadow: 0 0 0 2px var(--tint); }
#gb-pdp-root .gbp-dgal-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-dgal-main { position: relative; flex: 1 1 auto; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #f3f5f3; cursor: zoom-in; }
#gb-pdp-root .gbp-dgal-main img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
#gb-pdp-root .gbp-dgal-main:hover img { transform: scale(1.02); }
#gb-pdp-root .gbp-zoomhint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 700; }
#gb-pdp-root .gbp-zoomhint .gbp-icon { width: 15px; height: 15px; }
#gb-pdp-root .gbp-box { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 20px; }
#gb-pdp-root .gbp-box .gbp-title { font-size: 26px; line-height: 1.3; }
#gb-pdp-root .gbp-box .gbp-price { margin-top: 6px; }
#gb-pdp-root .gbp-box .gbp-price b { font-size: 34px; }
#gb-pdp-root .gbp-box .gbp-vcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#gb-pdp-root .gbp-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#gb-pdp-root .gbp-actions .gbp-btn { flex: 1 1 0; min-height: 50px; }
#gb-pdp-root .gbp-askchat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 2px; padding: 4px 0; border: 0; background: none; color: var(--gd); font-size: 13.5px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-askchat .gbp-icon { width: 17px; height: 17px; }
#gb-pdp-root .gbp-secnav-wrap { position: sticky; top: 0; z-index: 20; margin-top: 34px; background: #fff; border-bottom: 1px solid var(--line); }
#gb-pdp-root .gbp-desktop .gbp-section { margin-top: 30px; }
#gb-pdp-root .gbp-desktop .gbp-section > h2 { font-size: 22px; }
#gb-pdp-root .gbp-desktop .gbp-spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
#gb-pdp-root .gbp-desktop .gbp-spec-table section + section { margin-top: 0; }
#gb-pdp-root .gbp-desktop .gbp-review-list { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 40px; align-items: start; }
#gb-pdp-root .gbp-desktop .gbp-review-summary { grid-row: span 2; flex-direction: column; align-items: stretch; position: sticky; top: 64px; }
#gb-pdp-root .gbp-desktop .gbp-review-big { align-items: flex-start; }
#gb-pdp-root .gbp-desktop .gbp-filter-chips { flex-wrap: wrap; border-top: 0; padding-top: 0; }
#gb-pdp-root .gbp-desktop .gbp-review-items .gbp-review-photos button { width: 84px; height: 84px; }
#gb-pdp-root .gbp-desktop .gbp-write-review { grid-column: 2; }
#gb-pdp-root .gbp-desktop .gbp-related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#gb-pdp-root .gbp-desktop .gbp-desc { max-width: 880px; }
@media (min-width: 1024px) and (max-width: 1199px) {
  #gb-pdp-root .gbp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
  #gb-pdp-root .gbp-box .gbp-vcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 2.21.30：文字为主的规格、单值参数、顶部常驻商品条、插件内写评论 ---------- */
#gb-pdp-root .gbp-chip-more { border-style: dashed !important; color: var(--gd) !important; }
#gb-pdp-root .gbp-fixed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 4px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
#gb-pdp-root .gbp-fixed div { display: flex; gap: 6px; min-width: 0; }
#gb-pdp-root .gbp-fixed dt { color: var(--mut); white-space: nowrap; }
#gb-pdp-root .gbp-fixed dt::after { content: ":"; }
#gb-pdp-root .gbp-fixed dd { margin: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gb-pdp-root .gbp-topbar-title { display: flex; align-items: center; gap: 8px; }
#gb-pdp-root .gbp-topbar-title img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; object-fit: cover; background: #f3f5f3; }
#gb-pdp-root .gbp-topbar-title > span { display: flex; flex-direction: column; min-width: 0; }
#gb-pdp-root .gbp-topbar-title b { overflow: hidden; font-size: 13px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
#gb-pdp-root .gbp-topbar-title small { color: var(--g); font-size: 13px; font-weight: 800; line-height: 1.2; }
#gb-pdp-root .gbp-desktop .gbp-secnav-wrap { position: static; }
#gb-pdp-root .gbp-dbar { position: fixed; left: 0; right: 0; top: 0; z-index: 90; background: rgba(255, 255, 255, .98); box-shadow: 0 6px 20px rgba(16, 40, 24, .10); backdrop-filter: blur(8px); animation: gbp-fade .18s ease; }
#gb-pdp-root .gbp-dbar-inner { display: flex; align-items: center; gap: 14px; max-width: 1222px; height: 64px; margin: 0 auto; padding: 0 16px; }
#gb-pdp-root .gbp-dbar-img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; object-fit: cover; background: #f3f5f3; }
#gb-pdp-root .gbp-dbar-name { display: flex; flex-direction: column; min-width: 0; flex: 0 1 300px; }
#gb-pdp-root .gbp-dbar-name b { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
#gb-pdp-root .gbp-dbar-name span { overflow: hidden; color: var(--g); font-size: 13px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
#gb-pdp-root .gbp-dbar .gbp-secnav { flex: 1 1 auto; justify-content: center; }
#gb-pdp-root .gbp-dbar .gbp-secnav button { padding: 21px 0; }
#gb-pdp-root .gbp-dbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
#gb-pdp-root .gbp-dbar-actions .gbp-btn { min-height: 42px; padding: 0 16px; }
#gb-pdp-root .gbp-linkbtn { padding: 0; border: 0; background: none; color: var(--gd); font-size: 14px !important; font-weight: 700; cursor: pointer; }
#gb-pdp-root .gbp-review-form { display: flex; flex-direction: column; gap: 12px; padding: 6px 18px 18px; overflow-y: auto; }
#gb-pdp-root .gbp-review-form h3 { margin: 0; font-size: 18px; font-weight: 800; }
#gb-pdp-root .gbp-review-form-name { margin: -6px 0 0; color: var(--mut); font-size: 13px; }
#gb-pdp-root .gbp-review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
#gb-pdp-root .gbp-review-form label small { color: var(--mut); font-weight: 500; }
#gb-pdp-root .gbp-review-form input, #gb-pdp-root .gbp-review-form textarea { width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; box-shadow: none; }
#gb-pdp-root .gbp-review-form textarea { min-height: 120px; resize: vertical; }
#gb-pdp-root .gbp-review-form input:focus, #gb-pdp-root .gbp-review-form textarea:focus { border-color: var(--g); outline: none; box-shadow: 0 0 0 3px var(--tint); }
#gb-pdp-root .gbp-rate-pick { display: flex; gap: 6px; }
#gb-pdp-root .gbp-rate-pick button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--soft); color: #d3d8d4; font-size: 26px !important; line-height: 1; cursor: pointer; }
#gb-pdp-root .gbp-rate-pick button.is-on { color: var(--star); background: #fff7e0; }
#gb-pdp-root .gbp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
#gb-pdp-root .gbp-form-error { padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #a3262b; font-size: 13px; }
#gb-pdp-root .gbp-review-form.is-done { align-items: center; text-align: center; padding: 24px 18px; }
#gb-pdp-root .gbp-review-form.is-done .gbp-icon { color: var(--g); }
#gb-pdp-root .gbp-review-form.is-done p { margin: 0; color: var(--mut); }

/* 2.21.31 常驻条：可点回到商品开头；压过主题吸顶导航 */
html.gbp-bar-on .whb-sticked .whb-main-header, html.gbp-bar-on .whb-sticky-header.whb-sticked { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
#gb-pdp-root .gbp-dbar { z-index: 400; }
#gb-pdp-root .gbp-topbar.is-solid { z-index: 400; }
#gb-pdp-root .gbp-secnav-fixed { z-index: 399; }
#gb-pdp-root button.gbp-dbar-prod { display: flex; align-items: center; gap: 12px; flex: 0 1 340px; min-width: 0; min-height: 0; height: auto; padding: 4px 8px 4px 4px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; box-shadow: none; }
#gb-pdp-root button.gbp-dbar-prod:hover { background: var(--soft); }
#gb-pdp-root button.gbp-dbar-prod .gbp-dbar-name { flex: 1 1 auto; }
#gb-pdp-root button.gbp-topbar-title { min-height: 0; height: 44px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; box-shadow: none; }
#gb-pdp-root button.gbp-topbar-title:active { background: var(--soft); }

/* 2.21.32 描述折叠：图片晚加载也能折叠；PC 折叠高度 640；展开后「收起」按钮吸底，长图中途也能一键收起 */
#gb-pdp-root .gbp-desktop .gbp-desc.is-folded .gbp-desc-body { max-height: 640px; }
#gb-pdp-root .gbp-desc.is-folded .gbp-desc-toggle { position: relative; margin-top: -8px; }
#gb-pdp-root .gbp-desc.is-open .gbp-desc-toggle { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin-top: 12px; background: rgba(255, 255, 255, .96) !important; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(16, 40, 24, .12); backdrop-filter: blur(6px); }
#gb-pdp-root .gbp-desktop .gbp-desc.is-open .gbp-desc-toggle { bottom: 16px; }

/* 2.21.34 手机顶部按钮：页面一滚就固定在屏幕顶部（此前在主题头部与大图之间会被推出屏幕一半） */
#gb-pdp-root .gbp-topbar.is-pinned { position: fixed; z-index: 400; }
/* 左边缘右滑返回的跟手提示 */
#gb-pdp-root .gbp-swipe-back { position: fixed; left: 0; top: 50%; z-index: 100300; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 6px 18px rgba(16, 40, 24, .22); opacity: 0; transform: translate(-44px, -50%); pointer-events: none; transition: background-color .12s, color .12s; }
#gb-pdp-root .gbp-swipe-back.is-ready { background: var(--g); color: #fff; }

/* 2.21.35 写评论：图片（最多 5 张） */
#gb-pdp-root .gbp-photo-pick { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed #cfdccf; border-radius: 14px; background: #fafcfa; transition: border-color .15s, background-color .15s; }
#gb-pdp-root .gbp-photo-pick.is-drag { border-color: var(--g); background: var(--tint); }
#gb-pdp-root .gbp-photo-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 700; }
#gb-pdp-root .gbp-photo-head small { color: var(--mut); font-weight: 500; }
#gb-pdp-root .gbp-photo-count { color: var(--mut); font-size: 12px; font-weight: 600; }
#gb-pdp-root .gbp-photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
#gb-pdp-root .gbp-photo-item, #gb-pdp-root .gbp-photo-add { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
#gb-pdp-root .gbp-photo-item { background: #eef2ee; }
#gb-pdp-root .gbp-photo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
#gb-pdp-root .gbp-photo-item.is-processing img { opacity: .45; filter: blur(1px); }
#gb-pdp-root .gbp-photo-spin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2.5px solid rgba(47, 138, 47, .25); border-top-color: var(--g); border-radius: 50%; animation: gbp-spin .8s linear infinite; }
@keyframes gbp-spin { to { transform: rotate(360deg); } }
#gb-pdp-root .gbp-photo-del { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(16, 24, 18, .62); color: #fff; cursor: pointer; }
#gb-pdp-root .gbp-photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed #b9cdb9; background: #fff; color: var(--gd); font-size: 11.5px; font-weight: 800; cursor: pointer; }
#gb-pdp-root .gbp-photo-add:hover { border-color: var(--g); background: var(--tint); }
#gb-pdp-root .gbp-photo-add input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
#gb-pdp-root .gbp-photo-hint { margin: 0; color: var(--mut); font-size: 12px; line-height: 1.4; }
#gb-pdp-root .gbp-review-form .gbp-btn.is-progress { background: linear-gradient(90deg, var(--gd) var(--gbp-progress, 0%), var(--g) var(--gbp-progress, 0%)) !important; opacity: 1; }
@media (max-width: 380px) { #gb-pdp-root .gbp-photo-grid { gap: 6px; } #gb-pdp-root .gbp-photo-add span { display: none; } }

/* 2.21.38 手机顶栏：主题头部（菜单 / 搜索 / logo 及其吸顶克隆）在详情页隐藏，只留本页顶栏；
   顶栏从一开始就是固定白底条，大图排在它下面，按钮不再浮在图片上、滚动时也不会压住或被主题吸顶头盖住。 */
@media (max-width: 1023px) {
  #gb-pdp-root .gbp-mobile { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
  html.gb-pdp-js body.gb-pdp-v3 .wd-content-layout { padding-top: 0; }
  #gb-pdp-root .gbp-topbar.gbp-mbar { position: fixed; top: 0; z-index: 400; height: calc(56px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 6px 0 4px; gap: 2px; background: #fff; box-shadow: 0 1px 0 var(--line); animation: none; }
  #gb-pdp-root .gbp-topbar.gbp-mbar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(16, 40, 24, .06); }
  #gb-pdp-root .gbp-mbar .gbp-iconbtn { width: 44px; height: 44px; background: transparent; box-shadow: none; }
  #gb-pdp-root .gbp-mbar .gbp-iconbtn:active { background: var(--soft); }
  #gb-pdp-root .gbp-mbar-back .gbp-icon { width: 24px; height: 24px; }
  #gb-pdp-root .gbp-secnav-fixed { top: calc(56px + env(safe-area-inset-top, 0px)); }
}
