/* 各个部分的样式 */

/* 服务项目 */
.services {
    padding: 120px 0;
    background: linear-gradient(to bottom, #FFFFFF, #F9FAFB);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 统一所有h2标题样式 */
h2 {
    font-size: 36px;
    color: #1F2937;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.section-header h2 {
    font-size: 36px;
    color: #1F2937;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}


.section-header h3 {
    color: #EF4444;
    font-size: 24px;
    font-weight: 600;
    margin: 8px 0 16px 0;
    letter-spacing: -0.01em;
}

.section-header p {
    color: #718096;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
}

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

.service-card {
    background: white;
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 移除active状态的特殊背景，保持统一的白色背景 */
.service-card.active {
    background: white;
    color: inherit;
    border: 1px solid #EF4444;
}

.service-card.active .service-icon {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}


.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 36px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #1F2937;
    letter-spacing: -0.01em;
}

.service-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-card li {
    padding: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}


/* 轮播图样式 */
.carousel-container {
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 40px 25px;
    text-align: left;
}

.carousel-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-overlay p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 30px;
    background: rgba(0,0,0,0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.slide-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.slide-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

.dot.active {
    background: #EF4444;
    transform: scale(1.2);
}

/* 软件合作展示 */
.cooperation {
    background: #ffedcc;
    padding: 80px 0;
    color: #1F2937;
    position: relative;
    overflow: hidden;
}

.cooperation-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.cooperation h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cooperation p {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 50px;
}

.map-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.china-map {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.china-map img {
    width: 100%;
    height: auto;
}

.map-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.point::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 22px;
    height: 22px;
    border: 2px solid #ff4444;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.point-beijing { top: 20%; left: 45%; }
.point-shanghai { top: 35%; left: 52%; }
.point-guangzhou { top: 65%; left: 45%; }
.point-shenzhen { top: 70%; left: 47%; }

.city-info {
    flex: 1;
    max-width: 400px;
    text-align: left;
}

.city-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.city-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.city-details h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.city-details p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 15px;
}

.btn-contact,
.btn-agent {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact {
    background: white;
    color: #1F2937;
}

.btn-agent {
    background: #EF4444;
    color: white;
}

.btn-contact:hover,
.btn-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.navigation-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    pointer-events: all;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 软件下载部分 */
.download {
    padding: 120px 0;
    background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.download-card {
    background: white;
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.download-card:hover {
    background: white;
    border-color: #EF4444;
    transform: translateY(-12px);
    box-shadow: 0 24px 64px rgba(239, 68, 68, 0.15);
}

.download-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 40px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.download-card:hover .download-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 16px 48px rgba(239, 68, 68, 0.4);
}

.download-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.download-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-info {
    margin-bottom: 25px;
}

.download-info span {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.download-info .version {
    color: #EF4444;
    font-weight: bold;
}

.download-notes {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #EF4444;
}

.download-notes h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.download-notes ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-notes li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-left: 25px;
}

.download-notes li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 关于我们部分 - PC端样式 */
.about-us {
    padding: 120px 0;
    background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-main {
    flex: 1;
}

.about-article {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-article h3 {
    font-size: 28px;
    color: #1F2937;
    margin-bottom: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.article-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.article-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.article-text {
    flex: 1;
}

.article-text p {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    margin-top: 24px;
}

.read-more a {
    color: #EF4444;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.read-more a:hover {
    color: #DC2626;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
}

@media (max-width: 600px) {
    /* 移动端专用：服务项目紧凑布局 */
    .services {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
        padding: 0 20px;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .service-card {
        display: flex;
        align-items: flex-start;
        background: white;
        border-radius: 12px;
        padding: 16px;
        gap: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.05);
        text-align: left;
    }
    
    .service-card.active {
        background: white;
        color: inherit;
        border: 2px solid #EF4444;
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    }
    
    .service-card.active h3 {
        color: #EF4444;
    }
    
    .service-card.active li {
        color: inherit;
        background: rgba(239, 68, 68, 0.1);
    }
    
    .service-icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
        color: white;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    }
    
    .service-card.active .service-icon {
        background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
        color: white;
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
    }
    
    
    .service-card .service-content {
        flex: 1;
        min-width: 0;
    }
    
    .service-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #1F2937;
        letter-spacing: -0.01em;
    }
    
    .service-card ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 6px;
    }
    
    .service-card li {
        font-size: 11px;
        color: #6B7280;
        background: rgba(0, 0, 0, 0.05);
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .service-card.active li {
        background: rgba(239, 68, 68, 0.1);
        color: inherit;
    }
    
    /* 移动端专用：下载区域卡片式布局 */
    .download-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .download-card {
        display: flex;
        align-items: center;
        padding: 20px;
        gap: 15px;
        text-align: left;
    }
    
    .download-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 8px;
    }
    
    .download-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .download-card p {
        font-size: 13px;
        color: #666;
        margin-bottom: 8px;
    }
    
    .download-info {
        display: none; /* 移动端隐藏详细信息 */
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    /* 移动端专用：新闻区域重新布局 */
    .news {
        padding: 40px 0;
    }
    
    .news-content {
        display: block !important;
    }
    
    /* 新闻分类已删除 */
    
    .news-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .news-item {
        display: flex !important;
        align-items: center !important;
        padding: 15px !important;
        gap: 15px !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .news-item img {
        flex-shrink: 0 !important;
        width: 80px !important;
        height: 60px !important;
        border-radius: 6px !important;
        object-fit: cover !important;
    }
    
    .news-info {
        flex: 1 !important;
    }
    
    .news-info h4 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }
    
    .news-source,
    .news-date {
        font-size: 11px !important;
    }
    
    /* 移动端专用：轮播图优化 */
    .carousel-wrapper {
        height: 300px !important;
    }
    
    .slide-content {
        padding: 20px !important;
    }
    
    .slide-content h3 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }
    
    .slide-content p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .slide-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    /* 移动端专用：合作展示区域简化布局 */
    .cooperation {
        padding: 30px 0 !important;
        background: #ffedcc !important;
        color: #1F2937 !important;
    }
    
    .cooperation-content {
        padding: 20px !important;
        text-align: center !important;
    }
    
    .cooperation-content h2 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
        color: #1F2937 !important;
    }
    
    .cooperation-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        color: #666 !important;
    }
    
    .map-container {
        display: block !important;
    }
    
    /* 移动端隐藏复杂的地图，用简单的城市列表代替 */
    .china-map {
        display: none !important;
    }
    
    .city-info {
        width: 100% !important;
    }
    
    .city-card {
        display: flex !important;
        align-items: center !important;
        padding: 15px !important;
        margin-bottom: 10px !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        text-align: left !important;
    }
    
    .city-card h3 {
        font-size: 16px !important;
        margin: 0 0 5px 0 !important;
        color: #e74c3c !important;
    }
    
    .city-details {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #666 !important;
    }
    
    /* 移动端专用：关于我们区域简化 */
    .about-us {
        padding: 30px 0 !important;
    }
    
    .about-content {
        display: block !important;
    }
    
    .about-sidebar {
        display: none !important; /* 移动端隐藏侧边栏 */
    }
    
    .about-main {
        width: 100% !important;
    }
    
    .about-article {
        padding: 20px !important;
        border-radius: 8px !important;
    }
    
    .about-article h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    .article-content {
        display: block !important;
    }
    
    .article-image {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .article-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #666 !important;
    }
    
    /* 注意：页脚样式已移动到footer.css中统一管理 */
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
    }
    
    /* 横幅高度进一步压缩 */
    .hero-banner {
        height: 200px !important;
    }
    
    /* 轮播图更小屏幕优化 */
    .carousel-wrapper {
        height: 250px !important;
    }
    
    .slide-content {
        padding: 15px !important;
    }
    
    .slide-content h3 {
        font-size: 20px !important;
    }
    
    .slide-content p {
        font-size: 12px !important;
    }
    
    /* 标题更小 */
    h2, .section-header h2 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .section-header h3 {
        font-size: 16px !important;
        margin: 6px 0 10px 0 !important;
    }
    
    .section-header p {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }
    
    /* 服务卡片更紧凑 */
    .service-card {
        padding: 12px !important;
        gap: 12px !important;
        border-radius: 10px !important;
    }
    
    .service-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    .service-card h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .service-card ul {
        gap: 3px 4px !important;
        margin-bottom: 8px !important;
    }
    
    .service-card li {
        font-size: 10px !important;
        padding: 3px 6px !important;
        border-radius: 4px !important;
    }
    
    
    /* 下载卡片更紧凑 */
    .download-card {
        padding: 15px !important;
        gap: 10px !important;
    }
    
    .download-card h3 {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }
    
    .download-card p {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }
    
    /* 新闻项目更紧凑 */
    .news-item {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .news-item img {
        width: 60px !important;
        height: 45px !important;
    }
    
    .news-info h4 {
        font-size: 12px !important;
        margin-bottom: 3px !important;
    }
    
    /* 城市卡片更紧凑 */
    .city-card {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .city-card h3 {
        font-size: 14px !important;
    }
    
    .city-details {
        font-size: 11px !important;
    }
    
    /* 按钮适配 */
    .btn {
        padding: 8px 15px !important;
        font-size: 11px !important;
        min-height: 36px !important; /* 保证触摸目标大小 */
    }
    
    /* 图标大小 */
    .service-icon,
    .download-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}
