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

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

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 头部样式 */
.header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-top: 70px;
}

.header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* 横幅样式 */
.banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f0f0f0;
    margin-bottom: 50px;
}

.banner::before {
    content: "替换1";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #666;
}

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

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
}

/* 服务介绍样式 */
.services {
    padding: 80px 30px;
    background-color: #f9f9f9;
}

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

.section-title h2 {
    font-size: 36px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #ff6b6b;
}

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

.service-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 作品展示样式 */
.gallery {
    padding: 80px 30px;
}

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

.gallery-item {
    background-color: #fff;
    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;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.gallery-item-info {
    padding: 25px;
}

.gallery-item-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.gallery-item-info p {
    font-size: 16px;
    color: #666;
}

/* 关于我们样式 */
.about {
    padding: 80px 30px;
    background-color: #f9f9f9;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

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

/* 客户评价样式 */
.testimonials {
    padding: 80px 30px;
    background-color: #fff;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 1;
    min-width: 100%;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-right: 20px;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-style: normal;
}

/* 联系我们样式 */
.contact {
    padding: 80px 30px;
    background-color: #f9f9f9;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

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

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

.contact-icon {
    font-size: 20px;
    margin-top: 5px;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p {
    font-size: 16px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.form-submit {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #ff5252;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 30px 30px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-column p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ddd;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer .social-links {
    margin-top: 20px;
}

.footer .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer .social-link:hover {
    background-color: #ff6b6b;
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar-container,
    .services-container,
    .gallery-container,
    .about-content,
    .testimonials-container,
    .contact-container,
    .footer-container {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .navbar-container,
    .services-container,
    .gallery-container,
    .about-content,
    .testimonials-container,
    .contact-container,
    .footer-container {
        max-width: 800px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header h1 {
        font-size: 42px;
    }
    
    .banner h2 {
        font-size: 42px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .service-item,
    .gallery-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-container,
    .services-container,
    .gallery-container,
    .about-content,
    .testimonials-container,
    .contact-container,
    .footer-container {
        max-width: 600px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .banner h2 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .service-item,
    .gallery-item {
        width: 100%;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .about-content h2 {
        font-size: 32px;
    }
    
    .testimonial-item {
        padding: 30px;
    }
    
    .testimonial-item p {
        font-size: 18px;
    }
    
    .footer-column {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 30px;
    }
    
    .header p {
        font-size: 16px;
    }
    
    .banner h2 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .service-item {
        padding: 30px 20px;
    }
    
    .gallery-item-info {
        padding: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* 滚动效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

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