/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部欢迎栏 */
.top-bar {
    background: #2c3e50;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #fff;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.contact-phone i {
    color: #3498db;
}



.email-text {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.email-text i {
    color: #3498db;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info i {
    color: #3498db;
}

.weibo-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.weibo-link:hover {
    color: #3498db;
}

/* 导航栏 */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.logo-text sup {
    color: #e74c3c;
    font-size: 12px;
    font-weight: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
    background: #e8f4fd;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    gap: 15px;
    z-index: 1000;
}

/* Banner轮播 */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner-content p {
    font-size: 18px;
    line-height: 1.6;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #fff;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 公司介绍 */
.company-intro {
    padding: 80px 0;
    background: #fff;
}

.company-intro h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.intro-highlights {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.highlight-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.highlight-item p {
    color: #666;
    font-size: 14px;
}

/* 产品展示 */
.products-showcase {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-showcase h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-phone {
    color: #3498db;
    font-weight: bold;
    font-size: 16px;
}

.view-all-products {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

/* 应用领域 */
.application-fields {
    padding: 80px 0;
    background: #fff;
}

.application-fields h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.field-item {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
}

.field-item:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(52, 152, 219, 0.2);
}

.field-item:hover p {
    color: #fff;
}

.field-item i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.field-item:hover i {
    color: #fff;
}

.field-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s;
}

.field-item:hover h3 {
    color: #fff;
}

.field-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
}

/* FAQ部分 */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s;
    color: #3498db;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* 联系方式 */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 24px;
    color: #3498db;
    min-width: 30px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.wechat-qr {
    text-align: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.wechat-qr img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wechat-qr p {
    color: #666;
    font-size: 14px;
}

/* 友情链接 */
.friendly-links {
    padding: 40px 0;
    background: #fff;
}

.friendly-links h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.links-content {
    text-align: center;
}

.simple-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s;
}

.simple-link:hover {
    background: #3498db;
    color: #fff;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p,
.footer-right p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* 图片预览模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover {
    color: #3498db;
}

/* 图片懒加载样式 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* 图片预加载优化 */
.critical-image {
    display: block;
    width: 100%;
    height: auto;
}

/* 响应式图片 */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-content {
        left: 5%;
        max-width: 400px;
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-highlights {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }
    
    .welcome-section {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .contact-phone {
        justify-content: center;
    }
    
    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .banner-section {
        height: 350px;
    }
    
    .banner-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px;
        padding: 15px;
    }
    
    .banner-content h2 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .intro-highlights {
        grid-template-columns: 1fr;
    }
    
    .fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        font-size: 10px;
        padding: 4px 0;
    }
    
    .welcome-section {
        gap: 3px;
    }
    
    .contact-phone {
        font-size: 10px;
    }
    
    .contact-info {
        gap: 6px;
    }
    
    .email-text,
    .weibo-link {
        white-space: nowrap;
        font-size: 10px;
    }
    
    .banner-section {
        height: 280px;
    }
    
    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
    
    .fields-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    

}