/* 入口的背景与内容独立布局，容器增高时背景始终铺满。 */
.entry-area.entry-card {
    display: flex;
    padding: .1rem .2rem .32rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    text-align: center;
}

.entry-surface {
    position: relative;
    display: grid;
    /* 国徽与文字两行作为整体，在卡片中居中。 */
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .02rem;
    padding: .2rem .24rem;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #fff;
    border-radius: 5px;
    background: linear-gradient(83deg, #81caff 3%, #99d8fe 25%, #aadefe 48%, #cce6ff 98%);
    box-shadow: 0 10px 20px rgba(103, 136, 177, .5);
    transition: box-shadow .2s;
}

.entry-glow {
    position: absolute;
    z-index: -1;
    top: -332%;
    left: 2.3%;
    width: 57.2%;
    height: 410%;
    background: url('../images/entry/glow.png') center / cover no-repeat;
    filter: blur(50px);
    pointer-events: none;
}

.entry-glass {
    position: absolute;
    z-index: -1;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: none;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.entry-emblem {
    grid-row: 1;
    align-self: center;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    width: 1.02rem;
    height: auto;
    /* 国徽直接显示，避免遮罩文件加载失败时整张图片变透明。 */
    -webkit-mask: none;
    mask: none;
    flex: 0 0 auto;
}

.entry-label {
    grid-row: 2;
    text-align: center;
    max-width: 100%;
    color: #ff1f1f;
    font-size: .4rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 30px #fff, 0 2px 0 #fff;
}

.entry-arrow {
    display: inline-block;
    width: .515rem;
    height: .188rem;
    margin-left: .12rem;
    background: url('../images/entry/arrow.svg') center / contain no-repeat;
    transform: scaleX(-1);
    vertical-align: middle;
}

.entry-card:hover .entry-surface,
.entry-card:focus-visible .entry-surface {
    box-shadow: 0 10px 24px rgba(50, 126, 253, .6);
}

.entry-card:focus-visible {
    outline: 2px solid #1268d2;
    outline-offset: 3px;
}

@media screen and (max-width: 768px) {
    /* 简介和入口由同一行自动撑高，不再按图片比例推算高度。 */
    .banner-overlay {
        height: auto;
        aspect-ratio: auto;
        overflow: visible;
    }

    .banner-bg-img {
        height: auto;
        object-fit: contain;
    }

    .banner-inner {
        display: grid;
        grid-template-columns: minmax(0, 42fr) minmax(0, 48fr);
        align-items: stretch;
        gap: 14px 2%;
        height: auto;
        padding: 20vw 4% 16px;
    }

    .intro-area {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        background: #cce6ff;
        border-radius: 4px;
    }

    .intro-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .intro-text {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 26px 10px 12px;
        font-size: 12px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    .entry-area.entry-card {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        min-width: 0;
        padding: 0;
    }

    .entry-surface {
        gap: 12px;
        padding: 20px 10px;
        box-shadow: 0 5px 12px rgba(103, 136, 177, .3);
    }

    .entry-glass {
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }

    .entry-emblem {
        width: 54px;
    }

    .entry-label {
        font-size: 18px;
        line-height: 1.6;
    }

    .entry-arrow {
        width: 26px;
        height: 10px;
        margin-left: 6px;
    }

    .search-section {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        grid-column: 1 / -1;
        width: 100%;
    }
}
