body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    /*overflow: hidden;*/
}

/* 确保logo图片自适应 */
.logo-img {
    width: 100%;
    height: auto;
    padding-bottom: 5px;
}
.container-fluid{
    padding: 0;
    margin: 0;
    height: auto;
    overflow: hidden;
    z-index: 2;
}
.hr-5{padding: 5px 0 5px 0}
.flex-container {
    display: flex; /* 启用Flexbox */
    flex-wrap: wrap; /* 在非常小的屏幕上允许换行 */
    justify-content: space-around; /* 子元素之间的间隔 */
    /* 如果需要，可以设置容器的宽度 */
    width: 100%; /* 或者其他具体的宽度值 */

}

.flex-item {
    flex: calc(25% - 10px); /* 所有子元素应该等分空间，但这里使用具体宽度可能更合适 */
    /* 或者使用 width: 25%; 但注意，这可能需要考虑间距和父容器的宽度 */
    width: calc(25% - 10px); /* 减去间距，这里假设间距是通过margin或padding实现的 */
    margin: 5px; /* 间距 */
    text-align: center; /* 文本居中 */
}

.flex-item:hover {
    background-color: #f5f6f9;
}

.flex-item a {
    display: block; /* 使链接占据整个flex-item */
    text-decoration: none;
    color: black;
    padding: 10px 0; /* 垂直内边距 */
}

.text-ellipsis {
    /* 设置文本在一行内显示 */
    white-space: nowrap;
    /* 超出部分隐藏 */
    /*overflow: hidden;  */
    /* 使用省略号表示被隐藏的文本 */
    text-overflow: ellipsis;
    /* （可选）为了看到效果，给元素设置固定宽度或最大宽度 */
    width: 100%; /* 也可以使用固定宽度，如200px */
    /* 如果需要，可以设置容器的宽度和高度，但要注意保持布局合理性 */
}

.search-container {
    position: relative;
    width: auto;
    /*width: 300px;*/
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.search-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #4CAF50;
    transition: all 0.3s ease;
}

.search-button:hover .search-icon {
    transform: scale(1.1);
}

.search-button:active .search-icon {
    transform: scale(0.9);
}

.imgad img {
    width: 100%;
    position: relative; /* 使得伪元素能够相对于这个元素定位 */
    background-position: center; /* 居中背景图片 */
    display: flex; /* 使用flex布局使内容居中（如果容器内有其他内容） */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.imgad {
    position: relative;
    margin: 3px 0 3px 0;
}

.textad {
    position: relative;
    width: 100%;
    margin: 3px 0 3px 0;
}

.imgad::after {
    content: "广告"; /* 伪元素显示的内容 */
    position: absolute; /* 绝对定位 */
    bottom: 1px; /* 放置在容器的底部 */
    right: 1px; /* 放置在容器的右侧 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景色，半透明黑色 */
    color: white; /* 文字颜色 */
    padding: 2px 5px; /* 内边距 */
    font-size: 12px; /* 字体大小 */
    /* 其他样式... */
}

.textad::after {
    content: "广告"; /* 伪元素显示的内容 */
    position: absolute; /* 绝对定位 */
    bottom: 1px; /* 放置在容器的底部 */
    right: 1px; /* 放置在容器的右侧 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景色，半透明黑色 */
    color: white; /* 文字颜色 */
    padding: 2px 5px; /* 内边距 */
    font-size: 12px; /* 字体大小 */
    /* 其他样式... */
}
.file-type{color: #FB8C00;}

.fooder{padding-bottom: 100px;}
.article-body{padding-bottom: 10px;}
/* 文章底部评论框*/
.btn-group-fixed {

    bottom: 64px; /* 距离底部100px */
    right: 100px; /* 距离右边100px */
    z-index: 1000; /* 确保按钮在内容之上 */
}

.btn-group-fixed .btn {
    margin-bottom: 10px; /* 按钮之间的间距 */
}
/* 浮动按钮定位样式 */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10; /* 确保浮动按钮在所有内容之上 */
}
/* 可选：为按钮组添加一些背景或阴影以增强视觉效果 */
.btn-group-fixed {
    background-color: rgba(255, 255, 255, 0.7); /* 半透明白色背景 */
    border-radius: 10px; /* 圆角 */
    padding: 10px; /* 内边距 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 阴影 */
}
.pinglun{}
.thumbs-up{background-color: #f5f5f5;}
table tr:hover{height:5vh;font-size:20px;}
@media (max-width: 960px) {
    .menu {
        font-size: 10px;
    }

    .img {
        width: 45px;
        height: 45px;
    }
    /* 默认样式 */
    table tr:hover{height:5vh;font-size:20px;}
    table .col-1p{width: 20px;padding:2px 2px;align-items: center; }
    table .col-2p{width: 60px;padding:2px 2px ;}
    .fooder {
        padding-bottom: 100px;
    }
    .article-body{padding-bottom: 25%;}
    .article-body img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        overflow: hidden;
    }
    .article-body video{
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        overflow: hidden;
    }
}
@media (max-width: 768px) {
    .menu {
        font-size: 10px;
    }

    .img {
        width: 32px;
        height: 32px;
    }

    .fooder {
        padding-bottom: 180px;
    }

}


/*滑动菜单*/
.scroll-container {
    width: 100%; /* 或任何固定宽度 */
    overflow-x: auto; /* 允许横向滚动 */
    white-space: nowrap; /* 防止列表项换行 */
    -webkit-overflow-scrolling: touch; /* 改进移动端滚动体验（可选） */
}

/* 隐藏 X 轴滚动条滑块 */
.scroll-container::-webkit-scrollbar {
    display: none; /* 对于 Webkit 浏览器 (如Chrome, Safari) */
}

.list-inline {
    padding: 5px 0 5px 0; /* 移除默认的padding */
    margin: 0; /* 移除默认的margin */
    display: flex; /* 使用Flexbox使列表项横向排列 */
    flex-wrap: nowrap; /* 防止列表项换行 */
}

.list-inline-item {
    flex: 0 0 80px; /* 固定每个列表项的宽度 */
    margin-right: 10px; /* 右侧间距，可根据需要调整 */
    /* 其他样式保持不变 */
}
.list-inline-item a{text-decoration: none;}
.list-inline-item:last-child {
    margin-right: 0; /* 移除最后一个列表项的右侧间距 */
}

/*底部导航*/
.bottom-nav {
    z-index: 10;
    display: flex;
    justify-content: space-around; /* 等间距分布 */
    align-items: center; /* 垂直居中 */
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #343a40; /* 灰色背景 */
    color: white; /* 文字颜色 */
    padding: 5px 0; /* 上下内边距 */
}

/* 导航项的基本样式 */
.bottom-nav a {
    text-decoration: none;
    color: white;
    padding: 15px 10px; /* 链接的内边距 */
    display: block; /* 使其成为块级元素以充满容器 */
}

/* “发布”按钮的特殊样式 */
.publish-btn {
    background-color: red; /* 红色背景 */
    color: white;
    border-radius: 50%; /* 圆形按钮 */
    padding: 15px 25px; /* 更大的内边距以适合圆形 */
    font-size: 0.9rem; /* 更大的字体 */
    width: 50px; /* 固定宽度以保持圆形 */
    height: 50px; /* 固定高度以保持圆形 */
    display: flex;
    justify-content: center; /* 文本居中 */
    align-items: center; /* 文本垂直居中 */
    margin: 0 10px; /* 与其他链接之间的外边距 */
}

/* 对于较窄的屏幕，调整间距或显示方式 */
@media (max-width: 960px) {
    /* 底部导航栏的容器 */
    .bottom-nav {
        z-index: 10;
        display: flex;
        justify-content: space-around; /* 等间距分布 */
        align-items: center; /* 垂直居中 */
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #343a40; /* 灰色背景 */
        color: white; /* 文字颜色 */
        padding: 5px 0; /* 上下内边距 */
    }

    /* 导航项的基本样式 */
    .bottom-nav a {
        text-decoration: none;
        color: white;
        padding: 15px 10px; /* 链接的内边距 */
        display: block; /* 使其成为块级元素以充满容器 */
    }

    /* “发布”按钮的特殊样式 */
    .publish-btn {
        background-color: red; /* 红色背景 */
        color: white;
        border-radius: 50%; /* 圆形按钮 */
        padding: 15px 25px; /* 更大的内边距以适合圆形 */
        font-size: 0.9rem; /* 更大的字体 */
        width: 50px; /* 固定宽度以保持圆形 */
        height: 50px; /* 固定高度以保持圆形 */
        display: flex;
        justify-content: center; /* 文本居中 */
        align-items: center; /* 文本垂直居中 */
        margin: 0 10px; /* 与其他链接之间的外边距 */
    }
}

/*广告*/
.textad tbody tr td{
     padding:10px 10px 10px 10px;
 }
/*多图上传*/

/* 登录、注册、找回密码页面共享样式 */
.containers {
    margin: 0;
    padding: 0;
    background-image: url('/public/bg.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    width: 420px;
    text-align: center;
    z-index: 1;
}

.form-container h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.form-container input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.form-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-container button {
    width: 100%;
    padding: 0.5px;
    border: none;
    border-radius: 5px;
    background-color: #0e7ded;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    float: left;
}

.tgs {
    color: white;
    width: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    float: right;
}

.tgs:hover {
    color: #dc3545;
}

.top-right {
    position: absolute;
    top: 12rem;
    right: 1rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .top-right {
        top: 0.5rem;
    }
    
    /* 登录、注册、找回密码页面响应式设计 */
    .form-container {
        width: 90%;
        padding: 0.75rem;
        margin: 0 1rem;
    }
    
    /* 优化小屏幕上的头部显示 */
    .container-fluid {
        padding: 0.5rem;
    }
    
    .logo-img {
        max-width: 150px;
        height: auto;
    }
    
    h1.text-center {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }
    
    /* 优化底部文本显示 */
    .bottom-text {
        bottom: 5px;
        font-size: 0.7rem;
    }
    
    /* 优化表单元素在小屏幕上的显示 */
    .form-container input,
    .form-container button {
        padding: 0.6rem;
    }
    
    /* 优化链接显示 */
    .forgot-password,
    .tgs {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
}

.top-right a {
    color: #000;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.bottom-text {
    position: absolute;
    width: 100%;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    color: #5c636a;
    text-align: center;
    font-size: 0.8rem;
    background-image: url('http://xqtpl.com/2160x100/?color=39F-3C0&text=.');
    z-index: 0;

}

/* 找回密码页面特定样式 */
.form-container label {
    color: white;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

.form-container p {
    text-align: center;
    margin-top: 15px;
    color: white;
}

.form-container a {
    color: white;
    text-decoration: none;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    display: none;
}
