/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    line-height: 1.6;
    color: #666666;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #1a237e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-img {
    height: 80px;
    margin-right: 15px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner 样式 */
.banner {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.1)), url('../images/banner.jpg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    margin-top: 70px;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.05);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.banner-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.cta-button {
    display: inline-block;
    background-color: #4A90E2;
    color: #FFFFFF;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3A80D2;
}

/* 产品中心样式 */
.products-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.products-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333333;
    margin-bottom: 50px;
}

.product-category-section {
    margin-bottom: 60px;
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 28px;
    color: #333333;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 10px;
}

.category-description {
    text-align: center;
    color: #666666;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-model {
    background-color: #F9F9F9;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.product-model:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #4A90E2;
}

.model-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 创建正方形比例 */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #FFFFFF;
}

.model-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-model:hover .model-image img {
    transform: scale(1.05);
}

.product-model h4 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 600;
}

.model-specs {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.inquiry-btn {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.inquiry-btn:hover {
    background-color: #3A80D2;
    transform: translateY(-2px);
}

/* 原有产品分类样式保留，用于兼容性 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-category {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-category:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 15px;
}

.product-category p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 16px;
}

.product-detail-btn {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.product-detail-btn:hover {
    background-color: #3A80D2;
}

/* 关于我们样式 */
.about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.about-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333333;
    margin-bottom: 50px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666666;
}

.company-advantages {
    margin-top: 30px;
}

.company-advantages h4 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 15px;
}

.company-advantages ul {
    list-style-type: none;
    padding-left: 0;
}

.company-advantages li {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.company-advantages li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.contact-section h2 {
    text-align: center;
    font-size: 36px;
    color: #333333;
    margin-bottom: 50px;
}

/* 联系方式卡片 */
.contact-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #F8FAFF;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4A90E2;
    border-radius: 50%;
    color: #FFFFFF;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-details p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.phone-link {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #4A90E2;
    text-decoration: none;
    margin-bottom: 10px;
}

.call-button {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 150px;
}

.call-button:hover {
    background-color: #3A80D2;
    transform: translateY(-2px);
}

/* 检验报告卡片 */
.reports-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reports-card h3 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 10px;
}

.reports-description {
    text-align: center;
    color: #666666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.report-category {
    background-color: #F8FAFF;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #4A90E2;
}

.report-category h4 {
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.report-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-link {
    display: block;
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    background-color: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.report-link:hover {
    background-color: #4A90E2;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateX(5px);
}

/* 页脚样式 */
.footer {
    background-color: #1a237e;
    color: #FFFFFF;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-contact h3,
.footer-reports h3 {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contact-item {
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-item strong {
    color: #4A90E2;
}

.footer-contact-item a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: #4A90E2;
    text-decoration: underline;
}

.footer-call-btn {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-call-btn:hover {
    background-color: #3A80D2;
    transform: translateY(-2px);
}

.footer-reports p {
    font-size: 14px;
    color: #CCCCCC;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-report-links {
    display: flex;
    gap: 10px;
}

.footer-report-link {
    display: inline-block;
    background-color: #4A90E2;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-report-link:hover {
    background-color: #3A80D2;
    transform: translateY(-2px);
}

.footer-info {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #555555;
    padding-top: 20px;
}

.domain-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.domain-link:hover {
    text-decoration: underline;
}

.footer-info p {
    font-size: 12px;
    color: #CCCCCC;
    margin: 0;
}

/* 检验报告页面样式 */
.reports-page {
    padding: 100px 0 60px;
    background-color: #F5F5F5;
    min-height: 100vh;
}

.reports-header {
    text-align: center;
    margin-bottom: 50px;
}

.reports-header h1 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 20px;
}

.reports-intro {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.reports-section {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.reports-section h2 {
    font-size: 28px;
    color: #333333;
    margin-bottom: 25px;
    border-bottom: 2px solid #4A90E2;
    padding-bottom: 10px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.report-category h3 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
}

.report-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4A90E2;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 16px;
    background-color: #F8FAFF;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.report-link:hover {
    background-color: #4A90E2;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.report-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.reports-notice {
    background-color: #FFF9E6;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    border-left: 4px solid #FFC107;
}

.reports-notice h3 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 20px;
}

.notice-content p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.notice-tip {
    background-color: #E8F4FD;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    margin-top: 15px;
    font-style: italic;
}

/* 导航栏激活状态 */
.nav-link.active {
    color: #4A90E2;
    font-weight: 600;
}

/* 页脚导航链接 */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav-links a:hover {
    color: #4A90E2;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-contact,
    .footer-reports {
        text-align: center;
    }
    
    .footer-report-links {
        justify-content: center;
    }
    
    .reports-page {
        padding: 80px 0 40px;
    }
    
    .reports-header h1 {
        font-size: 28px;
    }
    
    .reports-intro {
        font-size: 16px;
    }
    
    .reports-section {
        padding: 25px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .report-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
}

.close-modal:hover {
    color: #4A90E2;
}

#modalTitle {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
    padding-right: 40px;
}

#modalContent {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
}

/* 询价内容样式 */
.inquiry-content {
    line-height: 1.8;
}

.inquiry-content p {
    margin-bottom: 15px;
}

.contact-options {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.contact-option {
    background-color: #F8FAFF;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
}

.contact-option h4 {
    color: #333333;
    margin-bottom: 10px;
    font-size: 18px;
}

.phone-link-large {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #4A90E2;
    text-decoration: none;
    margin-bottom: 15px;
}

.call-button-large {
    background-color: #4A90E2;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.call-button-large:hover {
    background-color: #3A80D2;
    transform: translateY(-2px);
}

.email-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

.map-link {
    display: inline-block;
    background-color: #28a745;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.map-link:hover {
    background-color: #218838;
    transform: translateY(-2px);
    text-decoration: none;
    color: #FFFFFF;
}

.inquiry-tips {
    background-color: #FFF9E6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFC107;
    margin-top: 20px;
}

.inquiry-tips h4 {
    color: #333333;
    margin-bottom: 10px;
    font-size: 18px;
}

.inquiry-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.inquiry-tips li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.inquiry-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FFC107;
    font-weight: bold;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #333333;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #444444;
    }

    .nav-toggle {
        display: flex;
    }

    .banner {
        height: 400px;
        margin-top: 70px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .products-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-category {
        padding: 20px;
    }

    .call-button {
        width: 100%;
        max-width: none;
        padding: 20px;
        font-size: 16px;
    }

    .phone-link {
        font-size: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .banner-content h1 {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .products-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
}

/* 浏览器兼容性处理 */
@supports not (display: grid) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-category {
        width: 300px;
        margin: 15px;
    }
}

/* IE11 特殊处理 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .product-category {
        width: calc(33.333% - 30px);
        margin: 15px;
    }
}