/* 首页第二版：最近更新、热读、专题墙与阅读路径 */
.home-product {
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-line: #e5eaf0;
    --home-soft: #f6f8fb;
    --home-accent: #0f766e;
}

.home-product .home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
}

.home-product .home-section-kicker {
    display: block;
    margin: 0 0 7px;
    color: var(--home-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.home-product .home-section-head h2 {
    margin: 0 0 6px;
    color: var(--home-ink);
    font-size: 27px;
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -.025em;
}

.home-product .home-section-head p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.7;
}

.home-product .home-section-more {
    flex: 0 0 auto;
    color: #475569;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.home-product .home-section-more span {
    display: inline-block;
    margin-left: 4px;
    transition: transform .2s ease;
}

.home-product .home-section-more:hover {
    color: var(--home-accent);
}

.home-product .home-section-more:hover span {
    transform: translateX(3px);
}

/* 第二屏：最近更新 */
.home-latest {
    margin: 0 0 54px;
    padding: 28px 30px 30px;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .045);
}

.home-latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 350px;
    gap: 28px;
    align-items: stretch;
}

.home-latest-feed {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 22px;
    min-width: 0;
}

.home-latest-lead {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-latest-lead:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

.home-latest-lead-thumb {
    position: relative;
    height: 222px;
    overflow: hidden;
    background: linear-gradient(135deg, #e6f4f1, #dbeafe);
}

.home-latest-lead-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-latest-lead:hover .home-latest-lead-thumb img {
    transform: scale(1.035);
}

.home-latest-lead-thumb > span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(11, 20, 36, .82);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

.home-latest-lead-thumb.is-empty::after {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: rgba(15, 23, 42, .16);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.home-latest-lead-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.home-latest-lead-copy time {
    margin: 0 0 7px;
    color: #94a3b8;
    font-size: 11px;
}

.home-latest-lead-copy h3 {
    margin: 0 0 8px;
    color: var(--home-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-latest-lead-copy p {
    margin: 0 0 14px;
    color: var(--home-muted);
    font-size: 12.5px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-latest-read {
    margin-top: auto;
    color: var(--home-accent);
    font-size: 11.5px;
    font-weight: 700;
}

.home-latest-list {
    min-width: 0;
    border-top: 1px solid var(--home-line);
}

.home-latest-row {
    display: grid;
    grid-template-columns: max-content 62px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 12px 0 11px;
    border-bottom: 1px solid #eef2f7;
    color: inherit;
    text-decoration: none;
}

.home-latest-row:hover .home-latest-row-copy strong {
    color: var(--home-accent);
}

.home-latest-row time {
    padding-top: 2px;
    color: #94a3b8;
    font-size: 10.5px;
    white-space: nowrap;
}

.home-latest-cat {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 9.5px;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

.home-latest-row-copy {
    min-width: 0;
}

.home-latest-row-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color .2s ease;
}

.home-latest-row-copy em {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.home-latest-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.home-side-card {
    overflow: hidden;
    border-radius: 16px;
}

.home-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-side-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.home-side-head span,
.home-side-head a {
    color: #94a3b8;
    font-size: 10.5px;
    text-decoration: none;
}

.home-rank-card {
    padding: 19px 20px 16px;
    background:
        radial-gradient(480px 260px at 100% 0, rgba(45, 212, 191, .18), transparent 62%),
        #0b1424;
    color: #fff;
}

.home-rank-card .home-side-head h3 {
    color: #fff;
}

.home-rank-card .home-side-head span {
    color: rgba(226, 232, 240, .52);
}

.home-rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-rank-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: start;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.home-rank-num {
    color: #5eead4;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}

.home-rank-list a {
    display: -webkit-box;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.55;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-rank-list a:hover {
    color: #5eead4;
}

.home-rank-list em {
    color: rgba(226, 232, 240, .46);
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.8;
    text-align: right;
}

.home-topic-mini {
    padding: 18px 20px 10px;
    border: 1px solid var(--home-line);
    background: #f8fafc;
}

.home-topic-mini-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e8eef5;
    color: inherit;
    text-decoration: none;
}

.home-topic-mini-row > span {
    color: #0f766e;
    font-size: 9.5px;
    font-weight: 700;
}

.home-topic-mini-row strong {
    display: -webkit-box;
    overflow: hidden;
    color: #334155;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-topic-mini-row em {
    color: #94a3b8;
    font-size: 9.5px;
    font-style: normal;
    white-space: nowrap;
}

.home-topic-mini-row:hover strong {
    color: var(--home-accent);
}

/* 专题墙 */
.home-topic-wall {
    margin: 0 0 54px;
}

.home-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 208px;
    overflow: hidden;
    padding: 22px 22px 18px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-topic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0f766e;
}

.home-topic-card.home-topic-ai::before {
    background: #2563eb;
}

.home-topic-card.home-topic-auto::before {
    background: #d97706;
}

.home-topic-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}

.home-topic-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.home-topic-card-top span {
    color: var(--home-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-topic-card-top em {
    color: #cbd5e1;
    font-size: 22px;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
}

.home-topic-card h3 {
    margin: 0 0 8px;
    color: var(--home-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.015em;
}

.home-topic-card p {
    margin: 0 0 18px;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-topic-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    color: #94a3b8;
    font-size: 10.5px;
}

.home-topic-card-foot strong {
    color: #334155;
    font-size: 16px;
    font-weight: 800;
}

.home-topic-card-foot i {
    color: var(--home-accent);
    font-style: normal;
    margin-left: 4px;
}

/* 阅读路径 */
.home-guide {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr);
    gap: 34px;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 34px;
    border-radius: 20px;
    background:
        radial-gradient(680px 340px at 8% 0, rgba(45, 212, 191, .18), transparent 60%),
        radial-gradient(520px 300px at 100% 100%, rgba(59, 130, 246, .14), transparent 64%),
        #0b1424;
    color: #fff;
}

.home-guide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 88%);
    pointer-events: none;
}

.home-guide-copy,
.home-guide-steps {
    position: relative;
    z-index: 1;
}

.home-guide .home-section-kicker {
    color: #5eead4;
}

.home-guide-copy h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 29px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.home-guide-copy p {
    margin: 0 0 20px;
    color: #b8c6d9;
    font-size: 13px;
    line-height: 1.85;
}

.home-guide-copy > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5eead4;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home-guide-copy > a span {
    transition: transform .2s ease;
}

.home-guide-copy > a:hover span {
    transform: translateX(3px);
}

.home-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-guide-step {
    display: flex;
    flex-direction: column;
    min-height: 132px;
    padding: 17px 17px 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-guide-step:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, .45);
    background: rgba(255, 255, 255, .09);
}

.home-guide-num {
    color: #5eead4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.home-guide-step h3 {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.4;
}

.home-guide-step p {
    margin: 0 0 12px;
    color: #aebdd1;
    font-size: 11px;
    line-height: 1.7;
}

.home-guide-step em {
    margin-top: auto;
    color: #5eead4;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 650;
}

.home-editorial-note {
    margin: 0 0 8px;
    padding: 0 2px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.8;
}

/* 暗色模式 */
.dark-mode .home-product .home-section-head h2,
.dark-mode .home-latest-lead-copy h3,
.dark-mode .home-topic-card h3 {
    color: #e2e8f0;
}

.dark-mode .home-product .home-section-head p,
.dark-mode .home-latest-lead-copy p,
.dark-mode .home-topic-card p {
    color: #94a3b8;
}

.dark-mode .home-latest,
.dark-mode .home-latest-lead,
.dark-mode .home-topic-card,
.dark-mode .home-topic-mini {
    border-color: #334155;
    background: #1e293b;
}

.dark-mode .home-latest-list,
.dark-mode .home-topic-card-foot {
    border-color: #334155;
}

.dark-mode .home-latest-row {
    border-color: #273449;
}

.dark-mode .home-latest-row-copy strong,
.dark-mode .home-topic-mini-row strong {
    color: #cbd5e1;
}

.dark-mode .home-latest-cat {
    background: rgba(45, 212, 191, .12);
    color: #5eead4;
}

.dark-mode .home-topic-mini-row {
    border-color: #334155;
}

.dark-mode .home-editorial-note {
    color: #64748b;
}

@media (max-width: 1199px) {
    .home-latest-grid {
        grid-template-columns: minmax(0, 1.35fr) 320px;
        gap: 22px;
    }

    .home-latest-feed {
        gap: 16px;
    }

    .home-latest-lead-thumb {
        height: 190px;
    }

    .home-latest-row {
        grid-template-columns: max-content 58px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .home-latest-grid {
        grid-template-columns: 1fr;
    }

    .home-latest-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-guide {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .home-product .home-section-head {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
    }

    .home-product .home-section-head h2 {
        font-size: 22px;
    }

    .home-product .home-section-head p {
        font-size: 12px;
    }

    .home-product .home-section-more {
        padding-top: 16px;
        font-size: 11px;
    }

    .home-latest {
        margin-bottom: 38px;
        padding: 20px 16px 18px;
        border-radius: 16px;
    }

    .home-latest-feed {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-latest-lead-thumb {
        height: 190px;
    }

    .home-latest-lead-copy h3 {
        font-size: 17px;
    }

    .home-latest-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-latest-row {
        grid-template-columns: max-content 58px minmax(0, 1fr);
        padding: 10px 0;
    }

    .home-latest-row-copy strong {
        font-size: 12px;
    }

    .home-latest-row-copy em {
        display: none;
    }

    .home-topic-wall {
        margin-bottom: 38px;
    }

    .home-topic-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-topic-card {
        min-height: 188px;
        padding: 20px 18px 16px;
    }

    .home-guide {
        margin-bottom: 12px;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .home-guide-copy h2 {
        font-size: 23px;
    }

    .home-guide-steps {
        grid-template-columns: 1fr;
    }

    .home-guide-step {
        min-height: 112px;
    }
}

/* 同栏目缩略图重复时改用栏目标签色块，避免整列重复同一张配图 */
.column-item-thumb.no-thumb,
.column-lead-thumb.no-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #123844 0%, #1a5f58 58%, #2a7a6d 100%);
}
.column-item-thumb.no-thumb::before,
.column-lead-thumb.no-thumb::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}
.column-lead-thumb.no-thumb::before { font-size: 15px; }
