/* ==========================================================================
   AI联播网 · 首页（编辑式现代媒体设计）
   设计原则：清晰层级 / 充足留白 / 统一圆角 / 单一强调色
   ========================================================================== */

.he-wrap {
    --he-accent: #e8541e;
    --he-accent-soft: #fff4ee;
    --he-ink: #111827;
    --he-text: #374151;
    --he-muted: #6b7280;
    --he-faint: #9ca3af;
    --he-line: #e8eaee;
    --he-radius: 14px;
    --he-shadow: 0 4px 20px rgba(17, 24, 39, .05);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 72px;
    color: var(--he-text);
    font-size: 14.5px;
    line-height: 1.7;
}

.he-wrap a {
    color: inherit;
    text-decoration: none;
}

.he-wrap h1,
.he-wrap h2,
.he-wrap h3,
.he-wrap h4,
.he-wrap p {
    margin: 0;
}

/* ---------- 公共标题 ---------- */
.he-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.he-panel-head h2 {
    position: relative;
    padding-left: 13px;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.2px;
    color: var(--he-ink);
}

.he-panel-head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 3px;
    background: var(--he-accent);
}

.he-panel-head a {
    font-size: 12px;
    color: var(--he-muted);
    transition: color .2s ease;
}

.he-panel-head a:hover {
    color: var(--he-accent);
}

.he-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: var(--he-accent);
}

.he-pill-ghost {
    background: rgba(255, 255, 255, .15);
}

/* ---------- 头图区 ---------- */
.he-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 20px;
}

.he-feature {
    position: relative;
    display: flex;
    min-height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--he-ink);
    color: #fff;
}

.he-feature-media {
    position: absolute;
    inset: 0;
}

.he-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
    transform: scale(1.02);
    transition: transform .6s ease;
}

.he-feature:hover .he-feature-media img {
    transform: scale(1.06);
}

.he-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 15, 26, .96) 0%, rgba(10, 15, 26, .84) 48%, rgba(10, 15, 26, .18) 100%);
}

.he-feature-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 78%;
    padding: 36px;
}

.he-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}

.he-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--he-accent);
}

.he-feature-title {
    margin-top: 14px;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 750;
    line-height: 1.36;
    letter-spacing: -.5px;
    color: #fff;
}

.he-feature-title a:hover {
    color: #ffd9c8;
}

.he-feature-desc {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .78);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.he-feature-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.he-editors {
    padding: 22px 22px 8px;
    background: #fff;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    box-shadow: var(--he-shadow);
}

.he-editors-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--he-line);
}

.he-editors-head h2 {
    font-size: 17px;
    font-weight: 750;
    color: var(--he-ink);
}

.he-editors-head a {
    font-size: 12px;
    color: var(--he-muted);
}

.he-editors-head a:hover {
    color: var(--he-accent);
}

.he-editor-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f4;
}

.he-editor-item:last-child {
    border-bottom: 0;
}

.he-editor-index {
    flex: 0 0 26px;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.2;
    color: #d5dae2;
}

.he-editor-item:nth-child(1) .he-editor-index {
    color: var(--he-accent);
}

.he-editor-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--he-ink);
}

.he-editor-title:hover {
    color: var(--he-accent);
}

.he-editor-meta {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--he-faint);
}

/* ---------- 广告 ---------- */
.he-ads {
    margin: 22px 0;
}

.he-ad-banner {
    display: block;
    overflow: hidden;
    border: 1px solid var(--he-line);
    border-radius: 12px;
    background: #fff;
}

.he-ad-banner img,
.he-ad-grid img {
    display: block;
    width: 100%;
    height: auto;
}

.he-ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.he-ad-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--he-line);
    border-radius: 10px;
    background: #fff;
}

/* ---------- 主布局 ---------- */
.he-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.he-panel {
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    box-shadow: var(--he-shadow);
}

/* ---------- 资讯流 ---------- */
.he-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--he-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.he-tabs::-webkit-scrollbar {
    display: none;
}

.he-tab {
    flex: 0 0 auto;
    padding: 6px 14px;
    font-size: 12.5px;
    color: var(--he-muted);
    background: #f5f6f8;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}

.he-tab:hover {
    color: var(--he-accent);
    background: var(--he-accent-soft);
}

.he-tab.active {
    color: #fff;
    background: var(--he-ink);
}

.he-feed-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f2f4;
}

.he-feed-item:last-child {
    border-bottom: 0;
}

.he-feed-thumb {
    flex: 0 0 132px;
    width: 132px;
    height: 88px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f3f6;
}

.he-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.he-feed-item:hover .he-feed-thumb img {
    transform: scale(1.05);
}

.he-feed-body {
    flex: 1;
    min-width: 0;
}

.he-feed-title {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--he-ink);
}

.he-feed-title a:hover {
    color: var(--he-accent);
}

.he-feed-desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--he-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.he-feed-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 9px;
    font-size: 11.5px;
    color: var(--he-faint);
}

.he-tag-soft {
    padding: 2px 8px;
    border-radius: 5px;
    background: #f3f4f6;
    color: #6b7280;
}

/* ---------- 分类频道 ---------- */
.he-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.he-topic {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--he-line);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.he-topic:hover {
    transform: translateY(-3px);
    box-shadow: var(--he-shadow);
}

.he-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--he-line);
}

.he-topic-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--he-ink);
}

.he-topic-head a {
    font-size: 11.5px;
    color: var(--he-faint);
}

.he-topic-head a:hover {
    color: var(--he-accent);
}

.he-topic-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 12px;
}

.he-topic-list a {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: var(--he-text);
}

.he-topic-list a:hover {
    color: var(--he-accent);
}

.he-topic-list time {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--he-faint);
}

/* ---------- 侧边栏 ---------- */
.he-card {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--he-line);
    border-radius: var(--he-radius);
    box-shadow: var(--he-shadow);
}

.he-card-title {
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 750;
    color: var(--he-ink);
    border-bottom: 1px solid var(--he-line);
}

.he-rank-row,
.he-pick {
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed #eef0f3;
}

.he-rank-row:last-child,
.he-pick:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.he-rank-num {
    flex: 0 0 24px;
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    line-height: 1.4;
    color: #cbd0d8;
}

.he-rank-row:nth-child(-n+3) .he-rank-num {
    color: var(--he-accent);
}

.he-rank-row a,
.he-pick-title {
    font-size: 13px;
    line-height: 1.55;
    color: var(--he-text);
}

.he-rank-row a:hover,
.he-pick-title:hover {
    color: var(--he-accent);
}

.he-pick-thumb {
    flex: 0 0 66px;
    width: 66px;
    height: 48px;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f3f6;
}

.he-pick-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.he-pick time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--he-faint);
}

.he-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.he-cloud a {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    color: #6b7280;
    background: #f5f6f8;
    transition: all .2s ease;
}

.he-cloud a:hover {
    color: var(--he-accent);
    background: var(--he-accent-soft);
}

.he-about {
    background: linear-gradient(135deg, #fff 0%, #fff7f3 100%);
}

.he-about p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--he-muted);
}

.he-about p + p {
    margin-top: 8px;
}

.he-empty {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: var(--he-faint);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .he-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .he-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .he-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .he-side .he-card {
        margin-bottom: 0;
    }

    .he-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .he-wrap {
        padding: 24px 16px 56px;
    }

    .he-feature {
        min-height: 330px;
    }

    .he-feature-inner {
        max-width: 100%;
        padding: 26px 22px;
    }

    .he-feature-title {
        font-size: 25px;
    }

    .he-panel {
        padding: 18px 16px;
    }

    .he-feed-thumb {
        flex-basis: 104px;
        width: 104px;
        height: 74px;
    }

    .he-feed-title {
        font-size: 15px;
    }

    .he-ad-grid,
    .he-topics,
    .he-side {
        grid-template-columns: minmax(0, 1fr);
    }
}
