/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
}

.logo {
    /* 文字 Logo 样式 */
    .logo-text {
        font-size: 32px;
        font-weight: bold;
        color: #2c3e50;
        position: relative;
    top: -8px; /* 数值越大越往上 */
    }

    /* 图片 Logo 样式 */
    .logo-image {
        display: inline-block;
    }

    .logo-image img {
        height: 40px; /* 调整 logo 图片高度 */
        width: auto;
        vertical-align: middle;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 首页横幅样式 */
/* 保留原 hero 样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    background-color: transparent;
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg .hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(0.7);
    pointer-events: none;
}

.hero-bg .slide.active {
    opacity: 0.8;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* 左右按钮样式 */
.hero-bg .prev, .hero-bg .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.hero-bg .prev:hover, .hero-bg .next:hover {
    background-color: rgba(0,0,0,0.7);
}

.hero-bg .prev {
    left: 20px;
}

.hero-bg .next {
    right: 20px;
}

/* 底部圆点导航 */
.hero-bg .dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-bg .dots span {
    display: block;
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-bg .dots span.active {
    background-color: #fff;
}

/* 保留文字样式 */
.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    position: relative;
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero .container {
    position: relative;
    z-index: 2; /* 文字和按钮高于遮罩 */
}

.hero-bg .prev,
.hero-bg .next,
.hero-bg .dots {
    z-index: 3; /* 按钮和圆点在最上面 */
}
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}
/* 案例精品样式 */
.case-section {
    text-align: center;
    padding: 50px 0;
  }
  
  .case-tabs {
    margin-bottom: 30px;
  }
  
  .case-tabs .tab {
    padding: 8px 20px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
  }
  
  .case-tabs .tab.active {
    background: #999;
    color: #fff;
  }
  
  .case-content {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .case-content.active {
    display: grid;
  }
  
  .case-item img {
    width: 100%;
    border: 1px solid #ddd;
  }
  
.project-section {
    text-align: center;
      padding: 60px 20px;
      background: #ebebeb;
}

.project-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.project-section p {
    color: #7d7f7f;
    font-size: 16px;
    margin-bottom: 5px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}



.project-row.single img,
.project-row.double img {
    width: 100%;
      border-radius: 10px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      transition: transform 0.4s ease;
}

.project-row.double {
    display: flex;
    gap: 20px;
}

.project-row.double img {
    flex: 1 1 0;
    min-width: 0;
}

.project-row img:hover {
    transform: scale(1.03);
}

.project-placeholder {
    color: #7f8c8d;
    font-size: 16px;
}

@media (max-width: 768px) {
    .project-row.double {
        flex-direction: column;
    }
}

body.lightbox-open {
    overflow: hidden;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.project-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.project-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-lightbox .lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-lightbox .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 产品区域样式 */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.product-image {
    overflow: hidden;
    border-radius: 5px;
    margin: -20px -20px 20px -20px;
}

.learn-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
}

.learn-more i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 关于我们样式 */
.about {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* 联系方式样式 */
.contact {
    padding: 80px 0;
}

.contact-info {
    margin-top: 30px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        padding: 8px 14px;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 6px;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: 520px;
    }

    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 30px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image img {
        height: 32px; /* 移动端稍微缩小 logo */
    }

    .case-content {
        grid-template-columns: repeat(2, 1fr);
    }
} 

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 90px 0 30px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .project-gallery {
        gap: 10px;
    }

    .case-content {
        grid-template-columns: 1fr;
    }
}

/* 更新其他部分样式 */
section {
    padding: 100px 0;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
} 

/* 关于我们样式更新 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 联系我们样式更新 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.info-content p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
} 

/* 表单提交状态样式 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.success-message,
.error-message {
    display: none;
    color: #155724;
    font-size: 14px;
}

.success-message i,
.error-message i {
    margin-right: 5px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    color: #fff;
}

.btn-loading i {
    margin-right: 5px;
}

/* 禁用状态的提交按钮 */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 


/* 联系我们整体区域 */
#contact {
    position: relative;
    background: url("images/map.png") no-repeat center center;
    background-size: cover;
    color: #ffffff;
    min-height: 500px; /* 比原来低一点 */
}

/* 半透明遮罩 */
.lvjing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1;
    display: flex;
    align-items: center; /* 遮罩内部垂直居中 */
}

/* 内容容器 */
#contact .container {
    position: relative;
    z-index: 2;
}

/* 标题 */
#contact h2 {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

/* 段落文字 */
#contact p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

/* 地址信息 */
#contact address p {
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 图标样式 */
#contact .glyphicon {
    font-size: 18px;
    color: #40D2B1;
}

/* 链接 */
#contact a {
    color: #40D2B1;
    text-decoration: none;
}
#contact a:hover {
    text-decoration: underline;
}

/* 右侧图片区 */
#contact .img-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
#contact .img-wrapper img {
    width: 180px; /* 固定图片宽度 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
