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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

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

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #388E3C;
    color: white;
    border: 2px solid #388E3C;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #2E7D32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 章节标题 */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

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

/* 首页英雄区域 - 轮播图 */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 85vh;
    max-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    display: flex;
    align-items: center;
}

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

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.carousel-text {
    flex: 1;
    color: white;
    z-index: 2;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.carousel-subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e8f5e8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #d4edda;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.carousel-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.carousel-buttons .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.carousel-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.carousel-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

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

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

/* 轮播图响应式设计 */
@media (max-width: 1024px) {
    .carousel-content {
        padding: 0 30px;
        gap: 2rem;
    }

    .carousel-title {
        font-size: 3rem;
    }

    .carousel-subtitle {
        font-size: 1.8rem;
    }

    .carousel-image img {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 580px;
        height: 580px;
        max-height: 650px;
    }

    .carousel-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .carousel-item:not(.active) {
        display: none;
    }

    .carousel-content {
        flex-direction: column;
        padding: 80px 20px 70px;
        gap: 1.5rem;
        justify-content: center;
    }

    .carousel-text {
        text-align: center;
        order: 1;
    }

    .carousel-image {
        order: 2;
    }

    .carousel-title {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .carousel-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .carousel-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .carousel-image img {
        width: 90%;
        max-width: 420px;
    }

    .carousel-buttons {
        justify-content: center;
    }

    .carousel-buttons .btn {
        padding: 12px 26px;
        font-size: 15px;
    }

    /* 移动端隐藏左右箭头 */
    .carousel-control {
        display: none;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicators .indicator.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 520px;
        height: 520px;
        max-height: 600px;
    }

    .carousel-item {
        height: 100%;
    }

    .carousel-content {
        padding: 70px 15px 60px;
        gap: 1.2rem;
    }

    .carousel-title {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }

    .carousel-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .carousel-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .carousel-buttons .btn {
        padding: 11px 26px;
        font-size: 14px;
    }

    .carousel-image img {
        width: 85%;
        max-width: 350px;
    }

    .carousel-indicators {
        bottom: 18px;
    }

    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicators .indicator.active {
        width: 24px;
    }
}

/* 特色服务 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #4CAF50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

/* 特色服务图片样式 */
.feature-image {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.feature-image img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-weight: 500;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
}

/* 服务优势 */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    color: #4CAF50;
    flex-shrink: 0;
}

.advantage-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.advantage-content p {
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-image {
        min-height: 100px;
    }

    .feature-image img {
        width: 100px;
        height: 100px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .advantage-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .advantage-icon {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ==================== 小程序下载区域 ==================== */
.miniprogram-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.download-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 响应式显示控制 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 移动端小程序入口（轮播图后） */
.miniprogram-mobile-entry {
    padding: 40px 0;
    background: white;
}

.mobile-miniprogram-card {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-miniprogram-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mobile-miniprogram-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* PC端二维码样式 */
.qr-code-section {
    margin-top: 2rem;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid #4CAF50;
}

.qr-code-image {
    width: 240px;
    height: 240px;
    display: block;
    border-radius: 8px;
}

.qr-hint {
    font-size: 1rem;
    color: #666;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-hint i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* 移动端样式 */
.mobile-section {
    margin-top: 2rem;
    display: none; /* PC端默认隐藏 */
    flex-direction: column;
    align-items: center;
}

.open-btn {
    padding: 18px 60px;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.open-btn:active {
    transform: translateY(-1px);
}

.open-btn i {
    font-size: 1.5rem;
}

.mobile-qr {
    margin-top: 2rem;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.qr-code-image-mobile {
    width: 280px;
    height: 280px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 12px;
    border: 3px solid #4CAF50;
    background: white;
    padding: 10px;
}

.qr-hint-mobile {
    font-size: 1rem;
    color: #666;
    margin-top: 1rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-section {
        display: flex;
    }

    .miniprogram-download {
        display: none;
    }

    .download-card {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .download-title {
        font-size: 1.8rem;
    }

    .download-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .open-btn {
        padding: 16px 48px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 320px;
    }

    .qr-code-image-mobile {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .download-card {
        padding: 30px 20px;
    }

    .download-title {
        font-size: 1.5rem;
    }

    .download-subtitle {
        font-size: 0.95rem;
    }

    .qr-code-image-mobile {
        width: 200px;
        height: 200px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
} 