li { list-style: none; padding: 0 0 0.45rem; }
.card-footer a { color: #fff; width: 100%; background: var(--bs-btn-border-color); display: inline-block; padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x); font-family: var(--bs-btn-font-family); font-size: var(--bs-btn-font-size); font-weight: var(--bs-btn-font-weight); line-height: var(--bs-btn-line-height); text-align: center; vertical-align: middle; cursor: pointer; user-select: none; border: var(--bs-btn-border-width) solid var(--bs-btn-border-color); border-radius: var(--bs-btn-border-radius); }
.card-footer a:hover { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
.cartitem { background-color: #fff; border-radius: 1em; border: 1px solid #fff !important; box-shadow: 0 12px 32px -14px rgba(6, 75, 179, 0.12); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cartitem.active { background: #fff; border: 1px solid var(--bs-global) !important; transform: translateY(-2px); box-shadow: 0 18px 48px -16px rgba(6, 75, 179, 0.18); }
.card-footer.text-center.p-0 { margin: 0 1.6em 1.6em 1.6em; }
a { color: var(--bs-btn-hover-bg); text-decoration: none; background-color: transparent; }
.card-body.row > h4 { padding: 0 0 0 0.75rem; color: var(--bs-btn-hover-bg); font-size: 24px; font-family: "DingTalk JinBuTi"; }
.yy-dtjbt-text { font-family: "DingTalk JinBuTi"; }
.cart-firstgroup-bar { margin-bottom: 16px; padding: 0; }
.cart-firstgroup-bar-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-first-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: #4a4458; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 1px 4px rgba(6, 75, 179, 0.04); }
.cart-first-tab i { font-size: 14px; color: #b074d1; }
.cart-first-tab:hover { border-color: #b074d1; background: #faf5ff; color: #8e50b0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(176, 116, 209, 0.1); }
.cart-first-tab.is-active { background: linear-gradient(135deg, #B074D1 0%, #9958BD 73%, #8E50B0 92%); border-color: #b074d1; color: #fff; box-shadow: 0 4px 16px rgba(176, 116, 209, 0.25); }
.cart-first-tab.is-active i { color: #fff; }
.cart-first-tab-name { font-weight: 700; }
.cart-first-tab-sub { font-size: 11px; opacity: 0.7; font-weight: 400; }
.cart-first-tab.is-active .cart-first-tab-sub { opacity: 0.9; }
.cart-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.cart-sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 16px; box-shadow: 0 2px 12px rgba(6, 75, 179, 0.04); }
.cart-sidebar-title { font-size: 15px; font-weight: 700; color: #171326; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0e6f8; display: flex; align-items: center; gap: 8px; }
.cart-sidebar-title .yy-bl { display: inline-block; width: 3px; height: 16px; background: linear-gradient(180deg, #B074D1, #8E50B0); border-radius: 2px; }
.cart-sidebar-list { display: flex; flex-direction: column; gap: 6px; }
.cart-sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; color: #70687d; transition: all 0.2s ease; position: relative; }
.cart-sidebar-item:hover { background: #faf5ff; border-color: #e8d5f5; color: #8e50b0; }
.cart-sidebar-item.is-active { background: linear-gradient(90deg, rgba(176, 116, 209, 0.08) 0%, rgba(153, 88, 189, 0.05) 100%); border-color: #b074d1; color: #8e50b0; }
.cart-sidebar-item-icon { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.cart-sidebar-item-info { flex: 1; min-width: 0; }
.cart-sidebar-item-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-sidebar-item-name { display: block; font-size: 13px; font-weight: 600; color: inherit; }
.cart-sidebar-item-desc { display: block; font-size: 11px; color: #999; margin-top: 4px; line-height: 1.5; white-space: normal; overflow: visible; }
.cart-sidebar-item.is-active .cart-sidebar-item-desc { color: rgba(142, 80, 176, 0.7); }
.cart-sidebar-item-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: rgba(230, 74, 25, 0.12); color: #e64a19; flex-shrink: 0; }
.cart-sidebar-item.is-active .cart-sidebar-item-badge { background: rgba(176, 116, 209, 0.15); color: #8e50b0; }
.cart-group-desc { margin-bottom: 20px; padding: 16px 20px; background: linear-gradient(135deg, rgba(176, 116, 209, 0.06) 0%, rgba(226, 79, 141, 0.04) 100%); border: 1px solid rgba(176, 116, 209, 0.12); border-radius: 12px; }
.cart-group-desc-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #171326; line-height: 1.4; }
.cart-group-desc-text { margin: 0; font-size: 13px; color: #70687d; line-height: 1.6; }
.cart-main { min-width: 0; }
@keyframes cart-card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cartitem { animation: cart-card-in 0.5s ease both; }
.cartitem:nth-child(1) { animation-delay: 0ms; }
.cartitem:nth-child(2) { animation-delay: 60ms; }
.cartitem:nth-child(3) { animation-delay: 120ms; }
.cartitem:nth-child(4) { animation-delay: 180ms; }
.cartitem:nth-child(5) { animation-delay: 240ms; }
.cartitem:nth-child(6) { animation-delay: 300ms; }
.cartitem:nth-child(7) { animation-delay: 360ms; }
.cartitem:nth-child(8) { animation-delay: 420ms; }
.cartitem:nth-child(n+9) { animation-delay: 480ms; }
@keyframes sk-shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }.skeleton-card .sk-line { animation-duration: 2s; }
.skeleton-card { background: #fff; border: 1px solid #e8e8e8 !important; border-radius: 1em; box-shadow: none !important; animation: none !important; pointer-events: none; min-height: 480px; display: flex; flex-direction: column; }
.skeleton-card .card-body { background: #fff; padding: 1.6em; }
.skeleton-card .sk-line { height: 14px; border-radius: 4px; margin-bottom: 10px; background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%); background-size: 200px 100%; animation: sk-shimmer 1.5s ease infinite; }
.skeleton-card .sk-title { width: 55%; height: 22px; margin-bottom: 16px; }
.skeleton-card .sk-line-sm { width: 85%; }
.skeleton-card .sk-line-md { width: 65%; margin-bottom: 0; }
.skeleton-card .card-footer { background: transparent !important; box-shadow: none !important; padding: 0 1.6em 1.6em; border: none; margin: 0; }
.skeleton-card .sk-btn { width: 100%; height: 38px; border-radius: 8px; background: linear-gradient(90deg, #e0d4f0 25%, #ebe0f5 50%, #e0d4f0 75%); background-size: 200px 100%; animation: sk-shimmer 1.5s ease infinite; animation-delay: 0.1s; }
@media (max-width: 991.98px) { .cart-layout { grid-template-columns: 1fr; } .cart-sidebar { position: static; max-height: none; margin-bottom: 16px; } .cart-sidebar-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 575.98px) { .cart-firstgroup-bar { margin-bottom: 12px; } .cart-firstgroup-bar-inner { flex-direction: column; gap: 6px; } .cart-first-tab { width: 100%; padding: 8px 12px; font-size: 13px; } .cart-first-tab i { font-size: 13px; } .cart-first-tab-sub { font-size: 11px; margin-left: auto; } .cart-sidebar { padding: 12px; } .cart-sidebar-list { grid-template-columns: 1fr; gap: 4px; } .cart-sidebar-item { padding: 8px 10px; } .cart-sidebar-item-icon { width: 24px; height: 24px; } .cart-sidebar-item-name { font-size: 12px; white-space: normal; overflow: visible; } .cart-sidebar-item-desc { font-size: 10px; white-space: normal; overflow: visible; } .cart-group-desc { padding: 12px 14px; margin-bottom: 12px; } .cart-group-desc-title { font-size: 14px; } .cart-group-desc-text { font-size: 12px; } }

/* ========== 商品卡底部购买区域 ========== */
.yx-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(176, 116, 209, 0.08);
    background: linear-gradient(180deg, rgba(176, 116, 209, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 1em 1em;
}

/* 价格区域 */
.yx-price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yx-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #B074D1;
}

.yx-price-symbol {
    font-size: 14px;
    font-weight: 600;
}

.yx-price-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-family: "DingTalk JinBuTi", "DINCondensed-Bold", sans-serif;
}

.yx-price-cycle {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.yx-trial-price {
    font-size: 11px;
    color: #e64a19;
}

.yx-original-price {
    font-size: 11px;
    color: #999;
}

/* 紧凑型购买按钮 */
.yx-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #B074D1 0%, #9958BD 100%);
    border: none;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(176, 116, 209, 0.25);
}

.yx-buy-btn:hover {
    background: linear-gradient(135deg, #9958BD 0%, #8E50B0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(176, 116, 209, 0.35);
    color: #fff;
}

/* 售罄按钮 */
.yx-soldout-btn.yx-buy-btn {
    background: #e5e7eb;
    color: #8b949e;
    cursor: not-allowed;
    box-shadow: none;
}

.yx-soldout-btn.yx-buy-btn:hover {
    background: #e5e7eb;
    color: #8b949e;
    transform: none;
    box-shadow: none;
}

/* 移除旧的 card-footer 样式 */
.card-footer.text-center.p-0 {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.card-footer a {
    width: auto;
    border: none;
    border-radius: 20px;
}

/* 卡片作为 flex 列容器 */
.card.cartitem {
    display: flex;
    flex-direction: column;
}

/* 主体区域自适应填充 */
.cartitem .card-body.row {
    flex: 1 1 auto;
}

/* 响应式适配 */
@media (max-width: 575.98px) {
    .yx-card-bottom {
        padding: 12px 16px;
    }
    .yx-price-num {
        font-size: 22px;
    }
}

/* ========== 商品分组顶部 Banner 优化 ========== */
/* 风格 P3 · 对角紫阶（定稿）：左上浓 → 右下淡的通铺紫调，尺寸收紧，无徽章 */
.cart-main > .cart-group-desc {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 92px;
    margin-bottom: 18px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    background: linear-gradient(115deg, rgba(168, 110, 210, 0.26) 0%, rgba(178, 126, 218, 0.15) 45%, rgba(212, 186, 238, 0.12) 100%);
    border: 1px solid rgba(168, 110, 208, 0.20);
    border-radius: 14px;
    box-shadow: 0 10px 26px -24px rgba(80, 42, 122, 0.28);
}

.cart-main > .cart-group-desc .cart-group-desc-inner {
    position: relative;
    max-width: 860px;
    padding-left: 14px;
    border-left: 3px solid rgba(160, 96, 200, 0.62);
}

/* 顶部徽章（PREMIUM NETWORK）已按需求移除；若日后恢复，模板里加回 .cart-group-desc-label 即可 */
.cart-main > .cart-group-desc .cart-group-desc-label {
    display: none;
}

.cart-main > .cart-group-desc .cart-group-desc-title {
    margin: 0 0 6px;
    color: #2A2340;
    font-size: clamp(18px, 1.55vw, 23px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: "DingTalk JinBuTi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cart-main > .cart-group-desc .cart-group-desc-text {
    margin: 0 0 10px;
    max-width: 780px;
    color: #6C647C;
    font-size: 12.5px;
    line-height: 1.65;
}

/* 没有标签时，介绍不留多余下间距 */
.cart-main > .cart-group-desc .cart-group-desc-text:last-child {
    margin-bottom: 0;
}

.cart-main > .cart-group-desc .cart-group-desc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 7px;
    max-width: 820px;
}

.cart-main > .cart-group-desc .cart-group-desc-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(168, 110, 208, 0.22);
    color: #7B4BAF;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 2px 7px rgba(80, 42, 122, 0.05);
}

.cart-main > .cart-group-desc .cart-group-desc-tag:first-child {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(160, 96, 200, 0.40);
    color: #8A4BAE;
    font-weight: 700;
}

/* ---------- Banner 骨架屏（浅底：半透明紫灰条，比例对齐真实样式）---------- */
/* 结构由 cart-nav.js 的 showSkeleton() 注入：标题条 + 两行简介条 + 三个标签胶囊 */
.sk-banner-title,
.sk-banner-text,
.sk-banner-tag {
    background: linear-gradient(90deg, rgba(150, 110, 195, 0.16) 25%, rgba(150, 110, 195, 0.05) 50%, rgba(150, 110, 195, 0.16) 75%);
    background-size: 200px 100%;
    animation: sk-shimmer 1.6s ease infinite;
}

.sk-banner-title {
    width: 34%;
    min-width: 148px;
    max-width: 300px;
    height: 22px;
    margin: 0 0 12px;
    border-radius: 6px;
}

.sk-banner-text {
    width: 86%;
    max-width: 660px;
    height: 11px;
    margin: 0 0 7px;
    border-radius: 5px;
    animation-delay: 0.08s;
}

.sk-banner-text-sub {
    width: 58%;
    max-width: 430px;
    margin-bottom: 13px;
    animation-delay: 0.16s;
}

.sk-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 7px;
}

.sk-banner-tag {
    width: 78px;
    height: 22px;
    border-radius: 999px;
    animation-delay: 0.24s;
}

.sk-banner-tag:nth-child(2) {
    width: 96px;
    animation-delay: 0.30s;
}

.sk-banner-tag:nth-child(3) {
    width: 66px;
    animation-delay: 0.36s;
}

@media (max-width: 575.98px) {
    .cart-main > .cart-group-desc {
        min-height: auto;
        margin-bottom: 12px;
        padding: 14px 16px;
        align-items: flex-start;
        border-radius: 12px;
    }

    .cart-main > .cart-group-desc .cart-group-desc-inner {
        max-width: 100%;
        padding-left: 11px;
    }

    .cart-main > .cart-group-desc .cart-group-desc-title {
        margin-bottom: 5px;
        font-size: 16px;
        line-height: 1.32;
    }

    .cart-main > .cart-group-desc .cart-group-desc-text {
        margin-bottom: 9px;
        font-size: 11.5px;
        line-height: 1.6;
    }

    .cart-main > .cart-group-desc .cart-group-desc-tags {
        gap: 5px 6px;
    }

    .cart-main > .cart-group-desc .cart-group-desc-tag {
        min-height: 20px;
        padding: 2px 8px;
        font-size: 11px;
    }

    .sk-banner-title {
        width: 52%;
        height: 16px;
        margin-bottom: 9px;
    }

    .sk-banner-text {
        width: 94%;
        height: 10px;
        margin-bottom: 6px;
    }

    .sk-banner-text-sub {
        width: 66%;
        margin-bottom: 10px;
    }

    .sk-banner-tag {
        width: 66px;
        height: 20px;
    }

    .sk-banner-tag:nth-child(2) {
        width: 80px;
    }

    .sk-banner-tag:nth-child(3) {
        width: 56px;
    }
}

/* ========== 商品卡统一描述组件（由美化插件生成） ========== */
.cartitem .yy-product-desc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 2px;
}

.cartitem .yy-product-desc .yy-desc-list {
    display: grid;
    gap: 8px;
}

.cartitem .yy-product-desc .yy-desc-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(176, 116, 209, 0.06), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(176, 116, 209, 0.10);
    color: #4a4458;
    font-size: 13px;
    line-height: 1.45;
}

.cartitem .yy-product-desc .yy-desc-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(176, 116, 209, 0.12);
    color: #8E50B0;
    font-size: 12px;
}

.cartitem .yy-product-desc .yy-desc-text {
    flex: 1;
    min-width: 0;
    color: #4f465e;
    font-weight: 500;
    word-break: break-word;
}

.cartitem .yy-product-desc .yy-desc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cartitem .yy-product-desc .yy-desc-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(176, 116, 209, 0.10);
    border: 1px solid rgba(176, 116, 209, 0.14);
    color: #8E50B0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.cartitem .yy-product-desc .yy-desc-tag:first-child {
    background: linear-gradient(135deg, rgba(176, 116, 209, 0.18), rgba(226, 79, 141, 0.10));
    color: #7b3fa0;
}

@media (max-width: 575.98px) {
    .cartitem .yy-product-desc {
        gap: 10px;
    }

    .cartitem .yy-product-desc .yy-desc-item {
        padding: 6px 9px;
        font-size: 12px;
    }

    .cartitem .yy-product-desc .yy-desc-tag {
        padding: 4px 8px;
        font-size: 10px;
    }
}
