/* 商品详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f8f8;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

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

.breadcrumb .separator {
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: bold;
}

/* 商品详情区域 */
.product-detail {
    padding: 30px 0;
    background: #fff;
}

.product-main {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.main-image {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img,
.main-image > div {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

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

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

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

/* 商品信息区域 */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* 价格区域 */
.price-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.price-row:last-child {
    margin-bottom: 0;
}

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

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

.current-price {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
}

.promo-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.promo-tags .tag {
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* 商品元信息 */
.product-meta {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.meta-value {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

/* 规格选择 */
.spec-box {
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.spec-label {
    width: 60px;
    color: #666;
    font-size: 14px;
    padding-top: 8px;
}

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

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

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

.spec-option.active {
    border-color: #e74c3c;
    background: #e74c3c;
    color: #fff;
}

/* 数量选择 */
.quantity-box {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quantity-label {
    width: 60px;
    color: #666;
    font-size: 14px;
}

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

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: #e5e5e5;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

/* 操作按钮 */
.action-box {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-buy-now,
.btn-add-cart,
.btn-favorite {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

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

.btn-buy-now:hover {
    background: #c0392b;
}

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

.btn-add-cart:hover {
    background: #e74c3c;
    color: #fff;
}

.btn-favorite {
    background: #f8f8f8;
    color: #666;
    border: 1px solid #e5e5e5;
}

.btn-favorite:hover {
    background: #e5e5e5;
}

/* 服务承诺 */
.service-box {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
}

.service-item {
    color: #666;
    font-size: 14px;
}

.service-item i {
    color: #27ae60;
    margin-right: 5px;
}

/* 商品详情标签页 */
.product-tabs {
    margin-top: 40px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 20px;
}

.tab-item {
    padding: 15px 30px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-item:hover {
    color: #e74c3c;
}

.tab-item.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.tab-content {
    padding: 20px 0;
}

.tab-panel {
    display: none;
}

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

.detail-content {
    line-height: 1.8;
}

.detail-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .action-box {
        flex-wrap: wrap;
    }

    .btn-buy-now,
    .btn-add-cart,
    .btn-favorite {
        padding: 12px 25px;
        font-size: 14px;
    }

    .tab-header {
        overflow-x: auto;
    }

    .tab-item {
        white-space: nowrap;
        padding: 12px 20px;
    }
}