/**
 * 商品展示模块样式
 *
 * @package DaxiongAi
 */

/* 商品展示区块 */
.products-showcase-section {
    background: linear-gradient(135deg, #0A2540 0%, #1A1E4B 100%);
    position: relative;
    padding: 60px 0;
    color: #fff;
    overflow: hidden;
}

/* 网格背景效果 */
.products-showcase-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* 径向渐变叠加 */
.products-showcase-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.products-showcase-section .container {
    position: relative;
    z-index: 3;
}

/* 标题区域 */
.products-showcase-section .section-header {
    margin-bottom: 30px;
}

.products-showcase-section .title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.products-showcase-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #7aa2ff 0%, #8a7aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* 特色标签 */
.products-showcase-section .feature-tags {
    display: flex;
    gap: 10px;
}

.products-showcase-section .feature-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* 分类标签 */
.products-showcase-section .product-categories {
    margin-bottom: 20px;
}

.products-showcase-section .category-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.products-showcase-section .category-tab {
    padding: 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: all 0.3s ease;
}

.products-showcase-section .category-tab:hover {
    color: rgba(255, 255, 255, 1);
}

.products-showcase-section .category-tab.active {
    color: #fff;
}

.products-showcase-section .category-tab.active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #7aa2ff 0%, #8a7aff 100%);
    border-radius: 3px;
}

/* 滚动文字 */
.products-showcase-section .marquee-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.products-showcase-section .marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.products-showcase-section .marquee-content span {
    display: inline-block;
    padding-right: 50px;
    color: #4be1b1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 商品网格 */
.products-showcase-section .products-grid {
    position: relative;
}

.products-showcase-section .category-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 商品卡片 */
.products-showcase-section .product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.products-showcase-section .product-card:nth-child(1) { animation-delay: 0.1s; }
.products-showcase-section .product-card:nth-child(2) { animation-delay: 0.2s; }
.products-showcase-section .product-card:nth-child(3) { animation-delay: 0.3s; }
.products-showcase-section .product-card:nth-child(4) { animation-delay: 0.4s; }
.products-showcase-section .product-card:nth-child(5) { animation-delay: 0.5s; }
.products-showcase-section .product-card:nth-child(6) { animation-delay: 0.6s; }
.products-showcase-section .product-card:nth-child(7) { animation-delay: 0.7s; }
.products-showcase-section .product-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-showcase-section .product-card:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

/* 推荐商品 */
.products-showcase-section .product-card.featured {
    background: linear-gradient(135deg, rgba(122, 162, 255, 0.1) 0%, rgba(138, 122, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(122, 162, 255, 0.2);
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(122, 162, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(122, 162, 255, 0.4);
    }
}

/* 商品标签 */
.products-showcase-section .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.products-showcase-section .product-tag {
    background-color: rgba(75, 225, 177, 0.15);
    color: #4be1b1;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 推荐标签 */
.products-showcase-section .product-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #7aa2ff 0%, #8a7aff 100%);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

/* 商品标题 */
.products-showcase-section .product-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #fff;
}

/* 商品描述 */
.products-showcase-section .product-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 商品底部 */
.products-showcase-section .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* 价格 */
.products-showcase-section .product-price {
    display: flex;
    align-items: baseline;
}

.products-showcase-section .price-currency {
    font-size: 0.9rem;
    margin-right: 2px;
    color: #4be1b1;
}

.products-showcase-section .price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4be1b1;
    text-shadow: 0 0 10px rgba(75, 225, 177, 0.3);
}

/* 购买按钮 */
.products-showcase-section .btn-product {
    background: linear-gradient(135deg, #7aa2ff 0%, #8a7aff 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.products-showcase-section .btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 255, 0.3);
}

/* 按钮波浪效果 */
.products-showcase-section .btn-product::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.products-showcase-section .btn-product:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-showcase-section .category-products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-showcase-section .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .products-showcase-section .category-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-showcase-section .section-title {
        font-size: 2rem;
    }
    
    .products-showcase-section .title-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-showcase-section {
        padding: 40px 0;
    }
    
    .products-showcase-section .category-tabs {
        flex-wrap: wrap;
    }
    
    .products-showcase-section .section-title {
        font-size: 1.8rem;
    }
    
    .products-showcase-section .product-title {
        font-size: 1.2rem;
    }
    
    .products-showcase-section .price-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .products-showcase-section .category-products {
        grid-template-columns: 1fr;
    }
    
    .products-showcase-section .section-title {
        font-size: 1.5rem;
    }
    
    .products-showcase-section .feature-tags {
        flex-wrap: wrap;
    }
    
    .products-showcase-section .btn-product {
        width: 100%;
        text-align: center;
    }
    
    .products-showcase-section .product-footer {
        flex-direction: column;
        gap: 15px;
    }
}
