/* ==================== 面包屑导航 ==================== */
.breadcrumb-section {
    margin-top: 70px;
    padding: 20px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 12px;
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== 商品详情布局 ==================== */
.product-detail-section {
    padding: 40px 0 60px;
    background: var(--bg-secondary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ==================== 商品图片区域 ==================== */
.product-gallery {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.main-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.main-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.main-image i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.image-thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== 商品信息区域 ==================== */
.product-info-detail {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 价格区域 */
.price-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-box .current-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-box .current-price .label {
    font-size: 13px;
    color: #f5576c;
}

.price-box .current-price .price {
    font-size: 36px;
    font-weight: 700;
    color: #f5576c;
}

.price-box .original-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-box .original-price .label {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-box .original-price .price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-box .discount {
    padding: 6px 15px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* 商品元信息 */
.product-meta-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--success-color);
}

/* 商品规格 */
.product-specs {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item label {
    width: 100px;
    font-size: 14px;
    color: var(--text-secondary);
}

.spec-item span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector label {
    width: 100px;
    font-size: 14px;
    color: var(--text-secondary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-info {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 总价 */
.total-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.total-price label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.total-price .price {
    font-size: 32px;
    font-weight: 700;
    color: #f5576c;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.action-buttons .btn {
    flex: 1;
}

.action-buttons .btn i {
    margin-right: 8px;
}

/* 服务特色 */
.service-features {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.service-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.service-features .feature i {
    font-size: 24px;
    color: var(--primary-color);
}

.service-features .feature span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 商品详情标签页 ==================== */
.product-tabs {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tabs-header {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--bg-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tabs-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 商品详情内容 */
.detail-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.detail-content > p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h4 i {
    color: var(--primary-color);
}

.detail-section ul,
.detail-section ol {
    padding-left: 25px;
}

.detail-section li {
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.placeholder-image {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-image i {
    font-size: 64px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.placeholder-image p {
    font-size: 16px;
    opacity: 0.7;
}

/* 常见问题 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question i:first-child {
    color: var(--primary-color);
    font-size: 18px;
}

.faq-question span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i:last-child {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 用户评价 */
.reviews-summary {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 30px;
}

.rating-box {
    text-align: center;
}

.rating-score {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    font-size: 20px;
    color: #ffc107;
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-item span:first-child {
    width: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.bar-item span:last-child {
    width: 40px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reviewer-info .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.reviewer-info .time {
    font-size: 12px;
    color: var(--text-light);
}

.review-rating i {
    font-size: 14px;
    color: #ffc107;
}

.review-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.load-more {
    text-align: center;
}

/* ==================== 相关推荐 ==================== */
.related-products {
    padding: 60px 0;
    background: var(--bg-primary);
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 400px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }

    .main-image i {
        font-size: 100px;
    }

    .price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .service-features {
        flex-wrap: wrap;
        gap: 15px;
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border-color);
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rating-box {
        padding: 20px 0;
    }

    .detail-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .product-title {
        font-size: 22px;
    }

    .price-box .current-price .price {
        font-size: 28px;
    }

    .total-price .price {
        font-size: 24px;
    }

    .image-thumbnails {
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .thumbnail i {
        font-size: 24px;
    }
}
