﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: #eef2f5;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dfe5ec;
}

.site-header-inner {
    width: 1120px;
    height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #263241;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #202b37;
}

.top-note {
    color: #7a8491;
    font-size: 13px;
}


.search-section {
    width: 1120px;
    max-width: 100%;
    margin: 16px auto 0;
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 5px;
    padding: 18px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid #d6dde6;
    border-radius: 4px;
    padding: 0 14px;
    color: #2b3644;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
}

    .search-input::placeholder {
        color: #98a2af;
    }

.search-button {
    width: 110px;
    height: 42px;
    border: 1px solid #2f6f9f;
    border-radius: 4px;
    background: #2f6f9f;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    flex: 0 0 auto;
}

.page-wrap {
    width: 1120px;
    margin: 0 auto;
}

.layout {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    align-items: start;
}

.panel,
.card {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 5px;
}

.panel-head {
    height: 46px;
    border-bottom: 1px solid #e7ebf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #202b37;
}

.category-list {
    padding: 10px 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px;
    color: #3f4b5a;
    border-left: 3px solid transparent;
}

    .category-item.active {
        background: #edf3f8;
        border-left-color: #2f6f9f;
        color: #1f5f8b;
        font-weight: 600;
    }

.disk-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccd5df;
    background: #f7f9fb;
    color: #566272;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 auto;
}

.detail-card {
    min-height: 620px;
}

.article-header {
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e7ebf0;
}

.article-title {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: #202b37;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #8a95a3;
    font-size: 13px;
}

.article-body {
    padding: 24px 26px 30px;
}

.content-section {
    margin-bottom: 24px;
}

.content-title {
    font-size: 16px;
    font-weight: 700;
    color: #202b37;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #2f6f9f;
}

.content-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.9;
}


.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    width: 120px;
    background: #f7f9fb;
    color: #596574;
    font-weight: 600;
}

.info-table td {
    color: #2b3644;
}

.entry-box {
    border: 1px solid #dfe5ec;
    background: #f8fafc;
    border-radius: 5px;
    padding: 18px;
}

.entry-title {
    font-size: 15px;
    font-weight: 700;
    color: #202b37;
    margin-bottom: 10px;
}

.entry-desc {
    color: #6b7684;
    font-size: 13px;
    margin-bottom: 14px;
}

.entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid #2f6f9f;
    background: #2f6f9f;
    color: #ffffff;
    font-size: 14px;
}

.notice {
    margin-top: 18px;
    color: #8a95a3;
    font-size: 13px;
    line-height: 1.8;
}


.comment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #8a95a3;
    font-size: 13px;
}

.comment-list {
    border: 1px solid #dfe5ec;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f5;
}

    .comment-item:last-child {
        border-bottom: none;
    }

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #edf3f8;
    color: #2f6f9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-author {
    color: #202b37;
    font-weight: 700;
    font-size: 14px;
}

.comment-time {
    color: #9aa5b1;
    font-size: 12px;
    white-space: nowrap;
}

.comment-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.footer-space {
    height: 40px;
}

@media (max-width: 1160px) {
    .page-wrap,
    .site-header-inner {
        width: calc(100% - 32px);
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        height: auto;
        padding: 12px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-header,
    .article-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .article-title {
        font-size: 20px;
    }


    .comment-summary,
    .comment-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    .category-list {
        grid-template-columns: 1fr;
    }
}

/* 移动端防错位补强 */
html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.site-header-inner,
.page-wrap,
.page {
    max-width: 1120px;
}

.logo-area {
    min-width: 0;
    max-width: 100%;
}

.logo-text {
    line-height: 1.25;
    white-space: nowrap;
}

.panel,
.card,
.intro,
.search-section,
.content,
.detail-card {
    min-width: 0;
}

.category-list {
    min-width: 0;
}

.category-item {
    min-width: 0;
}

    .category-item span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.resource-main,
.comment-main {
    min-width: 0;
}

.resource-name,
.content-text,
.entry-title,
.entry-desc,
.comment-content,
.article-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 760px) {
    .site-header-inner,
    .search-section,
    .page-wrap,
    .page {
        width: calc(100% - 24px);
    }

    .logo-area {
        width: 100%;
    }

    .logo-text {
        font-size: 15px;
        white-space: normal;
    }

    .top-note {
        font-size: 12px;
        line-height: 1.5;
    }


    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-item {
        padding: 0 12px;
    }

    .resource-item {
        align-items: flex-start;
        padding: 12px;
    }

    .resource-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .resource-name {
        width: 100%;
        white-space: normal;
        line-height: 1.6;
    }

    .resource-time {
        width: 100%;
        text-align: left;
        font-size: 12px;
    }

    .article-header,
    .article-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .entry-link {
        width: 100%;
        max-width: 260px;
    }

    .comment-item {
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .site-header-inner,
    .search-section,
    .page-wrap,
    .page {
        width: calc(100% - 20px);
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .search-section {
        padding: 14px;
    }

    .resource-logo {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .panel-head {
        padding: 0 12px;
    }
}

@media (max-width: 760px) {
    .layout {
        margin-top: 16px;
        gap: 14px;
    }

    .article-title {
        line-height: 1.45;
    }

    .entry-box {
        padding: 14px;
    }
}
