* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff; /* 确保页面基础背景为白色 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    z-index: 2;
}

.slide-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.slide-text {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease 0.6s both;
    margin-bottom: 2rem;
}

.hero-button {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-button:hover {
    background: #fff;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 特色服务 */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #667eea;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 项目展示 */
.projects {
    padding: 5rem 0;
    background: #fff; /* 确保项目区背景为白色 */
}

.projects-grid {
    display: none; 
}

/* ========== 修正后的双轮播核心样式 ========== */
.project-carousel-wrapper {
    margin: 40px 0;
}

.carousel-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
    border-left: 4px solid #667eea;
    padding-left: 15px;
    font-weight: 600;
}

.project-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: transparent; /* 确保容器背景透明 */
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

/* 【关键修复】移除 padding，确保 slide 占满容器宽度 */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0; 
    margin: 0;
    display: flex; /* 确保内部卡片能撑满 */
}

/* 轮播控制按钮 */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* 轮播指示器 */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* 项目卡片 - 【关键修复】确保宽度和边距 */
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s;
    height: 400px;
    width: 100%; /* 强制占满父级 slide */
    margin: 0;   /* 确保无外边距 */
    flex-shrink: 0; /* 防止被压缩 */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.4s;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(102, 126, 234, 0.95) 0%, rgba(102, 126, 234, 0.7) 70%, rgba(102, 126, 234, 0.3) 100%);
}

.project-info {
    color: #fff;
    transform: translateY(0);
    transition: all 0.4s;
}

.project-card:hover .project-info {
    transform: translateY(-10px);
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 关于我们 */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.cta-button {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.about-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 页脚 */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }

    .carousel-title {
        font-size: 1.5rem;
    }
    .carousel-prev, .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    .project-card {
        height: 300px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 滚动动画类 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #667eea;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.contact-details p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-details strong {
    color: #333;
    font-weight: 600;
}

.contact-qr {
    text-align: center;
    padding: 2rem;
    padding-top: 20%;
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 3px solid #667eea;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.qr-text {
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

/* 响应式设计 - 联系我们模块 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item:hover {
        transform: translateY(-5px);
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
}