.news-detail-main {
    background: #f4f6f8;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.news-article,
.news-side-card,
.news-detail-empty {
    background: #fff;
    border: 1px solid #e7ecf0;
    border-radius: 4px;
}

.news-article {
    padding: 30px;
}

.news-article-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.news-back-link {
    font-size: 13px;
    color: var(--primary);
}

.news-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 168, 159, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.news-article-header h1 {
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.5;
    color: #25313c;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.news-article-cover {
    margin-top: 26px;
    border-radius: 4px;
    overflow: hidden;
    background: #eff3f6;
}

.news-article-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.news-article-body {
    margin-top: 30px;
    color: #495560;
    font-size: 16px;
    line-height: 1.95;
}

.news-article-body > * + * {
    margin-top: 18px;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    color: #25313c;
    line-height: 1.45;
}

.news-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 4px;
}

.news-article-body table {
    width: 100%;
    border-collapse: collapse;
}

.news-article-body table td,
.news-article-body table th {
    border: 1px solid #e4eaef;
    padding: 10px 12px;
}

.news-article-body ul,
.news-article-body ol {
    padding-left: 20px;
}

.news-article-body blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: #f6fbfb;
    color: #51606c;
}

.news-article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #eef2f5;
}

.news-article-nav-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e7ecf0;
    border-radius: 4px;
    background: #fafcfd;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.news-article-nav-item:hover {
    border-color: rgba(0, 168, 159, 0.35);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.news-article-nav-item.disabled,
.news-article-nav-item.disabled:hover {
    cursor: default;
    transform: none;
    box-shadow: none;
    border-color: #edf1f4;
}

.news-article-nav-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.news-article-nav-item strong {
    display: block;
    color: #2a3641;
    line-height: 1.6;
    font-size: 14px;
}

.news-detail-side {
    position: sticky;
    top: 116px;
    align-self: start;
    display: grid;
    gap: 20px;
}

.news-side-card {
    padding: 24px;
}

.news-side-card h2 {
    font-size: 18px;
    color: #25313c;
}

.news-related-list {
    margin-top: 18px;
}

.news-related-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f4;
}

.news-related-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.news-related-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: #2b3742;
}

.news-related-item span,
.news-related-empty,
.news-side-card p {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.news-side-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-size: 13px;
}

.news-detail-empty {
    padding: 60px 30px;
    text-align: center;
}

.news-detail-empty h2 {
    font-size: 30px;
    color: #25313c;
}

.news-detail-empty p {
    margin: 14px 0 24px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-side {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .news-article {
        padding: 22px 18px;
    }

    .news-article-header h1 {
        font-size: 22px;
        line-height: 1.6;
    }

    .news-article-nav {
        grid-template-columns: 1fr;
    }

    .news-article-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
