/* 导航容器样式 */
a:visited {
    color: #333; /* 点击后保持相同颜色 */
}
a：hover {
    color: #fd7e14;
}
a:focus{
    color: #fd7e14;
}
a:after{
    color: #fd7e14;
}
.nav-scroll-container {
    position: fixed;
    top:38px;
    width: 100%;
    z-index: 1000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iOS流畅滚动 */
    scrollbar-width: none; /* Firefox隐藏滚动条 */
    -ms-overflow-style: none; /* IE隐藏滚动条 */
    background: #fff;
}

/* 渐变遮罩效果 */
.nav-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}
/* 隐藏Webkit浏览器的滚动条 */
.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 导航列表样式 */
.nav-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid lightgray;
    gap: 2px;
    flex-wrap: nowrap;
    padding-top: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}


.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background-color: #fd7e14;
    border-radius: 1px;
}

/* 导航项样式 */
.nav-item {
    flex: none;
}

.nav-link {
    color: #666;
    font-size: 1.2rem;
    padding: 4px 2px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-item a:hover{
    color: #f39035;
}
.news_title hover{
    color: #f39035;
}
#js_search > div > p > a:hover{
    color: #f39035;
}
/* 活动状态 */
.nav-link.active {
    color: #fd7e14;
    font-weight: 500;
}

.mt-3 {
    margin-top: 0.2rem !important;
}

/* 导航项样式 */
.nav-item {
    padding: 0 0.03rem;
    flex: 0 0 auto;
    font-size: 0.6rem;
}
.card-title {
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    gap: 5px; /* 元素之间的间距 */
}
.card-title img {
    display: inline-block;
    vertical-align: bottom; /* 确保图片底部对齐 */
}
/* 重置 <a> 标签的默认样式 */
.card-title a {
    color: #29221f;  /* 继承父元素的颜色 */
    text-decoration: none;  /* 去掉下划线 */
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: bottom;
    font-weight: 450;
}

/* 鼠标悬停时改变颜色 */
.card-title a:hover {
    color: #fd7e14;  /* 橙色 */
}
.card{
    border:none;
}
.card-body {
    margin-top: 0;
    margin-bottom: 0;
    border: none; /* 移除所有边框 */
}

#categoryList {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.btn-outline-secondary:hover {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}


/* 点赞按钮样式 */
.like-btn {
    cursor: pointer;
    color: #fd7e14;  /* 默认颜色：灰色 */
    transition: all 0.3s ease;
    padding: 5px;
}

/* 鼠标悬停效果 */
.like-btn:hover {
    color: #fd7e14;  /* 红色 */
    transform: scale(1.1);
}

/* 已点赞状态 */
.like-btn.liked {
    color: #fd7e14;  /* 红色 */
}

/* 点赞动画 */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-animation {
    animation: likeAnimation 0.3s ease;
}

/* 统计数字样式 */
.stat-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 3px;
}


/* 新闻卡片样式 */
.news-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    border-top: none;
    border-bottom: 0.05rem solid lightgray; /* 仅保留下边框 */
}

/* 新闻统计信息样式 */
.news-stats {
    display: flex;
    justify-content: flex-start;  /* 靠左对齐 */
    align-items: center;
    width: 100%;
    gap: 1rem;  /* 统计项之间的间距 */
}

/* 统计项样式 */
.stat-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 12px;
   line-height: 25px; /* 使图标垂直居中 */

}

/* 图标样式 */
.stat-item i {
    margin-right: 0.5rem;  /* 图标和文本之间的间距 */
}

/* 空心图标样式（数值为0时） */
.stat-icon.empty {
    color: #6c757d;  /* 灰色 */
}

/* 实心图标样式（数值大于0时） */
.stat-icon.filled {
    color: #fd7e14;  /* 橙色 */
}





/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0 10px 0;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e66a00;
    text-decoration: none;
    font-size: 0.8rem;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    color: #fd7e14;
}

/* 为底部导航腾出空间 */
.content-wrapper {
    padding-bottom: 60px;
}



/* 添加用户按钮样式 */
.bottom-nav-item#userBtn {
    position: relative;
}

.bottom-nav-item#userBtn.active {
    color: #fd7e14;
}


/* 添加登录状态指示器 */
.bottom-nav-item#userBtn.active::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 8px;
    height: 8px;
    background-color: #fd7e14;
    border-radius: 50%;

    /* 加载动画 */
    .loading-indicator {
        display: none;
    }

    .loading-indicator .spinner {
        width: 24px;
        height: 24px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #ff2442;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 8px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }


}


.button-container {
    display: flex; /* 使用 Flexbox 布局 */
    justify-content: center; /* 使按钮靠右排列 */
    gap: 10px; /* 设置按钮之间的间距 */
    margin: 20px; /* 可选：设置容器的外边距 */
}

.btn {
    padding: 10px 20px; /* 设置按钮的内边距 */
    font-size: 16px; /* 设置按钮的字体大小 */
    border: none; /* 去掉默认边框 */
    border-radius: 5px; /* 设置圆角 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
}

.btn:hover {
    background-color: #fd7e14; /* 悬停时改变背景色 */
}


.location-info {
    font-size: 0.9rem;
    color: #666;
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.location-icon {
    color: #fd7e14;
    margin-right: 5px;
}

.location-text {
    cursor: pointer;
}

.location-text:hover {
    color: #fd7e14;
}

/* 位置加载动画 */
.location-loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #fd7e14;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h2 {
    font-size: 20px;
    font-weight: bold;
    line-height: 120%;
    margin-bottom: 20px;
}

#js_search {
    margin: 0px 10px 0px 10px;
    overflow-y: auto;
}
/*.overseas {*/
/*    overflow-x: auto; !* 水平滚动 *!*/
/*    white-space: wrap; !* 防止内容换行 *!*/
/*    -webkit-overflow-scrolling: touch; !* 提高触摸设备上的滚动性能 *!*/
/*}*/
#text_div{
    margin: 10px 10px 10px 10px;
    font-size: 16px;
    line-height: 2;
    font-weight: normal;
    display:inline-block;
}
p {
    font-size: 16px; /* 设置字体大小 */
    line-height: 1.8; /* 设置行高为1.5倍字体大小 */
    margin: 10px 0; /* 设置上下外边距 */
}

.news_title{
    text-decoration: none; /* 去除下划线 */
    font-size: 18px;
    font-weight: normal;
    color:#4b4b52;
}


#suggest_item{
    margin: 0px 10px 10px 10px;
    padding-bottom: 20px;
}

.text-center #loadMoreBtn{
    margin: 0 auto;

}

.middle-image{
    width: 100%;
}
/* 趋势图 */
.middle{
    text-align: center;
}


.trend-container {
    width: 50%; /* 设置宽度为60%，左右留空20% */
    margin: 0 auto; /* 水平居中 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: auto; /* 设置容器高度 */
}

@media (max-width: 768px) {
    .trend-container {
        width: 100%; /* 移动端宽度为100% */
        margin: 0; /* 移除水平居中 */
        justify-content: flex-start; /* 左对齐 */
    }

}

.trend_img{
    flex: 1; /* 每张图片占据等量空间 */
    max-width: 100%; /* 图片宽度自适应 */
    padding: 10px; /* 左右各5%的空白 */
    height: auto; /* 高度自动，保持图片比例 */
    transition: box-shadow 0.3s ease-in-out; /* 平滑阴影过渡效果 */
}



#main {
    position: relative;
    height: 180px;
    overflow: hidden;
}


.category-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    touch-action: pan-y pinch-zoom;
    gap: 12px;
}

.category-item {
    background: #ffffff;
    padding: 10px 5px;
    margin: 0;
    border-radius: 4px;
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    width: fit-content;
    min-width: 80px;
    max-width: calc(50% - 12px);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-name {
    margin: 0;
    padding: 0 8px;
    white-space: nowrap;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drag-handle {
    color: #999;
    padding: 0;
    cursor: grab;
    touch-action: none;
    display: flex;
    align-items: center;
    font-size: 18px;
    z-index: 50;
    font-weight: normal;
}

.category-item .delete-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
    top:0;
    right:0;
    width: 5px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    position: absolute;
}


.tags{
    margin: 0 10px 10px 0;
    display: block;
    width: 100%;
    color: #787474;
}




.dynamic-height-icon {
    height: auto; /* 高度自适应 */
    width: 1.4rem; /* 设置一个固定的宽度 */
    margin: 3px;
    /*padding: 3px;*/
    background-color: #fbf1f1;
    border-radius: 50%; /* 圆形 */
    border: 1px solid #bdbdbd;
    object-fit: cover;
}




main {
    padding: 20px 10px;
}

/* 应用列表样式 */
.apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 确保最左边和最右边的元素距离屏幕左边和右边的距离相等 */
    width: 100%;
    /*gap: 20px; !* 子元素之间的间距 *!*/
    /*padding: 0 10px; !* 添加左右内边距，确保边缘元素与屏幕边缘有一定的间距 *!*/
    /*box-sizing: border-box; !* 确保内边距包含在宽度内 *!*/
}

.app {
    flex: 0 0 20%; /* 每行5个元素，每个元素占20%的宽度 */
    box-sizing: border-box;
    margin-bottom: 20px; /* 添加一些底部间距 */

}

/* 不足5个元素时，从左到右按照均匀排列的间距进行排列 */
.apps::after {
    content: "";
    flex: auto;
}

.app img {
    width: 25px;
    height: auto;
}

.app a {
    text-decoration: none; /* 去掉下划线 */
    line-height: 100%;
    top: 0;
    margin-top: 0;
    padding-top: 5px;
    color: inherit; /* 默认颜色，可以根据需要修改 */
    transition: color 0.3s ease; /* 添加过渡效果 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app a:focus, .app a:hover, .app a:active {
    color: #666; /* 鼠标悬停或点击时的颜色 */
}

.app a span {
    line-height: 100%;
    top: 0;
    margin-top: 0;
    padding-top: 5px;
    display: block;
    font-size: 0.9rem;
}
.descriptions {
    margin-top: 20px;
}

.description {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.description h2 {
    margin-top: 0;
}

.description span {
    display: inline-block;
    color: #888;
}

.description ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
    max-height: 70px; /* 根据行高调整 */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description ul.expanded {
    max-height: none;
}

.description .more-btn {
    display: inline-block;
    cursor: pointer;
    color: #ff450e;
    text-decoration: underline;
    margin: 0 0 10px 10px; /* 调整间距 */
}

.description ul.expanded + .more-btn {
    display: none;
}

.description ul:not(.expanded) + .more-btn {
    display: inline-block;
}

ul span {
    margin-right: 5px; /* 右边距为5px */
    margin-top: 5px;
    margin-bottom: 5px; /* 下边距为15px */
}

ul span a {
    background-color: #faf3ee; /* 灰白色 */
    padding: 4px 10px; /* 内边距为6px */
    border-radius: 25px; /* 圆角 */
    text-decoration: none; /* 去掉下划线 */
    color: #4b4b52; /* 链接文字颜色 */
    font-size: 16px; /* 字体大小 */
    font-weight: 400;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(0.5px);
}

/* 模态框样式 */
.modal {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal.fade .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    transform: translate(0, 100%);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-content {
    min-height: 80vh;
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 为 iOS 添加弹性滚动 */
    padding-bottom: env(safe-area-inset-bottom); /* 适配全面屏底部 */
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1020;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 1020;
    border-top: 1px solid #dee2e6;
}

/* 优化滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #bdbdbd;
}


