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

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

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

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

/* LOGO图片样式 */
.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.company-name h1 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.company-name p {
    font-size: 12px;
    color: #666;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0077be;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.carousel-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
    background: #333;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播图背景图片 */
.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('images/carousel-bg-1.jpg');
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('images/carousel-bg-2.jpg');
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('images/carousel-bg-3.jpg');
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.slide-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #0077be;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0077be;
}

.slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 轮播图导航点 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: white;
}

/* 轮播图导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="building" patternUnits="userSpaceOnUse" width="80" height="80"><rect x="0" y="60" width="20" height="20" fill="%230077be" opacity="0.05"/><rect x="20" y="40" width="20" height="40" fill="%23ff6b35" opacity="0.05"/><rect x="40" y="20" width="20" height="60" fill="%230077be" opacity="0.05"/><rect x="60" y="50" width="20" height="30" fill="%23ff6b35" opacity="0.05"/></pattern></defs><rect width="1200" height="800" fill="url(%23building)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #0077be;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

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

.info-item h4 {
    color: #0077be;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-item p {
    color: #333;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-building-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-building-img:hover {
    transform: scale(1.02);
}

/* 通用部分标题样式 */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 团队介绍 */
.team {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="team" patternUnits="userSpaceOnUse" width="120" height="120"><circle cx="30" cy="30" r="15" fill="%230077be" opacity="0.03"/><circle cx="90" cy="90" r="20" fill="%23ff6b35" opacity="0.03"/><circle cx="60" cy="60" r="10" fill="%230077be" opacity="0.05"/></pattern></defs><rect width="1200" height="800" fill="url(%23team)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

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

.team-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #ff6b35;
}

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

.team-avatar {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0077be;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #0077be, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.team-img:before {
    content: "👤";
    opacity: 0.8;
}

.team-card:hover .team-img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.3);
    border-color: #ff6b35;
}

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

.team-title {
    color: #0077be;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
}

.team-card p:last-child {
    color: #666;
    line-height: 1.6;
}

/* 资质证书 */
.certificates {
    padding: 80px 0;
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="cert" patternUnits="userSpaceOnUse" width="100" height="100"><rect x="10" y="10" width="80" height="60" fill="none" stroke="%230077be" stroke-width="1" opacity="0.05"/><rect x="20" y="20" width="60" height="40" fill="none" stroke="%23ff6b35" stroke-width="1" opacity="0.05"/><circle cx="50" cy="40" r="5" fill="%230077be" opacity="0.05"/></pattern></defs><rect width="1200" height="800" fill="url(%23cert)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.certificates h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

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

.cert-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0077be;
}

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

.cert-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cert-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.cert-card p {
    color: #666;
    line-height: 1.6;
}


/* 服务项目 */
.services {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="service" patternUnits="userSpaceOnUse" width="150" height="150"><polygon points="75,10 140,50 140,100 75,140 10,100 10,50" fill="%230077be" opacity="0.03"/><polygon points="75,30 120,60 120,90 75,120 30,90 30,60" fill="%23ff6b35" opacity="0.03"/></pattern></defs><rect width="1200" height="800" fill="url(%23service)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #0077be;
}

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

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #0077be, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-img:before {
    content: "🔧";
    opacity: 0.8;
}

.service-card:hover .service-img {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 119, 190, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* 工程案例 */
.projects {
    padding: 80px 0;
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="project" patternUnits="userSpaceOnUse" width="200" height="200"><rect x="0" y="0" width="200" height="200" fill="none" stroke="%230077be" stroke-width="2" opacity="0.05"/><rect x="50" y="50" width="100" height="100" fill="%23ff6b35" opacity="0.03"/><rect x="75" y="75" width="50" height="50" fill="%230077be" opacity="0.05"/></pattern></defs><rect width="1200" height="800" fill="url(%23project)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

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

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

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

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.project-card h3 {
    padding: 20px 20px 10px;
    color: #333;
    font-size: 1.2rem;
}

.project-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="contact" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="40" fill="none" stroke="%230077be" stroke-width="1" opacity="0.05"/><circle cx="50" cy="50" r="25" fill="none" stroke="%23ff6b35" stroke-width="1" opacity="0.05"/><circle cx="50" cy="50" r="10" fill="%230077be" opacity="0.05"/><line x1="10" y1="50" x2="90" y2="50" stroke="%23ff6b35" stroke-width="1" opacity="0.05"/><line x1="50" y1="10" x2="50" y2="90" stroke="%230077be" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="1200" height="800" fill="url(%23contact)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #0077be;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0077be;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: linear-gradient(rgba(51, 51, 51, 0.95), rgba(51, 51, 51, 0.95)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><pattern id="footer" patternUnits="userSpaceOnUse" width="60" height="60"><rect x="0" y="0" width="60" height="60" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.05"/><rect x="15" y="15" width="30" height="30" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="1200" height="200" fill="url(%23footer)"/></svg>');
    color: white;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
}

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

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

.footer-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo p {
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* 移动端LOGO调整 */
    .logo-image {
        height: 40px;
    }
    
    .footer-logo-image {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .slide-text h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .company-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* 移动端图片优化 */
    .team-img {
        width: 100px;
        height: 100px;
    }
    
    .cert-img, .service-img {
        width: 60px;
        height: 60px;
    }
    
    .about-building-img {
        max-width: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    /* 移动端背景图优化 */
    .carousel-section,
    .about,
    .team,
    .certificates,
    .services,
    .projects,
    .contact {
        background-attachment: scroll;
    }
    
    /* 移动端轮播图优化 */
    .carousel-section {
        height: 80vh;
    }
    
    .carousel-img {
        max-width: 90%;
        max-height: 60%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .project-card {
        margin: 0 10px;
    }
    
    /* 小屏幕轮播图优化 */
    .carousel-section {
        height: 70vh;
    }
    
    .carousel-img {
        max-width: 85%;
        max-height: 50%;
    }
    
    .slide-text h2 {
        font-size: 1.8rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    /* 小屏幕图片优化 */
    .team-img {
        width: 80px;
        height: 80px;
    }
    
    .cert-img, .service-img {
        width: 50px;
        height: 50px;
    }
    
    .about-building-img {
        max-width: 250px;
    }
}
