/* ==== 首页样式 ==== */

/* 1. Swiper轮播图样式 */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 自定义Swiper分页器样式 */
.hero-swiper .swiper-pagination {
    bottom: 30px !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    margin: 0 8px !important;
    transition: all 0.3s ease !important;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff !important;
    transform: scale(1.2);
}

/* 自定义Swiper导航按钮样式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    background: rgba(0, 0, 0, 0.3) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    margin-top: -25px !important;
    transition: all 0.3s ease !important;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px !important;
    color: white !important;
    font-weight: bold !important;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next {
    right: 30px !important;
}

.hero-swiper .swiper-button-prev {
    left: 30px !important;
}

/* 2. 热销产品样式 */
.hot-products {
    padding: 80px 0;
    background: url('../images/2025515newhome-13.png') center center/cover no-repeat;
    position: relative;
}

.hot-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.hot-products .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 右侧产品分类标题 */
.categories-header {
    margin-bottom: 30px;
}

.categories-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 左右布局 */
.products-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧产品轮播 */
.products-carousel {
    flex: 0 0 500px;
    width: 500px;
}

.products-swiper {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-showcase {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 20px 30px;
    text-align: left;
    border-radius: 20px 20px 0 0;
}

.product-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.product-subtitle {
    color: #333;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 15px;
    display: inline-block;
    margin: 0;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-charts {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.chart-image {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.product-info {
    background: #fff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    min-height: 80px;
}

.product-info-left {
    flex: 1;
    text-align: left;
}

.product-code {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.product-info-right {
    flex: 0 0 auto;
}

.view-product-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.view-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* 产品轮播导航样式 */
.products-swiper .swiper-pagination {
    bottom: 8px !important;
    z-index: 10;
}

.products-swiper .swiper-pagination-bullet {
    background: rgba(37, 99, 235, 0.5) !important;
    opacity: 1 !important;
}

.products-swiper .swiper-pagination-bullet-active {
    background: #3b82f6 !important;
}

.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
    color: white !important;
    background: rgba(37, 99, 235, 0.8) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    margin-top: -17px !important;
    z-index: 10;
    transition: all 0.3s ease !important;
}

.products-swiper .swiper-button-next:after,
.products-swiper .swiper-button-prev:after {
    font-size: 14px !important;
}

.products-swiper .swiper-button-next {
    right: 10px !important;
}

.products-swiper .swiper-button-prev {
    left: 10px !important;
}

.products-swiper .swiper-button-next:hover,
.products-swiper .swiper-button-prev:hover {
    background: rgba(37, 99, 235, 1) !important;
    transform: scale(1.1) !important;
}

/* 右侧产品分类 */
.products-categories {
    flex: 1;
    width: 660px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    height: 460px;
}

.category-item {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    margin-bottom: 15px;
}

.hexagon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 15px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hexagon svg {
    width: 35px;
    height: 35px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

/* 分类链接样式 */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 3. 文章板块样式 */
.articles {
    padding: 80px 0;
    background: white;
    color: #333;
}

.articles-header {
    text-align: center;
    margin-bottom: 60px;
}

.articles-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.articles-subtitle {
    font-size: 20px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.articles-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

/* 左侧期刊封面 */
.journals-showcase {
    flex: 0 0 550px;
}

.journal-covers {
    display: flex;
    justify-content: center;
    align-items: center;
}

.journal-cover {
    width: 500px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.journal-cover:hover {
    transform: translateY(-5px);
}

/* 右侧文章列表 */
.articles-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-year {
    flex: 0 0 80px;
    text-align: center;
}

.article-year .year {
    display: block;
    background: #2563eb;
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.article-year .journal {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
}

.article-title:hover {
    text-decoration: underline;
}

.article-details {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.article-details p {
    margin: 5px 0;
}

.product-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

/* 查看更多按钮 */
.articles-footer {
    text-align: center;
}

.view-more-btn {
    background: white;
    color: #2563eb;
    border: 2px solid #3b82f6;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.view-more-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 首页响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }

    /* 移动端Swiper按钮样式 */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }

    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 16px !important;
    }

    .hero-swiper .swiper-button-next {
        right: 15px !important;
    }

    .hero-swiper .swiper-button-prev {
        left: 15px !important;
    }

    .hero-swiper .swiper-pagination {
        bottom: 20px !important;
    }

    .hot-products, .articles {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    /* 移动端热销产品布局调整 */
    .products-layout {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }

    .products-carousel {
        width: 100%;
        flex: none;
    }

    .products-categories {
        width: 100%;
    }

    .products-swiper {
        height: 400px;
    }

    .product-content {
        flex-direction: column;
    }

    .product-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product-info-left {
        text-align: center;
    }

    .product-info-right {
        display: flex;
        justify-content: center;
    }

    .categories-header {
        margin-bottom: 20px;
        text-align: center;
    }

    .categories-title {
        font-size: 24px;
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: auto;
        gap: 15px;
    }

    .category-item {
        padding: 20px 10px;
    }

    .hexagon {
        width: 50px;
        height: 50px;
    }

    .hexagon svg {
        width: 25px;
        height: 25px;
    }

    .category-title {
        font-size: 12px;
    }

    .articles-title {
        font-size: 32px;
    }

    .articles-subtitle {
        font-size: 16px;
    }

    .articles-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .journals-showcase {
        flex: none;
        order: 2;
    }

    .journal-cover {
        width: 320px;
        max-height: 220px;
    }

    .articles-list {
        order: 1;
        gap: 20px;
    }

    .article-item {
        gap: 15px;
    }

    .article-year {
        flex: 0 0 70px;
    }

    .article-year .year {
        font-size: 16px;
        padding: 6px 8px;
    }

    .article-title {
        font-size: 14px;
    }

    .article-details {
        font-size: 13px;
        gap: 20px;
        text-align: center;
    }
}
