/* 首页样式 */

/* 主横幅区域 */
.hero-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    padding-left: 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 跨界赋能区域 */
.cross-sector {
    padding: 100px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.icon-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg.blue {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.icon-bg::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-link {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #1d4ed8;
}

/* 产品中心 */
.products-center {
    padding: 100px 0;
    background: #fff;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}

.products-grid .product-item {
    box-sizing: border-box;
    padding: 20px 30px;
    background-color:rgb(243,243,248,1);
}

/* 第一列 */
.products-grid .product-item:nth-child(1),
.products-grid .product-item:nth-child(2) {
    flex: 0 0 calc(25% - 20px);
}

.products-grid .product-item:nth-child(3) {
    flex: 0 0 calc(50% - 20px);
}

/* 第二列 */
.products-grid .product-item:nth-child(4) {
    flex: 0 0 calc(50% - 20px);
}

.products-grid .product-item:nth-child(5),
.products-grid .product-item:nth-child(6) {
    flex: 0 0 calc(25% - 20px);
}

.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: visible; /* 修改为 visible 避免裁剪 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 20px ;
    min-height: 120px;
    position: relative; /* 确保层级正确 */
    z-index: 1; /* 防止被其他元素遮挡 */
}

.product-item:hover {
    transform: scale(1.05); /* 调整为缩放效果 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 2; /* 悬停时提升层级 */
}

.product-image {
    overflow: visible; /* 确保图片容器不裁剪内容 */
}

.product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-item .product-image.big {
    width: 200px;
    height: 200px;
    /*padding: 20px 0;*/
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    /*transform: scale(1.1);*/
}

.product-info {
    flex: 1;
    padding: 60px 0;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-link {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #1d4ed8;
}

/* 新闻媒体报道 */
.news-media {
    padding: 100px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.news-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-link {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #1d4ed8;
}

/* 石墨烯研究院 */
.research-institute {
    padding: 100px 0;
    background: rgb(243,243,248,1);
}

.institute-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.institute-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.institute-item:hover {
    background: #fff;
    border: 1px solid #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.institute-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e74c3c;
    overflow: hidden;
}

.institute-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.institute-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.institute-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 悬浮弹窗 */
.floating-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-image {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-image:hover {
    transform: scale(1.05);
}

.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.popup-close:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-banner {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-text {
        padding-left: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .institute-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 70vh;
        min-height: 400px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-text {
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cross-sector,
    .products-center,
    .news-media,
    .research-institute {
        padding: 60px 0;
    }
    
    .features-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        min-height: auto;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .institute-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .floating-popup {
        right: 15px;
        bottom: 15px;
    }
    
    .popup-image {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: unset;
        min-height: unset;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .feature-card,
    .product-info,
    .news-content {
        padding: 25px 20px;
    }
    
    .institute-grid {
        grid-template-columns: repeat(2, 1fr);
        gap:0;
    }
    
    .institute-item {
        padding: 25px 15px;
    }
    
    .products-grid{
    display: block;
    }
    .product-image{
        width: 50%;
        height: auto;
    }

    .popup-image {
        width: 120px;
    }
}