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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 响应式图片样式 */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    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: 40px;
    width: auto;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* 首页样式 */
.hero-section {
    position: relative;
    height: 50vw; /* 使用视口宽度的50%来保持2:1比例 */
    min-height: 400px; /* 最小高度确保在小屏幕上也有合适的显示 */
    max-height: 600px; /* 最大高度避免在大屏幕上过高 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 通用区块样式 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* 服务区块 */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
    margin: 0;
    display: block;
    background: white;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 案例展示 */
.cases-section {
    padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.case-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.case-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 合作联盟 */
.partners-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.partners-backgrounds {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.partners-background-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partners-image {
    width: 100%;
    height: 200px; /* 调整为3:1比例，减少空白 */
    object-fit: contain;
    background-color: #f8f9fa;
}

.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.certification-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-image {
    height: 200px; /* 桌面端设定高度 */
    width: 535px; /* 8:3比例，200 * 8/3 = 535px */
    object-fit: contain;
    background-color: #f8f9fa;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #4169E1; /* 深蓝色背景 */
    color: white;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.company-intro {
    margin-bottom: 40px;
}

.company-intro h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.company-intro p {
    font-size: 1.1rem;
    color: white;
}

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

.contact-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-label {
    font-weight: bold;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.contact-value {
    color: white;
    font-size: 1.1rem;
}

.contact-section .section-title {
    color: white;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 关于我们页面样式 */
.about-hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.about-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.about-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.about-hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 优势特点 */
.advantages-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-content {
    max-width: 800px;
    margin: 0 auto;
    background: #e8f4fd;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.advantages-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.advantages-image-container {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantages-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 团队介绍 */
.team-section {
    padding: 80px 0;
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
    background: #f0f8ff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* 服务流程 */
.process-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-steps {
    max-width: 800px;
    margin: 50px auto 0;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateX(10px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: white;
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 30px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    /* 汉堡菜单动画 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-hero-title {
        font-size: 2.2rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certifications-grid {
        gap: 20px;
        justify-content: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .step-icon,
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .hero-section {
        height: 50vw; /* 保持2:1比例 */
        min-height: 300px; /* 移动端最小高度 */
        max-height: 400px; /* 移动端最大高度 */
    }
    
    .about-hero-section {
        height: 50vh;
        margin-top: 70px;
    }
    
    .services-section,
    .cases-section,
    .partners-section,
    .contact-section,
    .advantages-section,
    .team-section,
    .process-section {
        padding: 60px 0;
    }
    
    .service-image {
        height: 300px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .case-image {
        height: 400px; /* 适配3:4比例，假设宽度约300px */
    }
    
    .certification-image {
        height: 150px; /* 移动端设定高度 */
        width: 400px; /* 8:3比例，150 * 8/3 = 400px */
        object-fit: contain;
        background-color: #f8f9fa;
    }
    
    .partners-backgrounds {
        gap: 20px;
    }
    
    .partners-image {
        height: 120px; /* 移动端保持5:1比例，避免上下空白 */
        object-fit: contain;
        background-color: #f8f9fa;
    }
    
    .advantages-content,
    .team-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .advantages-content p,
    .team-content p {
        font-size: 1rem;
    }
    
    .advantages-image-container {
        margin: 30px 15px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-hero-title {
        font-size: 1.8rem;
    }
    
    .about-hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-icon,
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .advantages-content,
    .team-content {
        padding: 25px 15px;
    }
    
    .advantages-content p,
    .team-content p {
        font-size: 0.95rem;
    }
} 