/* ----------------------------------------------------------------
   Zibll Smart Bundle Styles - Modern List Layout
-----------------------------------------------------------------*/

/* 通用变量 */
:root {
    --primary-color: #2d8cf0;
    --danger-color: #ff3b30;
    --text-main: #333;
    --text-sub: #666;
    --border-color: #eee;
    --bg-hover: #f9f9f9;

    /* ZibllPAY Gradients */
    --linear-bg-1: radial-gradient(#ba6187 40%, rgb(144 224 255 / 0%) 60%) -620px -180px no-repeat, radial-gradient(#743fc3d6 33%, rgb(255 203 87 / 0%) 67%) -120px -24px no-repeat, radial-gradient(#b4684e 40%, rgb(144 224 255 / 0%) 70%) -470px 150px no-repeat, #9e4fa9;
    --linear-bg-2: radial-gradient(#24868994 20%, rgb(134 217 249 / 0%) 60%) -120px -180px no-repeat, radial-gradient(#454faa 33%, rgb(255 203 87 / 0%) 67%) -10px -4px no-repeat, radial-gradient(#7238ae 40%, rgb(144 224 255 / 0%) 70%) -470px 150px no-repeat, #4147b8;
    --linear-bg-8: radial-gradient(#c75c6e 23%, rgb(247 197 86 / 0%) 67% 100%) -285px -24px, radial-gradient(#bf7830 25%, rgb(132 215 247 / 0%) 50% 100%) 520px -250px, #b4663d;
}

body {
    background: var(--linear-bg-2) !important;
    min-height: 100vh;
}

.zib-bundle-alert-mask {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
}

.zib-bundle-alert-mask.is-show {
    opacity: 1;
}

.zib-bundle-alert-dialog {
    width: min(92vw, 420px);
    padding: 28px 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(30, 34, 44, 0.98) 0%, rgba(18, 22, 30, 0.98) 100%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    color: #f8fafc;
    text-align: center;
    transform: translateY(12px) scale(.96);
    transition: transform .18s ease;
}

.zib-bundle-alert-mask.is-show .zib-bundle-alert-dialog {
    transform: translateY(0) scale(1);
}

.zib-bundle-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 18px;
    font-size: 22px;
}

.zib-bundle-alert-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
}

.zib-bundle-alert-message {
    margin: 0 auto 22px;
    color: rgba(248, 250, 252, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.zib-bundle-alert-button {
    min-width: 128px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    transition: transform .16s ease, box-shadow .16s ease;
}

.zib-bundle-alert-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.bundle-page-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2-Column Layout */
.bundle-content-wrapper {
    display: flex;
    gap: 0;
    /* Remove gap, handle with padding */
    align-items: flex-start;
    background: var(--main-bg-2, #fff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 0px;
    /* Space for gradient header */
    position: relative;
    z-index: 10;
}

.bundle-gallery-col {
    width: 52%;
    /* Wider gallery for better image display */
    position: relative;
    top: 0;
    padding: 30px 14px 30px 30px;
    background: var(--main-bg-2, #fff);
}

.bundle-main-col {
    flex: 1;
    width: 48%;
    /* Keep right column balanced after widening gallery */
    padding: 30px 30px 30px 20px;
    background: var(--main-bg, #fcfcfc);
}

/* Remove .bundle-hero styles */

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.hero-badge i {
    margin-right: 5px;
}

/* Gallery Styles */
.bundle-gallery-swiper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.bundle-gallery-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    aspect-ratio: 16/9;
    background: #fff;
    /* Show full image without cropping */
}

.bundle-gallery-swiper .swiper-button-next,
.bundle-gallery-swiper .swiper-button-prev {
    color: #fff;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(2px);
}

.bundle-gallery-swiper .swiper-button-next:after,
.bundle-gallery-swiper .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

.bundle-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 底部说明 */
.bundle-info-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.bundle-info-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.bundle-info-content h1,
.bundle-info-content h2,
.bundle-info-content h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

.bundle-info-content ul,
.bundle-info-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.bundle-info-content li {
    margin-bottom: 5px;
}

.bundle-info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 结算区域 (Inline) */
.bundle-checkout-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.total-price-box {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.total-price-box .price {
    font-size: 24px;
    font-weight: bold;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .bundle-content-wrapper {
        flex-direction: column;
    }

    .bundle-gallery-col,
    .bundle-main-col {
        width: 100%;
        position: static;
    }

    .bundle-gallery-col {
        margin-bottom: 20px;
    }

    .bundle-gallery-col {
        margin-bottom: 20px;
    }

    .bundle-support-head h3 {
        font-size: 21px;
    }
}

/* Gallery Buttons (ZibllPAY Style) */
.bundle-gallery-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: #1c7cd6;
    color: #fff;
}

.btn-default {
    background: var(--main-bg, #f0f0f0);
    color: var(--main-color, #333);
    border: 1px solid var(--main-border-color, #f0f0f0);
}

.btn-default:hover {
    background: var(--main-border-color, #e0e0e0);
    color: var(--main-color, #333);
}

.btn-outline {
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--main-border-color, #ddd);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--main-bg-2, #fff);
}

.bundle-gallery-support-card {
    position: relative;
    margin-top: 26px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
    border: 1px solid rgba(125, 164, 255, 0.22);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.bundle-gallery-support-card::before {
    content: '';
    position: absolute;
    inset: auto -32px -40px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0));
    pointer-events: none;
}

.bundle-gallery-support-card.is-activity {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.14), transparent 28%),
        linear-gradient(180deg, #f5fcff 0%, #ebf8ff 100%);
    border-color: rgba(56, 189, 248, 0.28);
}

.bundle-support-head {
    position: relative;
    z-index: 1;
}

.bundle-support-head h3 {
    margin: 0 0 2px;
    font-size: 20px;
    line-height: 1.3;
    color: #12233d;
    font-weight: 800;
}

.bundle-support-notice-copy {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #29415f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    font-size: 13px;
}

.bundle-support-notice-copy > :first-child {
    margin-top: 0;
}

.bundle-support-notice-copy > :last-child {
    margin-bottom: 0;
}

.bundle-support-notice-copy h1,
.bundle-support-notice-copy h2,
.bundle-support-notice-copy h3,
.bundle-support-notice-copy h4 {
    margin: 0 0 10px;
    color: #10233f;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.bundle-support-notice-copy p {
    margin: 0 0 10px;
}

.bundle-support-notice-copy ul,
.bundle-support-notice-copy ol {
    margin: 0;
    padding-left: 20px;
}

.bundle-support-notice-copy li {
    margin-bottom: 6px;
}

.bundle-support-notice-copy a {
    color: #0f6ad8;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 106, 216, 0.22);
}

.bundle-support-notice-copy a:hover {
    color: #0b57b4;
    border-bottom-color: rgba(11, 87, 180, 0.35);
}

.bundle-support-notice-copy strong {
    color: #10233f;
    font-weight: 800;
}

.bundle-support-notice-copy code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    font-size: 12px;
}

/* Checkout Section (ZibllPAY Style) */
.bundle-checkout-section {
    background: var(--main-bg-2, #fff);
    border-radius: 8px;
    padding: 25px 42px 25px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border: 1px solid var(--main-border-color, #f0f0f0);
}

.total-price-box {
    font-size: 15px;
    color: var(--main-color, #666);
}

.total-price-box .price {
    font-size: 28px;
    font-weight: 700;
    margin-left: 5px;
    color: var(--danger-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#bundle-buy-btn {
    background: linear-gradient(135deg, #ff5b5b 0%, #ff3b30 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
    padding: 10px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#bundle-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.4);
}

.action-right {
    margin-right: 12px;
}

.bundle-checkout-section.is-sale-locked .action-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.bundle-sale-meta {
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 184, 77, 0.12) 0%, rgba(255, 214, 102, 0.08) 100%);
    border: 1px solid rgba(255, 184, 77, 0.22);
    color: #7a4a00;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bundle-sale-title {
    font-size: 14px;
    font-weight: 800;
    color: #6d4300;
    margin-bottom: 4px;
}

.bundle-sale-desc {
    font-size: 12px;
    line-height: 1.7;
    color: #8b5b12;
}

.bundle-sale-desc > :first-child {
    margin-top: 0;
}

.bundle-sale-desc > :last-child {
    margin-bottom: 0;
}

.bundle-disabled-btn {
    background: linear-gradient(180deg, #c8d0da 0%, #aeb8c5 100%) !important;
    border-color: #aeb8c5 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.bundle-alt-action {
    white-space: nowrap;
}

/* 列表项样式 */
.bundle-product-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: #fff;
    gap: 24px;
}

.bundle-product-row:last-child {
    border-bottom: none;
}

.bundle-product-row:hover {
    background-color: var(--bg-hover);
}

.bundle-product-row.active {
    background-color: #f0f7ff;
}

/* 商品信息区域 */
.product-info {
    display: flex;
    align-items: flex-start;
    flex: 0 0 360px;
    min-width: 360px;
    max-width: 360px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid #f0f0f0;
}

.product-meta {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-sub);
    margin: 0;
}

.product-desc-pane {
    flex: 1 1 auto;
    min-width: 220px;
    padding-top: 2px;
}

.product-desc p,
.product-desc ul,
.product-desc ol,
.product-desc h1,
.product-desc h2,
.product-desc h3,
.product-desc h4,
.product-desc h5,
.product-desc h6,
.product-desc pre,
.product-desc blockquote {
    margin: 0 0 10px;
}

.product-desc p:last-child,
.product-desc ul:last-child,
.product-desc ol:last-child,
.product-desc h1:last-child,
.product-desc h2:last-child,
.product-desc h3:last-child,
.product-desc h4:last-child,
.product-desc h5:last-child,
.product-desc h6:last-child,
.product-desc pre:last-child,
.product-desc blockquote:last-child {
    margin-bottom: 0;
}

.product-desc ul,
.product-desc ol {
    padding-left: 18px;
}

.product-desc code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(45, 140, 240, 0.08);
    color: #225ea9;
    font-size: 12px;
}

.product-desc a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-desc a:hover {
    text-decoration: underline;
}

/* 选项样式 */
.product-options {
    margin-top: 8px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
}

.option-group label {
    color: var(--text-sub);
    margin-right: 8px;
    min-width: 40px;
}

.bundle-opt-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 12px;
    color: #555;
    background: #fff;
    outline: none;
}

.bundle-opt-select:focus {
    border-color: var(--primary-color);
}

/* 操作区域 */
.product-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 0;
    flex: 0 0 auto;
    align-self: center;
    min-width: fit-content;
}

/* 数量控制器 */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f8f8;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eee;
    color: var(--primary-color);
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    color: #333;
    background: #fff;
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 删除按钮 */
.remove-product-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-product-btn:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: #fff5f5;
}

/* 分组标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.section-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.section-tag.required {
    background: #fff5f5;
    color: var(--danger-color);
}

.section-tag.optional {
    background: #f0f7ff;
    color: var(--primary-color);
}

/* 底部栏样式细节 */
.total-price-box {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.total-price-box .price {
    font-size: 24px;
    font-weight: 700;
    margin-left: 5px;
}

/* 响应式调整 */
@media (max-width: 1320px) {
    .bundle-product-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .product-info {
        flex: 0 0 360px;
        min-width: 360px;
        max-width: 360px;
    }

    .product-desc-pane {
        flex: 1 1 320px;
        min-width: 260px;
    }

    .product-action {
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
        border-top: 1px dashed rgba(148, 163, 184, 0.22);
    }
}

@media (max-width: 1080px) {
    .bundle-product-row {
        gap: 18px;
        padding: 18px;
    }

    .product-info,
    .product-desc-pane {
        min-width: 0;
        max-width: none;
        flex-basis: 100%;
    }

    .product-action {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .bundle-product-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .product-info,
    .product-desc-pane,
    .product-action {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }

    .product-desc-pane {
        padding-top: 0;
        margin-top: 4px;
    }

    .product-action {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        padding-top: 0;
        border-top: none;
    }

    .bundle-checkout-section.is-sale-locked .action-right {
        align-items: stretch;
        width: 100%;
    }

    .bundle-sale-meta {
        max-width: none;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
    }

    .quantity-control {
        max-width: 100%;
    }

    .qty-input {
        width: 52px;
    }

    .bundle-hero {
        padding: 30px 0 20px;
    }

    .bundle-hero h1 {
        font-size: 24px;
    }

    .bundle-footer-bar {
        padding: 10px 0;
    }

    .total-price-box {
        font-size: 14px;
    }

    .total-price-box .price {
        font-size: 18px;
    }

    #bundle-buy-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* ==========================================
   Dark Mode Adaptation (Safe Overrides)
   ========================================== */
body.dark-theme .bundle-content-wrapper,
body.dark-theme .bundle-gallery-col,
body.dark-theme .bundle-main-col,
body.dark-theme .bundle-info-section,
body.dark-theme .bundle-checkout-section,
body.dark-theme .bundle-product-row {
    background: #2d2d2d !important;
    border-color: #3d3d3d !important;
}

body.dark-theme .bundle-info-content,
body.dark-theme .bundle-info-content h1,
body.dark-theme .bundle-info-content h2,
body.dark-theme .bundle-info-content h3,
body.dark-theme .bundle-info-content p,
body.dark-theme .bundle-info-content li,
body.dark-theme .product-name,
body.dark-theme .product-desc,
body.dark-theme .total-price-box {
    color: #eee !important;
}

body.dark-theme .bundle-product-row:hover {
    background: #333 !important;
}

body.dark-theme .bundle-product-row.active {
    background: #383838 !important;
}

body.dark-theme .bundle-info-content div[class*="zib-"],
body.dark-theme .bundle-info-content .card,
body.dark-theme .bundle-info-content .zib-widget,
body.dark-theme .bundle-info-content .panel,
body.dark-theme .bundle-info-content .item,
body.dark-theme .bundle-info-content .box-body {
    background: #333 !important;
    color: #eee !important;
    border-color: #444 !important;
}

body.dark-theme .qty-btn,
body.dark-theme .qty-input,
body.dark-theme .bundle-opt-select,
body.dark-theme .remove-product-btn {
    background: #333 !important;
    color: #eee !important;
    border-color: #444 !important;
}

body.dark-theme .section-header h2 {
    color: #eee !important;
}

/* ----------------------------------------------------------------
   优惠活动横幅 V2 - 与商城设置保持一致
-----------------------------------------------------------------*/

.bundle-activity-banner-v2 {
    margin-bottom: 18px;
    border-radius: 24px;
    box-shadow:
        0 16px 38px rgba(22, 42, 72, 0.14),
        0 2px 8px rgba(22, 42, 72, 0.06);
    perspective: 1400px;
}

.activity-banner-shell {
    position: relative;
    border-radius: 24px;
}

.activity-banner-shell.has-flip {
    min-height: 124px;
}

.activity-banner-inner {
    position: relative;
}

.activity-banner-shell.has-flip .activity-banner-inner {
    min-height: 124px;
    transform-style: preserve-3d;
    transition: transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.activity-banner-shell.has-flip:hover .activity-banner-inner {
    transform: rotateY(180deg);
}

.activity-banner-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.activity-banner-shell.has-flip .activity-banner-face {
    position: absolute;
    inset: 0;
}

.activity-banner-shell.has-flip .activity-banner-front {
    z-index: 2;
}

.activity-banner-shell.has-flip .activity-banner-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-banner-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 220px;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    position: relative;
    min-height: 124px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
}

.activity-banner-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.activity-banner-content::after {
    content: '';
    position: absolute;
    right: 180px;
    top: -52px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0.55;
    pointer-events: none;
}

/* 重点活动背景色 - 与主题商城一致 */
/* jb- 前缀（渐变） */
.activity-banner-content.jb-red { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%); }
.activity-banner-content.jb-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.activity-banner-content.jb-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.activity-banner-content.jb-yellow { background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%); }
.activity-banner-content.jb-purple { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.activity-banner-content.jb-pink { background: linear-gradient(135deg, #FF4D6A 0%, #FF758C 100%); }
.activity-banner-content.jb-cyan { background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%); }
.activity-banner-content.jb-orange { background: linear-gradient(135deg, #f46436 0%, #f39c12 100%); }
.activity-banner-content.jb-black { background: linear-gradient(135deg, #434343 0%, #000000 100%); }

/* b- 前缀（纯色） - 主题实际使用的格式 */
.activity-banner-content.b-red { background-color: #FF4D4D; }
.activity-banner-content.b-blue { background-color: #409EFF; }
.activity-banner-content.b-green { background-color: #67C23A; }
.activity-banner-content.b-yellow { background-color: #E6A23C; }
.activity-banner-content.b-purple { background-color: #8E44AD; }
.activity-banner-content.b-pink { background-color: #FF4D6A; }
.activity-banner-content.b-cyan { background-color: #00BCD4; }
.activity-banner-content.b-orange { background-color: #FF9800; }
.activity-banner-content.b-black { background-color: #333333; }

/* 默认背景色 */
.activity-banner-content:not([class*="jb-"]):not([class*="b-"]) {
    background-color: #FF4D6A;
}

.activity-banner-back {
    background-blend-mode: soft-light, normal;
}

.activity-back-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    padding: 6px 0;
    text-align: left;
}

.activity-back-title {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.activity-back-desc {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* 左侧：活动信息 */
.activity-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding-right: 26px;
}

.activity-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 54px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.activity-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 8px 24px rgba(12, 24, 44, 0.08);
}

.activity-main-title .fa-bolt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    font-size: 14px;
    color: #FFFFFF;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 6px 16px rgba(0, 0, 0, 0.08);
}

.activity-main-title .title-text {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: inline-block;
    transform-origin: center center;
    will-change: transform;
    animation: bundle-title-sway 4.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.activity-sub-desc {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    display: inline-block;
    white-space: nowrap;
    padding-right: 72px;
    animation: bundle-activity-scroll 22s linear infinite;
}

.activity-sub-desc-wrapper {
    max-width: 620px;
    overflow: hidden;
    position: relative;
    padding: 8px 14px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.activity-sub-desc-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(61, 145, 231, 0.22));
    pointer-events: none;
}

.activity-sub-desc-wrapper:hover .activity-sub-desc {
    animation-play-state: paused;
}

@keyframes bundle-activity-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes bundle-title-sway {
    0%, 16%, 100% {
        transform: translateX(0) rotate(0);
    }
    3% {
        transform: translateX(-4px) rotate(-1deg);
    }
    6% {
        transform: translateX(4px) rotate(1deg);
    }
    9% {
        transform: translateX(-3px) rotate(-0.7deg);
    }
    12% {
        transform: translateX(3px) rotate(0.7deg);
    }
    15% {
        transform: translateX(0) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .activity-main-title .title-text,
    .activity-sub-desc {
        animation: none !important;
    }
}

/* 右侧：倒计时 */
.activity-right {
    width: 220px;
    min-width: 220px;
    padding: 0;
    text-align: right;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 10px;
}

.countdown-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
}

.countdown-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 10px 24px rgba(12, 24, 44, 0.08);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    word-break: normal;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.countdown-timer .countdown-text {
    letter-spacing: -0.02em;
    display: block;
    padding: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.countdown-timer::after {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .activity-banner-shell.has-flip {
        min-height: auto;
    }

    .activity-banner-shell.has-flip .activity-banner-inner {
        min-height: auto;
        transform: none !important;
    }

    .activity-banner-shell.has-flip .activity-banner-face {
        position: relative;
        inset: auto;
    }

    .activity-banner-shell.has-flip .activity-banner-back {
        display: none;
    }

    .activity-banner-content {
        grid-template-columns: 1fr;
        padding: 16px;
        min-height: auto;
    }

    .activity-left {
        margin-bottom: 8px;
    }

    .activity-main-title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .activity-right {
        text-align: left;
        min-width: auto;
        width: auto;
        align-items: flex-start;
    }

    .activity-main-title .title-text {
        font-size: 22px;
    }

    .activity-left {
        padding-right: 0;
    }

    .activity-left::after {
        display: none;
    }

    .activity-main-title {
        width: 100%;
        border-radius: 16px;
    }

    .countdown-timer::after {
        margin-left: 0;
    }
}

/* 暗色主题适配 */
body.dark-theme .activity-banner-content {
    background-color: #E6445F;
}

body.dark-theme .bundle-gallery-support-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(19, 31, 48, 0.94) 0%, rgba(17, 27, 43, 0.96) 100%);
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow:
        0 18px 40px rgba(2, 8, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark-theme .bundle-gallery-support-card.is-activity {
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(13, 25, 42, 0.96) 0%, rgba(10, 19, 33, 0.98) 100%);
    border-color: rgba(45, 212, 191, 0.16);
}

body.dark-theme .bundle-support-head h3,
body.dark-theme .bundle-support-notice-copy h1,
body.dark-theme .bundle-support-notice-copy h2,
body.dark-theme .bundle-support-notice-copy h3,
body.dark-theme .bundle-support-notice-copy h4,
body.dark-theme .bundle-support-notice-copy strong {
    color: #f3f7ff;
}

body.dark-theme .bundle-support-head p {
    color: rgba(205, 220, 237, 0.78);
}

body.dark-theme .bundle-support-notice-copy {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(148, 163, 184, 0.12);
    color: rgba(222, 234, 248, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark-theme .bundle-support-notice-copy a {
    color: #8ecbff;
    border-bottom-color: rgba(142, 203, 255, 0.28);
}

body.dark-theme .bundle-support-notice-copy a:hover {
    color: #b9e0ff;
    border-bottom-color: rgba(185, 224, 255, 0.4);
}

body.dark-theme .bundle-support-notice-copy code {
    background: rgba(255, 255, 255, 0.08);
    color: #e6f1ff;
}

/* 商品价格区域 - 活动模式 */
.product-price .reference-price {
    font-weight: 700;
    font-size: 16px;
}

.bundle-hidden-price-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.price-suffix {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 191, 87, 0.2) 0%, rgba(255, 138, 61, 0.14) 100%);
    border: 1px solid rgba(255, 169, 77, 0.26);
    color: #b85a00;
    font-size: 0.6em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(255, 149, 54, 0.12);
}

.product-price .product-price-note {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 107, 0, 0.12);
    color: #d84d1a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

/* 结算区域 - 活动模式 */
.bundle-checkout-section .bundle-price-status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(64, 158, 255, 0.12);
    color: #1f6fd8;
    font-size: 12px;
    font-weight: 600;
}

.bundle-hidden-price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(244, 249, 255, 0.96) 0%, rgba(234, 243, 255, 0.92) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.bundle-hidden-price-title {
    font-size: 13px;
    font-weight: 800;
    color: #2454a6;
}

.bundle-hidden-price-text {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #1d4ed8;
}

#shop-user-required-modal,
#shop-remark-modal {
    z-index: 1065;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
}

#shop-user-required-modal .modal-dialog,
#shop-remark-modal .modal-dialog {
    z-index: 1066;
}

#shop-user-required-modal .modal-content,
#shop-remark-modal .modal-content {
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
}

#shop-user-required-modal .modal-body,
#shop-remark-modal .modal-body {
    background: var(--main-bg-2, #fff);
}

.bundle-checkout-section .original-total-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 95, 95, 0.1);
    border: 1px solid rgba(255, 95, 95, 0.16);
    color: #c54b4b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(197, 75, 75, 0.8);
    opacity: 1;
    margin: 0 0 6px;
}

.bundle-checkout-section .discount-total-line {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bundle-checkout-section .discount-total-line .price-label {
    color: #333;
}

.bundle-checkout-section .discount-total-line .price {
    font-size: 22px;
}

.bundle-checkout-section .discount-total-line .price .price-suffix {
    font-size: 0.62em;
    padding: 3px 9px;
}

/* 节省金额 - 显示在价格下方 */
.bundle-checkout-section .saved-amount-line {
    margin-top: 6px;
    margin-left: 18px;
}

.bundle-checkout-section .saved-amount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.bundle-checkout-section .saved-amount-badge .saved-text {
    font-size: 14px;
    margin-right: 2px;
}

.bundle-checkout-section .saved-badge {
    font-size: 13px;
    padding: 3px 10px;
    font-weight: 600;
}

/* 活动标签 - 商品卡片上的小角标 */
.bundle-product-row[data-has-discount] .product-meta {
    position: relative;
}

.bundle-product-row[data-has-discount] .product-name::before {
    content: '活动';
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00, #ff3b30);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
    font-weight: 600;
    line-height: 1.4;
}

/* 活动名称标签 */
.activity-name {
    font-size: 12px;
    padding: 2px 8px;
    font-weight: 600;
}

/* 暗色主题适配 */
body.dark-theme .activity-banner-inner .activity-title {
    color: #ffa940;
}

body.dark-theme .activity-banner-inner .activity-desc {
    color: #aaa;
}

body.dark-theme .activity-banner-inner .activity-countdown {
    color: #ff7875;
}

body.dark-theme .product-price .product-price-note {
    background: rgba(255, 179, 71, 0.16);
    color: #ffcb7d;
}

body.dark-theme #shop-user-required-modal,
body.dark-theme #shop-remark-modal {
    background: rgba(2, 8, 23, 0.56);
}

body.dark-theme #shop-user-required-modal .modal-body,
body.dark-theme #shop-remark-modal .modal-body {
    background: var(--main-bg, #1f2329);
}

body.dark-theme .bundle-hidden-price-tag {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.16) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-color: rgba(96, 165, 250, 0.24);
    color: #b9d4ff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

body.dark-theme .price-suffix {
    background: linear-gradient(135deg, rgba(255, 196, 98, 0.2) 0%, rgba(255, 154, 80, 0.16) 100%);
    border-color: rgba(255, 186, 84, 0.28);
    color: #ffd188;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

body.dark-theme .bundle-hidden-price-box {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(28, 40, 60, 0.96) 0%, rgba(22, 33, 50, 0.92) 100%);
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.dark-theme .bundle-hidden-price-title {
    color: #9ec8ff;
}

body.dark-theme .bundle-hidden-price-text {
    color: #d8e8ff;
}

body.dark-theme .bundle-checkout-section .original-total-line {
    background: rgba(255, 120, 120, 0.12);
    border-color: rgba(255, 120, 120, 0.22);
    color: #ff9b9b;
    text-decoration-color: rgba(255, 155, 155, 0.88);
}

body.dark-theme .bundle-checkout-section .discount-total-line .price-label {
    color: #d7dde8;
}

body.dark-theme .bundle-checkout-section .bundle-price-status {
    background: rgba(64, 158, 255, 0.2);
    color: #9ec8ff;
}

body.dark-theme .bundle-sale-meta {
    background: linear-gradient(180deg, rgba(255, 184, 77, 0.12) 0%, rgba(255, 214, 102, 0.06) 100%);
    border-color: rgba(255, 184, 77, 0.2);
    color: #f1cf92;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dark-theme .bundle-sale-title {
    color: #ffd58a;
}

body.dark-theme .bundle-sale-desc {
    color: #e7c68a;
}

body.dark-theme .bundle-disabled-btn {
    background: linear-gradient(180deg, #5a6472 0%, #4a5360 100%) !important;
    border-color: #626d7d !important;
    color: #eef3fb !important;
}
