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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #e94e38;
    color: #fff;
}

.btn-primary:hover {
    background-color: #d63c26;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 78, 56, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #e94e38;
    color: #e94e38;
}

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

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

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

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #e94e38;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar .logo:hover {
    color: #d63c26;
}

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

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e94e38;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 首页轮播样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.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 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    padding: 0 80px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.prev-slide, .next-slide {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 关于我们样式 */
.about {
    padding: 120px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid #e94e38;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

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

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #e94e38;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 14px;
    color: #666;
}

/* 服务项目样式 */
.services {
    padding: 120px 0;
    background-color: #f8f8f8;
}

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

.service-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #e94e38;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: #e94e38;
    color: #fff;
}

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

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

/* 作品展示样式 */
.works {
    padding: 120px 0;
    background-color: #fff;
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #e94e38;
    color: #e94e38;
}

.filter-btn.active {
    background-color: #e94e38;
    color: #fff;
    border-color: #e94e38;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.work-overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.work-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.work-link:hover {
    color: #e94e38;
}

.works-more {
    text-align: center;
    margin-top: 50px;
}

/* 客户评价样式 */
.testimonials {
    padding: 120px 0;
    background-color: #f8f8f8;
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.testimonial-item.active {
    position: relative;
    opacity: 1;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 48px;
    color: #e94e38;
    opacity: 0.2;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -20px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -20px;
}

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

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

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

.author-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: #e94e38;
    width: 30px;
    border-radius: 6px;
}

/* 新闻动态样式 */
.news {
    padding: 120px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 14px;
    color: #e94e38;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: #e94e38;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.news-link:hover {
    color: #d63c26;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e94e38;
    transition: width 0.3s ease;
}

.news-link:hover::after {
    width: 100%;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

/* 联系我们样式 */
.contact {
    padding: 120px 0;
    background-color: #f8f8f8;
}

.contact-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #e94e38;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.contact-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

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

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

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo .logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e94e38;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: #999;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #e94e38;
    color: #fff;
    transform: translateY(-3px);
}

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

.footer-bottom p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e94e38;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d63c26;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .slide-content h1 {
        font-size: 48px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .services-grid,
    .works-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 800px;
    }
    
    .navbar .container {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    .hamburger {
        display: block;
    }
    
    .slide-content {
        padding: 0 50px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        flex: none;
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .slide-content {
        padding: 0 30px;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .services-grid,
    .works-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .work-item img {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .navbar .logo {
        font-size: 20px;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-content p {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 滚动显示动画 */
.fade-in-up,
.fade-in,
.slide-in-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}