:root {
    --qjs-blue: #0066ff;
    --qjs-ink: #1c2536;
    --qjs-muted: #7f8999;
    --qjs-line: #e8edf5;
    --qjs-surface: #f6f8fc;
}

.qjs-news-page {
    color: var(--qjs-ink);
    background: #fff;
}

.qjs-news-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.qjs-news-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #edf4ff url('/app/quanjingshuke/news/images/news/banner.webp') center / cover no-repeat;
}

.qjs-news-hero-content {
    padding: 104px 0 62px;
}

.qjs-news-eyebrow,
.qjs-news-section-title > div > p,
.qjs-news-detail-category {
    margin: 0 0 14px;
    color: var(--qjs-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.qjs-news-hero h1,
.qjs-news-detail-hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.qjs-news-hero h1 + p {
    max-width: 580px;
    margin: 28px 0 0;
    color: #586273;
    font-size: 20px;
    line-height: 1.7;
}

.qjs-news-main {
    padding: 76px 0 100px;
}

.qjs-news-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.qjs-news-category {
    min-width: 126px;
    padding: 13px 24px;
    border-radius: 999px;
    color: #7b8595;
    background: #f3f5f8;
    text-align: center;
    font-size: 16px;
    line-height: 1.25;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.qjs-news-category:hover,
.qjs-news-category.is-active {
    color: #fff;
    background: var(--qjs-blue);
    transform: translateY(-1px);
}

.qjs-news-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 82px 0 34px;
}

.qjs-news-section-title h2,
.qjs-news-related h2,
.qjs-news-comments h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.qjs-news-section-title > span {
    color: var(--qjs-muted);
    font-size: 14px;
}

.qjs-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.qjs-news-card {
    overflow: hidden;
    border: 1px solid var(--qjs-line);
    border-radius: 8px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.qjs-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(34, 57, 94, .12);
}

.qjs-news-card-cover {
    display: block;
    aspect-ratio: 1.46;
    overflow: hidden;
    background: #eef3fa;
}

.qjs-news-card-cover img,
.qjs-news-related-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.qjs-news-card:hover img,
.qjs-news-related-grid a:hover img {
    transform: scale(1.045);
}

.qjs-news-card-body {
    padding: 22px 24px 24px;
}

.qjs-news-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--qjs-blue);
    font-size: 13px;
}

.qjs-news-card-meta span {
    color: #a4acb8;
    white-space: nowrap;
}

.qjs-news-card h3 {
    margin: 16px 0 12px;
    font-size: 18px;
    line-height: 1.55;
}

.qjs-news-card h3 a {
    color: var(--qjs-ink);
}

.qjs-news-card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    min-height: 44px;
    color: #7d8796;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qjs-news-card-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    color: var(--qjs-blue);
    font-size: 14px;
    font-weight: 600;
}

.qjs-news-card-link span {
    font-size: 19px;
    line-height: 1;
}

.qjs-news-empty,
.qjs-news-comment-empty {
    padding: 48px 24px;
    color: var(--qjs-muted);
    background: var(--qjs-surface);
    text-align: center;
}

.qjs-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 52px;
    color: var(--qjs-muted);
    font-size: 14px;
}

.qjs-news-pagination a {
    padding: 9px 18px;
    border: 1px solid #d8e1f0;
    border-radius: 4px;
    color: var(--qjs-blue);
}

.qjs-news-detail-hero {
    padding: 150px 0 76px;
    background: #f4f8ff;
}

.qjs-news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    color: #9aa4b2;
    font-size: 14px;
}

.qjs-news-breadcrumb a {
    color: #677488;
}

.qjs-news-detail-hero h1 {
    max-width: 900px;
    font-size: 42px;
}

.qjs-news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    color: #8a94a5;
    font-size: 14px;
}

.qjs-news-detail-main {
    padding: 72px 0 100px;
}

.qjs-news-detail-article {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.qjs-news-detail-summary {
    margin: 0 0 44px;
    padding: 22px 26px;
    border-left: 4px solid var(--qjs-blue);
    color: #5e6a7c;
    background: #f5f8fd;
    font-size: 17px;
    line-height: 1.8;
}

.qjs-news-detail-content {
    color: #3e4857;
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.qjs-news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
}

.qjs-news-detail-content p,
.qjs-news-detail-content ul,
.qjs-news-detail-content ol {
    margin: 0 0 22px;
}

.qjs-news-detail-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 58px 0 72px;
}

.qjs-news-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border: 1px solid #dce4f0;
    border-radius: 999px;
    color: #657387;
    background: #fff;
    cursor: pointer;
}

.qjs-news-action:hover,
.qjs-news-action.is-favorited {
    border-color: var(--qjs-blue);
    color: var(--qjs-blue);
}

.qjs-news-action strong {
    color: inherit;
    font-weight: 500;
}

.qjs-news-related,
.qjs-news-comments {
    padding-top: 48px;
    border-top: 1px solid var(--qjs-line);
}

.qjs-news-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.qjs-news-related-grid a {
    overflow: hidden;
    color: var(--qjs-ink);
}

.qjs-news-related-grid img {
    aspect-ratio: 1.55;
    border-radius: 5px;
}

.qjs-news-related-grid span {
    display: block;
    margin-top: 13px;
    color: #9aa4b2;
    font-size: 13px;
}

.qjs-news-related-grid h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.qjs-news-comments {
    margin-top: 58px;
}

.qjs-news-comments h2 span {
    color: #98a2b2;
    font-weight: 400;
}

.qjs-news-comment-list {
    margin-top: 26px;
}

.qjs-news-comment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--qjs-line);
}

.qjs-news-comment-avatar {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    color: var(--qjs-blue);
    background: #eaf2ff;
    text-align: center;
    line-height: 40px;
}

.qjs-news-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qjs-news-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.qjs-news-comment-head span {
    color: #9ba5b4;
}

.qjs-news-comment p {
    margin: 9px 0 0;
    color: #637084;
    line-height: 1.7;
}

.qjs-news-comment-form {
    margin-top: 28px;
}

.qjs-news-comment-form label {
    display: block;
    margin-bottom: 12px;
    color: #475467;
    font-weight: 600;
}

.qjs-news-comment-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 130px;
    padding: 14px;
    border: 1px solid #d9e1ed;
    border-radius: 4px;
    outline: none;
    color: var(--qjs-ink);
    font: inherit;
    resize: vertical;
}

.qjs-news-comment-form textarea:focus {
    border-color: var(--qjs-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .09);
}

.qjs-news-comment-form button {
    margin-top: 14px;
    padding: 11px 23px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--qjs-blue);
    cursor: pointer;
    font: inherit;
}

.article-login-modal[hidden] {
    display: none;
}

.article-login-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 30, 46, .58);
}

.article-login-card {
    position: relative;
    width: min(390px, 100%);
    padding: 34px;
    border-radius: 8px;
    background: #fff;
}

.article-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    color: #8892a2;
    background: transparent;
    cursor: pointer;
}

.article-login-brand {
    display: block;
    max-width: 150px;
    max-height: 45px;
    margin: 0 auto 28px;
}

.article-login-form .layui-form-item {
    margin-bottom: 14px;
}

.article-login-captcha {
    display: flex;
    gap: 10px;
}

.article-login-captcha img {
    width: 116px;
    cursor: pointer;
}

.article-login-submit {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--qjs-blue);
    cursor: pointer;
}

.article-login-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-top: 14px;
    color: #7f8998;
    font-size: 13px;
}

.article-login-options label {
    margin-right: auto;
}

.article-login-options a {
    color: var(--qjs-blue);
}

@media (max-width: 900px) {
    .qjs-news-grid,
    .qjs-news-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .qjs-news-container,
    .qjs-news-detail-article {
        width: min(100% - 32px, 860px);
    }

    .qjs-news-hero {
        min-height: 330px;
    }

    .qjs-news-hero-content {
        padding: 88px 0 46px;
    }

    .qjs-news-hero h1,
    .qjs-news-detail-hero h1 {
        font-size: 32px;
    }

    .qjs-news-hero h1 + p {
        margin-top: 20px;
        font-size: 16px;
    }

    .qjs-news-main,
    .qjs-news-detail-main {
        padding: 48px 0 70px;
    }

    .qjs-news-categories {
        justify-content: flex-start;
        gap: 10px;
    }

    .qjs-news-category {
        min-width: 0;
        padding: 10px 16px;
        font-size: 14px;
    }

    .qjs-news-section-title {
        display: block;
        margin: 48px 0 25px;
    }

    .qjs-news-section-title > span {
        display: block;
        margin-top: 10px;
    }

    .qjs-news-section-title h2,
    .qjs-news-related h2,
    .qjs-news-comments h2 {
        font-size: 24px;
    }

    .qjs-news-grid,
    .qjs-news-related-grid {
        grid-template-columns: 1fr;
    }

    .qjs-news-detail-hero {
        padding: 112px 0 52px;
    }

    .qjs-news-detail-summary {
        margin-bottom: 30px;
        padding: 18px;
        font-size: 16px;
    }

    .qjs-news-detail-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .qjs-news-detail-actions {
        margin: 42px 0 54px;
    }

    .article-login-card {
        padding: 28px 20px;
    }
}
