/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    }

html {
    /* Mobile scroll optimization */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Prevent mobile zoom */
    -webkit-text-size-adjust: 100%;
    }

body {
    font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #16213e 50%, #000 100%);
    background: -webkit-linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #000 100%);
    background: -moz-linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #000 100%);
    background: -o-linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #000 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* Mobile scroll optimization */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Language switching animation */
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    /* Mobile font optimization */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Mobile container optimization */
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.header .container {
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.logo-section {
    /* Remove scaling, use normal size */
    transform: none;
    -webkit-transform: none;
    }

.main-logo {
    /* Set appropriate size */
    width: 200px;
    height: auto;
    max-width: 100%;
    /* Mobile logo optimization */
    -webkit-user-select: none;
    user-select: none;
}

.lang-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 140px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
    position: relative;
    /* 移动端选择器优化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.lang-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    -webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.lang-select option {
    background: #1a1a2e;
    color: white;
    padding: 12px 15px;
    border: none;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.lang-select option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-select option:checked {
    background: rgba(173, 2, 41, 0.8);
    color: white;
    font-weight: bold;
}

/* 自定义下拉列表样式 */
.lang-select::-ms-expand {
    display: none;
}

/* 为不同浏览器添加下拉动画 */
.lang-select:focus {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* 添加下拉时的动画效果 */
@-webkit-keyframes dropdownFadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* 移动端下拉动画 */
@-webkit-keyframes mobileDropdownSlide {
    from {
        opacity: 0;
        -webkit-transform: translateY(-15px) scale(0.95);
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
    }
}

@keyframes mobileDropdownSlide {
    from {
        opacity: 0;
        -webkit-transform: translateY(-15px) scale(0.95);
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
    }
}

/* 语言选择器动画效果 */
.lang-select {
    -webkit-animation: dropdownFadeIn 0.3s ease-out;
    animation: dropdownFadeIn 0.3s ease-out;
}

/* 语言切换时的视觉反馈 */
.lang-select.changing {
    background-color: rgba(173, 2, 41, 0.3);
    border-color: rgba(173, 2, 41, 0.6);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

/* 语言切换通知样式 */
.language-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, rgba(173, 2, 41, 0.95) 0%, rgba(200, 20, 60, 0.95) 100%);
    background: -webkit-linear-gradient(135deg, rgba(173, 2, 41, 0.95) 0%, rgba(200, 20, 60, 0.95) 100%);
    background: -moz-linear-gradient(135deg, rgba(173, 2, 41, 0.95) 0%, rgba(200, 20, 60, 0.95) 100%);
    background: -o-linear-gradient(135deg, rgba(173, 2, 41, 0.95) 0%, rgba(200, 20, 60, 0.95) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    -webkit-box-shadow: 0 8px 25px rgba(173, 2, 41, 0.4);
    box-shadow: 0 8px 25px rgba(173, 2, 41, 0.4);
    z-index: 10000;
    -webkit-transform: translateX(400px);
    transform: translateX(400px);
    opacity: 0;
    -webkit-transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-notification.show {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
}

.language-notification span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* 移动端语言通知优化 */
@media (max-width: 768px) {
    .language-notification {
        top: 80px;
        right: 20px;
        left: 20px;
        -webkit-transform: translateY(-100px);
        transform: translateY(-100px);
        text-align: center;
    }
    
    .language-notification.show {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* 添加选择器悬停时的微妙动画 */
.lang-select:hover {
    -webkit-animation: none;
    animation: none;
}

/* 添加选择器激活状态 */
.lang-select:active {
    -webkit-transform: translateY(0px) scale(0.98);
    transform: translateY(0px) scale(0.98);
    -webkit-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

/* 桌面端左右结构优化 */
@media (min-width: 769px) {
    .header {
        height: 80px;
    }
    .header .container {
        height: 80px;
    }
    .logo-section,
    .language-selector {
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        height: 100%;
    }
    .hero-section {
        padding-top: 80px;
    }
    .country-row {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }
    
    .country-info {
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        margin-right: 20px;
        -webkit-align-self: center;
        align-self: center;
    }
    
    .site-cards {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
    }
    
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .lang-select {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* 触摸设备下拉优化 */
        background-size: 16px;
        padding-right: 32px;
    }
    
    .lang-select:active {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
        -webkit-transition: transform 0.1s ease;
        transition: transform 0.1s ease;
        /* 触摸设备点击效果 */
        -webkit-box-shadow: 0 3px 10px rgba(255, 255, 255, 0.15);
        box-shadow: 0 3px 10px rgba(255, 255, 255, 0.15);
    }
    
    .lang-select:focus {
        -webkit-transform: translateY(-1px) scale(1.01);
        transform: translateY(-1px) scale(1.01);
        -webkit-box-shadow: 0 5px 18px rgba(255, 255, 255, 0.2);
        box-shadow: 0 5px 18px rgba(255, 255, 255, 0.2);
        -webkit-transition: all 0.25s ease;
        transition: all 0.25s ease;
        -webkit-animation: mobileDropdownSlide 0.35s ease-out;
        animation: mobileDropdownSlide 0.35s ease-out;
    }
    
    .site-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .site-card:active {
        -webkit-transform: translateY(-2px) scale(0.98);
        transform: translateY(-2px) scale(0.98);
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        background: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.3);
        -webkit-transition: all 0.1s ease;
        transition: all 0.1s ease;
    }
    
    .enter-button {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .enter-button:active {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
        -webkit-transition: transform 0.1s ease;
        transition: transform 0.1s ease;
    }
}

/* 优化下拉选项的显示效果 */
.lang-select option {
    -webkit-animation: dropdownFadeIn 0.2s ease-out;
    animation: dropdownFadeIn 0.2s ease-out;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.lang-select option:nth-child(1) { -webkit-animation-delay: 0.05s; animation-delay: 0.05s; }
.lang-select option:nth-child(2) { -webkit-animation-delay: 0.1s; animation-delay: 0.1s; }
.lang-select option:nth-child(3) { -webkit-animation-delay: 0.15s; animation-delay: 0.15s; }
.lang-select option:nth-child(4) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.lang-select option:nth-child(5) { -webkit-animation-delay: 0.25s; animation-delay: 0.25s; }
.lang-select option:nth-child(6) { -webkit-animation-delay: 0.3s; animation-delay: 0.3s; }
.lang-select option:nth-child(7) { -webkit-animation-delay: 0.35s; animation-delay: 0.35s; }

/* 优化移动端体验 */
@media (max-width: 768px) {
    .lang-select {
        min-width: 120px;
        font-size: 0.85rem;
        padding: 6px 12px;
        padding-right: 30px;
        /* 移动端触摸优化 */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* 移动端下拉优化 */
        background-size: 14px;
        padding-right: 28px;
    }
    
    .lang-select option {
        padding: 10px 12px;
        font-size: 0.85rem;
        /* 移动端选项优化 */
        min-height: 44px;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }
    
    /* 移动端触摸反馈 */
    .lang-select:active {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
        -webkit-transition: transform 0.1s ease;
        transition: transform 0.1s ease;
        /* 移动端点击效果增强 */
        -webkit-box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
    }
    
    /* 移动端下拉动画优化 */
    .lang-select:focus {
        -webkit-transform: translateY(-1px) scale(1.02);
        transform: translateY(-1px) scale(1.02);
        -webkit-box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
        -webkit-animation: mobileDropdownSlide 0.3s ease-out;
        animation: mobileDropdownSlide 0.3s ease-out;
    }
}

/* Hero Section */
.hero-section {
    min-height: 50vh;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    position: relative;
    background:url('../assets/images/bg-hero-mobile.png') center/cover no-repeat;
    padding: 120px 0 0 0;
    animation: slideInFromTop 1s ease-out;
}

/* PC端：白色装饰线条在banner底部 */
@media (min-width: 769px) {
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 80%;
        height: 2px;
        background: -webkit-linear-gradient(left, transparent, rgba(255, 255, 255, 0.3), transparent);
        background: -moz-linear-gradient(left, transparent, rgba(255, 255, 255, 0.3), transparent);
        background: -o-linear-gradient(left, transparent, rgba(255, 255, 255, 0.3), transparent);
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
        -webkit-box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

.hero-content {
    z-index: 2;
}

.hero-logo-img {
    /* 调整尺寸以适应新的图片比例 */
    width: 300px;
    height: auto;
    max-width: 100%;
    margin-bottom: 30px;
    /* 确保图片不会变形 */
    object-fit: contain;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #cccccc;
    letter-spacing: 1px;
}

.join-btn {
    background: url('../assets/SVG/button-join.svg') center/cover no-repeat;
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    min-height: 50px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.join-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
    transition: all 0.1s ease;
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .join-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .join-btn:active {
        transform: translateY(0) scale(0.96);
        transition: all 0.1s ease;
    }
}

/* Section Border Wrapper */
.section-border-wrapper {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 20px 0 20px 0;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Local Sites Section */
.local-sites-section {
    /* padding: 20px 0; */
    background: 
        url('../assets/images/bg-countries.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: slideInFromBottom 1s ease-out 0.3s both;
    padding-top: 1px;
}

/* ========================================
   国家导航栏样式
   ======================================== */
   
/* 滚动偏移 - 自动避开固定头部 */
.country-row {
    scroll-margin-top: 120px; /* 根据头部+导航高度调整 */
}

.country-nav {
    scroll-margin-top: 100px; /* 根据头部高度调整 */
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0 0 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    /* 让背景延伸到banner */
    position: relative;
    z-index: 10;
}

.country-nav-item {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    justify-content: center;
    gap: 0; /* 移除间距，因为国家名称现在在国旗内部 */
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    min-width: 120px;
    /* 确保整个区域都可以点击 */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.country-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 移动端国家导航触摸优化 */
@media (max-width: 768px) {
    .country-nav-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .country-nav-item:hover {
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px);
        -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .country-nav-item:active {
        -webkit-transform: translateY(0) scale(0.96);
        transform: translateY(0) scale(0.96);
        transition: all 0.1s ease;
    }
}

.country-nav-item.active {
    background: rgba(173, 2, 41, 0.2);
    border-color: rgba(173, 2, 41, 0.6);
    -webkit-box-shadow: 0 0 20px rgba(173, 2, 41, 0.3);
    box-shadow: 0 0 20px rgba(173, 2, 41, 0.3);
}

.country-nav-item:focus {
    outline: none;
    border-color: #ad0229;
    -webkit-box-shadow: 0 0 0 3px rgba(173, 2, 41, 0.3);
    box-shadow: 0 0 0 3px rgba(173, 2, 41, 0.3);
}

.nav-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    /* 确保不会阻止点击 */
    pointer-events: none;
    /* 为国家名称定位提供上下文 */
    position: relative;
}

.country-nav-item:hover .nav-flag {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.nav-country-name {
    font-size: 0.75rem; /* 稍小一些以适应国旗内部 */
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* 确保不会阻止点击 */
    pointer-events: none;
    /* 绝对定位在国旗内部底部 */
    position: absolute;
    bottom: 4px; /* 距离国旗底部4px */
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    border-radius: 4px 4px 0 0;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.country-nav-item:hover .nav-country-name {
    color: #ad0229;
    -webkit-transform: translateX(-50%) scale(1.05);
    transform: translateX(-50%) scale(1.05);
}

/* 点击涟漪效果 */
.country-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(173, 2, 41, 0.3);
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.3s ease, height 0.3s ease;
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.country-nav-item:active::after {
    width: 100px;
    height: 100px;
    -webkit-transition: width 0.1s ease, height 0.1s ease;
    transition: width 0.1s ease, height 0.1s ease;
}

.section-title {
    font-size: 1.5rem;
    color: #bc133f;
    text-align: center;
    /* margin: 10px 0; */
    font-weight: bold;
    padding-top: 50px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
}

/* Countries Grid 主容器样式 - 完全按照图片设计 */
.countries-grid {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 25px;
    /* margin-bottom: 30px; */
    /* 移动端滚动优化 */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 每个国家行样式 */
.country-row {
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 40px;
    background: transparent;
    border-radius: 25px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 200px;
    animation: fadeInUp 0.8s ease-out both;
}

.country-row:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.country-row:nth-child(1) { animation-delay: 0.1s; }
.country-row:nth-child(2) { animation-delay: 0.2s; }
.country-row:nth-child(3) { animation-delay: 0.3s; }
.country-row:nth-child(4) { animation-delay: 0.4s; }
.country-row:nth-child(5) { animation-delay: 0.5s; }
.country-row:nth-child(6) { animation-delay: 0.6s; }

/* 左侧国家信息区域 */
.country-info {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    /* 改为flex-end让内容在底部对齐 */
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    min-width: 200px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    position: relative;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); */
    height: 200px;
    -webkit-align-self: center;
    align-self: center;
}

.country-info:hover {
    border-color: rgba(255, 255, 255, 0.25);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* 国家国旗样式 */
.country-info .country-flag {
    width: 160px;
    height: 160px;
    object-fit: contain;
    /* border-radius: 50%; */
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08); */
    padding: 12px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    /* 移除底部间距，因为国家名称现在绝对定位在内部 */
    margin-bottom: 0;
    /* 确保国旗图标有正确的定位上下文 */
    position: relative;
}

/* 国家名称样式 - 显示在国旗内部底部 */
.country-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-info .country-name {
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffffff;
    position: absolute;
    bottom: 8px; /* 距离国旗底部8px，确保在内部 */
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
    z-index: 2;
    /* 确保文字在国旗内部底部 */
    width: auto;
    text-align: center;
    /* 添加一些阴影让文字更清晰 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 右侧网站卡片区域 */
.site-cards {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: calc(100% - 240px);
    padding: 10px 0;
    overflow: hidden;
}

/* card-container 特例：内部 site-cards 改为上下结构 */
.card-container .site-cards {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}
/* Replace with: card-container 内部 site-cards 保持网格布局（移动端2列） */
.card-container .site-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 100%;
}

/* card-container 特例：PC 端也强制上下结构 */
.card-container .site-cards {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}
/* Replace with: card-container PC端 左右分布两个 site-cards，内部保留网格 */
@media (min-width: 769px) {
    .card-container {
        display: flex;
        gap: 20px;
    }
    .card-container .site-cards {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 0;
        flex: 1 1 0;
        max-width: none;
        display: grid;
    }
}

/* 网站卡片样式 */
.site-card {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 18px;
    padding: 20px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    height: auto;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}

.site-card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.site-card:active {
    -webkit-transform: translateY(-2px) scale(0.98);
    transform: translateY(-2px) scale(0.98);
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    -webkit-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

/* 点击涟漪效果 */
.site-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.3s ease, height 0.3s ease;
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.site-card:active::after {
    width: 200px;
    height: 200px;
    -webkit-transition: width 0.1s ease, height 0.1s ease;
    transition: width 0.1s ease, height 0.1s ease;
}

/* 卡片图标样式 */
.site-card .card-icon {
    width: 60px;
    height: 60px;
    /*background: url('../assets/images/icon-site.png') center/contain no-repeat;*/
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    /* 确保图标始终可见 */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    /* 强制显示背景图片 */
    background-size: 60px 60px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.site-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 网站名称样式 */
.site-card .site-name {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* Enter按钮样式 - 引用anniux.svg图片 */
.enter-button {
    background: url('../assets/SVG/button-enter.svg') center/cover no-repeat;
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: 0 5px 18px rgba(156, 5, 40, 0.5);
    box-shadow: 0 5px 18px rgba(156, 5, 40, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    min-width: 100px;
    margin-top: auto;
}

/* 移除伪元素，因为现在使用图片背景 */
.enter-button::before {
    display: none;
}

.enter-button:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 25px rgba(156, 5, 40, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(156, 5, 40, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(156, 5, 40, 0.95);
}

.enter-button:active {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 4px 15px rgba(156, 5, 40, 0.6);
    box-shadow: 0 4px 15px rgba(156, 5, 40, 0.6);
}

.enter-btn {
    background: rgba(156, 5, 40, 1);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    /* box-shadow: 0 3px 8px rgba(156, 5, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(41, 40, 40, 0.7) 0%, rgba(30, 27, 27, 0.8) 30%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 5, 40, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.enter-btn.selected {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Services Section */
.services-section {
    padding: 20px 0;
    background:#0e0d12;
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

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

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease-out both;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-item.selected {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.service-icon img {
    width: 80px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fbfbfd;
    font-weight: bold;
}

.service-item p {
    color: #cccccc;
    line-height: 1.6;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* Partners Section */
.partners-section {
    padding: 10px 0;
    background: 
        url('../assets/images/bg-partners-mobile.png') center/cover no-repeat !important;
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

/* PC端合作伙伴部分背景 */
@media (min-width: 768px) {
    .partners-section {
        background: url('../assets/images/bg-partners.png') center/cover no-repeat !important;
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.partner-item {
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.partner-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.partner-item:nth-child(1) { animation-delay: 0.1s; }
.partner-item:nth-child(2) { animation-delay: 0.2s; }
.partner-item:nth-child(3) { animation-delay: 0.3s; }
.partner-item:nth-child(4) { animation-delay: 0.4s; }
.partner-item:nth-child(5) { animation-delay: 0.5s; }
.partner-item:nth-child(6) { animation-delay: 0.6s; }
.partner-item:nth-child(7) { animation-delay: 0.7s; }
.partner-item:nth-child(8) { animation-delay: 0.8s; }

.partner-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: brightness(1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(173, 2, 41, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.back-to-top:hover {
    background: rgba(173, 2, 41, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Footer */
.footer {
    background: 
        url('../assets/images/bg-partners-mobile.png') center/cover no-repeat;
    /* padding: 20px 0; */
    text-align: center;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    min-height: 40px;
}

.footer p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }
        
        .hero-subtitle {
            font-size: 1rem;
        }
        
        
        /* 移动端国家导航栏优化 */
        .country-nav {
            gap: 20px;
            padding: 15px;
            margin-top: 50px;
        }
        
        .country-nav-item {
            padding: 12px 15px;
            gap: 0; /* 移除间距，国家名称在国旗内部 */
        }
        
        .nav-flag {
            width: 50px;
            height: 50px;
        }
        
        .nav-country-name {
            font-size: 0.7rem; /* 移动端更小的字体 */
            bottom: 3px; /* 移动端调整位置 */
            padding: 1px 4px; /* 移动端更小的内边距 */
        }
        
        /* 移动端logo优化 */
        .main-logo {
            width: 150px;
            height: auto;
        }
        
        .hero-logo-img {
            width: 250px;
            height: auto;
            margin-bottom: 20px;
        }
        
        /* 移动端countries-grid优化 */
        .countries-grid {
            gap: 20px;
        }
        
        .country-row {
            flex-direction: row;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            overflow: hidden;
            min-height: auto;
        }
        
        .country-info {
            min-width: 120px;
            padding: 8px;
            height: auto;
            flex-shrink: 0;
            align-self: center;
        }
        
        .country-info .country-flag {
            width: 100px;
            height: 100px;
            margin-bottom: 15px;
        }
        
        .country-info .country-name {
            font-size: 1.1rem;
            bottom: 6px; /* 移动端稍微调整位置 */
        }
        
        .site-cards {
            flex: 1;
            gap: 12px;
            max-width: calc(100% - 140px);
            overflow: hidden;
        }
        
        .site-card {
            min-height: 120px;
            padding: 15px 10px;
            height: auto;
            /* 移动端触摸优化 */
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        .site-card .card-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 12px;
            background: url('../assets/images/icon-site.png') center/contain no-repeat;
            background-color: rgba(255, 255, 255, 0.08);
        }
        
        .enter-button {
            padding: 8px 20px;
            font-size: 0.85rem;
            min-width: 90px;
            margin-top: auto;
        }
        
        .site-card:active {
            transform: translateY(-2px) scale(0.98);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            background: rgba(0, 0, 0, 0.9);
            border-color: rgba(255, 255, 255, 0.3);
            transition: all 0.1s ease;
        }
        
        .region-row {
            flex-direction: column;
            align-items: stretch;
        }
        
        .fixed-region {
            margin-right: 0;
            margin-bottom: 20px;
        }
        
        .services-grid {
            grid-template-columns: 1fr;
        }
        
        .partners-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .region-slider {
            justify-content: flex-start;
        }
        
        .region-slider .region-item {
            min-width: 160px;
        }
        
        /* 确保中等屏幕下back-to-top按钮显示在右边 */
        .back-to-top {
            right: 25px;
            bottom: 40px;
        }
    }

@media (max-width: 480px) {
    
    .hero-title {
        font-size: 2rem;
    }
    
    .join-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* 小屏幕国家导航栏优化 */
    .country-nav {
        gap: 15px;
        padding: 12px;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .country-nav-item {
        padding: 10px 12px;
        gap: 0; /* 移除间距，国家名称在国旗内部 */
        min-width: 80px;
    }
    
    .nav-flag {
        width: 40px;
        height: 40px;
    }
    
    .nav-country-name {
        font-size: 0.6rem; /* 小屏幕更小的字体 */
        bottom: 2px; /* 小屏幕调整位置 */
        padding: 1px 3px; /* 小屏幕更小的内边距 */
    }
    
    /* 小屏幕logo优化 */
    .main-logo {
        width: 120px;
        height: auto;
    }
    
    .hero-logo-img {
        width: 200px;
        height: auto;
        margin-bottom: 15px;
    }
    
    /* 小屏幕移动端语言选择器优化 */
    .lang-select {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 8px 10px;
        padding-right: 25px;
        background-size: 12px;
        /* 小屏幕触摸优化 */
        border-radius: 8px;
    }
    
    .lang-select option {
        padding: 12px 10px;
        font-size: 0.8rem;
        min-height: 48px;
    }
    
    .lang-select:active {
        transform: scale(0.92);
        transition: transform 0.15s ease;
    }
    
    .lang-select:focus {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
        animation: mobileDropdownSlide 0.4s ease-out;
    }
    
    /* 小屏幕countries-grid优化 */
    .countries-grid {
        gap: 15px;
    }
    
    .country-row {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        gap: 10px;
        min-height: auto;
        overflow: hidden;
    }
    
    .country-info {
        min-width: 100px;
        padding: 6px;
        align-self: center;
    }
    
    .country-info .country-flag {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .country-info .country-name {
        font-size: 1rem;
        bottom: 4px; /* 小屏幕移动端调整位置 */
    }
    
    .site-cards {
        flex: 1;
        gap: 8px;
        max-width: calc(100% - 120px);
        overflow: hidden;
    }
    
    .site-card {
        padding: 10px 8px;
        min-height: 100px;
        height: auto;
    }
    
            .site-card .card-icon {
            width: 40px;
            height: 40px;
            margin-bottom: 10px;
            background: url('../assets/images/icon-site.png') center/contain no-repeat;
           
        }
    
    .site-card .site-name {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .enter-button {
        padding: 8px 18px;
        font-size: 0.8rem;
        min-width: 80px;
        margin-top: auto;
    }
    
    .region-item {
        min-width: 150px;
        padding: 15px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .partner-item {
        padding: 10px;
    }
    
    .partner-item img {
        height: 40px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        /* 确保移动端也显示在右边 */
        position: fixed;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* card-container 覆盖：使内部两个 site-cards 左右分布 */
.card-container {
	display: flex;
	gap: 20px;
	-webkit-align-items: stretch;
	align-items: stretch;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}
.card-container .site-cards {
	-webkit-box-flex: 1;
	-webkit-flex: 1 1 0;
	flex: 1 1 0;
	max-width: none;
	display: grid; /* 覆盖先前的 flex 列设置，保持使用全局网格列数 */
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 0;
    flex-wrap: nowrap;
}
.card-container .site-cards {
    display: grid;
}
@media (max-width: 768px) {
    .card-container .site-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 769px) {
    .card-container .site-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 修复：防止内容被裁剪隐藏，允许显示溢出 */
.country-row { overflow: visible; }
.card-container .site-cards { overflow: visible; }

/* 布局修复：确保右侧容器伸展且不裁剪，避免重叠不显示 */
.country-row { align-items: stretch; }
.country-row > :not(.country-info) { flex: 1 1 0; min-width: 0; }
.card-container { width: 100%; }
.card-container .site-cards { max-width: 100%; }

/* Tech-style click effects for site-card */
.site-card.tech-glow {
    animation: neonPulse 0.6s ease-out;
    box-shadow: 0 0 14px rgba(173, 2, 41, 0.55), 0 0 22px rgba(173, 2, 41, 0.3), 0 0 32px rgba(173, 2, 41, 0.35), 0 8px 20px rgba(0, 0, 0, 0.55);
    border-color: rgba(173, 2, 41, 0.4);
}

.site-card .tech-sweep {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(173, 2, 41, 0.15) 35%, rgba(173, 2, 41, 0.6) 50%, rgba(173, 2, 41, 0.15) 65%, rgba(0,0,0,0) 100%);
    filter: blur(2px) drop-shadow(0 0 12px rgba(173, 2, 41, 0.3));
    transform: skewX(-20deg);
    pointer-events: none;
    animation: techSweep 520ms ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 0 rgba(173, 2, 41, 0), 0 0 0 rgba(173, 2, 41, 0.3), 0 8px 20px rgba(0, 0, 0, 0.5);
    }
    40% {
        box-shadow: 0 0 18px rgba(173, 2, 41, 0.65), 0 0 26px rgba(173, 2, 41, 0.3), 0 10px 24px rgba(0, 0, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 6px rgba(173, 2, 41, 0.35), 0 0 12px rgba(173, 2, 41, 0.3), 0 6px 16px rgba(0, 0, 0, 0.45);
    }
}

@keyframes techSweep {
    0% {
        transform: translateX(0) skewX(-20deg);
        opacity: 0.0;
    }
    10% { opacity: 0.85; }
    100% {
        transform: translateX(360%) skewX(-20deg);
        opacity: 0.0;
    }
}

/* 外圈阴影点击动效（替代内圈涟漪） */
.site-card .outer-ring {
    position: absolute;
    left: -10px;
    top: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid rgba(173, 2, 41, 0.3);
    border-radius: 22px;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(173, 2, 41, 0.3), 0 0 30px rgba(173, 2, 41, 0.25);
    animation: outerRingPulse 650ms ease-out forwards;
}

@keyframes outerRingPulse {
    0% {
        opacity: 0;
        transform: scale(0.96);
        box-shadow: 0 0 12px rgba(173, 2, 41, 0.25), 0 0 18px rgba(173, 2, 41, 0.15);
    }
    25% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 22px rgba(173, 2, 41, 0.3), 0 0 36px rgba(173, 2, 41, 0.25);
    }
    100% {
        opacity: 0;
        transform: scale(1.12);
        box-shadow: 0 0 8px rgba(173, 2, 41, 0.15), 0 0 16px rgba(173, 2, 41, 0.1);
    }
}

/* 关闭内圈伪元素在点击时的扩散，避免与外圈阴影动效冲突 */
.site-card:active::after {
    width: 0 !important;
    height: 0 !important;
}

/* 下滑效果和滚动动画 */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 应用下滑效果到各个section */
.hero-section {
    animation: slideInFromTop 1s ease-out;
}

.local-sites-section {
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.services-section {
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

.partners-section {
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

/* 国家行的下滑效果 */
.country-row {
    animation: fadeInUp 0.8s ease-out both;
}

.country-row:nth-child(1) { animation-delay: 0.1s; }
.country-row:nth-child(2) { animation-delay: 0.2s; }
.country-row:nth-child(3) { animation-delay: 0.3s; }
.country-row:nth-child(4) { animation-delay: 0.4s; }
.country-row:nth-child(5) { animation-delay: 0.5s; }
.country-row:nth-child(6) { animation-delay: 0.6s; }

/* 服务项的下滑效果 */
.service-item {
    animation: fadeInUp 0.8s ease-out both;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* 合作伙伴的下滑效果 */
.partner-item {
    animation: fadeInUp 0.8s ease-out both;
}

.partner-item:nth-child(1) { animation-delay: 0.1s; }
.partner-item:nth-child(2) { animation-delay: 0.2s; }
.partner-item:nth-child(3) { animation-delay: 0.3s; }
.partner-item:nth-child(4) { animation-delay: 0.4s; }
.partner-item:nth-child(5) { animation-delay: 0.5s; }
.partner-item:nth-child(6) { animation-delay: 0.6s; }
.partner-item:nth-child(7) { animation-delay: 0.7s; }
.partner-item:nth-child(8) { animation-delay: 0.8s; }

/* 滚动时的视差效果 */
.hero-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 移动端优化滚动效果 */
@media (max-width: 768px) {
    .hero-section,
    .local-sites-section,
    .partners-section {
        background-attachment: scroll;
    }
    
    /* 移动端减少动画延迟 */
    .country-row,
    .service-item,
    .partner-item {
        animation-delay: 0.1s !important;
    }
}

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    header {
        min-height: 70px;
        padding: 12px 0;
    }
    
    .logo-section {
        transform: none;
        -webkit-transform: none;
        }
    
    .main-logo {
        width: 150px;
        height: auto;
    }
}

@media (max-width: 480px) {
    header {
        min-height: 60px;
        padding: 10px 0;
    }
    
    .main-logo {
        width: 120px;
        height: auto;
    }
}

/* 站点卡片logo备用显示方案 */
.site-card .card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    /*background: url('../assets/images/icon-site.png') center/contain no-repeat;*/
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
}

/* 确保卡片图标容器有相对定位 */
.site-card .card-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    /* 确保图标始终可见 */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

