/* Products Page Styles */

/* Hero Section - 参考轮播图样式 */
.products-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    background: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-button.primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.hero-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff7b45 0%, #ffa31e 100%);
}

.hero-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

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

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Service Features */
.service-features {
    background: #1a1a1a;
    padding: 3rem 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    color: #fff;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00b4d8;
}

/* Promotional Banners */
.promotional-banners {
    padding: 4rem 0;
    background: #0f0f0f;
}

.banners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.banner {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.intel-banner {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%);
}

.amd-banner {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(255, 142, 83, 0.8) 100%);
}

.banner-content {
    color: #fff;
    z-index: 2;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.banner-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.banner-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.banner-images {
    display: flex;
    gap: 1rem;
}

.banner-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Categories */
.product-categories {
    background: #1a1a1a;
    padding: 2rem 0;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-filter h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #333;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00b4d8;
    border-color: #00b4d8;
    color: #000;
}

/* Products Grid Section */
.products-grid-section {
    padding: 4rem 0;
    background: #0f0f0f;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.products-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    color: #fff;
    gap: 2rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00b4d8;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto 3rem auto;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.product-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #00b4d8;
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 150px;
}

.quick-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.rating-text {
    color: #999;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00b4d8;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: rgba(0, 180, 216, 0.2);
    color: #00b4d8;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* Active Navigation Link */
.nav-menu .active {
    color: #00b4d8;
    position: relative;
}

.nav-menu .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00b4d8;
    border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 900px;
        margin: 0 auto 3rem auto;
    }
}

@media (max-width: 1200px) {
    .products-hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-container {
        width: 100%;
        height: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-container {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .banners-container {
        grid-template-columns: 1fr;
    }
    
    .banner {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .banner-content {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto 3rem auto;
    }
}

@media (max-width: 480px) {
    .products-hero {
        height: 100vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .banner {
        padding: 1rem;
        min-height: 200px;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto 3rem auto;
    }
    
    .product-overlay {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quick-view-btn {
        width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
