/*!
 * 快讯归档页（/newsflashes）与 AI 日报标签页（/newsflashes/ai-daily）样式
 * 仅在该页面加载，复用 skin.css 的设计变量与品牌色
 */

/* ========== 1. 页头 Hero ========== */
.nf-newsflashes-page .news-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nf-newsflashes-page .nf-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 40px 0;
    background:
        radial-gradient(620px 300px at 92% -18%, rgba(221, 51, 51, 0.14), transparent 70%),
        radial-gradient(420px 260px at -6% 110%, rgba(240, 90, 69, 0.1), transparent 72%),
        linear-gradient(180deg, #fffdfc 0%, #f7f1e9 100%);
    border: 1px solid var(--skin-line);
    border-radius: var(--skin-radius-lg);
    box-shadow: var(--skin-shadow-sm);
}

.nf-newsflashes-page .nf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 21, 26, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 21, 26, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    pointer-events: none;
}

.nf-newsflashes-page .nf-hero > * {
    position: relative;
    z-index: 2;
}

/* 顶部信息行 */
.nf-newsflashes-page .nf-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    color: var(--skin-muted-2);
    font-size: 10.5px;
    letter-spacing: 0.04em;
}

.nf-newsflashes-page .nf-meta-mid {
    color: var(--skin-muted);
    letter-spacing: 0.3em;
}

.nf-newsflashes-page .nf-meta-update {
    white-space: nowrap;
}

/* 主区域：标题 + 日期面板 */
.nf-newsflashes-page .nf-hero-main {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 0 26px;
}

.nf-newsflashes-page .nf-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.nf-newsflashes-page .nf-hero h1 {
    margin: 0;
    color: var(--skin-ink);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.nf-newsflashes-page .nf-hero-sign {
    margin: 10px 0 0;
    color: var(--skin-muted-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9.5px;
    letter-spacing: 0.32em;
}

/* 日期 + 月历面板 */
.nf-newsflashes-page .nf-date-panel {
    display: flex;
    flex: none;
    align-items: stretch;
    overflow: hidden;
    background: var(--skin-surface-2);
    border: 1px solid var(--skin-line);
    border-radius: 16px;
}

.nf-newsflashes-page .nf-date-main {
    display: flex;
    width: 148px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
}

.nf-newsflashes-page .nf-issue {
    color: var(--skin-muted);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.nf-newsflashes-page .nf-day {
    margin-top: 6px;
    color: var(--skin-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 54px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.nf-newsflashes-page .nf-month {
    margin-top: 8px;
    color: var(--skin-text);
    font-size: 12px;
}

.nf-newsflashes-page .nf-weekday {
    margin-top: 2px;
    color: var(--skin-muted);
    font-size: 10.5px;
}

.nf-newsflashes-page .nf-cal-wrap {
    width: 210px;
    padding: 13px 15px;
    border-left: 1px solid var(--skin-line);
}

.nf-newsflashes-page .nf-cal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: var(--skin-muted);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.nf-newsflashes-page .nf-cal-head span:first-child {
    color: var(--skin-text);
    font-weight: 600;
}

.nf-newsflashes-page .nf-cal-week,
.nf-newsflashes-page .nf-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
}

.nf-newsflashes-page .nf-cal-week {
    margin-top: 8px;
    color: var(--skin-muted-2);
    font-size: 9px;
}

.nf-newsflashes-page .nf-cal-grid {
    margin-top: 4px;
    row-gap: 5px;
}

.nf-newsflashes-page .nf-cal-day,
.nf-newsflashes-page .nf-cal-blank {
    display: grid;
    height: 13px;
    place-items: center;
}

.nf-newsflashes-page .nf-cal-day i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--skin-line-strong);
    opacity: 0.55;
}

.nf-newsflashes-page .nf-cal-day.has i {
    background: var(--skin-brand);
    opacity: 1;
}

.nf-newsflashes-page .nf-cal-day.is-current {
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    justify-self: center;
    border: 1px solid var(--skin-brand);
    border-radius: 50%;
}

/* 底部统计行 */
.nf-newsflashes-page .nf-hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 -40px;
    padding: 13px 40px;
    border-top: 1px solid var(--skin-line);
}

.nf-newsflashes-page .nf-stat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 28px;
}

.nf-newsflashes-page .nf-stat-list span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--skin-muted);
    font-size: 11px;
    white-space: nowrap;
}

.nf-newsflashes-page .nf-stat-list b {
    color: var(--skin-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nf-newsflashes-page .nf-stat-right {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    color: var(--skin-muted-2);
    font-size: 11px;
    white-space: nowrap;
}

.nf-newsflashes-page .nf-publish {
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--skin-brand);
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.nf-newsflashes-page .nf-publish:hover {
    background: var(--skin-brand-dark);
    transform: translateY(-1px);
}

/* ========== 2. 列表容器 ========== */
.nf-newsflashes-page .newsflashes-list {
    padding: 0;
    overflow: hidden;
    background: var(--skin-surface);
    border: 1px solid var(--skin-line);
    border-radius: var(--skin-radius-lg);
    box-shadow: var(--skin-shadow-sm);
}

.nf-newsflashes-page .nf-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    background: linear-gradient(180deg, #fff, #fdfbf8);
    border-bottom: 1px solid var(--skin-line);
}

.nf-newsflashes-page .nf-list-title {
    color: var(--skin-ink);
    font-size: 15px;
    font-weight: 700;
}

.nf-newsflashes-page .nf-list-sub {
    margin-left: 8px;
    color: var(--skin-muted-2);
    font-size: 11px;
}

.nf-newsflashes-page .nf-list-count {
    padding: 4px 10px;
    background: var(--skin-surface-3);
    border-radius: 999px;
    color: var(--skin-muted);
    font-size: 11.5px;
}

.nf-newsflashes-page .news-list-box {
    padding: 4px 24px 8px;
}

/* ========== 3. 时间线与条目 ========== */
.nf-newsflashes-page .news-item + .news-item {
    border-top: 1px solid var(--skin-line);
}

.nf-newsflashes-page .news-item ul {
    margin-left: 78px;
}

.nf-newsflashes-page .news-item li {
    padding: 22px 0;
    transition: background-color 0.18s;
}

.nf-newsflashes-page .news-item li + li {
    border-top: 1px solid var(--skin-line);
}

.nf-newsflashes-page .news-item-date {
    top: 22px;
    left: 0;
}

.nf-newsflashes-page .news-item-date p {
    width: 50px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--skin-line);
    border-radius: 11px;
    box-shadow: var(--skin-shadow-sm);
}

.nf-newsflashes-page .news-item-date p span:first-child {
    height: 24px;
    background: var(--skin-surface-3);
    color: var(--skin-muted);
    font-size: 11px;
    line-height: 24px;
}

.nf-newsflashes-page .news-item-date p span:last-child {
    height: 27px;
    background: var(--skin-brand);
    color: #fff;
    font-size: 18px;
    line-height: 27px;
}

.nf-newsflashes-page .news-item-content h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.nf-newsflashes-page .news-item-content h2 a {
    color: var(--skin-ink);
}

.nf-newsflashes-page .news-item-content h2 a:hover {
    color: var(--skin-brand);
}

.nf-newsflashes-page .news-item-header {
    margin-bottom: 9px;
    color: var(--skin-muted-2);
    font-size: 11.5px;
}

.nf-newsflashes-page .news-item-header span {
    margin-right: 20px;
}

.nf-newsflashes-page .news-item-header a {
    color: var(--skin-muted);
}

.nf-newsflashes-page .news-item-content p {
    max-height: 75px;
    color: var(--skin-muted);
    font-size: 13.5px;
    line-height: 1.85;
}

.nf-newsflashes-page .news-item-content p a {
    margin-left: 6px;
    color: var(--skin-brand);
    font-size: 12px;
}

/* 投票与标签 */
.nf-newsflashes-page .new-meta {
    margin-top: 14px;
    align-items: center;
}

.nf-newsflashes-page .new-meta-left button {
    padding: 5px 10px;
    background: var(--skin-surface-2);
    border: 1px solid var(--skin-line);
    border-radius: 999px;
    color: var(--skin-muted);
    transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

.nf-newsflashes-page .new-meta-left button:hover {
    background: var(--skin-brand-soft);
    border-color: var(--skin-brand-line);
    color: var(--skin-brand);
}

.nf-newsflashes-page .new-tag i {
    display: none;
}

.nf-newsflashes-page .new-tag a {
    padding: 4px 10px;
    background: var(--skin-brand-soft);
    border: 1px solid var(--skin-brand-line);
    border-radius: 999px;
    color: var(--skin-brand);
    font-size: 11.5px;
}

.nf-newsflashes-page .new-meta-right {
    color: var(--skin-muted-2);
    font-size: 12px;
}

.nf-newsflashes-page .new-meta-right span:hover {
    color: var(--skin-brand);
}

.nf-newsflashes-page .b2-pagenav {
    padding: 12px 24px 20px;
}

/* ========== 4. 移动端 ========== */
@media screen and (max-width: 900px) {
    .nf-newsflashes-page .news-content {
        gap: 14px;
    }

    .nf-newsflashes-page .nf-hero {
        padding: 18px 20px 0;
        border-radius: var(--skin-radius);
    }

    .nf-newsflashes-page .nf-hero-meta {
        font-size: 10px;
    }

    .nf-newsflashes-page .nf-hero-main {
        gap: 14px;
        padding: 18px 0 20px;
    }

    .nf-newsflashes-page .nf-hero h1 {
        font-size: 38px;
    }

    .nf-newsflashes-page .nf-hero-sign {
        margin-top: 8px;
        font-size: 8.5px;
        letter-spacing: 0.22em;
    }

    .nf-newsflashes-page .nf-date-panel {
        border-radius: 13px;
    }

    .nf-newsflashes-page .nf-date-main {
        width: 100px;
        padding: 12px 6px;
    }

    .nf-newsflashes-page .nf-issue {
        font-size: 9px;
    }

    .nf-newsflashes-page .nf-day {
        margin-top: 4px;
        font-size: 38px;
    }

    .nf-newsflashes-page .nf-month {
        margin-top: 6px;
        font-size: 10px;
    }

    .nf-newsflashes-page .nf-weekday {
        font-size: 9.5px;
    }

    .nf-newsflashes-page .nf-cal-wrap {
        display: none;
    }

    .nf-newsflashes-page .nf-hero-stats {
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 -20px;
        padding: 12px 20px;
    }

    .nf-newsflashes-page .nf-stat-list {
        gap: 16px;
    }

    .nf-newsflashes-page .nf-stat-list span {
        font-size: 10px;
    }

    .nf-newsflashes-page .nf-stat-list b {
        font-size: 16px;
    }

    .nf-newsflashes-page .nf-stat-right {
        margin-left: auto;
        font-size: 10px;
    }

    .nf-newsflashes-page .nf-list-head {
        padding: 13px 16px;
    }

    .nf-newsflashes-page .news-list-box {
        padding: 0 14px 6px;
    }

    .nf-newsflashes-page .news-item ul {
        margin-left: 60px;
    }

    .nf-newsflashes-page .news-item li {
        padding: 16px 0;
    }

    .nf-newsflashes-page .news-item-date {
        top: 16px;
    }

    .nf-newsflashes-page .news-item-date p {
        width: 44px;
    }

    .nf-newsflashes-page .news-item-date p span:first-child {
        height: 22px;
        font-size: 10px;
        line-height: 22px;
    }

    .nf-newsflashes-page .news-item-date p span:last-child {
        height: 24px;
        font-size: 16px;
        line-height: 24px;
    }

    .nf-newsflashes-page .news-item-content h2 {
        font-size: 15.5px;
    }

    .nf-newsflashes-page .news-item-content p {
        max-height: 67px;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .nf-newsflashes-page .new-meta {
        flex-flow: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nf-newsflashes-page .new-meta-right {
        margin-top: 0;
    }
}

@media screen and (max-width: 640px) {
    .nf-newsflashes-page .nf-meta-mid {
        display: none;
    }

    .nf-newsflashes-page .nf-hero-meta {
        font-size: 9.5px;
    }

    .nf-newsflashes-page .nf-hero h1 {
        font-size: 34px;
    }

    .nf-newsflashes-page .nf-date-main {
        width: 92px;
    }

    .nf-newsflashes-page .nf-day {
        font-size: 34px;
    }

    .nf-newsflashes-page .nf-stat-list span:nth-child(4) {
        display: none;
    }
}
