/* ============================================
   SplashCraft 首页特定样式
   注意：通用样式、Header和Footer样式已移至 common.css
   ============================================ */

/* 主视觉区域 - Swiper轮播图 */
.hero {
    position: relative;
    min-height: 600px;
    overflow: visible;
}

.hero-swiper {
    width: 100%;
    height: 600px;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: #1C2B4C;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}





/* Swiper导航按钮样式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper分页器样式 */
.hero-swiper .swiper-pagination {
    bottom: 180px;
    z-index: 20;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--text-white);
    padding: 40px 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title-bold {
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* 特色功能卡片 - 定位在banner左下角 */
.features-overlay {
    position: absolute;
    bottom: -90px;
    left: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.features-overlay .container {
    pointer-events: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    padding-bottom: 40px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--text-white);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* 幕后展示区 */
.behind-scenes {
    background-color: var(--bg-gray);
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.behind-scenes-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 左侧缩小，右侧放大 */
    gap: 50px;
    align-items: start;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* 减小间距 */
}

.quality-card {
    text-align: center;
    padding: 20px 12px; /* 减小内边距 */
    background: var(--text-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.quality-card:hover {
    transform: translateY(-3px);
}

.quality-icon {
    font-size: 32px; /* 稍微缩小图标 */
    color: var(--primary-color);
    margin-bottom: 12px; /* 减小间距 */
}

.quality-title {
    font-size: 13px; /* 稍微缩小字体 */
    font-weight: 600;
    color: var(--text-dark);
}

.behind-scenes-images {
    width: 100%;
}

.behind-scenes-image-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* 两侧宽，中间窄 */
    gap: 20px; /* 增加间距让图片看起来更大 */
}

.behind-scenes-image-item {
    position: relative;
    width: 100%;
    padding-top: 70%; /* 稍微增加高度，让图片更大 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #f5f5f5;
}

.behind-scenes-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.behind-scenes-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.behind-scenes-image-item:hover img {
    transform: scale(1.05);
}

/* 热门产品区 */
.hot-products {
    background-color: var(--text-white);
    padding: 80px 0;
}

.products-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--text-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    padding-top: 100%; /* 保持1:1的宽高比 */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-code {
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
}

/* 合作伙伴与评价区 */
.partners {
    background-color: var(--bg-gray);
    padding: 80px 0;
}

.partners-content {
    min-height: 200px;
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .behind-scenes-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .behind-scenes-image-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 15px;
    }
    
    .behind-scenes-image-item {
        padding-top: 75%; /* 平板设备稍微调整比例 */
    }
}

/* 响应式设计 - 首页特定样式 */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-swiper {
        height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 150px;
    }
    
    .features-overlay {
        position: static;
        margin-top: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
        padding-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .feature-icon img {
        width: 45px;
        height: 45px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .behind-scenes-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .behind-scenes-image-item {
        padding-top: 75%; /* 移动端保持长方形 */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .hero-swiper {
        height: 450px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        display: none; /* 小屏幕隐藏导航按钮 */
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 120px;
    }
    
    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .hero-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 20px;
    }
    
    .feature-card {
        padding: 18px 15px;
    }
    
    .feature-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .feature-icon img {
        width: 40px;
        height: 40px;
    }
    
    .feature-title {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
    }
    
    .products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-code {
        padding: 12px 15px;
        font-size: 14px;
    }
}