/* 默认蓝色主题（后台未设置时） */
.h-fix { background: #0c6be1 !important; }
.logo-text a span { color: #fff !important; }
.logo-brand .brand-title { color: #fff !important; }
.logo-brand .brand-subtitle { color: rgba(255,255,255,0.8) !important; }
.header .nav-bar li a { color: #fff !important; }
.header-help-btn { border-color: rgba(255,255,255,0.5) !important; color: #fff !important; }

/* 商品详情页容器 */
.goods-detail-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 主卡片容器 */
.main-card {
    width: 100%;
    background: rgba(248, 248, 248, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #fff;
}

/* PC端左右分栏布局 */
.goods-layout {
    display: block;
}
.goods-left {
    width: 100%;
}
.goods-right {
    width: 100%;
}

/* 商品图（主图 + 缩略图） */
.goods-cover-section { margin-bottom: 20px; }
.goods-cover-main { position: relative; width: 100%; aspect-ratio: 1; background: #f0f0f0; border-radius: 12px; overflow: hidden; cursor: zoom-in; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.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: cover; display: block; transition: opacity .4s ease; opacity: 0; position: relative; z-index: 1; }
.goods-cover-img.loaded { opacity: 1; }
/* PC 主图左右切换箭头 */
.cover-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 18px; line-height: 36px; 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: 10px; }
.cover-arrow-next { right: 10px; }
.cover-arrows-hidden .cover-arrow { display: none; }
/* PC 缩略图 */
.goods-thumbs-wrap { position: relative; margin-top: 10px; }
.goods-thumbs { display: flex; gap: 8px; overflow: hidden; padding: 2px 0; }
.goods-thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s, transform .15s; background: #f0f0f0; -webkit-mask-image: -webkit-radial-gradient(white, black); 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: var(--theme-primary, #2196F3); }
.goods-thumb.active { transform: translateY(-1px); }
.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; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 13px; line-height: 24px; text-align: center; cursor: pointer; z-index: 2; transition: background .2s; user-select: none; }
.thumb-arrow:hover { background: rgba(0,0,0,.6); }
.thumb-arrow-prev { left: -4px; }
.thumb-arrow-next { right: -4px; }
/* 移动端：滑动画廊 + 计数器 */
.goods-swiper { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #f0f0f0; display: none; touch-action: pan-y; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.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: #f0f0f0; }
.goods-swiper-slide::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-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; letter-spacing: .5px; }
.goods-thumbs-empty { display: 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: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 48px; 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: 24px; }
.gimg-lightbox .lb-next { right: 24px; }
.gimg-lightbox .lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 14px; }
@media (max-width: 768px) {
    .gimg-lightbox .lb-arrow { width: 40px; height: 40px; line-height: 40px; font-size: 22px; }
    .gimg-lightbox .lb-prev { left: 8px; }
    .gimg-lightbox .lb-next { right: 8px; }
    /* 移动端：隐藏 PC 主图+缩略图，显示滑动画廊 */
    .goods-cover-main { display: none; }
    .goods-thumbs-wrap { display: none; }
    .goods-swiper { display: block; }
}

/* 商品标题 */
.goods-title-section { margin-bottom: 15px; }
.goods-title { font-size: 20px; font-weight: 600; color: #333; line-height: 1.4; margin: 0; }
.goods-meta { font-size: 13px; color: #999; margin-top: 8px; }
.goods-meta span { margin-right: 15px; }

/* 规格选择区域 */
.spec-section { margin-bottom: 20px; }
.spec-group { margin-bottom: 15px; }
.spec-group:last-child { margin-bottom: 0; }
.spec-group-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 10px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-option {
    padding: 8px 15px;
    border: 1px solid transparent;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}
.spec-option:hover { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.05); border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3); }
.spec-option.active { background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); border-color: var(--theme-primary, #2196F3); color: var(--theme-primary-dark, #1976D2); font-weight: 500; position: relative; }
.spec-option.active::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 12px 12px; border-color: transparent transparent var(--theme-primary, #2196F3) transparent; }
.spec-option.disabled { opacity: 0.5; cursor: not-allowed; background: #eee; text-decoration: line-through; }

/* 购买表单区域 */
.buy-form-section { display: none; }
.buy-form-section.show { display: block; }

/* 小标题 */
.section-label { font-size: 16px; color: #333; font-weight: 600; margin-bottom: 12px; }
.required-star { color: var(--theme-price, #ff6600); margin-right: 4px; }

/* 商品描述框 */
.goods-description-box { background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 20px; width: 100%; box-sizing: border-box; border: 1px solid #eee; }
.goods-description-box .intro { font-size: 13px; line-height: 1.8; color: #555; padding: 0; margin: 0; }
.goods-description-box .intro img { max-width: 100%; border-radius: 8px; margin: 10px 0; }

/* 优惠券区域样式 */
.coupon-toggle-row { background: #fff; border-radius: 8px; padding: 10px 15px 10px 15px;border: 1px solid #eee; }
.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: var(--theme-accent, #ff9800); border-color: var(--theme-accent, #ff9800); }
.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; }
.coupon-input { flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; outline: none; }
.coupon-input:focus { border-color: var(--theme-accent, #ff9800); }
.coupon-check-btn { height: 40px; padding: 0 20px; background: var(--theme-accent, #ff9800); color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.coupon-check-btn:hover { background: var(--theme-accent-dark, #f57c00); }
.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; }

/* 价格和数量同行布局 */
.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: var(--theme-price, #ff6600); 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: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.quantity-btn { width: 28px; height: 28px; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; border: none; font-size: 16px; }
.quantity-btn:hover { background: #f5f5f5; }
.quantity-input { width: 36px; height: 28px; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 13px; font-weight: 600; color: #333; outline: none; }

/* 库存显示 */
.stock-row { margin-bottom: 20px; font-size: 13px; color: #666; }
.stock-row .stock-value { color: var(--theme-primary, #2196F3); 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: 40px; border: none; border-bottom: 1px solid #eee; outline: none; font-size: 15px; color: #f95926 !important; background: #fff; padding: 0 8px; }
.input-field-input:focus { border-bottom-color: var(--theme-primary, #2196F3); }
.input-field-input::placeholder { color: #bbb; }
.input-field-note { font-size: 12px; color: var(--theme-price, #ff6600); padding-left: 14px; margin-top: 4px; }

/* 邮箱字段开关样式 */
.email-field-row { margin-bottom: 0px; }
.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: var(--theme-primary, #2196F3); outline: none; }
.email-input-wrap .email-input::placeholder { color: #999; }
.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: var(--theme-primary, #2196F3); }
.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: 12px; border: 1px solid #eee; border-radius: 10px; background: #fff; transition: all 0.2s; position: relative; display: flex; align-items: center; cursor: pointer; }
.payment-item:hover { border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3); background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.03); }
.payment-item.active { border-color: var(--theme-primary, #2196F3); background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.1); }
.payment-icon { width: 32px; height: 32px; margin-right: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background-color: #f5f5f5; }
.payment-icon img { width: 22px; height: 22px; }
.payment-name { font-size: 13px; font-weight: 500; color: #333; }
.payment-checked { width: 20px; height: 20px; color: var(--theme-primary, #2196F3); position: absolute; top: -6px; right: -6px; background: #fff; border-radius: 50%; font-size: 18px; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.payment-item.active .payment-checked { display: flex; }

/* 底部支付栏 */
.drawer-footer { margin-top: 20px; width: 100%; position: relative; }
.pay-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(248, 248, 248, 0.8); border-radius: 8px; padding: 12px 15px; box-shadow: inset 0px 0px 4px rgb(255 255 255/0%), inset 3px 3px 10px rgb(55 84 170/10%), inset -3px -3px 10px rgb(55 84 170/8%), 0px 0px 0px rgb(255 255 255/20%) !important; }
.pay-amount { font-size: 13px; color: #333; }
.pay-amount .dynamic-price { font-size: 18px; font-weight: 700; color: var(--theme-price, #ff6600); }
.pay-btn { background: var(--theme-button, #2f69d9); color: #fff; border: none; border-radius: 8px; padding: 12px 35px; font-size: 13px; font-weight: 500; cursor: pointer; }
.pay-btn:hover { background: var(--theme-button-dark, #2558c4); }

.kami-page-header {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: none;
    align-items: center;
    position: relative;
}
.kami-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--theme-primary, #0c6be1);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.kami-back-btn:hover {
    color: var(--theme-primary-dark, #0a5bc4);
}
.kami-page-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.kami-share-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: none;
    position: relative;
    z-index: 1;
}
.kami-share-btn i {
    font-size: 14px;
}
.kami-share-btn:hover {
    color: var(--theme-primary, #0c6be1);
}

/* 优惠券倒计时条样式 - 悬浮在确认付款按钮上方 */
/* PC端默认样式 */
#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://dc.moncloud.cn/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: var(--theme-primary, #0c6be1); color: #fff; border-radius: 8px; height: 40px; line-height: 40px; }

/* 隐藏底部信息 */
.main-footer { display: none; background: transparent !important; border-top: none !important; margin-top: 0 !important; }
.footer-nav { display: none; }

/* 右侧悬浮按钮 */
.float-help-btn { position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 998; width: 45px; height: auto; 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; }

/* PC端适配 */
@media (min-width: 769px) {
    .goods-detail-container { max-width: 1140px; margin: 30px auto; padding: 0 15px; }
    .main-card { padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

    /* PC端左右分栏布局 */
    .goods-layout { display: flex; gap: 40px; }
    .goods-left { width: 400px; flex-shrink: 0; position: sticky; top: 100px; align-self: flex-start; }
    .goods-right { flex: 1; min-width: 0; }
    .goods-cover-section { margin-bottom: 0; }

    .pc-share-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        padding: 10px 0;
        background: #f8f9fa;
        border-radius: 8px;
        color: #666;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        border: 1px solid #eee;
    }
    .pc-share-btn:hover {
        background: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.05);
        border-color: rgba(var(--theme-primary-rgb, 33, 150, 243), 0.3);
        color: var(--theme-primary, #0c6be1);
    }

    .goods-title { font-size: 24px; }
    .spec-options { gap: 12px; }
    .spec-option { padding: 8px 20px; font-size: 14px; }
    .goods-description-box { padding: 20px; }
    .price-quantity-row { padding: 15px 0; margin-bottom: 25px; }
    .section-label { font-size: 16.5px; font-weight: bold; }
    .section-value { font-size: 23px; padding-left: 12px; }
    .section-value .unit { font-size: 14px; }
    .quantity-selector { border-radius: 8px; }
    .quantity-btn { width: 38px; height: 38px; font-size: 14px; }
    .quantity-input { width: 50px; height: 38px; font-size: 15px; }
    .stock-row { font-size: 14px; margin-bottom: 25px; }
    .input-field-row { margin-bottom: 20px; }
    .input-field-header { gap: 15px; margin-bottom: 8px; }
    .input-field-input { height: 40px; font-size: 14px; padding: 0 10px; }
    .input-field-note { font-size: 13px; padding-left: 14px; margin-top: 5px; }
    .payment-methods { gap: 15px; }
    .payment-item { padding: 15px; border-radius: 10px; }
    .payment-icon { width: 36px; height: 36px; margin-right: 12px; }
    .payment-icon img { width: 24px; height: 24px; }
    .payment-name { font-size: 14px; font-weight: 600; }
    .drawer-footer { margin-top: 30px; }
    .pay-bar { padding: 12px 15px; border-radius: 8px; }
    .pay-amount { font-size: 15px; }
    .pay-amount .dynamic-price { font-size: 20px; }
    .pay-btn { padding: 12px 35px; font-size: 16px; border-radius: 6px; }
    .float-help-btn { right: calc((100vw - 1140px) / 2 - 70px); width: 50px; }
    /* PC端倒计时条位置 - 确保与单页购买模式一致 */
    #coupon-countdown-bar { top: -25px; right: 15px; }
    #coupon-countdown { font-size: 14px; padding: 8px 25px; }
}
@media (min-width: 1400px) {
    .float-help-btn { right: calc((100vw - 1140px) / 2 - 80px); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header { display: none !important; }
    .goods-detail-container { margin: 15px auto; }
    .payment-methods { grid-template-columns: repeat(2, 1fr); }
    .price-quantity-row { gap: 20px; }
    .pc-share-btn { display: none; }
    .goods-swiper { border-radius: 8px; }
    .goods-cover-section { margin-bottom: 12px; }
    .kami-page-header { display: flex; margin-top: 0px; margin-bottom: 15px; padding: 12px 15px; position: relative; z-index: 1001; box-sizing: border-box; }
    .kami-page-header-placeholder { display: none; height: 0; }
    .kami-page-header-placeholder.is-active { display: block; }
    .kami-page-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; margin-top: 0; border-radius: 0; }
    .goods-title-section { margin-top: 0; }
    .drawer-footer { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid rgba(0, 0, 0, 0.1); padding: 10px 15px; margin-top: 0; 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; }
    .pay-bar { padding: 8px 12px; }
    .pay-btn { padding: 10px 25px; font-size: 13px; }
    .buy-form-section.show { padding-bottom: 0px; }
    .main-footer { padding-bottom: 100px !important; }
}

/* 深色模式适配 */
html[data-theme="dark"] .main-card, html.dark-mode .main-card { background: #1e1e1e; }
html[data-theme="dark"] .goods-title, html.dark-mode .goods-title { color: #e0e0e0; }
html[data-theme="dark"] .goods-meta, html.dark-mode .goods-meta { color: #888; }
html[data-theme="dark"] .spec-group-title, html[data-theme="dark"] .section-label, html.dark-mode .spec-group-title, html.dark-mode .section-label { color: #e0e0e0; }
html[data-theme="dark"] .spec-option, html.dark-mode .spec-option { background: #2a2a2a; color: #e0e0e0; border-color: #333; }
html[data-theme="dark"] .spec-option:hover, html.dark-mode .spec-option:hover { background: #333; border-color: #555; }
html[data-theme="dark"] .spec-option.active, html.dark-mode .spec-option.active { background: rgba(var(--theme-primary-rgb), 0.2); border-color: var(--theme-primary); color: var(--theme-primary-light); }
html[data-theme="dark"] .goods-description-box, html.dark-mode .goods-description-box { background: #252525; }
html[data-theme="dark"] .goods-description-box .intro, html.dark-mode .goods-description-box .intro { color: #b0b0b0; }
html[data-theme="dark"] .coupon-toggle-row, html.dark-mode .coupon-toggle-row { background: #252525; }
html[data-theme="dark"] .coupon-checkbox-box, html.dark-mode .coupon-checkbox-box { background: #2a2a2a; border-color: #444; }
html[data-theme="dark"] .coupon-toggle-text, html.dark-mode .coupon-toggle-text { color: #b0b0b0; }
html[data-theme="dark"] .coupon-input-area, html.dark-mode .coupon-input-area { border-top-color: #444; }
html[data-theme="dark"] .coupon-input, html.dark-mode .coupon-input { background: #2a2a2a; border-color: #444; color: #e0e0e0; }
html[data-theme="dark"] .input-field-input, html.dark-mode .input-field-input { background: transparent; color: #e0e0e0 !important; border-bottom-color: #444; }
html[data-theme="dark"] .input-field-input::placeholder, html.dark-mode .input-field-input::placeholder { color: #666; }
html[data-theme="dark"] .email-field-row, html.dark-mode .email-field-row { background: #252525 !important; }
html[data-theme="dark"] .email-field-title, html[data-theme="dark"] .email-field-desc, html.dark-mode .email-field-title, html.dark-mode .email-field-desc { color: #b0b0b0; }
html[data-theme="dark"] .email-input, html.dark-mode .email-input { background: #2a2a2a !important; border-color: #444 !important; color: #e0e0e0 !important; }
html[data-theme="dark"] .payment-item, html.dark-mode .payment-item { background: #252525; border-color: #333; }
html[data-theme="dark"] .payment-item:hover, html.dark-mode .payment-item:hover { background: #2a2a2a; border-color: #555; }
html[data-theme="dark"] .payment-item.active, html.dark-mode .payment-item.active { background: rgba(var(--theme-primary-rgb), 0.2); border-color: var(--theme-primary); }
html[data-theme="dark"] .payment-name, html.dark-mode .payment-name { color: #e0e0e0; }
html[data-theme="dark"] .payment-icon, html.dark-mode .payment-icon { background: #333; }
html[data-theme="dark"] .pay-bar, html.dark-mode .pay-bar { background: #252525; }
html[data-theme="dark"] .pay-amount, html.dark-mode .pay-amount { color: #e0e0e0; }
html[data-theme="dark"] .quantity-selector, html.dark-mode .quantity-selector { border-color: #444; }
html[data-theme="dark"] .quantity-btn, html.dark-mode .quantity-btn { background: #2a2a2a; color: #e0e0e0; }
html[data-theme="dark"] .quantity-btn:hover, html.dark-mode .quantity-btn:hover { background: #333; }
html[data-theme="dark"] .quantity-input, html.dark-mode .quantity-input { background: #252525; color: #e0e0e0; border-color: #444; }
html[data-theme="dark"] .drawer-footer, html.dark-mode .drawer-footer { background: #1e1e1e; }
/* 公告栏样式 */
.roll-notice-bar { background: linear-gradient(135deg, var(--theme-primary, #2196F3), var(--theme-secondary, #1976D2)); border-radius: 8px; padding: 10px 15px; display: flex; align-items: center; margin-bottom: 15px; overflow: hidden; }
.roll-notice-bar i { color: #fff; font-size: 18px; margin-right: 10px; flex-shrink: 0; }
.roll-notice-content { flex: 1; overflow: hidden; white-space: nowrap; }
.roll-notice-content span { display: inline-block; color: #fff; font-size: 13px; animation: roll-scroll 15s linear infinite; }
@keyframes roll-scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
html[data-theme="dark"] .roll-notice-bar { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.notice-bar { background: #fff; border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,0.05); margin-bottom: 15px; border-left: 4px solid var(--theme-primary, #2196F3); }
.notice-bar i { color: var(--theme-primary, #2196F3); font-size: 18px; margin-right: 12px; flex-shrink: 0; }
.notice-content { color: #666; font-size: 13px; flex: 1; line-height: 1.6; }
html[data-theme="dark"] .notice-bar { background: #1e1e1e; box-shadow: 0 1px 6px rgba(0,0,0,0.2); }
html[data-theme="dark"] .notice-content { color: #b0b0b0; }

/* 底部独立的"商品详情"通栏板块 */
.goods-detail-section {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(248, 248, 248, 0.5);
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.goods-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #e8e8e8;
}
.goods-detail-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--theme-primary, #2196F3);
    border-radius: 2px;
}
.goods-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.goods-detail-body .intro {
    font-size: 14px;
    line-height: 1.85;
    color: #555;
    word-break: break-word;
}
.goods-detail-body .intro img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}
.goods-detail-body .intro p { margin: 0 0 10px; }
.goods-detail-body .intro:empty::before,
.goods-detail-body .intro:not(:has(*)):empty::before { content: '暂无说明'; color: #aaa; }

@media (min-width: 769px) {
    .goods-detail-section {
        max-width: 1140px;
        padding: 30px 40px;
        margin-top: 24px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .goods-detail-header { padding-bottom: 18px; margin-bottom: 22px; }
    .goods-detail-bar { width: 4px; height: 20px; }
    .goods-detail-title { font-size: 18px; }
    .goods-detail-body .intro { font-size: 15px; line-height: 1.9; }
}

@media (max-width: 768px) {
    .goods-detail-section {
        margin: 15px auto 30px;
        padding: 16px;
    }
    .goods-detail-title { font-size: 15px; }
    .goods-detail-body .intro { font-size: 13.5px; line-height: 1.8; }
}

html[data-theme="dark"] .goods-detail-section,
html.dark-mode .goods-detail-section {
    background: #1e1e1e;
    border-color: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .goods-detail-header,
html.dark-mode .goods-detail-header { border-bottom-color: #333; }
html[data-theme="dark"] .goods-detail-title,
html.dark-mode .goods-detail-title { color: #e0e0e0; }
html[data-theme="dark"] .goods-detail-body .intro,
html.dark-mode .goods-detail-body .intro { color: #b0b0b0; }
