/* 页面基础样式调整 */
body {
    background-color: #f8f5ff;
    background-image:
            radial-gradient(circle at 15% 25%, rgba(255,183,215,0.15) 0%, transparent 25%),
            radial-gradient(circle at 85% 75%, rgba(166,189,255,0.15) 0%, transparent 30%);
    color: #4a3a65;
    font-family: "Microsoft YaHei", "Helvetica Neueue", sans-serif;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* 商品图片样式 */
.product-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: none;
}

.product-img:hover {
    transform: scale(1.05) rotate(1deg);
}

/* 热销标签 */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff7eb9 0%, #ff5ca8 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 126, 185, 0.3);
}

/* 商品标题 */
.product-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #6a5acd;
    text-shadow: 0 1px 2px rgba(106, 90, 205, 0.1);
}

/* 商品元信息 */
.product-meta {
    color: #8a7ab5;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e6d9ff;
}

/* 星级评分 */
.star-rating i {
    color: #ffc233;
    margin-right: 2px;
    font-size: 1.1rem;
}

.star-rating span {
    color: #8a7ab5;
    font-size: 0.95rem;
}

/* 价格样式 */
.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b9b;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255, 107, 155, 0.1);
}

#price .currency {
    font-size: 17px;
    font-weight: normal;
}

/* 描述文本 */
.desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 规格列表 */
.specs dt {
    font-weight: bold;
    color: #6a5acd;
}

.specs dd {
    margin-bottom: 10px;
    color: #8a7ab5;
}

/* 规格按钮组 */
.btn-group-specs .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    min-width: 100px;
}

/* 数量选择组 */
.quantity-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-group .btn {
    padding: 0.375rem 0.75rem;
}

/* 购买区域 */
.buy-box {
    background: linear-gradient(145deg, #fdfaff, #f0e6ff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138, 95, 255, 0.08);
    padding: 25px;
    border: none;
}

.buy-box h6 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #6a5acd;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e6d9ff;
}

/* 价格相关 */
.list-price {
    text-decoration: line-through;
    color: #8a7ab5;
}

.save-amount {
    color: #ff6b9b;
    font-weight: bold;
}

/* 右侧内容区域 */
.right-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138, 95, 255, 0.08);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /*margin-left: 5px;*/
    /*width: calc(100% - 10px);*/
}

/* 购买区域布局 */
.buy-div {
    padding-right: 0;
}

/* 移动端内容显示控制 */
.mobile-content {
    display: none;
}

/* 响应式调整 */
@media (max-width: 575px) {
    .right-content {
        padding-left: 20px;
        margin-top: 15px;
    }
}

@media (max-width: 990px) {
    .buy-div {
        margin-top: 15px;
        margin-left: 0;
        margin-right: 0;
        padding-right: 15px;
    }

    .goods-info-box {
        margin-left: 0;
        margin-right: 0;
    }

    .pc-content {
        display: none;
    }

    .mobile-content {
        display: block;
    }
}

/* 容器样式 */
div[style="padding: 0;"] {
    border-radius: 12px;
}

/* SKU规格区域 */
.goods-sku {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #e6d9ff;
}

/* 规格标题 */
.goods-sku > div > span:first-child {
    font-size: 15px;
    color: #6a5acd;
    font-weight: 500;
    display: inline-block;
    width: 60px;
    vertical-align: top;
    margin-top: 8px;
}

/* 规格选项样式 */
.label.label-outline.sku {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #e6d9ff;
    border-radius: 3px;
    margin: 0 10px 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #6a5acd;
    background: linear-gradient(145deg, #ffffff, #f7f3ff);;
    transition: all 0.25s ease;
    position: relative;
    line-height: 1;
}

.goods-sku > div > span:not(:first-child):not([disabled]):hover {
    border-color: #b58eff;
    color: #8a5fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(138, 95, 255, 0.1);
}

/* 选中状态样式 */
.label.label-outline.sku.bh-sku-selected {
    border-color: #b58eff;
    color: #8a5fff;
    background-color: rgba(138, 95, 255, 0.05);
    font-weight: 500;
}

.label.label-outline.sku.bh-sku-selected::after {
    content: "✓";
    position: absolute;
    bottom: 0;
    right: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* 禁用状态样式 */
.goods-sku > div > span[disabled="disabled"] {
    color: #bbb;
    border-color: #eee;
    background-color: #fafafa;
    cursor: not-allowed;
    position: relative;
}

/* 禁用状态的斜杠效果 */
.goods-sku > div > span[disabled="disabled"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: #ccc;
    transform: rotate(-15deg) translateY(-50%);
}

/* 禁用状态下无悬停效果 */
.goods-sku > div > span[disabled="disabled"]:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 数量选择器 */
.quantity-selector {
    margin: 15px 0 25px;
    display: flex;
    align-items: center;
}

.quantity-label {
    font-size: 15px;
    color: #6a5acd;
    font-weight: 500;
    width: 60px;
}

.spinner {
    display: flex;
    align-items: center;
    border: 1px solid #e6d9ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn.decrease, .btn.increase {
    width: 40px;
    height: 40px;
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #6a5acd;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.decrease {
    border-right: 1px solid #eee;
}

.btn.increase {
    border-left: 1px solid #eee;
}

.btn.decrease:hover, .btn.increase:hover {
    background-color: #f0e6ff;
    color: #8a5fff;
}

.btn.decrease:active, .btn.increase:active {
    background-color: #e8e8e8;
}

.value {
    width: 65px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    color: #6a5acd;
    outline: none;
    -moz-appearance: textfield;
}

.value::-webkit-outer-spin-button,
.value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* 立即购买按钮 */
#sku-buy-btn.btn.btn-primary {
    display: block;
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(135deg, #b58eff 0%, #8a5fff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(138, 95, 255, 0.2);
}

#sku-buy-btn.btn.btn-primary:hover {
    background: linear-gradient(135deg, #a779ff 0%, #7d48ff 100%);
    box-shadow: 0 4px 12px rgba(138, 95, 255, 0.3);
    transform: translateY(-2px);
}

#sku-buy-btn.btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(138, 95, 255, 0.2);
}

/* 清除浮动的div */
div[style="clear: both; margin-bottom: 20px;"] {
    margin-bottom: 10px !important;
}

/* 未配置收款方式样式 */
.card-body[style="padding: 0;"] {
    padding: 20px !important;
    text-align: center;
    color: #8a7ab5;
    background-color: #fafafa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 禁用按钮样式 */
.submit-order.mt-3 button[disabled] {
    width: 100%;
    padding: 15px 0;
    background-color: #e6d9ff;
    color: #b58eff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: not-allowed;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .select-pay {
        width: 100%;
        margin-right: 0;
        justify-content: center;
    }
}

/* 商品容器对齐 */
.goods-con-box.row {
    align-items: flex-start; /* 子元素顶部对齐，不再强制等高 */
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0 !important;
}

/* 商品详情区域 */
.trending-products-section {
    padding: 20px 10px;
    width: 100%;
    background: #fff;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138, 95, 255, 0.08);
}

.trending-products-section .title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.trending-products-section .title-line::before,
.trending-products-section .title-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e6d9ff;
    margin: 0 0px;
}

.trending-products-section h2 {
    font-size: 1.5em;
    color: #6a5acd;
    padding: 0 20px;
}

.trending-products-section .content-des {
    font-size: 1em;
    color: #8a7ab5;
    margin-top: 10px;
    text-align: center;
    line-height: 1.8;
}


/* 支付方式选项 - 核心优化 */
.select-pay {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    margin: 0 0px 8px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(145deg, #ffffff, #f7f3ff);
    position: relative;
    justify-content: flex-start; /* 文字左对齐更自然 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    width: 100%;
}

/* 支付方式图标优化 */
.select-pay img {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3px;
    border-radius: 4px;
}

/* 支付方式文字优化 */
.select-pay span {
    font-size: 14px;
    color: #6a5acd;
    font-weight: 500;
}

/* 选中状态强化 */
.select-pay.active {
    border-color: #b58eff;
    background: linear-gradient(145deg, #f0e6ff, #e6d9ff);
    box-shadow: 0 3px 8px rgba(138, 95, 255, 0.12);
}

/* 选中状态标记 - 新增装饰元素 */
.select-pay.active::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #b58eff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(138, 95, 255, 0.3);
}

/* 悬停效果增强 */
.select-pay:not(.active):hover {
    border-color: #b58eff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(138, 95, 255, 0.1);
    background: linear-gradient(145deg, #f7f3ff, #f0e6ff);
}

/* 支付方式容器布局优化 */
.mode-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px !important;
    padding: 10px 5px;
    border-radius: 12px;
}

/* 响应式调整 - 小屏幕单列显示 */
@media (max-width: 768px) {
    .select-pay {
        width: 100%;
        margin-right: 0;
    }
}

/* 禁用状态处理（如果有） */
.select-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(145deg, #f9f9f9, #f0f0f0);
    border-color: #eee;
}

.select-pay:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #eee;
}


.form-control, .form-control:focus{
    background: linear-gradient(145deg, #ffffff, #f7f3ff);
    border-color: #e6d9ff;
    border: none;
}



/* 商品详情详情标题优化 */
.trending-products-section.mobile-content .title-line {
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
}

.trending-products-section.mobile-content h2 {
    font-size: 1.5rem;
    color: #6a5acd;
    padding: 0 15px;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-align: center;
}

/* 标题装饰线优化 */
.trending-products-section.mobile-content .title-line::before,
.trending-products-section.mobile-content .title-line::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, #b58eff, transparent);
    margin: 0 10px;
}

/* 标题下方装饰 */
.trending-products-section.mobile-content h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff7eb9, #b58eff);
    border-radius: 3px;
}

/* 商品简介样式优化 */
.trending-products-section.mobile-content .content-des {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(247, 243, 255, 0.7);
    border-radius: 12px;
    border-left: 3px solid #b58eff;
    border-right: 3px solid #b58eff;
    box-shadow: 0 3px 8px rgba(138, 95, 255, 0.08);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .trending-products-section.mobile-content h2 {
        font-size: 1.3rem;
    }

    .trending-products-section.mobile-content .content-des {
        font-size: 0.9rem;
        padding: 12px;
        border-radius: 10px;
    }
}


/* 商品详情详情标题优化 */
.trending-products-section.pc-content .title-line {
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
}

.trending-products-section.pc-content h2 {
    font-size: 1.5rem;
    color: #6a5acd;
    padding: 0 15px;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-align: center;
}

/* 标题装饰线优化 */
.trending-products-section.pc-content .title-line::before,
.trending-products-section.pc-content .title-line::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, #b58eff, transparent);
    margin: 0 10px;
}

/* 标题下方装饰 */
.trending-products-section.pc-content h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff7eb9, #b58eff);
    border-radius: 3px;
}

/* 商品简介样式优化 */
.trending-products-section.pc-content .content-des {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(247, 243, 255, 0.7);
    border-radius: 12px;
    border-left: 3px solid #b58eff;
    border-right: 3px solid #b58eff;
    box-shadow: 0 3px 8px rgba(138, 95, 255, 0.08);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .trending-products-section.pc-content h2 {
        font-size: 1.3rem;
    }

    .trending-products-section.pc-content .content-des {
        font-size: 0.9rem;
        padding: 12px;
        border-radius: 10px;
    }
}
.goods-content img{
    max-width: 100%;
    height: auto;
}