@charset "utf-8";
/* 基础样式 */
 
.row {
    display: flex;
 
}

.row > * {
    padding: 15px;
}

.bg-white {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 15px;
}

/* 左侧内容区域 */
.left-content {
    width: 100%;
}

.list-news-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.list-news-item .thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.list-news-item .info {
    flex: 1;
    margin-left: 15px;
}

.list-news-item .info h5 {
    margin: 0 0 5px;
    font-size: 16px;
}

.list-news-item .info p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #666;
}

.list-news-item .label {
    font-size: 12px;
    color: #999;
}

/* 右侧侧边栏 */
.right-sidebar {
    width: 100%;
}

.sidebar-box {
    margin-bottom: 20px;
    padding: 10px;
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-box a {
    display: block;
    padding: 4px 0;
    color: #333;
    text-decoration: none;
}

.sidebar-box a:hover {
    color: #007bff;
}

/* 分页样式 */
.pagebar .pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.pagebar .pagination li {
    display: inline-block;
    margin: 0 3px;
}

.pagebar .pagination li a {
    display: block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagebar .pagination li a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 响应式布局 */

/* 手机端 */
@media (max-width: 767px) {
    .row {
        flex-direction: column;
    }
    main.col-lg-9,
    aside#sidebar {
        width: 100%;
        display: block;
    }
    .list-news-item {
        flex-direction: column;
    }
    .list-news-item .info {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* 平板端 */
@media (min-width: 768px) and (max-width: 991px) {
    main.col-lg-9 {
        width: 70%;
    }
    aside#sidebar {
        width: 30%;
        display: block;
    }
    .list-news-item {
        flex-direction: row;
    }
}

/* PC端 */
@media (min-width: 992px) {
    main.col-lg-9 {
        width: 75%;
    }
    aside#sidebar {
        width: 25%;
        display: block;
    }
}



.left-content {
    width: 100%;
}

.bg-white {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.show-news-header h1.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.show-news-meta span {
    color: #888;
    font-size: 14px;
    margin-right: 15px;
}

/* 内容图片自适应 */
.show-news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* 相关文章列表 */
.relative-news ul.list-unstyled {
    padding: 0;
    margin: 0;
}

.relative-news .list-news-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.relative-news .list-news-item .thumb {
    flex: 0 0 220px;
}

.relative-news .list-news-item .info {
    flex: 1;
    padding-left: 15px;
}

.relative-news .list-news-item h5.tit a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.relative-news .list-news-item p.about {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* 右侧侧边栏 */
.right-sidebar .sidebar-box {
    margin-bottom: 20px;
    padding: 15px;
}

.right-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* TAG 标签 */
.article-sub-menu a.submenu-item {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 3px 8px;
    font-size: 13px;
    color: #007bff;
    background: #f1f1f1;
    border-radius: 4px;
    text-decoration: none;
}

.article-sub-menu a.submenu-item:hover {
    background-color: #007bff;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 992px) {
    aside#sidebar {
        display: none; /* 平板以下隐藏右侧栏 */
    }
    .left-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .show-news-header h1.title {
        font-size: 20px;
    }
    .relative-news .list-news-item {
        flex-direction: column;
    }
    .relative-news .list-news-item .thumb {
        width: 100%;
        margin-bottom: 10px;
    }
    .relative-news .list-news-item .info {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .show-news-header h1.title {
        font-size: 18px;
    }
    .show-news-meta span {
        display: block;
        margin-bottom: 5px;
    }
}
