/* ===== News Section ===== */
.news-page {
    padding-top: 80px;
}

.news-main {
    min-height: calc(100vh - 160px);
    padding: 60px 0 100px;
}

/* ===== News Header ===== */
.news-header {
    margin-bottom: 48px;
}

.news-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.news-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== News List ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 24px var(--primary-glow);
}

.news-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.news-card h2 a {
    transition: color var(--transition);
}

.news-card h2 a:hover {
    color: var(--primary);
}

.news-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-card-meta time {
    font-weight: 500;
}

.news-author {
    position: relative;
    padding-left: 16px;
}

.news-author::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--border);
    font-weight: 700;
}

.news-read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.news-read-more:hover {
    text-decoration: underline;
}

/* ===== Tags ===== */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.news-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(91, 61, 228, 0.08);
    color: var(--primary);
    letter-spacing: 0.02em;
}

/* ===== Single Article ===== */
.news-article {
    max-width: 720px;
}

.news-back {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.news-back:hover {
    color: var(--primary);
}

.news-article-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.news-article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ===== Article Body ===== */
.news-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-article-body h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.news-article-body h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.news-article-body p {
    margin-bottom: 20px;
    color: var(--text);
}

.news-article-body ul,
.news-article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
    list-style: disc;
}

.news-article-body ol {
    list-style: decimal;
}

.news-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.news-article-body strong {
    font-weight: 600;
}

.news-article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-article-body a:hover {
    text-decoration-thickness: 2px;
}

.news-article-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.news-article-body pre {
    margin-bottom: 24px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.news-article-body pre code {
    padding: 0;
    border: none;
    background: none;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .news-main {
        padding: 40px 0 72px;
    }

    .news-card {
        padding: 24px;
    }

    .news-card h2 {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}
