
    /* 修复 BreezyCV 全局 button 样式对商品详情页的影响 */
    .goods-detail-container button:not(.coupon-check-btn),
    .goods-detail-container input[type="button"],
    .goods-detail-container input[type="submit"] {
        border-radius: 8px;
        padding: 0;
        margin-bottom: 0;
        margin-right: 0;
        font-family: inherit;
        box-shadow: none;
        border: none;
        line-height: normal;
    }

    /* 商品详情页容器 */
    .goods-detail-container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0; box-sizing: border-box; }
    /* PC：左右分栏布局（图片 | 购买信息） */
    .goods-layout { display: flex; gap: 30px; align-items: flex-start; }
    .goods-left { flex: 0 0 420px; width: 380px; }
    .goods-right { flex: 1; min-width: 0; }
    .goods-right-scroll { padding-bottom: 20px; }

    /* 商品图集 - PC淘宝风格：左侧竖排缩略图 + 右侧主图 */
    .goods-cover-section { display: flex; gap: 10px; margin-bottom: 16px; }
    .goods-cover-main { position: relative; flex: 1; aspect-ratio: 1; background: #f8f9fb; border-radius: 10px; overflow: hidden; cursor: zoom-in; order: 1; -webkit-transform: translateZ(0); transform: translateZ(0); }
    .goods-cover-main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%); background-size: 400% 100%; animation: goodsSkeleton 1.4s ease infinite; z-index: 0; }
    .goods-cover-img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .4s ease; opacity: 0; position: relative; z-index: 1; }
    .goods-cover-img.loaded { opacity: 1; }
    .cover-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 14px; line-height: 30px; text-align: center; cursor: pointer; user-select: none; transition: background .2s, opacity .2s; opacity: 0; z-index: 2; }
    .goods-cover-main:hover .cover-arrow { opacity: 1; }
    .cover-arrow:hover { background: rgba(0,0,0,.5); }
    .cover-arrow-prev { left: 6px; }
    .cover-arrow-next { right: 6px; }
    .cover-arrows-hidden .cover-arrow { display: none; }

    /* 缩略图 - PC竖排在主图左侧 */
    .goods-thumbs-wrap { position: relative; order: 0; width: 58px; flex-shrink: 0; }
    .goods-thumbs { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overflow-x: hidden; max-height: 314px; padding: 2px; scroll-behavior: smooth; scrollbar-width: none; }
    .goods-thumbs::-webkit-scrollbar { display: none; }
    .goods-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s, transform .15s; background: #f8f9fb; position: relative; }
    .goods-thumb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%); background-size: 400% 100%; animation: goodsSkeleton 1.4s ease infinite; z-index: 0; }
    .goods-thumb:hover, .goods-thumb.active { border-color: #2ec0ff; }
    .goods-thumb.active { transform: scale(1.04); box-shadow: 0 2px 8px rgba(124,77,255,.15); }
    .goods-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; opacity: 0; transition: opacity .35s ease; position: relative; z-index: 1; }
    .goods-thumb img.loaded { opacity: 1; }
    /* 缩略图上下箭头（竖排） */
    .thumb-arrow { position: absolute; left: 50%; transform: translateX(-50%); width: 28px; height: 16px; border-radius: 4px; background: rgba(0,0,0,.25); color: #fff; font-size: 10px; line-height: 16px; text-align: center; cursor: pointer; z-index: 2; transition: background .2s; user-select: none; }
    .thumb-arrow:hover { background: rgba(0,0,0,.5); }
    .thumb-arrow-prev { top: -2px; left: 50%; }
    .thumb-arrow-next { bottom: -2px; left: 50%; top: auto; }

    /* 移动端滑动画廊 */
    .goods-swiper { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #f8f9fb; display: none; touch-action: pan-y; -webkit-transform: translateZ(0); transform: translateZ(0); }
    .goods-swiper-track { display: flex; height: 100%; transition: transform .3s ease; will-change: transform; }
    .goods-swiper-track.no-transition { transition: none; }
    .goods-swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; background: #f8f9fb; }
    .goods-swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .4s ease; position: relative; z-index: 1; }
    .goods-swiper-slide img.loaded { opacity: 1; }
    .goods-swiper-counter { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px; z-index: 2; pointer-events: none; }
    @keyframes goodsSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

    /* 灯箱 */
    .gimg-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
    .gimg-lightbox.show { display: flex; }
    .gimg-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); user-select: none; }
    .gimg-lightbox .lb-close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; opacity: .85; transition: opacity .15s; }
    .gimg-lightbox .lb-close:hover { opacity: 1; }
    .gimg-lightbox .lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; line-height: 44px; text-align: center; cursor: pointer; user-select: none; transition: background .15s; }
    .gimg-lightbox .lb-arrow:hover { background: rgba(255,255,255,.28); }
    .gimg-lightbox .lb-prev { left: 16px; }
    .gimg-lightbox .lb-next { right: 16px; }
    .gimg-lightbox .lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 14px; }


    /* 商品详情板块 - 在左侧图片下方 */
    .goods-detail-section {  padding-top: 18px; border-top: 1px dashed #eef0f5; }
    .goods-detail-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
    .goods-detail-bar { display: inline-block; width: 4px; height: 16px; background: #2ec0ff; border-radius: 2px; }
    .goods-detail-title { font-size: 15px; font-weight: 600; color: #333; }
    .goods-detail-body .intro { font-size: 13px; line-height: 1.8; color: #555; }
    .goods-detail-body .intro img { max-width: 100%; border-radius: 10px; margin: 10px 0; display: block; }
    .goods-detail-body .intro p { margin: 0 0 10px; }

    /* 悬浮帮助按钮 */
    .float-help-btn { display: none; position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 998; width: 42px; cursor: pointer; transition: transform 0.3s ease; }
    .float-help-btn:hover { transform: translateY(-50%) scale(1.1); }
    .float-help-btn img { width: 100%; height: auto; }

    /* ===== 移动端适配 ===== */
    @media (max-width: 768px) {
        .goods-layout { display: block; }
        .goods-left { width: 100%; flex: none; position: static; }
        .goods-right { width: 100%; position: static; display: block; }
        .goods-right-scroll { padding-bottom: 80px; }
        .goods-cover-section { display: block; }
        .goods-cover-main { display: none; }
        .goods-thumbs-wrap { display: none; }
        .goods-swiper { display: block; }
        .float-help-btn { display: block; right: 10px; width: 38px; }
        .gimg-lightbox .lb-arrow { width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
        .gimg-lightbox .lb-prev { left: 8px; }
        .gimg-lightbox .lb-next { right: 8px; }
    }
    .goods-title-section { margin-bottom: 18px; }
    .goods-title { font-size: 20px; font-weight: 600; color: #1a1a2e; line-height: 1.4; margin: 0; letter-spacing: -0.3px; }
    .goods-meta { font-size: 13px; color: #aaa; margin-top: 10px; display: flex; gap: 20px; }
    .goods-meta span { display: inline-flex; align-items: center; gap: 4px; }
    .spec-section { margin-bottom: 20px; }
    .spec-group { margin-bottom: 15px; }
    .spec-group:last-child { margin-bottom: 0; }
    .spec-group-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 10px; }
    .spec-options { display: flex; flex-wrap: wrap; gap: 10px; }
    .spec-option { padding: 9px 18px; border: 1.5px solid #eef0f5; background: #f8f9fb; border-radius: 10px; font-size: 13px; color: #444; cursor: pointer; transition: all 0.25s; overflow: hidden; font-weight: 500; }
    .spec-option:hover { background: rgba(124, 77, 255, 0.05); border-color: rgba(124, 77, 255, 0.3); }
    .spec-option.active { background: rgba(124, 77, 255, 0.08); border-color: #2ec0ff; color: #2ec0ff; font-weight: 600; position: relative; }
    .spec-option.active::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 14px 14px; border-color: transparent transparent #2ec0ff transparent; }
    .spec-option.disabled { opacity: 0.4; cursor: not-allowed; background: #f0f0f0; text-decoration: line-through; color: #bbb; }
    .buy-form-section { display: none; }
    .buy-form-section.show { display: block; }
    .section-label { font-size: 15px; color: #333; font-weight: 600; margin-bottom: 12px; }
    .required-star { color: #ff5722; margin-right: 4px; }
    /* goods-description-box removed - content now in .goods-detail-section */
    .price-quantity-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
    .price-section, .quantity-section { display: flex; flex-direction: column; gap: 8px; }
    .section-value { font-size: 18px; color: #ff5722; font-weight: 700; padding-left: 10px; }
    .section-value .unit { font-size: 13px; color: #999; font-weight: normal; }
    .market-price { font-size: 13px; color: #bbb; font-weight: normal; text-decoration: line-through; margin-left: 8px; }
    .quantity-selector { display: flex; align-items: center; border: 1.5px solid #eef0f5; border-radius: 10px; overflow: hidden; background: #f8f9fb; }
    .quantity-btn { width: 32px; height: 32px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; border: none; font-size: 16px; transition: background 0.2s; user-select: none; }
    .quantity-btn:hover { background: rgba(0,0,0,0.04); }
    .quantity-input { width: 40px; height: 32px; border: none; border-left: 1.5px solid #eef0f5; border-right: 1.5px solid #eef0f5; text-align: center; font-size: 14px; font-weight: 600; color: #333; outline: none; background: #fff; -moz-appearance: textfield; }
    .quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }
    .stock-row { margin-bottom: 20px; font-size: 13px; color: #666; }
    .stock-row .stock-value { color: #2ec0ff; font-weight: 500; }
    .input-field-row { margin-bottom: 18px; }
    .input-field-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
    .input-field-header .section-label { white-space: nowrap; flex-shrink: 0; margin-bottom: 0; font-size: 16px; }
    .input-field-input { flex: 1; height: 42px; border: none; border-bottom: 1.5px solid #eef0f5; outline: none; font-size: 15px; color: #f95926 !important; background: transparent; padding: 0 8px; transition: border-color 0.25s; }
    .input-field-input:focus { border-bottom-color: #2ec0ff; }
    .input-field-input::placeholder { color: #bbb; }
    .input-field-note { font-size: 12px; color: #ff5722; padding-left: 14px; margin-top: 4px; }
    .email-field-row { margin-bottom: 18px; }
    .email-field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
    .email-field-title { font-size: 16px; font-weight: 600; color: #333; }
    .email-field-desc { font-size: 13px; color: #333; margin-top: 8px; }
    .email-input-wrap { margin-top: 12px; }
    .email-input-wrap .email-input { width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; box-sizing: border-box; }
    .email-input-wrap .email-input:focus { border-color: #2ec0ff; outline: none; }
    .email-switch-label { position: relative; display: inline-block; width: 50px; height: 28px; cursor: pointer; }
    .email-switch-input { opacity: 0; width: 0; height: 0; position: absolute; }
    .email-switch-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #ddd; border-radius: 28px; transition: 0.3s; }
    .email-switch-slider:before { content: ""; position: absolute; height: 24px; width: 24px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
    .email-switch-input:checked + .email-switch-slider { background-color: #2ec0ff; }
    .email-switch-input:checked + .email-switch-slider:before { transform: translateX(22px); }
    .payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .payment-item { padding: 14px; border: 1.5px solid #eef0f5; border-radius: 12px; background: #f8f9fb; transition: all 0.25s; position: relative; display: flex; align-items: center; cursor: pointer; }
    .payment-item:hover { border-color: rgba(124, 77, 255, 0.3); background: #fff; }
    .payment-item.active { border-color: #2ec0ff; background: rgba(124, 77, 255, 0.06); box-shadow: 0 2px 12px rgba(124,77,255,0.1); }
    .payment-icon { width: 36px; height: 36px; margin-right: 10px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background-color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    .payment-icon img { width: 22px; height: 22px; }
    .payment-name { font-size: 13px; font-weight: 500; color: #333; }
    .payment-checked { color: #2ec0ff; position: absolute; top: -6px; right: -6px; background: #fff; border-radius: 50%; font-size: 18px; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .payment-item.active .payment-checked { display: block; }
    .drawer-footer { position: fixed; z-index: 900; box-sizing: border-box; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); padding: 10px 10px; box-shadow: 0 2px 20px rgba(0,0,0,.1); border-radius: 14px; opacity: 0; pointer-events: none; }
    .pay-bar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f8f9fb, #f0f2f8); border-radius: 14px; padding: 8px 18px; border: 1px solid #eef0f5; }
    .pay-amount { font-size: 13px; color: #555; }
    .pay-amount .dynamic-price { font-size: 18px; font-weight: 700; color: #ff5722; }
    .pay-btn { background: #0097a7; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; letter-spacing: 0.3px; }
    .pay-btn:hover { opacity: 0.82; }
    .coupon-toggle-row { background: #f8f9fb; border-radius: 12px; padding: 18px; margin-bottom: 20px; border: 1px solid #eef0f5; }
    .coupon-toggle-header { display: flex; align-items: center; }
    .coupon-checkbox-label { display: flex; align-items: center; cursor: pointer; user-select: none; }
    .coupon-checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
    .coupon-checkbox-box { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 4px; margin-right: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; flex-shrink: 0; }
    .coupon-checkbox:checked + .coupon-checkbox-box { background: #ffc107; border-color: #ffc107; }
    .coupon-checkbox:checked + .coupon-checkbox-box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: bold; }
    .coupon-toggle-text { font-size: 14px; color: #666; font-weight: 500; }
    .coupon-input-area { margin-top: 15px; border-top: 1px dashed #eee; padding-top: 15px; }
    .coupon-input-row { display: flex; gap: 10px; align-items: center; }
    .coupon-input { flex: 1; height: 38px; border: 1.5px solid #eef0f5; border-radius: 8px; padding: 0 14px; font-size: 14px; background: #fff; outline: none; transition: border-color 0.2s; }
    .coupon-input:focus { border-color: #ffc107; }
    .coupon-check-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; background: #ffc107 !important; color: #fff !important; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .coupon-check-btn:hover { opacity: 0.85; }
    .coupon-result { margin-top: 10px; font-size: 13px; }
    .coupon-result.success { color: #4caf50; }
    .coupon-result.error { color: #f44336; }
    .coupon-result .coupon-discount { color: #ff5722; font-weight: bold; font-size: 15px; }
    .coupon-checkbox-label .layui-form-checkbox { display: none !important; }
    #coupon-countdown-bar { position: absolute; top: -25px; right: 15px; transform: scale(0.8); transform-origin: right center; z-index: 10; }
    #coupon-countdown { color: #fff; font-size: 14px; padding: 8px 25px; background: url(https://yanshi2.xzsc.cc/content/plugins/coupon/qianggoubj.png) no-repeat center center; background-size: 100% 100%; text-align: center; white-space: nowrap; }
    .discount-layer { background: #fff; border-radius: 12px; overflow: hidden; }
    .discount-layer .layui-layer-content { background: #fff; }
    .discount-layer .layui-layer-btn { background: #fff; border-top: 1px solid #eee; padding: 15px; }
    .discount-layer .layui-layer-btn a { background: #2ec0ff; color: #fff; border-radius: 8px; height: 40px; line-height: 40px; }
    /* 中等屏幕：缩小图片区域 */
    @media (max-width: 1100px) and (min-width: 769px) {
        .goods-left { flex: 0 0 300px; width: 300px; }
        .goods-layout { gap: 22px; }
        .goods-thumbs { max-height: 300px; }
        .goods-thumb { width: 46px; height: 46px; }
        .goods-thumbs-wrap { width: 52px; }
    }
    @media (max-width: 768px) {
        .goods-detail-container { margin: 15px auto; padding: 0 4px; }

        .payment-methods { grid-template-columns: repeat(2, 1fr); }
        .drawer-footer { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; background: #fff; padding: 10px 15px; z-index: 999; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); padding-bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 0; opacity: 1; pointer-events: auto; }
        .pay-bar { padding: 8px 12px; }
        .pay-btn { padding: 10px 25px; font-size: 13px; }
        /* 商品说明已移到表单后方作为缓冲，无需再留大内边距 */
        .buy-form-section.show { padding-bottom: 8px; }
        /* 任务1：隐藏侧边汉堡图标 */
        .menu-toggle { display: none !important; }
    }

    /* 商品详情页：全端隐藏底部ICP/版权信息 */
    .yfk-card-footer { display: none !important; }

    /* ===== 移动端顶部导航栏 ===== */
    .yfk-goods-mobile-nav {
        display: none;
    }
    .yfk-goods-mobile-nav-placeholder {
        display: none;
        height: 0;
    }
    @media (max-width: 768px) {
        .yfk-goods-mobile-nav {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.82);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
            border: 1px solid rgba(255,255,255,0.9);
            border-radius: 12px;
            padding: 12px 15px;
            margin-bottom: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
            position: relative;
            z-index: 1001;
            box-sizing: border-box;
        }
        /* 吸附状态：固定在可视区顶部 */
        .yfk-goods-mobile-nav.is-stuck {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            margin-top: 0;
            margin-bottom: 0;
            border-radius: 0;
            border-left: none;
            border-right: none;
            border-top: none;
        }
        /* 占位元素：吸附时撑开原有高度，防止内容跳动 */
        .yfk-goods-mobile-nav-placeholder.is-active {
            display: block;
        }
        .yfk-goods-back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--theme-primary, #7c4dff);
            font-size: 15px;
            text-decoration: none;
            padding: 4px 0;
            position: relative;
            z-index: 1;
        }
        .yfk-goods-nav-title {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-size: 16px;
            font-weight: 600;
            color: #1a1a2e;
            white-space: nowrap;
        }
    }
