* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    float: left;
    padding: 10px 0;
    height: 60px;
}

nav {
    float: right;
}

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

.tab {
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #007bff;
}

.tab.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

/* Main content styles */
main {
    min-height: calc(100vh - 140px);
    padding: 80px 0 80px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Horizontal sliding styles */
.fullpage-wrapper {
    display: flex;
    height: calc(100vh - 160px);
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scroll-snap-type: x mandatory; /* 启用滚动捕捉 */
    will-change: transform; /* 提升性能 */
}

.fullpage-wrapper::-webkit-scrollbar {
    display: none; /* Chrome Safari */
}

.section {
    scroll-snap-align: start; /* 滚动时对齐到每个section开始位置 */
}

.section {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    flex-shrink: 0;
}

.slide-content {
    max-width: 800px;
    z-index: 10;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease both;
    backface-visibility: hidden;
    perspective: 1000px;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease 0.4s both;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 新增淡入动画，用于不同元素的交错出现 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.section1 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.section2 {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.section3 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.section4 {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* Services page styles */
#services h2,
#about h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #007bff;
    font-size: 2rem;
}

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

.service-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-10px);
}

.service-item h3 {
    color: #007bff;
    margin-bottom: 15px;
}

/* 分响坪服务样式 */
.shareping-intro,
.rebate-process,
.features {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shareping-intro h3,
.rebate-process h3,
.features h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.intro-content {
    flex: 3;
    padding-right: 15px;
}

.shareping-intro {
    display: flex;
    flex-wrap: wrap;
}

.shareping-intro p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.qrcode-placeholder {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qrcode-placeholder p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #007bff;
    font-size: 0.9rem;
}

.qrcode-area {
    width: 128px;
    height: 128px;
    background-color: #007bff;
    margin: 0 auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .shareping-intro {
        flex-direction: column;
    }
    
    .intro-content {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .qrcode-placeholder {
        align-items: center;
    }
    
    .shareping-intro,
    .rebate-process,
    .features {
        padding: 10px;
    }
}

/* Content and video side-by-side layout */
.content-with-video {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.content-with-video .rebate-process {
    flex: 2;
    min-width: 300px;
    margin-bottom: 0;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.step {
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -10px;
    left: 15px;
    width: 25px;
    height: 25px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.step h4 {
    color: #007bff;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.video-container {
    flex: 1;
    min-width: 300px;
    height: 500px; /* 固定高度为450px */
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-container video {
    border-radius: 5px;
    outline: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

@media (max-width: 768px) {
    .content-with-video {
        flex-direction: column;
    }
    
    .content-with-video .rebate-process {
        min-width: 100%;
    }
    
    .video-container {
        aspect-ratio: 16/9; /* 在小屏幕上改为横屏比例 */
        width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* About page styles */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p.company-intro {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-section {
    margin-bottom: 25px;
}

.about-section h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.about-section.contact-us h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.about-section.contact-us ul {
    list-style-type: none;
    padding-left: 0;
}

.about-section.contact-us li {
    padding: 5px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-section.contact-us li:before {
    content: "• ";
    color: #007bff;
    font-weight: bold;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-info {
    flex: 2;
}

.contact-qrcode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-qrcode .qrcode-area {
    width: 128px;
    height: 128px;
    background-color: #007bff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    padding: 5px;
}

.contact-qrcode .qrcode-area img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.contact-qrcode p {
    text-align: center;
    font-weight: bold;
    color: #007bff;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-qrcode {
        align-items: flex-start;
    }
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

footer a {
    color: #66ccff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    nav {
        float: none;
        clear: both;
    }
    
    .tab {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        position: relative;
    }
    
    main {
        padding: 20px 0;
    }
    
    .section {
        padding: 100px 20px 40px;
    }
}