* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0B3B5B;
    --primary-blue: #1E3A6F;
    --tech-blue: #2D7EE9;
    --gold: #D4AF37;
    --orange: #F5A623;
    --bg-light: #F5F7FA;
    --text-dark: #333;
    --text-gray: #666;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* 导航栏 */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.mobile-contact {
    display: none;
}

.mobile-buttons {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* 横幅 */
.banner {
    height: 93vh;
    background-image: url('/images/blog-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 59, 91, 0.6);
    z-index: 1;
}

.banner-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--tech-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-cma {
    background-color: rgba(212, 175, 55, 0.2);
    border: 2px solid #f36d57;
    color: #f36d57;
}

.badge-cnas {
    background-color: rgba(45, 126, 233, 0.2);
    border: 2px solid #44d1f1;
    color: #44d1f1;
}

.badge-urgent {
    background-color: rgba(245, 166, 35, 0.2);
    border: 2px solid #f7bb34;
    color: #f7bb34;
}

/* 通用部分样式 */
.section {
    padding: 80px 20px;
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* 优势部分 */
.advantages {
    background: var(--white);
    width: 100%;
}

.advantages-wrapper {
    background: var(--white);
    padding: 0 20px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: #dfeafb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.advantage-button {
    margin-top: 20px;
}

.btn-advantage {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-advantage:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(45, 126, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    color: var(--tech-blue);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.advantage-card p {
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
}

/* 服务部分 */
.services {
    background: #f1f0ed;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 100%;
    height: auto;
    background-color: rgba(45, 126, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--tech-blue);
}

.service-icon img {
    width: 100%;
    height: auto;

    object-fit: cover;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #d4e7ff;
    color: #ff8b23;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 关于我们 */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 1.4rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 核心检测项目 */
.projects {
    background: var(--white);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: var(--primary-blue);
    color: white;
}

.tab:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
}

.project-content {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
    border-radius: 16px 16px 0 0;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.4;
}

.project-card p {
    margin: 0 0 20px 0;
    color: var(--text-gray);
    line-height: 1.6;
    flex-grow: 1;
}

.project-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.project-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0a3d62);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 126, 233, 0.3);
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-btn:hover::before {
    left: 100%;
}

/* 合作伙伴 */
.partners {
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2) contrast(1.1);
}

/* 询问检测 */
.inquiry {
    background: linear-gradient(135deg, #237cb7 0%, #31adc1 100%);
    color: var(--white);
}

.inquiry-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.inquiry-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.inquiry-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
}

.inquiry-buttons {
    display: flex;
    gap: 20px;
}

.btn-inquiry-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: #efa12d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-inquiry-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background-color: #e5c040;
}

.btn-inquiry-secondary {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-inquiry-secondary:hover {
    background-color: var(--white);
    color: #f39541;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* 页脚 */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--tech-blue);
    fill: var(--gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
@media (max-width: 768px){
    
    .footer-bottom {
    margin-bottom: 40px;
}
/* 响应式 */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-tabs {
        gap: 10px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .project-card-content {
        padding: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-contact {
        display: block;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .contact-item {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .mobile-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .mobile-btn {
        flex: 1;
        padding: 12px 0;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .consult-btn {
        background: #4281fa;
        color: white;
    }
    
    .consult-btn:hover {
        background: var(--primary-dark);
    }
    
    .quote-btn {
        background: var(--gold);
        color: var(--primary-dark);
    }
    
    .quote-btn:hover {
        background: #d4a933;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .project-tabs {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card img {
        height: 180px;
    }
    
    .project-card-content {
        padding: 20px;
    }
    
    .project-card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .project-card-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .inquiry-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .inquiry-text p {
        max-width: 100%;
    }
    
    .inquiry-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 40px;
        height: 40px;
    }
}
