/* 设置页面和 body 的基本样式 */
body, html {
    margin: 0; /* 去除默认的外边距 */
    padding: 0; /* 去除默认的内边距 */
    width: 100%; /* 宽度占满整个屏幕 */
    height: 100%; /* 高度占满整个屏幕 */
    overflow: hidden; /* 隐藏溢出内容 */
    font-family: 'Montserrat', sans-serif; /* 设置字体 */
}

/* 轮播图容器样式 */
.carousel {
    width: 100%; /* 宽度占满整个屏幕 */
    height: 100vh; /* 高度占满整个视口 */
    position: relative; /* 相对定位 */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 轮播图中的图片样式 */
.carousel img {
    width: 100%; /* 宽度占满整个容器 */
    height: 100vh; /* 高度占满整个视口 */
    object-fit: cover; /* 图片按比例填充容器 */
    position: absolute; /* 绝对定位 */
    top: 0; /* 顶部对齐 */
    left: 0; /* 左侧对齐 */
    opacity: 0; /* 默认透明度为0 */
    transition: opacity 1s ease-in-out; /* 添加淡入淡出效果 */
}

/* 当前显示的图片样式 */
.carousel img.active {
    opacity: 1; /* 显示图片 */
}

/* 导航条样式 */
.navbar {
    position: fixed; /* 固定定位 */
    bottom: 180px; /* 距离底部 */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    background: #003366; /* 背景颜色 */
    color: white; /* 文字颜色 */
    font-weight: normal; /* 字体粗细 */
    padding: 10px 25px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    display: flex; /* 弹性布局 */
    gap: 25px; /* 子元素之间的间距 */
    z-index: 15; /* 层级 */
}

/* 导航条中的链接样式 */
.navbar a {
    color: white; /* 文字颜色 */
    text-decoration: none; /* 去除下划线 */
    font-size: 16px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    transition: color 0.3s; /* 颜色过渡效果 */
    cursor: pointer; /* 鼠标指针样式 */
    margin: 0 10px; /* 左右外边距 */
    text-align: center; /* 文字居中 */
}

/* 导航条链接的悬停效果 */
.navbar a:hover {
    color: #ccccff; /* 悬停时文字颜色 */
}

/* 国家选择容器样式 */
.selection-container {
    position: absolute; /* 绝对定位 */
    top: 30px; /* 距离顶部 20px */
    right: 30px; /* 距离右侧 20px */
    background: rgba(255, 255, 255, 0.9); /* 背景颜色（带透明度） */
    color: #003366; /* 文字颜色 */
    padding: 15px 20px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 阴影 */
    font-family: 'Montserrat', sans-serif; /* 字体 */
    font-size: 16px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中 */
    gap: 10px; /* 子元素之间的间距 */
    z-index: 20; /* 层级 */
    transition: all 0.3s ease; /* 过渡效果 */
}

/* 国家选择框样式 */
.selection-container select {
    padding: 8px 12px; /* 内边距 */
    border: 2px solid #003366; /* 边框 */
    border-radius: 5px; /* 圆角 */
    background: white; /* 背景颜色 */
    color: #003366; /* 文字颜色 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
    transition: border-color 0.3s ease; /* 过渡效果 */
}

/* 国家选择框悬停效果 */
.selection-container select:hover {
    border-color: #ccccff; /* 悬停时边框颜色 */
}

/* 跳转按钮样式 */
.selection-container button {
    padding: 8px 16px; /* 内边距 */
    background: #003366; /* 背景颜色 */
    color: white; /* 文字颜色 */
    border: none; /* 去除边框 */
    border-radius: 5px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
    transition: background 0.3s ease; /* 过渡效果 */
}

/* 跳转按钮悬停效果 */
.selection-container button:hover {
    background: #ccccff; /* 悬停时背景颜色 */
}

/* 内容窗口样式 */
.carousel-text {
    background: rgba(240, 240, 240, 0.9); /* 更接近白色的白灰色 */
    color: black; /* 文字颜色 */
    padding: 20px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    font-size: 18px; /* 字体大小 */
    font-weight: normal; /* 字体粗细 */
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    top: 50%; /* 顶部居中 */
    left: 50%; /* 左侧居中 */
    transform: translate(-50%, -50%); /* 水平和垂直居中 */
    width: 1250px; /* 宽度 */
    max-width: 90%; /* 最大宽度（相对于屏幕宽度） */
    max-height: 80vh; /* 最大高度 */
    overflow-y: auto; /* 垂直滚动 */
    text-align: left; /* 文字左对齐 */
    z-index: 100; /* 确保层级最高 */
    box-sizing: border-box; /* 盒模型 */
}

/* 内容窗口中的标题样式 */
.carousel-text h2 {
    margin-top: 0; /* 去除顶部外边距 */
    font-size: 30px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    color: #003366; /* 文字颜色 */
    margin-bottom: 15px; /* 底部外边距 */
}

/* 内容窗口中的段落样式 */
.carousel-text p {
    margin: 0 0 15px 0; /* 外边距 */
    line-height: 1.6; /* 行高 */
}

/* 确保图片在内容窗口中显示 */
.carousel-text img {
    max-width: 100%; /* 图片宽度不超过容器 */
    height: auto; /* 高度自适应 */
    display: block; /* 防止图片下方有空白 */
    opacity: 1; /* 默认透明度为0 */
    margin: 10px auto; /* 居中显示 */
}

/* LOGO 样式 */
.logo {
    position: absolute; /* 绝对定位 */
    top: 20px; /* 距离顶部 20px */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    width: 200px; /* 宽度 */
    height: auto; /* 高度自适应 */
    z-index: 10; /* 层级 */
}

/* 社交图标容器样式 */
.social-icons {
    position: fixed; /* 固定定位 */
    bottom: 100px; /* 距离底部 */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    display: flex; /* 弹性布局 */
    gap: 15px; /* 子元素之间的间距 */
    z-index: 10; /* 层级 */
}

/* 社交图标链接样式 */
.social-icons a {
    color: #003366; /* 图标颜色 */
    font-size: 30px; /* 图标大小 */
    transition: color 0.3s; /* 颜色过渡效果 */
}

/* 社交图标链接的悬停效果 */
.social-icons a:hover {
    color: #ccccff; /* 悬停时图标颜色 */
}

/* 页脚样式 */
.footer {
    position: fixed; /* 固定定位 */
    bottom: 50px; /* 距离底部 50px */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    color: #003366; /* 文字颜色 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    text-align: center; /* 文字居中 */
    z-index: 10; /* 层级 */
}

/* 关闭按钮样式 */
.close-button {
    display: block; /* 默认隐藏关闭按钮 */
    position: absolute; /* 绝对定位 */
    top: 10px; /* 距离顶部 10px */
    right: 10px; /* 距离右侧 10px */
    background: transparent; /* 透明背景 */
    border: none; /* 去除边框 */
    color: #003366; /* 文字颜色 */
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
    z-index: 20; /* 层级 */
}

/* 关闭按钮的悬停效果 */
.close-button:hover {
    color: #ff0000; /* 悬停时文字颜色 */
}

/* 移动端样式调整 */
@media (max-width: 768px) {
/* LOGO 样式 */
.logo {
    position: absolute; /* 绝对定位 */
    top: 20px; /* 距离顶部 10px */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    width: 200px; /* 宽度 */
    height: auto; /* 高度自适应 */
    z-index: 10; /* 层级 */
}

/* 国家选择容器样式 */
.selection-container {
    width: 300px; /* 宽度 */
    position: absolute; /* 绝对定位 */
    top: 150px; /* 距离顶部 */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    background: rgba(255, 255, 255, 0.9); /* 背景颜色（带透明度） */
    color: #003366; /* 文字颜色 */
    padding: 10px 15px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 8px; /* 子元素之间的间距 */
    z-index: 20; /* 层级 */
}

/* 国家选择框样式 */
.selection-container select {
    padding: 8px 12px; /* 内边距 */
    border: 2px solid #003366; /* 边框 */
    border-radius: 5px; /* 圆角 */
    background: white; /* 背景颜色 */
    color: #003366; /* 文字颜色 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
}

/* 跳转按钮样式 */
.selection-container button {
    padding: 8px 16px; /* 内边距 */
    background: #003366; /* 背景颜色 */
    color: white; /* 文字颜色 */
    border: none; /* 去除边框 */
    border-radius: 5px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
}

/* 导航条样式 */
.navbar {
    position: absolute; /* 绝对定位 */
    bottom:120px; /* 距离底部  */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    background: rgba(0, 51, 102, 0.9); /* 背景颜色（带透明度） */
    color: white; /* 文字颜色 */
    padding: 10px 15px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    display: flex; /* 弹性布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 20px; /* 子元素之间的间距 */
    z-index: 15; /* 层级 */
}

/* 导航条中的链接样式 */
.navbar a {
    color: white; /* 文字颜色 */
    text-decoration: none; /* 去除下划线 */
    font-size: 14px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    text-align: center; /* 文字居中 */
}

/* 社交图标容器样式 */
.social-icons {
    position: fixed; /* 固定定位 */
    bottom: 50px; /* 距离底部 */
    left: 50%; /* 左侧居中 */
    transform: translateX(-50%); /* 水平居中 */
    display: flex; /* 弹性布局 */
    gap: 15px; /* 子元素之间的间距 */
    z-index: 10; /* 层级 */
}

/* 页脚样式 */
.footer {
    position: fixed; /* 固定定位 */
    bottom: 20px; /* 距离底部 */
    left: 50%; /* 左侧居中 */
    color: #003366; /* 文字颜色 */
    font-size: 10px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    text-align: center; /* 文字居中 */
    z-index: 10; /* 层级 */
}
}
/* 内容窗口样式 */
.carousel-text {
    background: rgba(240, 240, 240, 0.9); /* 更接近白色的白灰色 */
    color: black; /* 文字颜色 */
    padding: 20px; /* 内边距 */
    border-radius: 10px; /* 圆角 */
    font-size: 14px; /* 字体大小 */
    font-weight: normal; /* 字体粗细 */
    display: none; /* 默认隐藏 */
    position: absolute; /* 绝对定位 */
    top: 50%; /* 顶部居中 */
    left: 50%; /* 左侧居中 */
    transform: translate(-50%, -50%); /* 水平和垂直居中 */
    width: 90%; /* 宽度 */
    max-width: 600px; /* 最大宽度 */
    max-height: 80vh; /* 最大高度 */
    overflow-y: auto; /* 垂直滚动 */
    text-align: left; /* 文字左对齐 */
    z-index: 1000; /* 确保层级最高 */
}

/* 内容窗口中的标题样式 */
.carousel-text h2 {
    margin-top: 0; /* 去除顶部外边距 */
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    color: #003366; /* 文字颜色 */
    margin-bottom: 15px; /* 底部外边距 */
}

/* 内容窗口中的段落样式 */
.carousel-text p {
    margin: 0 0 15px 0; /* 外边距 */
    line-height: 1.6; /* 行高 */
}

/* 确保图片在内容窗口中显示 */
.carousel-text img {
    max-width: 100%; /* 图片宽度不超过容器 */
    height: auto; /* 高度自适应 */
    display: block; /* 防止图片下方有空白 */
    margin: 10px auto; /* 居中显示 */
}

/* 关闭按钮样式 */
.close-button {
    position: absolute; /* 绝对定位 */
    top: 10px; /* 距离顶部 10px */
    right: 10px; /* 距离右侧 10px */
    background: transparent; /* 透明背景 */
    border: none; /* 去除边框 */
    color: #003366; /* 文字颜色 */
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针样式 */
    z-index: 20; /* 层级 */
}

/* 关闭按钮的悬停效果 */
.close-button:hover {
    color: #ff0000; /* 悬停时文字颜色 */
}