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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-transparent {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #3a1c71;
    border: 2px solid #3a1c71;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-transparent:hover {
    background: #3a1c71;
    color: white;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #3a1c71;
    display: flex;
    align-items: center;
}

.logo a::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    border-radius: 50%;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

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

.nav ul li a:hover {
    color: #3a1c71;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3a1c71;
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Banner样式 */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0) 10px,
        rgba(255, 255, 255, 0) 20px
    );
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #666;
}

/* 服务样式 */
.services {
    padding: 100px 0;
    background: white;
}

.skills {
    max-width: 600px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.skill-info span {
    font-size: 16px;
    font-weight: 600;
    color: #3a1c71;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3a1c71, #d76d77, #ffaf7b);
    border-radius: 5px;
    transition: width 1.5s ease;
}

/* 行业样式 */
.industries {
    padding: 100px 0;
    background: #f9f9f9;
}

.industry-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: #3a1c71;
    color: white;
    border-color: #3a1c71;
}

.category-btn:hover:not(.active) {
    border-color: #3a1c71;
    color: #3a1c71;
}

.industry-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.industry-item {
    transition: transform 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-10px);
}

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

.industry-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.industry-color {
    height: 150px;
    transition: height 0.3s ease;
}

.industry-card:hover .industry-color {
    height: 100px;
}

.water-color {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pv-color {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.environment-color {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.protection-color {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.industry-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #333;
}

/* 评价样式 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0) 10px,
        rgba(255, 255, 255, 0) 20px
    );
}

.testimonial-slider {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 30px;
}

.testimonial-icon {
    margin-bottom: 30px;
    opacity: 0.5;
}

.testimonial-item p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    opacity: 0.8;
}

/* 联系样式 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.contact-form form {
    display: flex;
}

.contact-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus {
    border-color: #3a1c71;
}

.contact-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
}

.contact a {
    color: #3a1c71;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #d76d77;
    text-decoration: underline;
}

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

.footer-logo p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.footer p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.copyright a {
    color: #d76d77;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 40px;
    }
    
    .nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .industry-items {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contact-form form {
        flex-direction: column;
    }
    
    .contact-form input {
        border-radius: 50px;
        margin-bottom: 15px;
    }
    
    .contact-form button {
        border-radius: 50px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 90%;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .industry-items {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item p {
        font-size: 16px;
    }
}