/* 商品详情页样式 - 使用指定配色方案 */

/* 基础变量定义 */
:root {
    --primary-blue: #1E3A8A;
    --secondary-blue: #1565C0;
    --accent-orange: #FF6F00;
    --hover-orange: #EF6C00;
    --success-green: #26A69A;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F5F5F5;
    --text-dark: #212121;
    --text-medium: #333333;
    --text-light: #757575;
    --border-light: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--bg-light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 面包屑导航 */
.breadcrumb-section {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--accent-orange);
}

.breadcrumb .current {
    color: var(--text-light);
}

/* 商品详情容器 */
.product-detail-container {
    background: var(--bg-white);
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-light);
    overflow: hidden;
}

/* 商品展示区域 */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* 商品图库 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    background: var(--bg-light-gray);
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.main-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-main-img:hover {
    transform: scale(1.05);
}

.image-badges {
    position: absolute;
    top: 15px;
    left: 15px;
}

.quality-badge {
    background: linear-gradient(135deg, var(--success-green), #4DB6AC);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
}

/* 缩略图容器 */
.thumbnail-container {
    position: relative;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    overflow-x: auto;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

/* 商品信息区 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag.quality {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.tag.certified {
    background: linear-gradient(135deg, var(--success-green), #4DB6AC);
    color: white;
}

/* 价格区域 */
.price-section {
    background: linear-gradient(135deg, var(--bg-light-gray), #FAFAFA);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
}

.price-main {
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-right: 10px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
}

.price-benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--success-green);
    font-weight: 500;
}

/* 购买选项 */
.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light-gray);
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-orange);
    color: white;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    outline: none;
}

/* 购买按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-cart {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-cart:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-buy {
    background: linear-gradient(135deg, var(--accent-orange), var(--hover-orange));
    color: white;
    border: 2px solid var(--accent-orange);
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--hover-orange), var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.3);
}

/* 店铺信息区域 */
.store-info-section {
    margin: 30px 0;
}

/* 商品详情区域 */
.product-details-section {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    margin: 30px 0;
    padding: 40px;
}

/* 商品描述内容 */
.content-header h3 {
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
}

/* 店铺信息卡片 */
.store-info-card {
    background: linear-gradient(135deg, var(--success-green), #4DB6AC);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-light);
    color: white;
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-info-card:hover {
    box-shadow: 0 8px 30px rgba(38, 166, 154, 0.3);
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #FFD700;
    font-size: 14px;
}

.rating-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.visit-store-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.visit-store-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.store-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.info-item i {
    color: white;
    font-size: 16px;
    margin-top: 2px;
    opacity: 0.9;
}

.info-item div {
    flex: 1;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    font-weight: 500;
}

.info-item span {
    font-size: 14px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .store-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .store-info-grid {
        grid-template-columns: 1fr;
    }

    .product-details-section {
        padding: 20px;
    }

    .store-info-section {
        margin: 20px 0;
    }
}