/**
 * 产品类型展示组件样式
 * 三列布局：機能飲品、膠囊、錠劑
 * 
 * @package TinusGroup
 * @version 1.0.0
 */

/* ==========================================================================
   产品类型展示区域
   ========================================================================== */

.product-types-section {
    margin-top: 80px;
    padding: 0;
}

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   产品类型卡片
   ========================================================================== */

.product-type-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2EA23A, #4CAF50, #66BB6A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-type-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(46, 162, 58, 0.15);
}

.product-type-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   产品类型标题
   ========================================================================== */

.product-type-title {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 22px;
    letter-spacing: 1px;
    position: relative;
}

.product-type-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2EA23A, #4CAF50);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-type-card:hover .product-type-title::after {
    opacity: 1;
    width: 60px;
}

/* ==========================================================================
   产品类型图片
   ========================================================================== */

.product-type-image {
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-type-image img {
    width: auto;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: brightness(1) saturate(1);
    margin: 10px auto 1px;
}

.product-type-card:hover .product-type-image img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

/* ==========================================================================
   产品类型描述
   ========================================================================== */

.product-type-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    text-align: left;
    padding: 0;
}

/* ==========================================================================
   产品类型特性列表
   ========================================================================== */

.product-type-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.product-type-features li {
    position: relative;
    padding: 8px 0 8px 25px;
    margin-bottom: 0px;
    line-height: 1.6;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-type-features li:before {
    content: '●';
    position: absolute;
    left: 0;
    top: 8px;
    color: #2EA23A;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.product-type-card:hover .product-type-features li {
    color: #444;
    transform: translateX(3px);
}

.product-type-card:hover .product-type-features li:before {
    color: #1B5E20;
    transform: scale(1.2);
}

/* ==========================================================================
   产品类型链接
   ========================================================================== */

.product-type-link {
    margin-top: 20px;
}

.product-link {
    color: #2EA23A;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.product-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #2EA23A;
    transition: width 0.3s ease;
}

.product-link:hover {
    color: #1B5E20;
    transform: translateY(-1px);
}

.product-link:hover::before {
    width: 100%;
}

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

/* 平板设备 */
@media (max-width: 1024px) {
    .product-types-grid {
        gap: 30px;
        padding: 0 20px;
    }
    
    .product-type-card {
        padding: 35px 25px;
    }
    
    .product-type-title {
        font-size: 1.6rem;
    }
    
    .product-type-image img {
        height: 180px;
    }
}

/* 小平板设备 */
@media (max-width: 768px) {
    .product-types-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .product-type-card {
        padding: 40px 30px;
    }
    
    .product-type-title {
        font-size: 1.8rem;
    }
    
    .product-type-image img {
        height: 220px;
    }
    
    .product-type-description {
        text-align: center;
        padding: 0;
    }
    
    .product-type-features {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 25px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .product-types-section {
        margin-top: 60px;
    }
    
    .product-types-grid {
        gap: 30px;
        padding: 0 15px;
    }
    
    .product-type-card {
        padding: 30px 20px;
    }
    
    .product-type-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .product-type-image {
        margin-bottom: 20px;
    }
    
    .product-type-image img {
        height: 180px;
    }
    
    .product-type-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .product-type-features li {
        font-size: 0.85rem;
        padding: 6px 0 6px 20px;
    }
    
    .product-link {
        font-size: 0.85rem;
    }
}
