/* ========================================
   产品页面样式 - 卡片式布局 + 微动效
   ======================================== */

/* 页面头部 */
.product-page-header {
    padding: 140px 0 60px;
    margin-top: 72px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

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

.product-page-header .section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.product-page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.product-page-header p {
    font-size: 1.25rem;
    color: #6B7280;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

/* 产品列表容器 */
.product-list {
    padding: 80px 0;
    background: #F9FAFB;
}

.product-list .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 产品卡片 */
.product-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

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

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

.product-card:nth-child(even) {
    direction: rtl;
}

.product-card:nth-child(even) > * {
    direction: ltr;
}

/* 产品图片 */
.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.product-card-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

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

/* 产品内容 */
.product-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #DC2626;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    width: fit-content;
    transition: all 0.3s ease;
}

.product-card:hover .product-tag {
    background: #B91C1C;
    transform: scale(1.05);
}

.product-card-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    transition: color 0.3s ease;
}

.product-card:hover .product-card-content h2 {
    color: #DC2626;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #DC2626;
    font-weight: 600;
}

.product-description {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.7;
}

/* 产品特性列表 */
.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: #374151;
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-features li:hover {
    background: #FEE2E2;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.product-features li:hover .feature-icon {
    transform: scale(1.2);
}

/* 产品规格表格 */
.product-specs-table {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.product-card:hover .product-specs-table {
    background: #FEF2F2;
}

.product-specs-table h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table td {
    padding: 10px 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.product-specs-table tr:hover td {
    color: #DC2626;
}

.product-specs-table td:first-child {
    color: #6B7280;
    width: 40%;
}

.product-specs-table td:last-child {
    color: #111827;
    font-weight: 600;
    text-align: right;
}

.product-specs-table tr:last-child td {
    border-bottom: none;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #DC2626;
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    border-color: #DC2626;
    color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .product-card:nth-child(even) {
        direction: ltr;
    }
    
    .product-card-image {
        order: -1;
    }
    
    .product-card-image img {
        max-width: 300px;
    }
    
    .product-card-content {
        text-align: center;
    }
    
    .product-tag {
        margin: 0 auto;
    }
    
    .product-features {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-specs-table {
        max-width: 500px;
        margin: 8px auto 0;
    }
    
    .product-card-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-page-header {
        padding: 120px 0 40px;
    }
    
    .product-page-header h1 {
        font-size: 2rem;
    }
    
    .product-page-header p {
        font-size: 1rem;
    }
    
    .product-list {
        padding: 40px 0;
    }
    
    .product-list .container {
        gap: 30px;
    }
    
    .product-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .product-card-content h2 {
        font-size: 1.5rem;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .product-card-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 20px;
    }
    
    .product-card-image img {
        max-width: 100%;
    }
    
    .product-specs-table {
        padding: 16px;
    }
}

/* 滚动显示动画 */
.product-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}
