/**
 * 产品页面样式
 */

/* 产品英雄区 */
.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

/* 动态背景粒子效果 */
.product-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
    height: 520px;
}

.phone-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* 3D 手机容器 */
.phone-3d {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    /* 取消静态回退图像，专注展示交互式3D模型 */
    background: none;
}

@media (max-width: 768px) {
    .hero-image {
        height: 420px;
    }
}

/* 核心特性 */
.core-features {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
}

/* 技术规格 */
.specifications {
    padding: 60px 0 30px; /* 减少下方留白 */
    background: white;
    position: relative;
    overflow: hidden;
}

.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* 减少左右间距 */
    align-items: center;
    margin-top: 2rem; /* 减少上方间距 */
}

.specs-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.spec-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.spec-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #64748b;
    font-weight: 500;
}

.spec-value {
    color: #1a202c;
    font-weight: 600;
}

/* 设计理念 */
.design-philosophy {
    padding: 40px 0; /* 减少整体留白 */
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* 规格标签切换 */
.spec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.spec-tab {
    padding: 8px 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spec-tab:hover {
    background: #e2e8f0;
}

.spec-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.spec-panels {
    margin-top: 1.25rem;
}

.tab-panel {
    display: none;
}

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

@media (max-width: 768px) {
    .spec-tabs {
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .spec-tab {
        flex: 0 0 auto;
    }
}

/* 已移除设计理念相关样式 */

/* 已移除用户评价相关样式 */

/* 大块动态背景色（类似首页） */
.core-features::before,
.specifications::before,
.presale-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    animation: sectionBlobFloat 24s ease-in-out infinite;
}

/* 不同区域使用不同配色的渐变背景块 */
.core-features::before {
    background-image:
        radial-gradient(800px 320px at 8% 85%, rgba(102, 126, 234, 0.18), transparent 70%),
        radial-gradient(700px 280px at 92% 15%, rgba(124, 58, 237, 0.16), transparent 70%),
        radial-gradient(600px 240px at 50% 50%, rgba(236, 72, 153, 0.12), transparent 75%);
}

.specifications::before {
    background-image:
        radial-gradient(900px 360px at 12% 20%, rgba(59, 130, 246, 0.16), transparent 70%),
        radial-gradient(700px 280px at 88% 80%, rgba(16, 185, 129, 0.14), transparent 70%),
        radial-gradient(600px 240px at 50% 10%, rgba(255, 215, 0, 0.10), transparent 75%);
}

/* 已移除设计理念与用户评价的动态背景 */

.presale-info::before {
    background-image:
        radial-gradient(900px 360px at 25% 25%, rgba(255, 215, 0, 0.12), transparent 70%),
        radial-gradient(700px 280px at 75% 75%, rgba(255, 165, 0, 0.10), transparent 70%);
}

/* 让内容在背景之上 */
.core-features > .container,
.specifications > .container,
.presale-info > .container {
    position: relative;
    z-index: 1;
}

@keyframes sectionBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -12px) scale(1.03); }
    66% { transform: translate(-16px, 10px) scale(0.98); }
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.author-title {
    color: #64748b;
    font-size: 0.9rem;
}

/* 预售信息 */
.presale-info {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.presale-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.presale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.presale-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.presale-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.presale-price {
    margin-bottom: 2rem;
}

.original-price {
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 1rem;
}

.sale-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.presale-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate="fadeInLeft"] {
    transform: translateX(-30px);
}

[data-animate="fadeInRight"] {
    transform: translateX(30px);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translate(0, 0);
}

[data-delay="100"].animate-in {
    transition-delay: 0.1s;
}

[data-delay="200"].animate-in {
    transition-delay: 0.2s;
}

[data-delay="300"].animate-in {
    transition-delay: 0.3s;
}

[data-delay="400"].animate-in {
    transition-delay: 0.4s;
}

[data-delay="500"].animate-in {
    transition-delay: 0.5s;
}

[data-delay="600"].animate-in {
    transition-delay: 0.6s;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content,
    .specs-content,
    .philosophy-item {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .philosophy-item.reverse {
        direction: ltr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .presale-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .core-features,
    .specifications,
    .design-philosophy,
    .testimonials {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .presale-card {
        padding: 2rem;
    }
    
    .presale-title {
        font-size: 2rem;
    }
    
    .sale-price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .philosophy-item {
        gap: 2rem;
    }
    
    .presale-card {
        padding: 1.5rem;
    }
    
    .presale-title {
        font-size: 1.75rem;
    }
}