
        [x-cloak] { display: none !important; }
        .site-product { overflow-wrap: anywhere; }

        /* 桌面两栏：左图右信息，窄屏改为单列。 */
        .product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin: 0 0 40px; }
        .product-media, .product-info { min-width: 0; }
        .product-info h1 { margin: 0 0 12px; }
        .product-summary { margin: 0 0 16px; color: var(--color-muted); }
        .product-price-block { margin: 0 0 12px; }
        .product-points { margin: 0 0 16px; color: var(--color-muted); font-size: 14px; }

        .product-gallery { margin: 0; }
        .product-gallery-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; border: 1px solid var(--color-border); border-radius: 8px; }
        .product-gallery-stage > * { position: absolute; inset: 0; }
        .product-gallery-image { display: block; width: 100%; height: 100%; padding: 0; background: #f5f5f5; border: 0; cursor: zoom-in; }
        .product-gallery-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
        .product-gallery-video { background: #000; }
        .product-gallery-video iframe, .product-gallery-video video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
        .product-gallery-single > * { position: static; display: block; width: 100%; height: 100%; object-fit: contain; }
        .product-gallery-thumbs { display: flex; gap: 8px; max-width: 100%; margin: 10px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; -webkit-overflow-scrolling: touch; }
        .product-gallery-thumbs li { flex: 0 0 auto; }
        .product-gallery-thumb { position: relative; display: block; width: 76px; height: 76px; padding: 0; overflow: hidden; background: #f5f5f5; border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
        .product-gallery-thumb.is-active { border-color: var(--color-primary); }
        .product-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
        .product-gallery-thumb-video { background: #171717; }
        .product-gallery-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(17, 17, 17, .3); }
        .product-gallery-thumb-play svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
        .product-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: rgba(17, 17, 17, .94); }
        .product-lightbox-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
        .product-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
        .product-lightbox-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; color: #fff; font-size: 28px; line-height: 1; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; cursor: pointer; }
        .product-lightbox-nav { position: absolute; top: 50%; width: 44px; height: 44px; color: #fff; font-size: 30px; line-height: 1; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; cursor: pointer; transform: translateY(-50%); }
        .product-lightbox-prev { left: 12px; }
        .product-lightbox-next { right: 12px; }
        .product-lightbox-counter { position: absolute; bottom: 14px; left: 50%; margin: 0; color: #fff; font-size: 14px; transform: translateX(-50%); }

        /* 规格选择与购买栏。 */
        .product-picker { margin: 0; }
        .product-spec-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
        .product-spec-label { color: var(--color-muted); }
        .product-spec-option { padding: 4px 12px; color: var(--color-text); background: #fff; border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; }
        .product-spec-option.is-active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
        .product-selected { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
        .product-selected-image { display: block; width: 88px; height: 88px; margin: 10px 0 0; object-fit: cover; border: 1px solid var(--color-border); border-radius: 6px; }
        .product-price { margin: 0 0 4px; color: var(--color-price); font-size: 26px; font-weight: 600; }
        .product-price del { margin-left: 8px; color: var(--color-muted); font-size: 14px; font-weight: 400; }
        .product-bulk-discount { margin-left: 8px; color: var(--color-muted); font-size: 14px; font-weight: 400; }
        .price-tax-note { margin: 4px 0 0; color: var(--color-muted); font-size: 13px; }
        .product-customer-level { margin: 4px 0 0; color: var(--color-muted); font-size: 14px; }
        .product-stock { margin: 10px 0 0; color: var(--color-muted); }
        .product-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
        .product-qty { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
        /* 16px 可避免 iPhone Safari 聚焦数字框时自动放大页面、把 +/− 按钮挤偏。 */
        .product-qty input { width: 72px; padding: 6px 8px; font-size: 16px; text-align: center; border: 1px solid var(--color-border); border-radius: 6px; }
        .product-qty-btn { width: 32px; height: 32px; padding: 0; color: var(--color-text); font-size: 18px; line-height: 1; background: #fff; border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; touch-action: manipulation; }
        .product-qty-btn:disabled { color: #9ca3af; cursor: not-allowed; }
        .product-qty-message { flex-basis: 100%; margin: 0; color: var(--color-danger); font-size: 13px; }
        .product-card-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
        .product-card-cart .product-qty input { width: 56px; }
        .product-card-add { padding: 7px 12px; color: var(--color-on-primary); font-size: 14px; background: var(--color-primary); border: 0; border-radius: 6px; cursor: pointer; touch-action: manipulation; }
        .product-card-add:hover { background: var(--color-primary-hover); }
        .product-card-add:disabled { opacity: .6; cursor: not-allowed; }
        .product-card-cart-message { flex-basis: 100%; margin: 0; color: var(--color-danger); font-size: 13px; }
        .product-card-cart-message:empty { display: none; }
        .product-bulk-info { margin: 10px 0 0; color: var(--color-muted); font-size: 14px; }
        .product-bulk-info p { margin: 0 0 2px; }
        .product-unavailable { color: var(--color-danger); }

        /* 全宽内容区。 */
        .product-section { margin: 0 0 36px; }
        .product-section h2 { margin: 0 0 14px; padding-bottom: 10px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
        .product-spec-table { display: grid; margin: 0; border-top: 1px solid var(--color-border); }
        .product-spec-row { display: grid; grid-template-columns: 30% minmax(0, 1fr); border-bottom: 1px solid var(--color-border); }
        .product-spec-row dt, .product-spec-row dd { margin: 0; padding: 10px 12px; vertical-align: top; }
        .product-spec-row dt { color: var(--color-muted); font-weight: 500; background: #f5f5f5; }
        .product-sku-table-wrap { margin-top: 16px; }
        .product-sku-table { width: 100%; margin: 0; border-collapse: collapse; }
        .product-sku-table th, .product-sku-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
        .product-sku-table thead th { color: var(--color-muted); font-weight: 500; background: #f5f5f5; }
        .product-sku-table img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
        .product-procurement dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
        .product-procurement dt { color: var(--color-muted); }
        .product-procurement dd { margin: 0; }
        .product-certifications { margin: 0; padding-left: 18px; }
        .product-after-sales-list { margin: 0; padding-left: 20px; }
        .product-after-sales-list li { margin: 4px 0; }
        .product-faq { margin: 0 0 36px; }
        .product-faq h2 { margin: 0 0 14px; padding-bottom: 10px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
        .product-faq dt { margin-top: 12px; font-weight: 500; }
        .product-faq dd { margin: 4px 0 0; color: var(--color-muted); }

        @media (max-width: 768px) {
            .product-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
            .product-section { margin-bottom: 28px; }
            .product-procurement dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
            .product-procurement dd { margin-bottom: 8px; }
        }

        @media (max-width: 480px) {
            .product-gallery-thumb { width: 64px; height: 64px; }
            .product-lightbox { padding: 56px 12px; }
            .product-lightbox-nav { width: 38px; height: 38px; font-size: 26px; }
        }
    

        .cart-error { padding: 10px 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
        .cart-table { width: 100%; margin: 0 0 20px; border-collapse: collapse; }
        .cart-table th, .cart-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
        .cart-table thead th { color: var(--color-muted); font-weight: 500; background: #f5f5f5; }
        .cart-qty { display: flex; gap: 6px; align-items: center; }
        .cart-qty input { width: 72px; padding: 6px 8px; border: 1px solid var(--color-border); border-radius: 6px; }
        .cart-qty button, .cart-remove button { padding: 6px 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; }
        .cart-bulk-note { margin: 4px 0 0; color: var(--color-muted); font-size: 13px; }
        .cart-compare { margin-right: 6px; color: var(--color-muted); font-size: 14px; }
        .cart-tier { display: block; margin-top: 2px; color: var(--color-muted); font-size: 13px; }
        .cart-unbuyable { display: inline-block; margin-left: 8px; color: var(--color-danger); }
        .cart-qty-error { margin: 4px 0 0; color: var(--color-danger); font-size: 13px; }
        .cart-breakdown { display: grid; gap: 6px; max-width: 320px; margin-left: auto; }
        .cart-breakdown > div { display: flex; justify-content: space-between; gap: 12px; }
        .cart-total { text-align: right; }
        .cart-total strong { color: var(--color-price); font-size: 20px; }
        .cart-checkout { display: inline-block; margin: 12px 0 0 auto; padding: 10px 24px; color: #fff; background: var(--color-primary); border-radius: 6px; text-decoration: none; }
    

        .checkout-error, .form-error-summary { padding: 10px 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; }
        .form-error { margin: 4px 0 0; color: #b91c1c; font-size: 14px; }
        .checkout-list { width: 100%; margin: 0 0 20px; border-collapse: collapse; }
        .checkout-list th, .checkout-list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); }
        .checkout-list thead th { color: var(--color-muted); font-weight: 500; background: #f5f5f5; }
        .checkout-tier { display: block; margin-top: 2px; color: var(--color-muted); font-size: 13px; }
        .checkout-shipping { padding: 10px 14px; margin: 0 0 16px; background: #f5f5f5; border-radius: 6px; color: var(--color-muted); }
        .checkout-form { display: grid; gap: 14px; max-width: 640px; }
        .checkout-field { display: grid; gap: 6px; }
        .checkout-field label { font-weight: 500; }
        .checkout-field input, .checkout-field select, .checkout-field textarea { padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; font: inherit; }
        .checkout-field textarea { min-height: 84px; resize: vertical; }
        .checkout-invoice { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--color-border); border-radius: 6px; }
        .checkout-summary { display: grid; gap: 8px; padding: 14px; background: #f5f5f5; border-radius: 6px; }
        .checkout-summary div { display: flex; justify-content: space-between; gap: 12px; }
        .checkout-summary .checkout-total { font-size: 18px; font-weight: 600; }
        .checkout-summary .checkout-total strong { color: var(--color-price); }
        .checkout-payment { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--color-border); border-radius: 6px; }
        .checkout-payment legend { padding: 0 4px; font-weight: 500; }
        .checkout-payment-options { display: grid; gap: 8px; }
        .checkout-payment-option { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; }
        .checkout-payment-option.is-disabled { color: var(--color-muted); background: #f5f5f5; cursor: not-allowed; }
        .checkout-payment-option input { width: auto; }
        .checkout-payment-hint { color: #b91c1c; font-size: 13px; }
        .checkout-payment-balance { color: var(--color-muted); font-size: 13px; }
        .checkout-submit { justify-self: start; padding: 10px 28px; color: #fff; background: var(--color-primary); border: 0; border-radius: 6px; cursor: pointer; }
        .checkout-submit:disabled { background: #9ca3af; cursor: not-allowed; }
        .checkout-payment-disabled { margin: 0; padding: 10px 14px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; }
        .checkout-empty a { color: var(--color-primary); }
        .checkout-address-book { display: grid; gap: 10px; }
        .checkout-book-title { margin: 0; font-weight: 500; }
        .checkout-radio { display: flex; gap: 8px; align-items: center; }
        .checkout-radio input { width: auto; }
        .checkout-address-options { display: grid; gap: 10px; }
        .checkout-address-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; }
        .checkout-address-option input { width: auto; margin-top: 3px; }
        .checkout-address-option.is-disabled { color: var(--color-muted); background: #f5f5f5; cursor: not-allowed; }
        .checkout-address-unshippable { display: block; margin-top: 4px; color: #b45309; font-size: 13px; }
        .checkout-address-option span { display: block; }
        .checkout-address-phone { margin-left: 8px; color: var(--color-muted); }
        .checkout-address-badge { display: inline-block; margin-left: 6px; padding: 0 6px; color: var(--color-primary); background: #f5f5f5; border-radius: 999px; font-size: 12px; }
        .checkout-address-line { margin-top: 4px; color: var(--color-muted); font-size: 14px; line-height: 1.6; }
        .checkout-coupon { display: grid; gap: 6px; }
        .checkout-coupon label { font-weight: 500; }
        .checkout-coupon-row { display: flex; gap: 8px; }
        .checkout-coupon-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 6px; font: inherit; }
        .checkout-coupon-apply { padding: 8px 18px; color: var(--color-primary); background: #fff; border: 1px solid var(--color-primary); border-radius: 6px; cursor: pointer; }
        .checkout-coupon-applied { margin: 0; color: var(--color-primary); font-size: 14px; }
        [x-cloak] { display: none !important; }
    

        .pay-panel { max-width: 560px; padding: 20px; border: 1px solid var(--color-border); border-radius: 8px; }
        .pay-panel dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 16px; margin: 0 0 18px; }
        .pay-panel dt { color: var(--color-muted); }
        .pay-panel dd { margin: 0; }
        .pay-amount { color: #dc2626; font-size: 24px; font-weight: 600; }
        .pay-shipping { padding: 10px 14px; margin: 0 0 16px; background: #f9fafb; border-radius: 6px; color: var(--color-muted); }
        .pay-placeholder { padding: 18px; text-align: center; background: #f9fafb; border: 1px dashed var(--color-border); border-radius: 6px; color: var(--color-muted); }
        .pay-status { margin: 14px 0 0; color: var(--color-muted); }
        .pay-qrcodes { display: flex; flex-wrap: wrap; gap: 16px; }
        .pay-qr { flex: 1 1 200px; padding: 14px; text-align: center; border: 1px solid var(--color-border); border-radius: 8px; }
        .pay-qr h2 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
        .pay-qr img { width: 180px; height: 180px; }
        .pay-claim { margin: 0 0 16px; }
        .pay-claim button { padding: 8px 20px; color: #fff; background: var(--color-primary); border: 0; border-radius: 6px; cursor: pointer; }
    

        .pay-done-panel { max-width: 560px; padding: 20px; border: 1px solid var(--color-border); border-radius: 8px; }
        .pay-done-panel dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 16px; margin: 0 0 18px; }
        .pay-done-panel dt { color: var(--color-muted); }
        .pay-done-panel dd { margin: 0; }
        .pay-done-amount { color: #dc2626; font-size: 24px; font-weight: 600; }
        .pay-done-tip { margin: 0; color: var(--color-muted); }
        .pay-done-home { color: var(--color-primary); }
    
[hidden]{display:none!important}
.cart-table thead th,.cart-qty button,.cart-remove button{background:var(--color-surface);color:var(--color-text)}
.product-sku,.checkout-section{border-radius:var(--radius-card)}

        /* 商品页游客提问表单（三套主题共用结构与类名，配色随主题变量）。 */
        .product-faq-form {
            margin: 0 0 36px;
            padding: 18px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-card);
        }

        .product-faq-form__title {
            margin: 0 0 12px;
            color: var(--color-text);
            font-size: 17px;
            font-weight: 600;
        }

        .product-faq-form__note {
            margin: 0 0 12px;
            padding: 8px 12px;
            font-size: 14px;
            border-radius: var(--radius-control);
        }

        .product-faq-form__note--ok {
            color: var(--color-success);
            background: color-mix(in srgb, var(--color-success) 12%, transparent);
        }

        .product-faq-form__note--error {
            color: var(--color-danger);
            background: var(--color-danger-bg);
            border: 1px solid var(--color-danger-border);
        }

        .product-faq-form__field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0 0 12px;
        }

        .product-faq-form__field label {
            color: var(--color-text);
            font-size: 14px;
            font-weight: 500;
        }

        .product-faq-form__field input,
        .product-faq-form__field textarea {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            padding: 9px 12px;
            color: var(--color-text);
            font: inherit;
            font-size: 15px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-control);
            transition: border-color .15s ease, box-shadow .15s ease;
        }

        .product-faq-form__field input::placeholder,
        .product-faq-form__field textarea::placeholder {
            color: var(--color-muted);
        }

        .product-faq-form__field input:hover,
        .product-faq-form__field textarea:hover {
            border-color: var(--color-primary);
        }

        .product-faq-form__field input:focus,
        .product-faq-form__field textarea:focus {
            border-color: var(--color-primary);
            outline: none;
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
        }

        .product-faq-form__field textarea {
            min-height: 84px;
            resize: vertical;
        }

        .product-faq-form__row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .product-faq-form__actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px 16px;
        }

        .product-faq-form__submit {
            padding: 10px 22px;
            color: var(--color-on-primary);
            font: inherit;
            font-size: 15px;
            background: var(--color-primary);
            border: 0;
            border-radius: var(--radius-control);
            cursor: pointer;
            transition: background .15s ease;
        }

        .product-faq-form__submit:hover {
            background: var(--color-primary-hover);
        }

        .product-faq-form__hint {
            margin: 0;
            color: var(--color-muted);
            font-size: 13px;
        }

        .product-faq-form__trap {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        @media (max-width: 640px) {
            .product-faq-form {
                padding: 14px;
            }

            .product-faq-form__row {
                grid-template-columns: minmax(0, 1fr);
                gap: 0;
            }
        }
