/* home.css - 首页样式文件，包含Banner、产品展示、关于我们等模块样式 */

/* Banner区域样式 */
.banner-section {
    width: 100%;
    overflow: hidden;
}

/* 产品卡片增强样式 - 替代JavaScript内联样式 */
.product-card {    
    transition: all 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d65c8ad;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* 新闻卡片增强样式 - 替代JavaScript内联样式 */
.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

/* 确保新闻卡片文字颜色变化 */
.news-card:hover .news-title {
    color: #fff;
}

.news-card:hover .news-desc {
    color: #fff;
}

.news-card:hover .news-time {
    color: rgba(255, 255, 255, 0.8);
}

.news-card:hover .news-link {
    color: #fff;
}

.news-card:hover .news-link img {
    filter: brightness(0) invert(1);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品展示区域样式 */
.products-section {
    padding:5% 12%;
    background: #fff;
    margin: 0 auto;
}

.products-header {
    margin-bottom: 4.5%;
}

.section-title {
    font-size: 36px;
    color: #666;
    font-weight: bold;
    margin-bottom: 30px;
}

.products-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.intro-text {
    width: 50%;
}

.intro-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.explore-btn {
    font-size: 18px;
}
        
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.product-card {
    width: 100%;
    max-width: 275px;
    height: 278px;
    background: #E0E6ED;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card img {
    max-width: 80%;
    max-height: 80%;
    transition: transform 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d65c8ad;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-title {
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
}

/* 关于我们区域样式 */
.about-section {
    background: url('../img/aboutBg.jpg') no-repeat left center;
    background-size: contain;
    position: relative;
    padding: 0 0 40px;
}

.about-container {
    display: flex;
    position: relative;
}

.about-left {
    width: 52%;
    position: relative;

}

.about-main-img {
    position: relative;
    left: 18%;
    max-width: 90%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-right {
    width: 48%;
    padding:0 12% 0 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 0;
}

.about-subtitle {
    font-size: 30px;
    color: #666;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 30px;
}

.about-content {
    margin-bottom: 40px;
}

.about-content p {
    font-size: 18px;
    color: #666;
    line-height: 2;
    margin: 0px;
}

.about-btn {
    align-self: flex-start;
}
        
        
/* 市场覆盖区域样式 */
.market-section {
    padding: 8% 12%;
    background: #fff;
}

.market-header {
    margin-bottom: 60px;
}

.market-desc {
    width: 45%;
}

.market-desc p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

.market-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-left {
    width: 20%;
    padding: 5% 5% 5% 0;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-number {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.animated-number {
    font-size: 54px;
    color: #0057B7;
    font-weight: bold;
    margin-right: 5px;
}

.stat-unit {
    font-size: 18px;
    color: #0057B7;
}

.stat-desc {
    font-size: 18px;
    color: #444;
}

.stat-divider {
    height: 1px;
    background: #000;
    margin: 30px 0;
}

.market-right {
    width: auto;
    flex: 1;
}

.area-img {
    width: 100%;
    height: auto;
}
        
/* 新闻资讯区域样式 */
.news-section {
    padding: 0 12% 8%;
    background: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.view-all-btn {
    font-size: 18px;
    color: #0057B7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-btn:hover {
    color: #004C98;
}

.news-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.news-card {
    width: 31%;
    border-left: 1px solid #0057B7;
    padding-left: 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 20px;
}

.news-card:hover {    background-size: cover;    background-position: center;    color: #fff;}/* 新闻卡片遮罩层样式 */.news-card::before {    content: '';    position: absolute;    top: 0;    left: 0;    width: 100%;    height: 100%;    background-color: rgb(19 48 73 / 60%); /* 半透明遮罩层 */    opacity: 0;    transition: opacity 0.3s ease;    z-index: -1; /* 确保遮罩层在文字下方 */}.news-card:hover::before {    opacity: 1;}

.news-card:hover .news-title,
.news-card:hover .news-desc,
.news-card:hover .news-link {
    color: #fff;
}

.news-card:hover .news-link img {
    filter: brightness(0) invert(1);
}

.news-time {
    font-size: 14px;
    color: #929191;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.news-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 5% 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-desc {
    font-size: 16px;
    color: #888;
    height: 77px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14%;
    transition: color 0.3s ease;
}

.news-link {
    font-size: 18px;
    color: #004C97;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-link img {
    width: 28px;
    height: auto;
    margin-left: 5px;
    transition: filter 0.3s ease;
}
        
/* 响应式设计 - 产品展示区域 */
/* 完整的响应式设计 */
@media (max-width: 1600px) {
    .products-section {
        padding: 5% 3%;
    }
    .about-main-img{
            left: 6%;
    }
}

@media (max-width: 1440px) {
    .about-main-img{
            left: 5%;
    }
  .about-content p{
		margin: 0px;
  }
  .about-right{
    padding: 0 3% 0 2%;
  }
}
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .product-card {
        max-width: 250px;
        height: 250px;
    }
}

@media (max-width: 1300px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        width: 100%;
        max-width: 275px;
        margin: 0 auto;
    }
}
@media (max-width: 1200px) {
    .products-section {
        padding: 4% 3%;
    }
    .section-title {
        font-size: 30px;
    }
    
    .intro-text {
        width: 60%;
    }
    
    .intro-text p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-card {
        max-width: 350px;
        height: 250px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .market-content {
        flex-direction: column;
    }
    
    .stats-left {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .market-right {
        width: 100%;
    }
    
    .market-desc {
        width: 100%;
    }
    .about-container {
        flex-direction: column;
    }
    
    .about-section {
        background: none;
    }
    .about-left {
        width: 100%;
        height:auto;
        margin-bottom: 40px;
        background: url('../img/aboutBg.jpg') no-repeat left center;
    }
    
    .about-main-img {
        position: static;
        display: block;
        margin: 0 auto;
        max-width: 80%;
    }
    
    .about-right {
        width: 100%;
        padding: 0 12%;
    }
}

@media (max-width: 992px) {
    .products-section {
        padding: 3% 2%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-intro {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .intro-text {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    
    .product-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 3% 2%;
    }
    
    .section-title {
        font-size: 24px;
        text-align: center;
    }
    
    .intro-text p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        max-width: 355px;
        height: 200px;
    }
    
    .product-title {
        font-size: 24px;
    }
    .news-content{
    flex-direction: column;
    }
    .news-card{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 2% 1%;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .product-card {
        max-width: 250px;
        height: 150px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .intro-text p {
        font-size: 17px;
    }
    
    .about-left{
        height: auto;
    }
}

        