/* 添加 CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: -webkit-linear-gradient(315deg, #002FA7 0%, #002FA7 30%, #1E50FF 100%) fixed;
    background: linear-gradient(135deg, #002FA7 0%, #002FA7 30%, #1E50FF 100%) fixed;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
} 

/* 增加头部背景图 */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('./assets/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* 增加底部版权信息 */
.footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* 导航栏样式 */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 导航栏左侧区域 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* 语言选择器样式 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.lang-link {
    color: #002FA7;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.lang-link:hover {
    background-color: rgba(0, 47, 167, 0.1);
    text-decoration: none;
}

.lang-link.current {
    background-color: #002FA7;
    color: white;
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .language-selector {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .lang-link {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

.nav-title {
    color: #002FA7;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    transition: color 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-title:hover {
    color: #0044E9;
}

.nav-back {
    color: #002FA7;
    text-decoration: none;
    font-weight: 500;
}

.nav-back:hover {
    text-decoration: underline;
}

/* 页面容器最大宽度为1200px，居中显示，内边距为4rem 2rem，淡入动画效果 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
    animation: fadeIn 0.8s ease-out;
}

/* 标题文本居中，底部间距为4rem，相对定位 */
.title {
    text-align: center; /* 文本居中 */
    margin-bottom: 4rem; /* 底部间距为4rem */
    position: relative; /* 相对定位 */
}

/* 省份部分标题和城市列表 */
.section-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 城市链接 */
.city-link {
    display: inline-block; /* 行内块级元素 */
    padding: 1rem 2rem; /* 内边距为0.5rem 1rem */
    margin: 1rem; /* 外边距为0.5rem */
    border-radius: 0.5rem; /* 边框圆角为0.5rem */
    background-color: rgba(255, 255, 255, 0.5); /* 背景颜色半透明的白色 */
    text-decoration: none; /* 去掉下划线 */
    color: #ffffff; /* 文字颜色为白色 */
    transition: background-color 0.3s ease; /* 背景颜色过渡效果，持续时间为0.3秒，缓动函数为ease */
}



.city-link:hover {
    background-color: rgba(255, 255, 255, 0.8); /* 鼠标悬停时背景颜色变为半透明的白色 */
}

/* 头像容器 */
.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem; /* 添加底部间距以便与其他内容区分 */
    width: 100px; /* 设置头像容器的宽度 */
    height: 100px; /* 设置头像容器的高度 */
}

.image {
    width: 100%; /* 设置头像图片的宽度为容器宽度 */
    height: 100%; /* 设置头像图片的高度为容器高度 */
    border-radius: 50%; /* 圆形头像 */
    background-size: cover; /* 确保图片覆盖整个容器 */
    background-position: center; /* 确保图片在容器中居中 */
    background-repeat: no-repeat; /* 防止图片重复 */
}