/* ===== News page ===== */

/* Hero */
.news-hero,
.page-hero.news-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 70px;
    overflow: hidden;
    border-bottom: 1px solid #222;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0e7490 100%);
}

/* News list section */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 6% 80px;
}

.news-empty {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    padding: 60px 0;
}

/* Year tabs */
.news-year-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 52px;
    border-bottom: 1px solid #2a2a2a;
}

.news-year-tab {
    padding: 10px 28px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition:
        color 0.2s,
        border-color 0.2s;
    border-radius: 0;
    outline: none;
    letter-spacing: 0.3px;
}

.news-year-tab:hover {
    color: #fff;
}

.news-year-tab.active {
    color: #fff;
    border-bottom-color: var(--evc-orange);
}

/* Panel */
.news-panel {
    display: none;
}

.news-panel.active {
    display: block;
}

/* Month group */
.news-month-group {
    display: flex;
    gap: 36px;
    margin-bottom: 0;
    align-items: flex-start;
}

.news-month-label {
    flex: 0 0 52px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-top: 3px;
    text-align: right;
}

.news-month-items {
    flex: 1;
    border-left: 1px solid #2a2a2a;
    padding-left: 28px;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-month-group:last-child .news-month-items {
    padding-bottom: 0;
}

.news-item {
    position: relative;
}

.news-item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #555;
}

.news-item-title {
    font-size: 15px;
    color: #ccc;
    line-height: 1.65;
    display: block;
}

.news-item-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.news-item-link:hover {
    color: var(--evc-orange);
}

/* Single page */
.news-single-section {
    margin: 0 auto;
    padding: 72px 5% 80px;
}

.news-back-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.news-back-link:hover {
    color: #fff;
}

.news-date {
    opacity: 0.55;
    font-size: 14px;
}

.news-single-body {
    margin-bottom: 52px;
}

/* 覆盖 markdown-wrap 的 padding，由 news-single-section 控制间距 */
.news-single-body.markdown-wrap .rich-text {
    padding: 0;
    border: none;
}

.news-single-back {
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
}

/* Responsive */
@media (max-width: 768px) {
    .news-hero,
    .page-hero.news-hero {
        min-height: 44vh;
        padding: 110px 5% 60px;
    }

    .news-month-group {
        flex-direction: column;
        gap: 10px;
    }

    .news-month-label {
        text-align: left;
        flex: none;
    }

    .news-month-items {
        padding-left: 18px;
    }

    .news-item::before {
        left: -24px;
    }
}
