:root {
    --primary: #ff5000 !important;
    --primary-opacity-40: hsl(from var(--primary) h s l / 0.4) !important;
    --primary-opacity-10: hsl(from var(--primary) h s l / 0.1) !important;
}

.product-detail {
    padding: 10px;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
    width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    margin-top: 110px;


}

/* 左侧图片区域 */
.gallery-wrap {
    flex: 0 0 500px;
    position: relative;
}

.gallery-main {
    position: relative;
    width: 500px;
    height: 500px;
    border: 0px solid #F8FAFC;
    border-radius: 00px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    margin-right: 30px;
    padding: 0px;
}

.gallery-main img {
    width: 100%;
    border-radius: 15px;
    height: 100%;
    object-fit: cover;
}

/* 导航按钮样式 */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-main:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.gallery-nav-left {
    left: 15px;
}

.gallery-nav-right {
    right: 15px;
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* 放大镜效果 */
.zoom-mask {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: zoom-in;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 80, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.zoom-mask.active {
    opacity: 1;
}

.zoom-mask::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.zoom-big {
    position: absolute;
    top: 0;
    left: calc(100% + 50px);
    width: 650px;
    height: 500px;
    border: 0px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: none;
    background: #fff;
    z-index: 9;
}

.zoom-big img {
    width: 2500px;
    height: 2500px;
    position: absolute;
}

/* 缩略图 */
.thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    max-width: 500px;
}

/* 美化滚动条 */
.thumb-list::-webkit-scrollbar {
    height: 6px;
}

.thumb-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumb-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumb-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumb-item {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    padding-bottom: 0px;
    box-sizing: border-box;
}



.thumb-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff7a00 100%);
    border-radius: 8px 8px 0 0;
}

.thumb-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff7a00 100%);
    border-radius: 0 0 8px 8px;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-item:hover img {
    transform: scale(1.05);
}

.thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 80, 0, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* 右侧商品信息 */
.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 40px;
    width: auto;
    max-width: 600px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.product-title-text {
    min-width: 0;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-stamp-btn {
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(240, 66, 66, 0.35);
    background: rgba(240, 66, 66, 0.08);
    color: #f04242;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 26px;
    flex: 0 0 auto;
}

.post-stamp-btn:hover {
    background: rgba(240, 66, 66, 0.14);
    border-color: rgba(240, 66, 66, 0.5);
}



.price-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    padding: 25px;

    border-radius: 12px;
    border: 1px solid #ffe0d4;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.08);
    background: var(--primary)05;

}

.price-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.product-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-now {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(255, 80, 0, 0.1);
    line-height: 1.2;
}

.price-market {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-top: 8px;
    font-weight: 400;
}

.product-stats {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-left: 40px;
}

.product-highlights {
    border-top: 2px solid #fbf1ec;
    /* box-shadow: 0 2px 11px rgba(255, 80, 0, 0.1); */
    padding: 10px;
    margin-top: -5px;

}

.highlight-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-title::before {
    content: '🔥';
    font-size: 14px;
}

.highlight-content {
    font-size: 14px;
    line-height: 1.6;
    color: #d58967;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.8em;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    height: 60px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: auto;
    width: auto;
    flex-shrink: 0;
}



.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.1);
    background: linear-gradient(135deg, #fff 0%, #fff9f6 100%);
}

.stat-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.stat-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.stat-value a:hover {
    color: #e64a00;
    text-decoration: underline;
}

.stat-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.stat-value a:hover {
    color: #e64a00;
    text-decoration: underline;
}

.stat-value a {
    color: var(--text-light);
    text-decoration: none;
}

.stat-value a:hover {
    text-decoration: underline;
}

/* 规格选择 */
.spec-section {
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

/* 规格选择 */
.spec-section {
    margin-bottom: 30px;
}

.spec-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-item {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
    height: 30px;
}

.spec-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.spec-item.active {
    border-color: var(--primary);
    color: #333;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;

    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
    background: #fff;
}

.spec-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.1);
}

.spec-item.active {
    border-color: var(--primary);
    background: #fff;
    border-radius: 8px;
}

.spec-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent var(--primary) transparent;
    border-bottom-right-radius: 5px;
}

.spec-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 33px;
}

.spec-name {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.spec-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 10px;
}

.spec-item:first-child::before {
    content: '近期热销';
    position: absolute;
    top: -14px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff7a00 100%);
    color: #fff;
    padding: 2px 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    transform: rotate(0deg);
    box-shadow: 0 2px 3px rgba(255, 80, 0, 0.3);
    z-index: 8;
}

/* 绑定商品 */
.bind-section {
    margin-bottom: 20px;
}

.bind-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
    height: 100px;
}

/* 美化滚动条 */
.bind-list::-webkit-scrollbar {
    height: 6px;
}

.bind-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bind-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.bind-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.bind-item {
    position: relative;

    width: 60px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #F8FAFC;
    padding: 5px;
    overflow: hidden;
}

.bind-item:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.2);
}

.bind-item.active {
    border: 1px solid var(--primary);
}

.bind-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--primary) transparent;
    border-width: 0 0 20px 20px;
}

.bind-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.bind-item:hover img {
    transform: scale(1.1);
}

.bind-item .name {
    font-size: 11px;
    color: var(--text-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bind-item .price {
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0px;
}

.bind-item .detail-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9px;
    color: #fff;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 80, 0, 0.9);
    transition: all 0.3s;
    opacity: 0;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.bind-item:hover .detail-btn {
    opacity: 1;
    transform: translateY(-1px);
}

.bind-item .detail-btn:hover {
    background: rgba(255, 80, 0, 1);
    transform: translateY(-1px) scale(1.05);
}

/* 购买区域 */
.buy-section {
    margin-bottom: 30px;
}

/* 数量控制 */
.quantity-section {
    margin-bottom: 30px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
}

.quantity-btn {
    width: 40px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.quantity-btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.quantity-control .quantity-btn:nth-child(3) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 14px;
    background: #fff;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-status {
    font-size: 14px;
    color: #4caf50;
    margin-left: 10px;
}

.buy-btn {
    display: flex;
    gap: 15px;
}

.buy-btn .product-btn {
    height: 46px;
    border: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-btn .product-btn-secondary {
    width: 200px;
    background: #FF9D01;
    color: #fff;
    border: 1px solid #FF9D01;
}

.buy-btn .product-btn-secondary:hover {
    background: #FFB339;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 157, 1, 0.25);
}

.buy-btn .product-btn-secondary.disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buy-btn .product-btn-secondary.disabled:hover {
    background: #f5f5f5;
    transform: none;
}

/* 立即购买按钮 */
.buy-btn .product-btn-buy-now {
    width: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff7a00 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

.buy-btn .product-btn-buy-now:hover {
    background: linear-gradient(135deg, #e64a00 0%, #ff6a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 80, 0, 0.4);
}

.buy-btn .product-btn-buy-now.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    width: 280px;
}

.buy-btn .product-btn-buy-now.disabled:hover {
    background: #ccc;
    transform: none;
}

/* 按钮加载动画 */
.btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 飞入购物车动画元素 */
.cart-flyer {
    will-change: transform, left, top, opacity;
}

/* 二维码按钮 */
.qr-code-container {
    position: relative;
    display: inline-block;
}

.qr-code-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.qr-code-btn:hover {
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-btn svg {
    color: #666;
}

.qr-code-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 10px;
    display: none;
}

.qr-code-container:hover .qr-code-popup {
    display: block;
}

.qr-code-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.qr-code-popup img {
    display: block;
    margin: 0 auto;
}

/* 购买保障 */
.guarantee-section {
    margin-top: 10px;
    padding: 15px 0;

}

.guarantee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.guarantee-item svg {
    width: 18px;
    height: 18px;
    fill: #4caf50;
}

/* 左侧固定工具栏 - 极简“胶囊浮动”风格 */
.left-toolbar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    z-index: 9;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.left-toolbar.show {
    display: flex;
    animation: toolbarFadeIn 0.3s ease-out;
}

@keyframes toolbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.toolbar-item {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #666;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid #f0f0f0;
}

.toolbar-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #333;
}

/* 激活态：极高辨识度的“呼吸灯”橙色 */
.toolbar-item.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 25px var(--primary-opacity-10);
    transform: scale(1.15);
    font-weight: 600;
}

.toolbar-item span {
    display: block;
    pointer-events: none;
}

/* 选项卡导航 - 现代胶囊 (Modern Capsule) 风格 */
.tab-nav {
    display: inline-flex;
    background: #f8f8f8;
    padding: 8px;
    border-radius: 50px;
    margin-bottom: 10px;
    gap: 5px;
    border: none;
}

.tab-item {
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
    font-weight: 600;
    margin: 0;
    border-bottom: none !important;
    position: relative;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px var(--primary-opacity-10);
}

.tab-item.active::after {
    display: none;
}

.tab-content1 {
    margin-top: 10px;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
    animation: capsuleFadeIn 0.5s ease;
}

@keyframes capsuleFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* 最新推荐列表美化 */
.related-title {

    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    padding-bottom: 0;
    border-bottom: none;
}

.related-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 10px;
}

.related-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 605px;
    /* 140px * 4 + 15px * 3 = 605px */
    overflow-y: auto !important;
    padding: 5px;
    padding-right: 10px;
}

/* 自定义滚动条样式 */
.related-content::-webkit-scrollbar {
    width: 8px;
}

.related-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.related-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.related-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.related-item {
    display: flex !important;
    gap: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;

    border-radius: 16px !important;
    background: #fff !important;
    height: 140px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
    border: none !important;
    position: relative !important;
    padding-left: 0px !important;
    margin-right: 15px;
}

.related-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.related-item img {
    width: 90px !important;
    height: 90px !important;

    object-fit: cover !important;
    background: #f8f8f8 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.related-item .info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 110px !important;
    overflow: hidden !important;
    min-height: auto !important;
}

.related-item .title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.5 !important;
    max-height: 42px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 12px !important;
    height: auto !important;
}

.related-item .price-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 15px !important;
    margin-top: 0 !important;
}

.related-item .price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin: 0 !important;
    text-shadow: none !important;
}

.related-item .sales {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: normal !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    align-self: baseline !important;
}

/* 详情介绍板块 */
.content-body {
    background: #f8f9fa;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
}

.content-body p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-body ul,
.content-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-body li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* 详情介绍中的视频样式 */
.content-body video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
}

.tab-item {

    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    margin-right: 10px;
}


.tab-content1 {


    padding-top: 10px;

}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 购物说明样式 */
.guide-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
}

.guide-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-section h4::before {
    content: '';
    width: 5px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary) 0%, #ff7a00 100%);
    border-radius: 3px;
}

.guide-section p {
    line-height: 1.8;
    color: #444;
    font-size: 14px;
    padding-left: 17px;
    position: relative;
}

.guide-section p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* 购物说明图标 */
.guide-section::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 25px;
    right: 25px;
    opacity: 0.1;
}

.guide-section:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

.guide-section:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'%3E%3C/path%3E%3Cpolyline points='3.27 6.96 12 12.01 20.73 6.96'%3E%3C/polyline%3E%3Cline x1='12' y1='22.08' x2='12' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.guide-section:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.guide-section:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='2' y1='10' x2='22' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.guide-section:nth-child(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'%3E%3C/path%3E%3C/svg%3E");
}

.guide-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.guide-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff7a00 100%);
}

.guide-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.guide-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-card-content {
    line-height: 1.8;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 步骤样式 */
.guide-card-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    color: #444;
    font-size: 14px;
    line-height: 1.4;
}

/* 配送信息样式 */
.delivery-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.delivery-value {
    color: #666;
    font-size: 14px;
}

/* 服务列表样式 */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-icon {
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.service-text {
    color: #444;
    font-size: 14px;
}

/* 支付方式样式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    flex: 1;
    min-width: 80px;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.payment-icon {
    font-size: 24px;
}

.payment-name {
    font-size: 14px;
    color: #444;
    text-align: center;
}

/* 会员权益样式 */
.membership-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 24px;
}

.benefit-text {
    font-size: 13px;
    color: #444;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .shopping-guide-content {
        padding: 20px;
    }

    .membership-benefits {
        grid-template-columns: 1fr;
    }
}

/* 商品详情 */
.product-content {

    display: grid;
    grid-template-columns: 800px 370px;
    gap: 30px;
    width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border-radius: 30px;
}

.content-main {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    padding: 40px;
    width: 820px;
    box-sizing: border-box;
    padding-top: 30px;
    background: transparent;
}

.content-main::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #f0f0f0;
}

.content-sidebar {
    padding: 30px;
    width: 370px;
    box-sizing: border-box;
    background: transparent;
    background: #fff;
    border-top-right-radius: 30px;
}


/* 自定义滚动条样式 */
.content-sidebar::-webkit-scrollbar {
    width: 6px;
}

.content-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.content-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.content-sidebar.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.content-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary);
}

/* 控制详情页面图片大小 */
.content-body img {
    max-width: 780px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 控制详情页面视频大小 */
.content-body video {
    max-width: 780px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}




/* 隐藏搜索框 */
.nav-search,
.search-box,
.search-input,
[class*="search"] {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        padding: 20px;
    }

    .gallery-wrap {
        flex: 0 0 auto;
        width: 100%;
    }

    .gallery-main {
        width: 100%;
        height: 400px;
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端自适应样式 */
@media screen and (max-width: 768px) {
    .product-detail {
        width: 100%;
        flex-direction: column;
        padding: 10px;
        margin-top: 70px;
        gap: 15px;
    }

    .gallery-wrap {
        flex: none;
        width: 100%;
    }

    .gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin-right: 0;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    .zoom-big {
        display: none !important;
    }

    .zoom-mask {
        display: none !important;
    }

    .thumb-list {
        max-width: 100%;
        padding-bottom: 8px;
    }

    .thumb-item {
        flex: 0 0 60px;
        height: 60px;
    }

    .product-info {
        width: 100%;
    }

    .product-title {
        width: 100%;
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 15px;
        white-space: normal;
    }

    .price-stats-container {
        padding: 15px;
        gap: 15px;
        margin: 15px 0;
    }

    .price-section {
        flex-direction: column;
        gap: 15px;
    }

    .price-now {
        font-size: 28px;
    }

    .price-market {
        font-size: 14px;
    }

    .product-stats {
        justify-content: flex-start;
        margin-left: 0;
        gap: 8px;
        flex-wrap: wrap;
    }

    .stat-item {
        padding: 6px 10px;
        height: auto;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 13px;
    }

    .product-highlights {
        padding: 8px;
    }

    .highlight-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .highlight-content {
        font-size: 13px;
    }

    .spec-section {
        margin-bottom: 20px;
    }

    .spec-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .spec-list {
        gap: 8px;
    }

    .spec-item {
        padding: 6px 8px;
        font-size: 13px;
    }

    .spec-image {
        width: 24px;
        height: 24px;
    }

    .spec-name {
        font-size: 13px;
    }

    .spec-price {
        font-size: 12px;
    }

    .spec-item:first-child::before {
        display: none;
    }

    .bind-section {
        margin-bottom: 15px;
    }

    .bind-list {
        height: auto;
        gap: 8px;
        padding-bottom: 8px;
    }

    .bind-item {
        width: 70px;
        padding: 4px;
    }

    .bind-item img {
        width: 50px;
        height: 50px;
    }

    .bind-item .name {
        font-size: 10px;
    }

    .bind-item .price {
        font-size: 11px;
    }

    .bind-item .detail-btn {
        display: none;
    }

    .quantity-section {
        margin-bottom: 20px;
    }

    .quantity-control {
        margin-top: 8px;
    }

    .quantity-btn {
        width: 36px;
        height: 34px;
        font-size: 14px;
    }

    .quantity-input {
        width: 50px;
        height: 34px;
        font-size: 14px;
    }

    .buy-section {
        margin-bottom: 20px;
    }

    .buy-btn {
        flex-direction: column;
        gap: 10px;
    }

    .buy-btn .product-btn {
        width: 100%;
        height: 44px;
        font-size: 16px;
        border-radius: 22px;
    }

    .buy-btn .product-btn-secondary {
        width: 100%;
    }

    .buy-btn .product-btn-buy-now {
        width: 100%;
    }

    .buy-btn .product-btn-buy-now.disabled {
        width: 100%;
    }

    .qr-code-container {
        display: none;
    }

    .guarantee-section {
        padding: 10px 0;
    }

    .guarantee-list {
        gap: 10px;
    }

    .guarantee-item {
        font-size: 12px;
    }

    .guarantee-item svg {
        width: 16px;
        height: 16px;
    }

    .left-toolbar {
        display: none !important;
    }

    .tab-nav {
        width: 100%;
        padding: 6px;
        border-radius: 30px;
        display: flex;
        justify-content: center;
        gap: 5px;
    }

    .tab-item {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 详情内容区域自适应 - 使用更高优先级选择器 */
    .product-content .content-main,
    div.product-content div.content-main,
    body .product-content .content-main {
        width: 49% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        padding: 20px;
    }

    .tab-content1 {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .tab-pane {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #tab-detail {
        width: 100%;
        max-width: 100%;
    }

    #tab-detail .content-body {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #tab-detail .content-body>div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 强制详情内所有图片自适应 */
    #tab-detail img,
    #tab-detail p img,
    #tab-detail div img,
    #tab-detail span img,
    #tab-detail a img,
    .content-body img,
    .content-body * img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }

    #tab-detail video,
    .content-body video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 防止内联样式导致的宽度问题 */
    #tab-detail [style*="width"],
    .content-body [style*="width"] {
        max-width: 100% !important;
    }

    #tab-detail table,
    .content-body table {
        max-width: 100% !important;
        width: auto !important;
        display: block;
        overflow-x: auto;
    }

    .tab-content1 {
        margin-top: 8px;
    }

    .related-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .related-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-item {
        border-radius: 8px;
    }

    .related-item img {
        border-radius: 8px 8px 0 0;
    }

    .related-item .info {
        padding: 8px;
    }

    .related-item .title {
        font-size: 13px;
        line-height: 1.3;
    }

    .related-item .price {
        font-size: 14px;
    }

    /* 保障列表居中 */
    .guarantee-section {
        padding: 10px 0;
    }

    .guarantee-list {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .guarantee-item {
        font-size: 12px;
    }

    .guarantee-item svg {
        width: 16px;
        height: 16px;
    }

    /* 详情内容图片自适应 */
    .content-body img,
    .tab-pane img,
    #tab-detail img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .content-body {
        overflow-x: hidden;
    }

    .content-body table {
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }
}
