/* 商品详情页样式 */
.goods-detail-page {
    padding: 20px 0 40px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb span {
    color: #333;
}

/* 商品主体区域 */
.goods-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 商品图片区域 */
.goods-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f5f5;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #ff6600;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区域 */
.goods-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goods-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* 价格区域 */
.goods-price-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.price-row .label {
    font-size: 14px;
    color: #666;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-price {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
}

.current-price {
    color: #ff6600;
    font-size: 28px;
    font-weight: bold;
}

.sales-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.sales-row .label {
    font-weight: 500;
}

/* 阶梯价样式 */
.price-ranges {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price-ranges-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
}

.ranges-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-item {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.range-price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    min-width: 70px;
}

.range-qty {
    color: #999;
    font-size: 13px;
}

/* 规格选择 */
.goods-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.spec-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.spec-option:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.spec-option.active {
    border-color: #ff6600;
    background: #fff5f0;
    color: #ff6600;
}

/* 数量选择 */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eee;
}

.qty-input {
    width: 60px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

/* 操作按钮 */
.goods-actions {
    display: flex;
    gap: 15px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn-add-cart {
    background: #fff;
    color: #ff6600;
    border: 2px solid #ff6600;
}

.btn-add-cart:hover {
    background: #fff5f0;
    text-decoration: none;
}

.btn-buy-now {
    background: #ff6600;
    color: #fff;
}

.btn-buy-now:hover {
    background: #e55a00;
    text-decoration: none;
    color: #fff;
}

/* 商品属性表格 */
.goods-attributes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.goods-attributes h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.attr-table {
    width: 100%;
    border-collapse: collapse;
}

.attr-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.attr-table td {
    padding: 10px 0;
    font-size: 14px;
}

.attr-name {
    width: 120px;
    color: #666;
    font-weight: 500;
}

.attr-value {
    color: #333;
}

/* 详情标签页 */
.goods-detail-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #ff6600;
}

.tab-btn.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

/* 相关商品 */
.related-products {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.related-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.related-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.related-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 12px;
}

.related-name {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.related-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff6600;
}

/* 响应式 */
@media (max-width: 968px) {
    .goods-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px 20px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .goods-detail-page {
        padding: 15px 0 30px;
    }
    
    .goods-main {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .goods-detail-tabs {
        padding: 15px;
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goods-actions {
        flex-direction: column;
    }

    .tab-header {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 15px;
        font-size: 14px;
    }
}





