
/* QuickQ 新闻详情页 */

.seo-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 99999;
    padding: 10px 16px;
    color: #111;
    background: #fff;
    border: 2px solid #111;
    border-radius: 4px;
    text-decoration: none;
}

.seo-skip-link:focus {
    top: 12px;
}

.news-detail-page {
    min-height: 60vh;
}

.news-detail-hero {
    padding-top: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(30px, 4vw, 52px);
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: #7a8494;
    font-size: 14px;
    line-height: 1.7;
}

.news-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.news-breadcrumb a:hover {
    color: var(--primary-color, #2563eb);
}

.news-breadcrumb [aria-current="page"] {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.news-detail-title {
    max-width: 920px;
    margin: 0 auto 18px;
    color: white;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.news-detail-description {
    max-width: 800px;
    margin: 0 auto 18px;
    color: var(--text-color, #5c6677);
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.news-detail-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: #7a8494;
    font-size: 14px;
}

.news-detail-content {
    padding-top: clamp(24px, 4vw, 48px);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.news-article {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 44px);
    background: var(--card-background, #fff);
    border: 1px solid var(--border-color, #e8ebf0);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgb(15 23 42 / 4%);
}

.news-article-cover {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f6f8;
}

.news-article-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.news-article-body {
    color: var(--text-color, #374151);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: normal;
}

.news-article-body > :first-child {
    margin-top: 0;
}

.news-article-body > :last-child {
    margin-bottom: 0;
}

.news-article-body p {
    margin: 0 0 1.35em;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4,
.news-article-body h5,
.news-article-body h6 {
    margin: 1.8em 0 .75em;
    color: var(--heading-color, #182230);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.news-article-body h2 {
    padding-left: 14px;
    border-left: 4px solid var(--primary-color, #2563eb);
    font-size: clamp(22px, 2.5vw, 28px);
}

.news-article-body h3 {
    font-size: clamp(19px, 2.2vw, 23px);
}

.news-article-body h4 {
    font-size: 18px;
}

.news-article-body a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.news-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: 10px;
}

.news-article-body figure {
    max-width: 100%;
    margin: 26px 0;
}

.news-article-body figcaption {
    margin-top: 10px;
    color: #7a8494;
    font-size: 13px;
    text-align: center;
}

.news-article-body blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    color: var(--text-color, #5c6677);
    background: var(--muted-background, #f6f8fb);
    border-left: 4px solid var(--primary-color, #2563eb);
    border-radius: 0 10px 10px 0;
}

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.8em;
}

.news-article-body li {
    margin: .45em 0;
    padding-left: .15em;
}

.news-article-body hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: var(--border-color, #e8ebf0);
}

.news-article-body pre {
    max-width: 100%;
    margin: 22px 0;
    padding: 18px;
    overflow-x: auto;
    color: #e5e7eb;
    background: #182230;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre;
}

.news-article-body code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .92em;
}

.news-article-body :not(pre) > code {
    padding: 2px 6px;
    color: #b42318;
    background: #fff1f0;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.news-article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    overflow-x: auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.news-article-body th,
.news-article-body td {
    min-width: 90px;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #e8ebf0);
    text-align: left;
    vertical-align: top;
}

.news-article-body th {
    color: var(--heading-color, #182230);
    background: var(--muted-background, #f6f8fb);
    font-weight: 700;
}

.news-article-body strong,
.news-article-body b {
    color: var(--heading-color, #182230);
}

.news-article-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e8ebf0);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color, #2563eb);
    font-weight: 600;
    text-decoration: none;
}

.news-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-detail-error {
    width: min(92%, 760px);
    margin: 80px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    text-align: center;
}

.news-detail-error a {
    color: var(--primary-color, #2563eb);
}

@media (max-width: 640px) {
    .news-detail-hero {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .news-breadcrumb {
        gap: 6px;
        margin-bottom: 18px;
        font-size: 12px;
    }

    .news-detail-title {
        margin-bottom: 14px;
        font-size: 27px;
        line-height: 1.45;
    }

    .news-detail-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .news-article {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .news-article-cover {
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .news-article-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .news-article-body h2 {
        padding-left: 10px;
    }

    .news-article-body blockquote {
        padding: 14px 16px;
    }

    .news-article-body th,
    .news-article-body td {
        padding: 9px 10px;
    }
}
