/* 相关服务区域样式 */
.related-services {
    padding: 5% 12%;
    background-color: #ffffff;
}

.related-services h2 {
    font-size: 36px;
    color: #333333;
    margin-bottom: 5%;
    line-height: 1.4;
    font-weight: 500;
}

.related-services .service-content p {
    font-size: 18px;
    color: #666666;
    margin: 0;
    line-height: 2;
}

/* 提供服务区域样式 */
.our-services {
    padding: 2% 12%;
    background-color: #f9f9f9;
}

.services-container {
    display: flex;
    align-items: center;
    gap: 5%;
}

.service-image {
    flex: 0 0 45%;
}

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

.service-text {
    flex: 1;
    padding: 2% 0 1% 5%;
}

.service-text h3 {
    font-size: 30px;
    color: #333333;
    margin-bottom: 2rem;
    font-weight: 500;
}

.service-item {
    border-bottom: 1px solid #989898;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-item h4 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

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

/* 地点区域样式 */
.locations {
    padding: 5% 12%;
    background-color: #ffffff;
}

.locations-container {
    width: 100%;
}

.location-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2%;
    margin-bottom: 3rem;
}

.location-item {
    width: 31%;
    background-color: #F1F4F7;
    padding: 2%;
    border-radius: 8px;
    margin-bottom: 2%;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.location-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 76, 152, 0.08), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.location-item:hover::before {
    left: 100%;
}

.location-item:hover {
    transform: translateY(-8px) scale(1.02) rotate(0.5deg);
    box-shadow: 0 15px 30px rgba(0, 76, 152, 0.15);
    background-color: #ffffff;
    z-index: 10;
}

.location-item h4 {
    font-size: 22px;
    color: #333333;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: inline-block;
    z-index: 2;
}

.location-item h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #004c98;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-item:hover h4 {
    color: #004c98;
    transform: translateX(5px);
    font-weight: 600;
}

.location-item:hover h4::after {
    width: 100%;
}

.location-item p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.location-item:hover p {
    color: #444444;
    transform: translateX(3px);
}

.location-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

#view-all-locations {
    padding: 12px 30px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#view-all-locations:hover {
    background-color: #555555;
}

.arrow-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.arrow-link:hover {
    transform: translateX(5px);
}

.arrow-link img {
    width: 20px;
    height: auto;
}

.more-locations {
    margin-top: 2rem;
    animation: fadeIn 0.6s ease;
}

        .more-locations {
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.8s ease-out;
          grid-template-columns: repeat(3, 1fr);
          gap: 20px;
          margin-top: 20px;
        }
        .more-locations.active {
          max-height: 1000px; /* 足够大的值以容纳所有内容 */
          transition: max-height 0.8s ease-in;
        }
        
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 地点项展开/收起动画相关样式 */
.location-item-expand {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.location-item-expand.active {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮交互样式 */
.view-all-btn {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, background-color 0.3s ease;
}

.view-all-btn.expanded {
    transform: translateY(10px);
}

/* 市场覆盖区域样式 */
.market-section {
    padding: 8% 12% 0;
    background: #fff;
}

.market-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}
.market-desc {
    width: 45%;
}

.market-desc p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

.market-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-left {
    width: 20%;
    padding: 5% 5% 5% 0;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-number {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.animated-number {
    font-size: 54px;
    color: #0057B7;
    font-weight: bold;
    margin-right: 5px;
}

.stat-unit {
    font-size: 18px;
    color: #0057B7;
}

.stat-desc {
    font-size: 18px;
    color: #444;
}

.stat-divider {
    height: 1px;
    background: #000;
    margin: 30px 0;
}

.market-right {
    width: auto;
    flex: 1;
}

.area-img {
    width: 100%;
    height: auto;
}
        
@media (max-width: 1200px) {
    .market-content {
        flex-direction: column;
    }
    
    .stats-left {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .market-right {
        width: 100%;
    }
    
    .market-desc {
        width: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-services,
    .our-services,
    .locations {
        padding: 4% 8%;
    }
    
    .locations-container {
        width: 100%;
    }
    
    .location-item {
        width: 31%;
    }
}

@media (max-width: 992px) {
    .services-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-image {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .service-text {
        padding: 0;
    }
    
    .location-item {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .related-services h2 {
        font-size: 28px;
    }
    
    .related-services .service-content p,
    .service-item p {
        font-size: 16px;
    }
    
    .service-text h3 {
        font-size: 24px;
    }
    
    .service-item h4 {
        font-size: 20px;
    }
    
    .location-item {
        width: 100%;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .related-services,
    .our-services,
    .locations {
        padding: 3% 5%;
    }
    
    .related-services h2 {
        font-size: 24px;
    }
    
    .location-item h4 {
        font-size: 20px;
    }
    
    .location-item p {
        font-size: 14px;
    }
}