/* ---------- 首页 · 双入口导航 ---------- */

.hm-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 30px);
    width: 100%;
}

.hm-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    background: linear-gradient(180deg, var(--hm-panel), #0e151d);
    box-shadow: var(--hm-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hm-entry:hover,
.hm-entry:focus-visible {
    outline: none;
    transform: translateY(-6px);
    border-color: rgba(255, 163, 61, .55);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 163, 61, .22);
}

/* 入口图片：铺满卡片上半部 */
.hm-entry-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hm-entry-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .6s ease;
}

.hm-entry:hover .hm-entry-media img {
    transform: scale(1.07);
}

/* 图片底部渐隐，与卡片底色衔接 */
.hm-entry-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(180deg, transparent, rgba(14, 21, 29, .92));
    pointer-events: none;
}

.hm-entry-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px 24px;
}

.hm-entry-tag {
    align-self: flex-start;
    padding: 2px 10px;
    border: 1px solid var(--hm-line);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    color: #8fa3b8;
}

.hm-entry-title {
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: .5px;
    color: #eef4fa;
}

.hm-entry-desc {
    color: #b7c5d4;
    font-size: 13.5px;
    line-height: 1.85;
}

.hm-entry-go {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--hm-amber);
}

.hm-entry:hover .hm-entry-go {
    color: var(--hm-amber-soft);
}

/* 窄屏：两个入口上下堆叠 */
@media (max-width: 860px) {
    .hm-entries {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-entry-media {
        aspect-ratio: 16 / 10;
    }
}
