.hm-main {
    background: #0b0b10;
    padding-top: 5.25rem;
}

/* 固定吸顶 Header（Logo + Search + 分类 Tab） */
.hm-top-header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    z-index: 90;
    background: #0F0F0F;
    transform: translateX(-50%);

    max-width: 1080px;
}

.hm-top-bar {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hm-top-logo {
    height: 1.405rem;
    width: 8.1888rem;
}

.hm-top-search {
    width: 1.5rem;
    height: 1.5rem;
    display: none;
}

.hm-top-tabs {
    height: 2rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hm-top-tabs::-webkit-scrollbar {
    display: none;
}

.hm-top-tab {
    flex-shrink: 0;
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #FFFFFF;
    font-family: 'Manrop 400', sans-serif;
}

.hm-top-tab-active {
    color: #FA3767;
    font-family: 'Manrop 800', sans-serif;
}

.hm-top-tab-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: .1875rem;
    transform: translateX(-50%);
    width: 1.5625rem;
    height: .125rem;
    background: #FA3767;
}

/* 统一分类网格：3 列卡片 + 序号 + Hot 徽标 */
.hm-tab-section {
    padding: 1rem 1rem 0 1rem;
}

.hm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: .4375rem;
    row-gap: .875rem;
    padding-top: .9375rem;
}

.hm-grid-card {
    display: flex;
    flex-direction: column;
    gap: .3125rem;
    cursor: pointer;
}

.hm-grid-cover {
    position: relative;
    width: 100%;
    height: 9.125rem;
    border-radius: .5625rem;
    overflow: hidden;
}

.hm-grid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-grid-rank {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 1.1875rem;
    height: 1.1875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    font-family: 'Inter 400', sans-serif;
    color: #FFFFFF;
    letter-spacing: .01em;
    background-image: url(../resources/order.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.hm-grid-hot {
    position: absolute;
    z-index: 2;
    top: .25rem;
    right: .25rem;
    width: 1.625rem;
    height: .875rem;
    border-radius: .625rem;
    background: linear-gradient(360deg,
            rgba(255, 55, 0, 1) 0,
            rgba(255, 112, 53, 1) 100%);
    color: #fff;
    font-size: .6875rem;
    font-family: 'Inter 400', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hm-grid-name {
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Gilroy 500', sans-serif;
    letter-spacing: .01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .4375rem;
}

.hm-grid-ad {
    grid-column: 1 / -1;
    min-height: 15.625rem;
    width: 100%;
    border-radius: .5rem;
    background: #16161f;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.hm-grid-empty {
    padding: 3rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: .875rem;
}

/* 以下是原版 swiper / hot / new / recommend 样式保留（防止旧节点有引用） */

/* swiper  */
.hm-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hm-banner::before {
    content: '';
    z-index: 2;
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 13.4375rem;
    background: linear-gradient(180deg,
            rgba(15, 15, 15, 1) 5.03696%,
            rgba(15, 15, 15, 0.76) 15.102212%,
            rgba(15, 15, 15, 0) 100%);
}

.hm-banner-swipe {
    width: 100%;
    height: 31.25rem;
    display: block;
    position: relative;
}

.hm-banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hm-banner-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    transform: scale(1.02);
}

.hm-banner-mask {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13.4375rem;
    background: linear-gradient(180deg,
            rgba(15, 15, 15, 0) 0%,
            rgba(15, 15, 15, 0.76),
            rgba(15, 15, 15, 1) 100%);
}

.hm-banner-content {
    position: absolute;
    width: 100%;
    padding: 0 1.5625rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.875rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3125rem;
    text-align: center;
}

.hm-banner-title {
    font-size: 1.375rem;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'SF pro 700', sans-serif;
}

.hm-banner-sub {
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.48);
    font-family: 'SF pro 400', sans-serif;
}


.hm-banner-btn {
    margin: .375rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3125rem;
    min-width: 6.1875rem;
    height: 2.625rem;
    padding: .3125rem .625rem;
    border-radius: .375rem;
    background: #FA3767;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Manrop 600', sans-serif;
}

.hm-banner-play {
    width: 1rem;
    height: 1.125rem;
}

.hm-banner-swipe .van-swipe__indicators {
    bottom: .9375rem;
    gap: .1875rem;
}

.hm-banner-swipe .van-swipe__indicator {
    width: 0.25rem;
    height: .25rem;
    border-radius: .125rem;
    background: rgba(255, 255, 255, 0.6);
}

.hm-banner-swipe .van-swipe__indicator--active {
    width: 1rem;
    background: #FFFFFF;
}

/* section header (hot / new 共用) */
.hm-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    margin: 1.375rem 0 .625rem;
    font-family: 'Inter 700', sans-serif;
}

.hm-sec-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .1875rem;
}

.hm-sec-title-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hm-sec-title-text {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.hm-more {
    display: flex;
    align-items: center;
    gap: .1875rem;
    font-size: .875rem;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Inter 500', sans-serif;
}

.hm-more-arrow {
    width: .625rem;
    height: .625rem;
    display: block;
    margin-top: .0625rem;
}


/* hot */
.hm-hot {
    width: 100%;
}

.hm-hot-list {
    overflow-x: auto;
    scrollbar-width: none;
}

.hm-hot-list::-webkit-scrollbar {
    display: none;
}

.hm-hot-grid {
    display: inline-grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, 5.8388rem);
    row-gap: .5625rem;
    column-gap: 18px;
    padding: 0 1rem;
    position: relative;
}

.hm-hot-grid::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: '';
    width: 22.9662rem;
    height: 8.9281rem;
    background-color: rgba(235, 63, 65, 0.49);
    border-radius: 50%;
    filter: blur(5rem);
    pointer-events: none;
}

.hm-hot-item {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hm-hot-cover {
    position: relative;
    flex: 0 0 4.19rem;
    height: 5.8388rem;
    border-radius: .375rem;
    overflow: hidden;
}

.hm-hot-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-hot-rank {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 1.03rem;
    height: .9325rem;
    border-radius: .375rem 0 .375rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DIN pro 700', sans-serif;
    font-size: .75rem;
    color: #fff;
}

.hm-hot-rank-1,
.hm-hot-rank-2,
.hm-hot-rank-3 {
    background: rgba(250, 55, 103, 1);
}

.hm-hot-rank-4,
.hm-hot-rank-5,
.hm-hot-rank-6 {
    background: rgba(251, 107, 67, 1)
}


.hm-hot-info {
    min-width: 7.3125rem;
}

.hm-hot-name {
    font-size: .75rem;
    color: #FFFFFF;
    line-height: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: .5rem;
    font-family: 'Inter 500', sans-serif;
}

.hm-hot-desc {
    font-size: .5625rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: .875rem;
    font-family: 'SF pro 400', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* new */
.hm-new {
    width: 100%;
}

.hm-new-list {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1rem;
    background-image: url(../resources/new_blur.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.hm-new-list::-webkit-scrollbar {
    display: none;
}

.hm-new-track {
    display: flex;
    gap: .4375rem;
    padding-right: 1rem;
}

.hm-new-card {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hm-new-cover {
    /* position: relative; */
    height: 8.125rem;
    border-radius: .5rem;
    overflow: hidden;
}

.hm-new-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-new-tag {
    height: .9375rem;
    width: 1.875rem;
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter 400', sans-serif;
    font-size: .625rem;
    color: #fff;
    background: linear-gradient(66deg,
            rgba(252, 0, 176, 1) 0,
            rgba(252, 15, 69, 1) 51.647872%,
            rgba(255, 84, 19, 1) 97.292876%);
    border-radius: 0 .375rem 0 .2188rem;
}

/* recommend */
.hm-recommend {
    width: 100%;
}

.hm-recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .625rem .4375rem;
    padding: 0 1rem;
}

.hm-recommend-card {
    display: flex;
    flex-direction: column;
    gap: .3125rem;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hm-grid-card {
    display: flex;
    flex-direction: column;
    gap: .3125rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hm-recommend-cover {
    width: 100%;
    height: 9.125rem;
    border-radius: .375rem;
}

.hm-recommend-cover img {
    width: 100%;
    height: 100%;
    border-radius: .5625rem;
    object-fit: cover;
}

.hm-recommend-name {
    margin-top: .5rem;
    font-size: .75rem;
    line-height: .875rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-family: 'Inter 500', sans-serif;
}

/* Recommend 中插入的原生广告容器：跨 3 列、整行显示 */
.hm-recommend-ad {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
}

/* 置顶按钮 */
.hm-to-top {
    position: fixed;
    right: 1.875rem;
    bottom: 6.25rem;
    width: 2.5rem;
    height: auto;
    z-index: 40;
    cursor: pointer;
}

@media screen and (min-width: 720px) {
    .hm-recommend-grid, .hm-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hm-recommend-cover, .hm-grid-cover {
        height: 16.125rem;
    }

    .hm-hot-cover {
        width: 8rem;
    }

    .hm-new-cover {
        height: 12rem;
    }
}
