/* 首页布局样式 */
/* 主横幅轮播区域 */
.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    width: 20%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1)); */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(70, 70, 70, 0.6);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(3, 71, 218, 0.4);
    border: 2px solid rgba(3, 71, 218, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* 企业优势区域 */
.advantages-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 0;
    background: var(--bg-light);
    border-radius: 0;
    position: relative;
    overflow-x: hidden;
}

.advantages-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.advantages-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(8, 102, 255, 0.2);
}

.advantage-card:hover .icon-circle {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(8, 102, 255, 0.3);
}

.icon {
    font-size: 2rem;
    filter: brightness(0) invert(1);
}

.advantage-content {
    text-align: center;
}

.advantage-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-content h3 {
    color: var(--secondary-color);
}

.advantage-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.advantage-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 产品展示区域 */
.featured-products {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* margin-top: 4rem; */
    /* margin-bottom: 4rem; */
    padding: 4rem 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow-x: hidden;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.product-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
    padding: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin: 0 auto;
}

/* Swiper样式覆盖 */
.productSwiper {
    padding: 3rem 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

/* 左侧白色渐变遮罩 */
.productSwiper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
}

/* 右侧白色渐变遮罩 */
.productSwiper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
}

/* 产品轮播导航按钮 */
.product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-prev {
    /* left: -10px!important; */
    z-index: 999;
}

.product-next {
    /* right: -10px!important; */
    z-index: 999;
}

/* Swiper导航按钮样式覆盖 */
.swiper-button-next.product-nav,
.swiper-button-prev.product-nav {
    color: var(--primary-color);
    width: 46px;
}

.swiper-button-next.product-nav:hover,
.swiper-button-prev.product-nav:hover {
    color: white;
}

.swiper-button-next.product-nav::after,
.swiper-button-prev.product-nav::after {
    font-size: 1.5rem;
}

/* Swiper分页器样式 */
.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.product-grid {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 1400px;
    justify-content: flex-start;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    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;
    width: calc(33.333% - 20px);
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
    width: 95%;
}

@media (max-width: 1200px) {
    .product-card {
        /* width: calc(50% - 1rem); */
        /* flex: 0 0 calc(50% - 1rem); */
    }
}

@media (max-width: 768px) {
    .product-card {
        width: calc(100% - 1rem);
        flex: 0 0 calc(100% - 1rem);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card .placeholder-image {
    border-radius: 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.product-card:hover .placeholder-image {
    transform: none;
}

.product-media {
    position: relative;
    overflow: hidden;
    height: 280px;
    width: 100%;
}

.product-media img,
.product-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
}

.product-card h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.product-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* 移除轮播导航按钮样式，改为网格布局 */

/* 解决方案展示区域 */
.solution-showcase {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 0;
    background: var(--bg-light);
    border-radius: 0;
    position: relative;
    overflow-x: hidden;
}

.solution-showcase h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.solution-showcase h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.solution-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
    padding: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin: 0 auto;
}

.solution-carousel {
    overflow: hidden;
    margin: 0 30px;
    padding: 3rem 0;
    border-radius: 16px;
    width: calc(100% - 60px);
    display: flex;
    justify-content: center;
    position: relative;
}

/* 左侧白色渐变遮罩 */
.solution-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-light), rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
}
.solution-carousel-wrapper a {
    text-decoration: none;
}
/* 右侧白色渐变遮罩 */
.solution-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(to left, var(--bg-light), rgba(255, 255, 255, 0));
    z-index: 5;
    pointer-events: none;
}

.solution-grid {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 1400px;
    justify-content: flex-start;
}

.solution-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    width: 280px;
    margin: 0 15px;
}
.solution-card .placeholder-image img {
    display: block;
    width: 100%;
}
.placeholder-image a, .solution-grid a {
    display: block;
    text-decoration: none;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.solution-card .placeholder-image {
    border-radius: 0;
    margin-bottom: 0;
}

.solution-card h3 {
    margin: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-decoration: none;
}

/* 解决方案轮播导航按钮 */
.solution-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.solution-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.solution-prev {
    left: 10px;
    z-index: 999;
}

.solution-next {
    right: 10px;
    z-index: 999;
}

/* 关于我们区域 */
.about-section {
    padding: 2% 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}
.about-center {
    width: 1200px;
    margin: 0 auto;
}

.about-content {
    padding: 2rem;
}

.about-content h2 {
    margin-bottom: 2rem;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.about-content a {
    margin-top: 15px;
}

.about-section .placeholder-image {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* 新闻资讯区域 */
.news-section {
    margin: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    border: 1px solid #eee;
    padding: 1rem;
}

.news-card h3 {
    margin: 1rem 0 0.5rem;
}

/* 合作伙伴区域 */
.partners {
    margin: 4rem 0;
    padding: 4rem 0;
    text-align: center;
}

.partners h2 {
    margin-bottom: 3rem;
    position: relative;
}

.partners h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.partner-logos {
    display: flex;
    width: 80vw;
    margin: 0 auto;
    justify-content: space-between;
}

.partner-logos .placeholder-image {
    background: white;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    border: none!important;
}

.partner-logos .placeholder-image:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    filter: grayscale(0%);
}

/* 响应式布局调整 */
@media (max-width: 992px) {
    .product-grid,
    .solution-grid,
    .news-grid,
    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-grid,
    .solution-grid,
    .news-grid,
    .partner-logos {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

/* 区块标题样式 */
section > h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 社交媒体样式 */
.social-media {
    margin-top: 2rem;
}

.social-media h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
