
/* 重置全局样式：清除默认的 margin 和 padding，设置 box-sizing 以使元素填充其自身的边界 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 设置根元素字体大小为16px，方便后续使用 rem 进行相对大小设置 */
html {
  font-size: 16px;
}

/* 基础样式：设置 body 的字体、背景颜色和对齐方式 */
body {
  font-family: Arial, sans-serif; /* 设置字体 */
  background-color: #f7f9fc; /* 背景颜色 */
  display: flex;
  flex-direction: column; /* 垂直排列子元素 */
  width: 100%; /* 添加这一行 */
  margin: 0 auto; /* 添加这一行，确保居中 */
  color: #333; /* 字体颜色 */
  border: 1px solid #ddd; /* 外边框 */
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1); /* 阴影效果 */
  border-radius: 0.75rem 0.75rem 0 0; /* 圆角效果 */
}

/* 自定义弹窗页样式 */
.layui-layer-rim {
    border: none !important;
}
.body-layer-notice {
    border-radius: 10px !important; /* 弹窗框本身的圆角 */
    min-width: 300px;
    max-width: 60%;
    min-height: 200px;
}

.body-layer-notice .layui-layer-content {
    padding: 10px; /* 给内容添加内边距 */
}

/* 弹窗标题居中 */
.body-layer-notice .layui-layer-title {
    text-align: center !important; /* 标题居中 */
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
    padding: 0;
    height: 40px;
    line-height: 40px;
}

/* 确保弹窗按钮居中 */
.body-layer-notice .layui-layer-btn {
    text-align: center !important;  /* 按钮居中 */
    font-size: 14px;
    padding: 0; /* 清除默认内边距 */
}

.body-layer-notice .layui-layer-btn a {
    display: inline-block;
    font-size: 14px;
    width: auto;  /* 确保按钮宽度自动 */
    margin: 10px auto;  /* 水平居中按钮 */
}

/* 顶部导航栏的样式 */
.navbar {
    display: flex;
    justify-content: space-between;  
    align-items: center;
    background: linear-gradient(180deg, #28cdff, #00a6ff); /* 渐变效果，浅蓝色到钢蓝色 */
    padding: 5px 20px; 
    position: fixed;
    width: 100%;
    min-width: 75rem;
    height: 65px;
    top: 0;
    left: 0;
    z-index: 100;
    border-radius: 0 0 10px 10px;
}

/* Logo样式 */

.logo img {
    width: 50px;
    height: 100%;
    margin: 0 1.5rem;
    border-radius: 50%; /* 圆形Logo */
}

/* 导航菜单样式 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    font-size: 18px;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    border-radius: 25px; /* 圆角按钮 */
    text-decoration: none;
    transition: color 0.3s, border-radius 0.3s ease;
}

/* 点击时，添加流动滑动条效果 */
.nav-item:hover,
.nav-item.active {
    color: #FFD700; /* 金黄色 */
    border-radius: 25px; /* 保持圆角效果 */
}

/* 下方的渐变滑动条效果 */
.nav-item:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,rgb(176, 225, 234),rgb(1, 242, 255));
    bottom: 0;
    left: 0;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

/* 激活状态时显示渐变滑动条 */
.nav-item.active:before {
    transform: scaleX(1);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    /* background-color: #1E90FF; */
    background: linear-gradient(180deg, #87CEFA, #1E90FF); /* 渐变效果，浅蓝色到蓝色 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #87CEFA, #4682B4); /* 渐变效果，浅蓝色到钢蓝色 */
    background-color: #555;
}

/* 主内容容器 */
.main-bar {
    display: flex;
    flex-direction: column;
    flex: 1; 
    position: relative; /* 使容器具有相对定位 */
    width: 100%; /* 容器宽度100% */
    min-width: 75rem;
    max-width: 80vw;  /* 最大宽度限制为80vw（视窗宽度的80%） */
    height: 100%; 
    margin: 0 auto; /* 水平居中容器 */
    margin-top: 4rem;
}

.top-bar {
    display: flex;
    position: relative; /* 使容器具有相对定位 */
    width: 100%; /* 容器宽度100% */
    margin: 0 auto; /* 水平居中容器 */
    /* margin-top: 1rem; */
    /* height: 80%; */
}

.load-bar {
    display: flex;
    position: relative; /* 使容器具有相对定位 */
    width: 100%; /* 容器宽度100% */
    height: 50rem;
    justify-content: space-between;  
    margin: 1rem auto;
}

.good-bar {
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 50rem; 
    overflow: hidden; /* 隐藏溢出的内容 */
    overflow-y: auto; /* 启用垂直滚动条 */
    background-color: #fff; /* 背景颜色为白色 */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* 增加阴影 */
    border-radius: 0.5rem;
}

#load-more {
    display: flex;
    position: relative; /* 使容器具有相对定位 */
    width: 100%; /* 容器宽度100% */
    justify-content: center; 
    align-items: center; 
    margin: 0 auto; 
    background-color: #eee; 
    border-radius: 5px;
}

/* 底部样式 */
.footer {
    background: linear-gradient(180deg, #28cdff, #00a6ff); /* 渐变效果，浅蓝色到钢蓝色 */
    color: #fff;
    padding: 10px 0 0 0; /* 上内边距为10px */ 
    text-align: center;
    position: relative;
    left: 0;
    border-radius: 10px 10px 0 0;
    bottom: 0;
    width: 100%;
    height: 10rem;
}


/* 底部内容 */
.footer-content {
    display: flex;          /* 启用 Flexbox 布局 */
    flex-direction: column; /* 垂直排列子元素 */
    gap: 10px;              /* 子元素之间的间距 */
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;            /* 设置容器高度为父元素的高度 */
}


/* 底部链接样式 */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
