/* ========== 产品详情页面专用样式 ========== */

/* 产品详情横幅 - 自定义背景 */
.product-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/fuimg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding-top: 72px;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 48, 107, 0.75), rgba(12, 79, 150, 0.55));
    z-index: 1;
}

.product-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 0 24px;
}

.product-hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.2;
}

.product-hero .hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto;
}

/* 产品详情主内容 - 两栏布局 */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* 产品图片 */
.product-image-single {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-image-single img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.product-image-single:hover img {
    transform: scale(1.02);
}

/* 产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* 产品规格 */
.product-specs h3 {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li strong {
    color: var(--text);
    min-width: 100px;
    font-weight: 600;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* 产品描述 */
.product-description {
    max-width: 800px;
    margin: 0 auto;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-out);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-alpha);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(12, 79, 150, 0.2);
    transition: transform var(--duration) var(--ease-out);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h4 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color var(--duration) var(--ease-out);
}

.feature-item:hover h4 {
    color: var(--primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 应用场景 */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.use-case-item {
    text-align: center;
    transition: all var(--duration) var(--ease-out);
}

.use-case-item:hover {
    transform: translateY(-4px);
}

.use-case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.use-case-item h4 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.use-case-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 客户评价 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--duration) var(--ease-out);
}

.testimonial-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-author strong {
    color: var(--primary);
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* 相关产品 */
.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease-out);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-alpha);
}

.product-card .product-image {
    height: 200px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-card h4 {
    color: var(--text);
    margin: 20px 20px 8px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color var(--duration) var(--ease-out);
}

.product-card:hover h4 {
    color: var(--primary);
}

.product-card .product-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.product-card .btn {
    margin: 0 20px 20px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-image-single {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product-hero {
        height: 350px;
        background-attachment: scroll;
    }

    .product-hero .hero-content h1 {
        font-size: 2rem;
    }

    .product-hero .hero-content p {
        font-size: 1rem;
    }

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

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

    .current-price {
        font-size: 2rem;
    }

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

    .product-actions .btn {
        flex: none;
    }

    .product-detail-content {
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .product-hero {
        height: 300px;
    }

    .product-hero .hero-content h1 {
        font-size: 1.6rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .original-price {
        font-size: 1rem;
    }

    .product-specs h3 {
        font-size: 1.3rem;
    }

    .product-specs li {
        font-size: 0.88rem;
    }

    .product-specs li strong {
        min-width: 80px;
    }
}
