/* 导航菜单样式 */
:root {
    --main-bg-color: rgba(0, 0, 0, 0.8);
    --main-text-color: white;
    --hover-color: #007bff;
    --spacing: 10px;
    --sidebar-width: 250px;
}

.navbar-render {
    left: 0;
    top: 0;
    position: fixed;
    width: 100%; /* 动态计算宽度，解决滚动条导致的偏差 */
    min-height: 70px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.navbar {
    position: relative;
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 左右对齐 */
    align-items: center; /* 垂直居中对齐所有子元素 */
    top: -9px;
    left: 0;
    color: white;
    z-index: 1000; /* 设置z-index属性，使导航栏始终在最上层 */
    white-space: nowrap; /* 防止文字换行 */
    min-width: 1024px;
}

.navbar-link {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
}

/* 悬停效果 */
.navbar-link:hover {
    font-weight: bold;
}

.navbar-link.active {
    font-weight: bold;
}

.navbar-link.active::after {
    content: "";
    position: absolute;
    bottom: 160%;
    left: -1px;
    width: 100%;
    height: 5px;
    background-color: rgb(56, 142, 255);
    transition: all 0.3s;
}

.navbar-logo-link {
    cursor: pointer; /* 让鼠标移动到图标上时显示手型光标 */
}
  
.navbar-logo {
    width: 110px;
    height: 65px; /* 调整logo的大小 */
    object-fit: contain;
}

.header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    background-image: url('../images/background.jpg');
    background-repeat: repeat; /* 背景平铺 */
    background-size: cover; /* 背景图片覆盖整个窗口 */
    background-position: top; /* 图片居中 */
    background-attachment: fixed; /* 背景固定，不随页面滚动 */
    padding: 0;
    display: flex;
    flex-direction: column; /* 改为垂直方向排列 */
    justify-content: flex-start; /* 子元素从上到下排列 */
    padding-bottom: 10px;
    height: 100%;
}


/* 透明图片样式 */
.transparent-image {
    position: absolute; /* 绝对定位，基于相对定位的 .container */
    height: 350px; /* 设置图片高度 */
    width: 480px; /* 保持图片原始宽高比 */
    top: -250px; /* 使图片上方留白 */
    left: -200px;
    animation: float 3s ease-in-out infinite; /* 动画效果 */
    z-index: -1; /* 使图片在最底层 */
    object-fit: contain;
}

.transparent-image-02 {
    top: -220px;
    height: 350px; /* 设置图片高度 */
}


@keyframes float {
    0%, 100% {
        transform: translateY(0); /* 初始和结束时在原位置 */
    }
    50% {
        transform: translateY(50px); /* 中间阶段向下移动20px */
    }
}

/*下载文字*/
.carousel {
    position: relative;
    width: 500px;  /* 固定轮播图宽度 */
    height: 235px; /* 固定轮播图高度 */
    overflow: hidden;  /* 隐藏超出范围的内容 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    top: 40px;
}

.container {
    position: relative; /* 使 .container 成为相对定位的基准 */
    min-width: 1024px;
    max-width: 1024px;
    min-height: 500px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: white;
    padding-left: 100px;
    padding-right: 100px;
    padding-top: 20px;
    padding-bottom: 50px;
    top: 250px; /* 内容上方留白px */
    margin: 0px auto;
    border-radius: 2px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;  /* 添加平滑动画 */
}

.carousel-image {
    width: 500px;  /* 图片宽度与容器一致 */
    height: 235px; /* 图片高度与容器一致 */
    object-fit: cover;  /* 放大图片并裁剪溢出部分 */
    flex-shrink: 0;  /* 防止图片缩小 */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 版权声明样式 */
.footer {
    width: 100%; /* 占满整个宽度 */
    color: rgb(255, 255, 255);
    text-align: center; /* 文字居中 */
    padding: 10px 0; /* 上下内边距 */
    font-size: 20px;
}

.footer-space {
    height: 300px; /* 固定100px高度的空白区域 */
}

.img-container {
    width: 50%;
    height: 50%;
    margin: 200px auto;
    padding: 100px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.button {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center; /* 水平居中对齐内容 */
    align-items: center; /* 垂直居中对齐内容 */
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;

}

.button:hover {
    background-color: #0056b3;
}

.button:active {
    background-color: #004494;
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.button-download {
    width: 200px;
    height: 80px;
}

.button-home-download {
    width: 120px;
    height: 50px;
    margin-bottom: 15px;
}

.button-download-other {
    width: 120px;
    height: 50px;
    margin-bottom: 15px;
}

.white-line {
    border: 1px solid rgb(255, 255, 255); 
    width: 95%;
    margin-top: 25px;
    margin-left: 0px;
}

.content-wrapper {
    display: flex; /* 侧边栏和内容区域并排显示 */
    gap: 20px; /* 控制间距 */
    margin: 20px auto; /* 居中显示内容 */
    padding: 0 20px;
}

.sidebar {
    position: sticky;
    top: 1px; /* 控制距离顶部的距离 */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    height: fit-content;
    z-index: 10;
    margin-top: 250px;
    min-width: 180px;
    min-height: 180px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #007bff;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing);
    margin-top: 20px;
}

.pagination .button {
    background-color: var(--hover-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination .button:hover {
    background-color: #0056b3;
}

.pagination .button:active {
    background-color: #004494;
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination .button.active {
    background-color: #004494;
    cursor: default;
}

.pagination .ellipsis {
    padding: 10px;
    font-size: 16px;
    color: var(--main-text-color);
}

.container-404 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.container-404 h1 {
    font-size: 150px;
    margin: 0;
}

.container-404 p {
    font-size: 48px;
    margin: 10px 0;
}

.container-404 a {
    color: #ffcc00;
    text-decoration: none;
}

.container-404 a:hover {
    text-decoration: underline;
}

.content-text-size {
    font-size: 0.8rem;  /* 你可以调整这个值来控制整体文字大小 */
}

.content-text-size h1 {
    font-size: 1.5rem;  /* 标题字号 */
}

.content-text-size h3 {
    font-size: 1.1rem;  /* 副标题字号 */
}
