/* 财经门户风格 news-portal.css · 参考网易财经/东方财富 */
:root {
    --fp-red: #e21b1b;
    --fp-red-deep: #c91515;
    --fp-dark: #1a1a20;
    --fp-ink: #222831;
    --fp-ink-2: #3a3f47;
    --fp-muted: #8b9096;
    --fp-line: #ececec;
    --fp-line-soft: #f2f2f2;
    --fp-bg: #f5f6f8;
    --fp-card: #ffffff;
    --fp-gold: #d4a24c;
}

/* ===== 页面背景 ===== */
.news-page { background: var(--fp-bg); }

/* ===== 资讯顶栏（财经风格）===== */
.fp-news-topbar {
    background: #0e0e12;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
}
.fp-news-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}
.fp-news-topbar a { color: rgba(255,255,255,.7); }
.fp-news-topbar a:hover { color: #fff; }

.fp-news-nav {
    background: var(--fp-red);
}
.fp-news-nav-inner {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 46px;
    overflow-x: auto;
}
.fp-news-nav a {
    padding: 0 1.15rem;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.15);
    transition: background .15s;
}
.fp-news-nav a:first-child { padding-left: 0; }
.fp-news-nav a:hover { background: rgba(0,0,0,.12); color: #fff; }
.fp-news-nav a.active {
    background: #fff;
    color: var(--fp-red);
    box-shadow: 0 0 0 1px var(--fp-red);
}

/* ===== 主体容器 ===== */
.fp-news-wrap {
    padding: 1.25rem 0 2.5rem;
}

/* ===== 头条三栏区 ===== */
.fp-headline {
    display: grid;
    grid-template-columns: 420px 1fr 300px;
    gap: 1rem;
    align-items: start;
    background: var(--fp-card);
    border-radius: 2px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 1rem;
}

/* 左：大图 */
.fp-headline-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--fp-dark);
}
.fp-headline-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.fp-headline-main:hover img { transform: scale(1.04); }
.fp-headline-main .fp-hm-cover {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,.85) 100%);
}
.fp-headline-main .fp-hm-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem 1.1rem;
    color: #fff;
}
.fp-headline-main .fp-hm-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.fp-headline-main:hover .fp-hm-title { color: var(--fp-gold); }
.fp-headline-main .fp-hm-meta {
    font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .25rem;
}
.fp-headline-main .fp-hm-tag {
    position: absolute; top: .6rem; left: .6rem;
    background: var(--fp-red); color: #fff;
    padding: .15rem .55rem; border-radius: 3px;
    font-size: .72rem; font-weight: 700; letter-spacing: .5px;
}

/* 中：新闻列表 */
.fp-headline-list {
    display: flex;
    flex-direction: column;
    padding-left: .25rem;
}
.fp-headline-list li {
    list-style: none;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--fp-line);
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .9rem;
}
.fp-headline-list li:last-child { border-bottom: 0; }
.fp-headline-list li::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--fp-red); margin-top: .55rem; flex-shrink: 0;
}
.fp-headline-list a {
    color: var(--fp-ink);
    text-decoration: none;
    flex: 1;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-headline-list a:hover { color: var(--fp-red); }
.fp-headline-list time {
    color: var(--fp-muted); font-size: .72rem; flex-shrink: 0; padding-top: .15rem;
}

/* 右：热搜榜 */
.fp-hotboard {
    background: var(--fp-card);
    border: 1px solid var(--fp-line);
    border-radius: 2px;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.fp-hotboard-head {
    background: linear-gradient(90deg, var(--fp-red), #f33);
    color: #fff;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fp-hotboard-head .badge {
    background: rgba(255,255,255,.25);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: .7rem;
}
.fp-hotboard-list {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
    flex: 1;
}
.fp-hotboard-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .35rem .85rem;
    transition: background .12s;
}
.fp-hotboard-list li:hover { background: #fafafa; }
.fp-rank {
    width: 18px; height: 18px; border-radius: 3px;
    background: #d9d9d9; color: #fff;
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.fp-hotboard-list li:nth-child(-n+3) .fp-rank {
    background: var(--fp-red);
}
.fp-hotboard-list a {
    flex: 1;
    font-size: .84rem;
    font-weight: 600;
    color: var(--fp-ink);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-hotboard-list a:hover { color: var(--fp-red); }
.fp-hotboard-list em {
    font-style: normal; font-size: .7rem; color: var(--fp-red);
    flex-shrink: 0; margin-top: 2px;
}

/* ===== 板块容器 ===== */
.fp-section {
    background: var(--fp-card);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 1rem;
    overflow: hidden;
}
.fp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 2px solid var(--fp-line);
}
.fp-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-ink);
}
.fp-section-title i {
    width: 20px; height: 20px; border-radius: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .78rem; color: #fff; font-weight: 700;
}
.fp-section-title.tag-red i    { background: var(--fp-red); }
.fp-section-title.tag-orange i { background: #f97316; }
.fp-section-title.tag-blue i   { background: #2563eb; }
.fp-section-title.tag-teal i   { background: #0d9488; }
.fp-section-title.tag-purple i { background: #7c3aed; }
.fp-section-title.tag-gold i   { background: var(--fp-gold); }

.fp-section-more {
    font-size: .82rem;
    color: var(--fp-muted);
    text-decoration: none;
    font-weight: 500;
}
.fp-section-more:hover { color: var(--fp-red); }

/* ===== 横向新闻卡（左图右文）===== */
.fp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.fp-card {
    display: flex;
    gap: .8rem;
    padding: 1rem;
    border-right: 1px solid var(--fp-line-soft);
    border-bottom: 1px solid var(--fp-line-soft);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.fp-card:nth-child(3n) { border-right: 0; }
.fp-card:hover { background: #fafbfc; }
.fp-card:hover .fp-card-title { color: var(--fp-red); }

.fp-card-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 95px;
    border-radius: 3px;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
}
.fp-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-card-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: rgba(255,255,255,.35);
    font-size: 1.3rem;
}

.fp-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fp-card-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fp-ink);
    margin: 0 0 .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.fp-card-summary {
    font-size: .78rem;
    color: var(--fp-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 .5rem;
}
.fp-card-meta {
    font-size: .72rem;
    color: var(--fp-muted);
    margin-top: auto;
}
.fp-card-meta .src { color: var(--fp-ink-2); font-weight: 500; margin-right: .4rem; }

/* 无图卡 */
.fp-card-text {
    display: flex;
    gap: .5rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--fp-line-soft);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.fp-card-text:hover { background: #fafbfc; }
.fp-card-text .fp-ct-title {
    flex: 1; font-size: .86rem; color: var(--fp-ink);
    line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden; text-decoration: none;
}
.fp-card-text:hover .fp-ct-title { color: var(--fp-red); }
.fp-card-text time { font-size: .72rem; color: var(--fp-muted); flex-shrink: 0; }

/* ===== 深 Banner（位观察）===== */
.fp-banner-dark {
    background: linear-gradient(120deg, #0b0f1a 0%, #1a2038 60%, #0f1628 100%);
    color: #fff;
    padding: 1.5rem 1.25rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.fp-banner-dark::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(212,162,76,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,162,76,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.fp-banner-dark-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.fp-banner-dark-logo {
    display: flex; align-items: center; gap: .6rem;
}
.fp-banner-dark-logo .ico {
    width: 38px; height: 38px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(212,162,76,.2);
    border: 1px solid rgba(212,162,76,.4);
    color: var(--fp-gold);
    font-size: 1.15rem; font-weight: 800;
}
.fp-banner-dark-logo .txt { display: flex; flex-direction: column; }
.fp-banner-dark-logo strong {
    font-size: 1.05rem; font-weight: 800; letter-spacing: .3px;
}
.fp-banner-dark-logo small {
    font-size: .75rem; color: rgba(255,255,255,.6);
    letter-spacing: 2px; margin-top: 2px;
}
.fp-banner-dark-tags {
    display: flex; gap: .4rem; flex-wrap: wrap;
}
.fp-banner-dark-tags a {
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    text-decoration: none;
    padding: .3rem .7rem;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.1);
    transition: all .2s;
}
.fp-banner-dark-tags a:hover {
    background: var(--fp-gold); color: #1a1a20; border-color: var(--fp-gold);
}

/* ===== 面包屑 ===== */
.fp-breadcrumb {
    background: var(--fp-card);
    padding: .5rem 1rem;
    font-size: .82rem;
    color: var(--fp-muted);
    margin-bottom: 1rem;
    border-radius: 2px;
}
.fp-breadcrumb a { color: var(--fp-muted); text-decoration: none; }
.fp-breadcrumb a:hover { color: var(--fp-red); }
.fp-breadcrumb .sep { margin: 0 .35rem; color: #ccc; }

/* ===== 分页 ===== */
.fp-pagination {
    background: var(--fp-card);
    padding: 1rem;
    border-radius: 2px;
    text-align: center;
    margin-top: 1rem;
}
.fp-pagination .pagination { justify-content: center; }

/* ===== 三栏适配（2+1 版）===== */
.fp-section-2col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;
    align-items: start;
}
.fp-section-2col .fp-cards { grid-template-columns: 1fr; }
.fp-section-2col .fp-cards .fp-card { border-right: 0; }
.fp-side-widget {
    background: var(--fp-card);
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
}
.fp-side-widget .fp-section-head {
    padding: .65rem 1rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1199.98px) {
    .fp-headline { grid-template-columns: 340px 1fr 260px; }
    .fp-cards { grid-template-columns: repeat(2, 1fr); }
    .fp-card:nth-child(3n) { border-right: 1px solid var(--fp-line-soft); }
    .fp-card:nth-child(2n) { border-right: 0; }
}
@media (max-width: 991.98px) {
    .fp-headline { grid-template-columns: 1fr 240px; }
    .fp-headline-main { aspect-ratio: 16/9; }
    .fp-headline-list { display: none; }
    .fp-section-2col { grid-template-columns: 1fr; }
    .fp-news-nav a { padding: 0 .8rem; font-size: .85rem; }
}
@media (max-width: 767.98px) {
    .fp-headline { grid-template-columns: 1fr; padding: .75rem; }
    .fp-hotboard { order: -1; }
    .fp-cards { grid-template-columns: 1fr; }
    .fp-card { padding: .75rem; }
    .fp-card-thumb { width: 110px; height: 75px; }
    .fp-banner-dark-inner { flex-direction: column; align-items: flex-start; }
    .fp-news-wrap { padding: .75rem 0 1.5rem; }
}
