/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}
.img-bak {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    font-family: inherit;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item:first-child {
    color: #999;
}

.breadcrumb-item:last-child {
    color: #333;
    font-weight: 500;
}

/* 产品详情主要内容 */
.product-detail {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* 产品图片区域 */
.product-image-container {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 产品信息区域 */
.product-info {
    flex: 1;
    min-width: 0;
    padding-left: 20px;
}

.product-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #222;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 30px;
}

/* 产品颜色选择 */
.product-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: #9AFF00;
    transform: scale(1.05);
}

.color-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-color {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* 尺寸选择 */
.size-section {
    margin-bottom: 25px;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.size-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.size-chart {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.size-chart:hover {
    color: #333;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.size-btn:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

.size-btn.active {
    background-color: #9AFF00;
    border-color: #9AFF00;
    color: #222;
}

/* 数量选择 */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e8e8e8;
}

.quantity-btn img {
    width: 20px;
    height: 20px;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 500;
    background-color: #fff;
}

.quantity-input:focus {
    outline: none;
    background-color: #f9f9f9;
}

/* 库存信息 */
.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.stock-label {
    color: #333;
    font-weight: 500;
}

.stock-amount {
    color: #28a745;
    font-weight: 500;
}

/* 添加到购物车按钮 */
.add-to-cart-btn {
    width: 100%;
    background-color: #9AFF00;
    padding: 18px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 2px solid #9AFF00;
}

.add-to-cart-btn:hover {
    background-color: #8FEF00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 255, 0, 0.3);
}

.add-to-cart-btn img {
    width: 24px;
    height: auto;
}

/* 物流信息 */
.shipping-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.shipping-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.shipping-btn {
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.shipping-btn:hover {
    background-color: #f8f8f8;
}

.shipping-btn img {
    width: 20px;
    height: 20px;
}

/* 产品详情 */
.product-details {
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    cursor: pointer;
}

.details-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.details-toggle {
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.details-toggle:hover {
    background-color: #f8f8f8;
}

.details-toggle img {
    width: 20px;
    height: 20px;
}

.details-list {
    list-style: none;
    padding-left: 0;
}

.details-item {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding: 5px 0;
}

/* 产品描述区域 */
.product-description {
    margin-top: 60px;
    width: 100%;
}

.description-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 20px;
}

.description-divider {
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.description-content {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

/* 响应式设计 - 大屏幕 */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .product-detail {
        gap: 60px;
    }
    
    .product-info {
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .product-detail {
        gap: 30px;
    }
    
    .product-info {
        padding-left: 15px;
        min-width: 0;
    }
    
    .product-image-container {
        max-width: 500px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 20px;
    }
}

/* 响应式设计 - 小平板 */
@media (max-width: 900px) {
    .product-detail {
        flex-direction: column;
        gap: 25px;
    }
    
    .product-info {
        padding-left: 0;
    }
    
    .product-image-container {
        max-width: 100%;
        align-self: center;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .breadcrumb {
        gap: 5px;
        padding: 15px 0;
    }
    
    .product-detail {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .product-image-container {
        max-width: 100%;
    }
    
    .product-info {
        min-width: 100%;
        padding-left: 0;
    }
    
    .product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .product-price {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .product-colors {
        gap: 8px;
    }
    
    .color-option {
        width: 50px;
        height: 50px;
    }
    
    .size-options {
        gap: 6px;
    }
    
    .size-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 45px;
    }
    
    .quantity-section {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .quantity-label {
        min-width: 60px;
        font-size: 14px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }
    
    .stock-info {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .add-to-cart-btn {
        padding: 15px 20px;
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .shipping-info {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .description-image,
    .description-content {
        height: 250px;
    }
    
    .description-divider {
        height: 40px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .color-option {
        width: 45px;
        height: 45px;
    }
    
    .size-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .add-to-cart-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .description-image,
    .description-content {
        height: 200px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail {
    animation: fadeInUp 0.6s ease-out;
}

/* 无障碍和交互增强 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .size-btn {
        border-width: 2px;
    }
    
    .add-to-cart-btn {
        border-width: 3px;
    }
    
    .quantity-controls {
        border-width: 2px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .breadcrumb {
        border-bottom-color: #333;
    }
    
    .breadcrumb-item {
        color: #888;
    }
    
    .product-title {
        color: #fff;
    }
    
    .main-image {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    }
    
    .color-option {
        border-color: #555;
    }
    
    .size-btn {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .size-btn:hover {
        background-color: #3a3a3a;
    }
    
    .quantity-input {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .quantity-controls {
        border-color: #555;
    }
    
    .quantity-btn {
        background-color: #2a2a2a;
    }
    
    .quantity-btn:hover {
        background-color: #3a3a3a;
    }
    
    .shipping-info {
        border-bottom-color: #333;
    }
    
    .product-details {
        border-top-color: #333;
    }
} 


/* 标题样式 */
.product-description .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    text-align: left;
    margin-bottom: 2rem;
    margin-top: 4rem;
}

.product-description .section-title:first-child {
    margin-top: 2rem;
}

/* 通用产品网格 */
.product-description .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

/* 简单产品卡片 */
.product-description .simple-card {
    height: 200px;
    background-image: url(../images/shangcheng/shangcheng_6_6.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-description .simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-description .copy-btn {
    background-color: #9AFF00;
    color: #000;
    font-weight: bold;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.product-description .copy-btn:hover {
    background-color: #8AEF00;
}

/* 精选商品样式 */
.product-description .featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-description .featured-card {
    background-color: #F9F9F9;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 500px;
}

.product-description .featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-description .product-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.product-description .product-image {
    width: 165px;
    height: 222px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-description .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
}

.product-description .product-category {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.product-description .product-title {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.product-description .product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 1rem;
}

.product-description .price-tag {
    background-color: #9AFF00;
    font-weight: bold;
    font-size: 1.125rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    color: #000;
}

.product-description .view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.product-description .arrow-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-description .arrow-btn img {
    width: 100%;
    height: 100%;
}

/* 分隔线 */
.product-description .divider {
    margin: 2rem 0;
    text-align: center;
}

.product-description .divider img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

/* 标准产品网格 */
.product-description .product-grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-description .standard-product-card {
    background-color: #F9F9F9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-description .standard-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-description .product-image-container {
    background-color: #F3F3F3;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.product-description .product-image-container .product-image {
    width: 165px;
    height: 222px;
    object-fit: cover;
    border-radius: 8px;
}

.product-description .product-info-container {
    background-color: #F9F9F9;
    padding: 1.5rem;
}

.product-description .product-name {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description .product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 中间横幅 */
.product-description .middle-banner {
    width: 100%;
    height: 300px;
    background-image: url(../images/shangcheng/shangcheng_36_36.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin: 3rem 0;
}

.product-description .featured-products {
    display: inline-flex;
    overflow-y: hidden;
    overflow-x: scroll;
    width: 100%;
}


/* 主图轮播样式 */
.product-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.main-swiper {
    width: 100%;
    aspect-ratio: 1;
    max-width: 600px;
    max-height: 600px;
    margin-bottom: 20px;
}

.main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.main-swiper .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* 缩略图轮播样式 */
.thumbs-swiper {
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    padding: 0;
}

.thumbs-swiper .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #9AFF00;
}

.thumbs-swiper .thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper导航按钮自定义样式 */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    color: #9AFF00;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-swiper .swiper-button-next:after,
.main-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* 分页器样式 */
.main-swiper .swiper-pagination-bullet {
    background: #9AFF00;
    opacity: 0.3;
}

.main-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* 商品信息样式 */
.product-info {
    flex: 1;
    min-width: 0; /* 允许弹性收缩 */
}

.product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    margin-bottom: 20px;
}

.price-current {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
    margin-right: 15px;
}

.price-market {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.product-subtitle {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 规格选择样式 */
.spec-section {
    margin-bottom: 20px;
}

.spec-header {
    margin-bottom: 10px;
}

.spec-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.goods-spec-text {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.goods-spec-text li {
    position: relative;
}

.goods-spec-text li a {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.goods-spec-text li a:hover {
    border-color: #9AFF00;
    color: #9AFF00;
}

.goods-spec-text li.selected a {
    border-color: #9AFF00;
    background: #9AFF00;
    color: #000000;
}

.goods-spec-text li.disabled a {
    border-color: #eee;
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
}

/* 数量选择样式 */
.quantity-section {
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-right: 15px;
}

.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 80px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    background: #fff;
}

/* 库存信息样式 */
.stock-info {
    margin-bottom: 20px;
    color: #666;
}

.stock-label {
    font-weight: 500;
    margin-right: 10px;
}

.stock-amount {
    color: #333;
}

/* 购买按钮样式 */
.product-cart-btn {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn {
    background: #fff;
    color: #000000;
    border: 2px solid #9AFF00;
}

.add-to-cart-btn:hover {
    background: #9AFF00;
    color: #000000;
}

.buy-now-btn {
    background: #9AFF00;
    color: #000000;
}

.buy-now-btn:hover {
    background: #0056b3;
    color: #fff;
}

.add-to-cart-btn img {
    width: 20px;
    height: 20px;
}

/* 图片预览模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 20px;
}

.modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    width: 100%;
    height: 100%;
}

.modal-swiper {
    width: 100%;
    height: 100%;
}

.modal-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 模态框导航按钮样式 */
.modal-swiper .swiper-button-next,
.modal-swiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-swiper .swiper-button-next:after,
.modal-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.modal-swiper .swiper-button-next:hover,
.modal-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 模态框分页器样式 */
.modal-swiper .swiper-pagination {
    bottom: 30px;
}

.modal-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.modal-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #9AFF00;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.image-modal.closing {
    animation: fadeOut 0.3s ease;
}

/* 响应式设计 */
/* 大平板到小桌面 */
@media (max-width: 1024px) {
    .product-info {
    }
    
    .main-swiper {
        max-width: 500px;
        max-height: 500px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .price-current {
        font-size: 24px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        font-size: 15px;
        height: 48px;
    }
}

/* 小平板 */
@media (max-width: 900px) {
    .product-detail {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-info {
        margin-left: 0;
        margin-top: 0;
    }
    
    .main-swiper {
        max-width: 100%;
        max-height: 500px;
    }
}

/* 大手机到小平板 */
@media (max-width: 768px) {
    .main-swiper {
        max-height: 400px;
    }
    
    .thumbs-swiper {
        height: 70px;
    }
    
    .thumbs-swiper .swiper-slide {
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .price-current {
        font-size: 22px;
    }
    
    .product-cart-btn {
        gap: 10px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        height: 45px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        height: 95%;
    }
    
    .modal-close {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .modal-swiper .swiper-button-next,
    .modal-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .modal-swiper .swiper-button-next:after,
    .modal-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* 普通手机 */
@media (max-width: 600px) {
    .main-swiper {
        max-height: 350px;
    }
    
    .thumbs-swiper {
        height: 60px;
    }
    
    .thumbs-swiper .swiper-slide {
        width: 60px;
        height: 60px;
    }
    
    .product-cart-btn {
        gap: 12px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .main-swiper {
        max-height: 300px;
    }
    
    .thumbs-swiper {
        height: 50px;
    }
    
    .thumbs-swiper .swiper-slide {
        width: 50px;
        height: 50px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .price-current {
        font-size: 20px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .quantity-input {
        width: 60px;
        height: 35px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        height: 42px;
        font-size: 13px;
    }
}

/* 超小屏手机 */
@media (max-width: 360px) {
    .main-swiper {
        max-height: 280px;
    }
    
    .thumbs-swiper {
        height: 45px;
    }
    
    .thumbs-swiper .swiper-slide {
        width: 45px;
        height: 45px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .price-current {
        font-size: 18px;
    }
}

/* 商品详情内容样式 */
.detail-content {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.detail-content-wrap {
    width: 100%;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-content {
        padding: 10px;
    }
    
    .detail-content img {
        width: 100%;
    }
}

/* 图片懒加载样式 */
.lazy-img {
    transition: opacity 0.3s ease;
    opacity: 0;
    background-color: #f5f5f5;
}

.lazy-img.loaded {
    opacity: 1;
}

/* 占位符样式 */
.lazy-img[src*="data:image/svg+xml"] {
    background-color: #f5f5f5;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,.7) 10px,
        rgba(255,255,255,.7) 20px
    );
}

.lazy-img[src*="data:image/svg+xml"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}