/* 全球云计算资源 BGP 链路样式 */
.global-resources {
    background: url(/themes/web/www/static/image/ditu-1.jpeg) no-repeat 50%;
    background-size: cover;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.resources-content {
    background: transparent;
    margin-top: 40px;
    min-height: 340px;
    padding: 40px 20px 0;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#earth-globe-bg {
    aspect-ratio: 5/3;
    background: transparent;
    left: 70%; /* 从60%增加到70%，使地球向右移动 */
    max-width: 700px; /* 增加最大宽度 */
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 90%; /* 增加宽度百分比 */
    z-index: 0;
}

#earth-globe-bg canvas {
    display: block;
    height: 100% !important;
    margin: 0 auto;
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
    width: 100% !important;
}

.global-locations,
.text-section {
    position: relative;
    z-index: 1;
}

.text-section {
    margin-bottom: 40px;
}

.text-section .feature-item {
    align-items: flex-start;
    background: hsla(0, 0%, 100%, 0);
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    max-width: 450px;
}

.text-section .feature-item h3 {
    color: #333;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}

.text-section .feature-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.global-locations {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-top: 40px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.location-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    flex: 0 0 calc(16.666% - 20px);
    min-width: 80px;
    background-color: transparent;
    border-radius: 8px;
}

.location-item:hover {
    transform: translateY(-5px);
}

.flag-icon {
    background-position: center;
    background-size: cover;
    height: 60px;
    width: 60px;
}

.location-item span {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.flag-icon.china-mainland {
    background-image: url(/themes/web/www/static/image/cn.png);
}

.flag-icon.hong-kong {
    background-image: url(/themes/web/www/static/image/hk.svg);
}

.flag-icon.us {
    background-image: url(/themes/web/www/static/image/us.svg);
}

.flag-icon.japan {
    background-image: url(/themes/web/www/static/image/jp.svg);
}

.flag-icon.korea {
    background-image: url(/themes/web/www/static/image/hg.svg);
}

.flag-icon.uk {
    background-image: url(/themes/web/www/static/image/en.svg);
}

/* 通用部分样式 */
.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title h2:after {
    background: #1677ff;
    border-radius: 2px;
    bottom: -10px;
    width: 50px;
}

.section-desc {
    margin: 15px auto 0;
}

.section-header h2 {
    color: #333;
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    align-items: center;
    color: #666;
    display: flex;
    font-size: 16px;
    gap: 5px;
    justify-content: center;
    margin-bottom: 0;
}

.container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 响应式适配 */
@media screen and (max-width:992px) {
    .global-resources {
        padding: 60px 0 40px;
    }
    
    .resources-content {
        padding: 30px 20px 80px;
    }
    
    #earth-globe-bg {
        left: 50%;
        top: 10px;
        max-width: 650px; /* 中等屏幕下的尺寸 */
        width: 95%;
    }
    
    .location-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media screen and (max-width:768px) {
    .global-resources {
        padding: 40px 0 60px;
    }
    
    .resources-content {
        margin-top: 0;
        padding: 20px 15px 60px;
    }
    
    #earth-globe-bg {
        width: 100%;
        left: 50%;
        max-width: 550px; /* 平板屏幕下的尺寸 */
    }
    
    .text-section .feature-item {
        max-width: 100%;
    }
    
    .location-item {
        flex: 0 0 calc(33.333% - 10px);
        padding: 5px 10px;
        gap: 5px;
    }
    
    .location-item .flag-icon {
        height: 50px;
        width: 50px;
    }
    
    .location-item span {
        font-size: 12px;
    }
    
    .text-section .feature-item h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .text-section .feature-item p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        flex-direction: column;
        font-size: 14px;
    }
    
    .global-locations {
        margin-top: 20px;
        padding: 15px;
        gap: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media screen and (max-width:576px) {
    .global-resources {
        padding: 30px 0 40px;
    }
    
    .resources-content {
        padding: 10px 10px 50px;
    }
    
    .global-locations {
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 10px 5px;
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .location-item {
        padding: 5px;
        min-width: 60px;
    }
    
    .flag-icon {
        height: 40px;
        width: 40px;
    }
    
    .text-section .feature-item h3 {
        font-size: 16px;
    }
} 