/**
 * 流沙聚工作室官网 - 产品详情页面样式
 *
 * @fileoverview 前台网站产品详情页面样式文件
 * @author      流沙聚开发团队
 * @company     流沙聚工作室
 * @version     1.0.0
 * @since       2025-01-24
 * @copyright   Copyright (c) 2025 流沙聚工作室. All rights reserved.
 * @license     商业软件，保留所有权利
 * @contact     https://www.icks018.cn
 *
 * 本软件为商业软件，严禁复制、传播、反编译或用于其他任何用途
 * 仅授权合法用户在许可范围内使用
 */

/* 产品详情头部 */
.product-detail-header {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.product-header-content {
    padding-right: 30px;
}

.product-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333333;
}

.product-price {
    font-size: 32px !important;
    font-weight: 700;
    color: #000000 !important;
}

.original-price {
    font-size: 20px;
    color: #999999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-views {
    color: #666666 !important;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.product-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #000000;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.product-header-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-header-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-header-image:hover img {
    transform: scale(1.05);
}

/* 产品描述 */
.product-description {
    background: #ffffff;
}

.description-content {
    text-align: center;
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666666;
    margin-top: 30px;
}

/* 产品特性 */
.product-features-section {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

/* 产品规格 */
.product-specifications {
    background: #ffffff;
}

.specifications-table {
    margin-top: 50px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.specifications-table table {
    width: 100%;
    margin: 0;
}

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

.specifications-table tbody tr:last-child {
    border-bottom: none;
}

.spec-label {
    width: 30%;
    padding: 20px 30px;
    font-weight: 600;
    color: #000000;
    background: #f8f9fa;
}

.spec-value {
    padding: 20px 30px;
    color: #666666;
}

/* 相关产品 */
.related-products {
    background: #f8f9fa;
}

.product-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    background: #000000;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.product-badge.new {
    background: #ff6b6b;
}

.product-badge.featured {
    background: #ffd700;
    color: #000000;
}

.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.product-desc {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.product-btn:hover {
    background: #333333;
    color: #ffffff;
    transform: translateX(5px);
}

/* CTA区域 */
.cta-section {
    background: #000000;
    color: #ffffff;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: #cccccc;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-title {
        font-size: 36px;
    }

    .product-header-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

    .product-subtitle {
        font-size: 16px;
    }

    .product-price {
        font-size: 24px !important;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}

