/**
 * 产品中心归档页面样式
 * 
 * @package TinusGroup
 * @version 1.0.0
 */

/* ==========================================================================
   产品中心页面主体
   ========================================================================== */

.wrapper-products-archive {
    background: #fff;
}

/* ==========================================================================
   Hero 区域 - 复用代工优势样式
   ========================================================================== */

.foundry-hero {
    background: linear-gradient(135deg, #2EA23A 0%, #4CAF50 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.foundry-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.foundry-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.foundry-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.02em;
}

.foundry-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================================================
   产品分类区域
   ========================================================================== */

.products-categories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-category-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-category-block:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ==========================================================================
   分类头部
   ========================================================================== */

.category-header {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2EA23A, transparent);
}

.category-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c757d, #495057);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 5px 0;
    letter-spacing: -0.01em;
}

.category-english {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

/* ==========================================================================
   产品网格
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
    margin: 0;
    list-style: none;
}

.product-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2EA23A;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

.product-item:hover::before {
    transform: scaleY(1);
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-name a {
    color: #12783b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-size: 16px;
}

.product-name a:hover {
    color: #1B5E20;
}

.product-effects {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    flex: 1;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .foundry-hero {
        padding: 60px 0 40px;
    }
    
    .foundry-hero__title {
        font-size: 2rem;
    }
    
    .foundry-hero__subtitle {
        font-size: 1rem;
    }
    
    .products-categories-section {
        padding: 40px 0;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .category-header::after {
        left: 20px;
        right: 20px;
    }
    
    .category-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .product-category-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .foundry-hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .foundry-hero__title {
        font-size: 1.8rem;
    }
    
    .foundry-hero__subtitle {
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .category-english {
        font-size: 0.9rem;
    }
    
    .product-item {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   加载动画效果
   ========================================================================== */

.product-category-block {
    animation: fadeInUp 0.6s ease-out;
}

.product-category-block:nth-child(2) { animation-delay: 0.1s; }
.product-category-block:nth-child(3) { animation-delay: 0.2s; }
.product-category-block:nth-child(4) { animation-delay: 0.3s; }

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

/* 禁用动画在移动设备上 */
@media (prefers-reduced-motion: reduce) {
    .product-category-block {
        animation: none;
    }
}
