/* artlist_table.css - 文章内容展示样式 */

.category-container {
    box-sizing: border-box;
    width: 100vw;
    height: calc(100vh - 150px);
    display: flex;
    justify-content: center;
    position: fixed;
}

.category-container .content-container {
    width: 80%;
    height: 90%;
    padding: 4vh 3vw;
    background-image: url("../img/list1-bg.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
}

/* 搜索框容器样式 */
.category-container .search-container {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.category-container .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.category-container .search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(39, 64, 113, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    color: #274071;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.category-container .search-input:focus {
    border-color: #274071;
    background: rgba(255, 255, 255, 1);
}

.category-container .search-btn {
    height: 40px;
    padding: 0 24px;
    background: #274071;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-container .search-btn:hover {
    background: #1a2d4d;
}

.category-container .search-btn:active {
    background: #0f1a2e;
}

/* 内容面板样式 */
.category-container .content-container .list-panel {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 文章内容样式 */
.category-container .article-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    color: #274071;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
}

/* 滚动条样式 */
.category-container .article-content::-webkit-scrollbar {
    width: 8px;
}

.category-container .article-content::-webkit-scrollbar-track {
    background: rgba(39, 64, 113, 0.1);
    border-radius: 4px;
}

.category-container .article-content::-webkit-scrollbar-thumb {
    background: rgba(39, 64, 113, 0.5);
    border-radius: 4px;
}

.category-container .article-content::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 64, 113, 0.7);
}

/* 文章内容内部样式 */
.category-container .article-content p {
    margin: 12px 0;
    font-size: 16px;
}

/* 暂无内容居中显示 */
.category-container .article-content p:only-child {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.category-container .article-content h1,
.category-container .article-content h2,
.category-container .article-content h3,
.category-container .article-content h4,
.category-container .article-content h5,
.category-container .article-content h6 {
    margin: 20px 0 12px;
    color: #274071;
    font-weight: 500;
}

.category-container .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.category-container .article-content .table {
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

/* 表格滚动容器 - 支持固定表头和滚动内容 */
.category-container .article-content .table-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    margin: 0;
}

/* 表格滚动容器滚动条样式 */
.category-container .article-content .table-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.category-container .article-content .table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(39, 64, 113, 0.1);
    border-radius: 4px;
}

.category-container .article-content .table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(39, 64, 113, 0.5);
    border-radius: 4px;
}

.category-container .article-content .table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 64, 113, 0.7);
}

.category-container .article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    margin: 0;
    display: table;
}

.category-container .article-content table td,
.category-container .article-content table th {
    padding: 8px;
    border: 1px solid rgba(39, 64, 113, 0.2);
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 80px;
    text-align: left !important;
}

/* 表头固定样式 */
.category-container .article-content .table-scroll-wrapper table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.category-container .article-content .table-scroll-wrapper table thead th {
    background: #E4E7EC;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 500;
}

/* 表格行过滤样式 */
.category-container .article-content table tr[style*="display: none"] {
    display: none !important;
}

/* 高亮搜索结果 */
.category-container .article-content .search-highlight {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
}

.table {
    width: 100% !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-container .content-container {
        width: 95%;
        padding: 5vh 2vw;
    }

    .category-container .search-box {
        max-width: 100%;
    }

    .category-container .search-input {
        height: 36px;
        font-size: 14px;
    }

    .category-container .search-btn {
        height: 36px;
        padding: 0 20px;
        font-size: 14px;
    }

    .category-container .article-content {
        padding: 15px;
        font-size: 14px;
    }
}

