a{
    color: #062750;
}

@media only screen and (max-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
    }
    .main-content{
        width: 60%;
    }
}
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    .main-content{
        width: 100%;
    }
    .tab-bar-wrapper {
        display: flex;
        justify-content: center;
        /*padding: 0; !* 移除左右内边距 *!*/
        /*padding-left: 15px;*/
        /*padding-right: 15px;*/
    }

    .tab-bar {
        display: flex;
        justify-content: flex-start; /* 默认左对齐 */
        background-color: #ffffff;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        border-radius: 8px;
        width: 100%;
        max-width: 1080px;
        overflow-x: auto; /* 添加水平滚动条 */
        -webkit-overflow-scrolling: touch; /* 平滑滚动 */
    }

    .tab-bar::-webkit-scrollbar {
        height: 5px; /* 设置滚动条高度 */
        background: #ddd; /* 滚动条背景色 */
    }

    .tab-bar::-webkit-scrollbar-thumb {
        background: #888; /* 滚动条滑块颜色 */
        border-radius: 5px;
    }
    .tab-bar .tab {
        flex: 0 0 auto; /* 防止tab拉伸，保持原始寬度 */
        margin-right: 10px;
    }

    /*!* Tab bar 在手机上垂直排列，字体变小 *!*/
    /*.tab-bar {*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*    padding: 10px;*/
    /*}*/

    /*.tab-bar .tab {*/
    /*    padding: 8px 12px;*/
    /*    font-size: 0.9rem;*/
    /*}*/

    /* 文章内容和侧边栏的布局调整为垂直堆叠 */
    .content-wrapper {
        flex-direction: column;
    }

    .main-content {
        margin-right: 0!important;
    }

    .main-content .image-placeholder img {
        width: 100% !important;
        height: auto!important;
    }

    /* 调整标题和文本的尺寸 */
    .main-content .article-title {
        font-size: 1.2rem;
    }

    .main-content .article-description {
        font-size: 0.85rem;
    }

    /* 侧边栏宽度和图片大小调整 */
    .sidebar {
        margin-top: 20px;
    }

    .sidebar-item {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .sidebar-item .image-placeholder {
        width: 100%;
        margin-bottom: 10px;
        padding-right: 0px!important;
    }

    .sidebar-item .image-placeholder img {
        width: 100% !important;
        height: auto!important;

    }

    /* 调整额外内容的布局 */
    .additional-content-wrapper {
        flex-direction: column;
    }

    .additional-content {
        flex-direction: column;
    }

    .additional-item {
        flex-direction: column;
        align-items: center;
    }

    .additional-item .image-placeholder {
        width: 100%;
        margin-bottom: 10px;
    }

    .additional-item .image-placeholder img {
        width: 100% !important;
        height: auto !important;
    }

    /* 热门文章样式调整 */
    .hottest-articles {
        margin-top: 20px;
    }

    .hottest-article-item {
        align-items: center;
    }

    .hottest-article-item .image-placeholder img {
        width: 100%;
        height: auto;
    }

    /* 调整分页样式 */
    .pagination {
        flex-direction: column;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;

}

.pagination {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    padding-bottom: 30px;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 父容器，用于居中对齐 */
.tab-bar-wrapper {
    display: flex;
    justify-content: center;
}

.tab-bar {
    display: flex;
    justify-content: space-around;
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%; /* 确保在父容器中占据全宽 */
    max-width: 1080px; /* 设置最大宽度 */

}

.tab-bar .tab {
    cursor: pointer;
    padding: 10px 10px;
    font-weight: bold;
    color: #062750;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-bar .tab.active {
    color: #062750;
    border-bottom: 1px solid #062750;
}

/* 理财攻略大框样式 */
.container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
    max-width: 1080px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 隐藏和显示文章部分的样式 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 左边的内容区域 */
.content-wrapper {
    display: flex;
}

.main-content {
    flex: 2;
    margin-right: 20px;
}

.main-content .image-placeholder img {
    /*width: 100%;*/
    /*height: 300px;*/
    /*border-radius: 8px;*/
    /*margin-bottom: 10px;*/
    border-radius: 5px;
    width: 100%;
    height: auto;
}

.main-content h2 {
    /*width: 100%;*/
    /*height: 300px;*/
    /*border-radius: 8px;*/
    /*margin-bottom: 10px;*/
    /*color:#ff00ff;*/
}
.main-content .article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 30px;
}
/* 文章标题和说明文本 */
.main-content .article-title a {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color:#062750;
}
.main-content .article-description {
    font-size: 0.9rem;
    color:#062750;
    margin-top: 20px;
}

/* 右边的侧栏样式 */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-item .image-placeholder {
    /*width: 350px;*/
    padding-right: 20px;
    /*margin-left: -30px;*/

}

.sidebar-item .image-placeholder img{
    width: 180px;
    border-radius: 5px;
    height: 101px;
    object-fit: cover;
}

.sidebar-item .info {
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.sidebar-item .date {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #062750;
}

.sidebar-item .title {
    font-size: 1rem;
    font-weight: bold;
    color: #062750;
    margin-bottom: 5px;
    display: -webkit-box;       /* 必须结合 */
    -webkit-box-orient: vertical;  /* 设置盒子方向为垂直 */
    overflow: hidden;           /* 隐藏超出内容 */
    text-overflow: ellipsis;    /* 添加省略号 */
    -webkit-line-clamp: 2;      /* 限制显示的行数（如3行） */
    padding: 0 0;
}

.sidebar-item .author {
    font-size: 0.8rem;
    color: #062750;
}

/* 下方的额外内容区域样式 */
.additional-content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.additional-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.additional-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
}

.additional-item .image-placeholder {
    /*width: 300px;*/
    height: auto;
    margin-right: 15px;
    border-radius: 8px;
}

.additional-item .image-placeholder img{
    width: 280px;
    height: 157px;
    margin-right: 15px;
    border-radius: 5px;
}

.additional-item .info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.additional-item .category a {
    font-size: 0.8rem;
    color:#062750;
    margin-bottom: 5px;
}

.additional-item .title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    color:#062750;
    margin-top: 10px;
    display: -webkit-box;       /* 必须结合 */
    -webkit-box-orient: vertical;  /* 设置盒子方向为垂直 */
    overflow: hidden;           /* 隐藏超出内容 */
    text-overflow: ellipsis;    /* 添加省略号 */
    -webkit-line-clamp: 2;      /* 限制显示的行数（如3行） */
}

.additional-item .time {
    font-size: 0.8rem;
    color:#062750;
    text-align: right;
    margin-top: auto;
}

/* 热门文章样式 */
.hottest-articles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hottest-articles-header {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #062750;
    margin-left: 20px;
}

.hottest-articles-header::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: #000;
    margin-right: 10px;
}

.hottest-article-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
    margin-left: 20px;
}

.hottest-article-item .image-placeholder {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.hottest-article-item .image-placeholder img{
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.hottest-article-item .info {
    display: flex;
    flex-direction: column;
}

.hottest-article-item .date {
    font-size: 0.8rem;
    color: #062750;
    margin-bottom: 5px;
}

.hottest-article-item .title {
    font-size: 1rem;
    font-weight: bold;
    color: #062750;
}

/* 链接样式 */
.sidebar-item-link,
.additional-item-link,
.hottest-article-link {
    display: block;
    text-decoration: none;
    color: inherit; /* 保持文字颜色 */
}

.sidebar-item-link:hover .sidebar-item,
.additional-item-link:hover .additional-item,
.hottest-article-link:hover .hottest-article-item {
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); !* 鼠标悬停时添加阴影效果 *!*/
}

.load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    background-color: #062750;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #1a3a5a;
}

.load-more-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading-more, .no-more {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

@media only screen and (max-width: 768px) {
    .hottest-articles-header,.hottest-article-item{
        margin-left: 0;
    }
}
