/* 首页搜索 + 幻灯：精致紧凑 */
.home-hero {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: stretch;
}

.home-hero.no-slide .home-hero-search {
    flex: 1;
    max-width: 100%;
}

.home-hero-search,
.home-hero-slide {
    flex: 1;
    min-width: 0;
    background: #161b26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.home-hero-search {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-search .s-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: left;
}

/* 默认只显示 PC 搜索，隐藏移动端，避免双框 */
.home-hero-search .tb-search.-pc.-hero {
    display: flex !important;
}

.home-hero-search .tb-search.-m.-hero {
    display: none !important;
}

.home-hero-search .tb-search.-hero {
    position: relative;
    align-items: center;
    width: 100%;
    max-width: none;
    height: 42px;
    margin: 0 !important;
    padding: 0 0 0 8px;
    background: #0e1219 !important;
    border: 1.5px solid var(--tb--main, #1f80ff);
    border-radius: 8px;
    box-shadow: none;
}

.home-hero-search .tb-search.-hero .tb-s-cur {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 0 8px 0 0 !important;
    padding: 0;
    height: auto;
    border: none;
    background: transparent;
    color: inherit;
    white-space: nowrap;
}

.home-hero-search .tb-search.-hero .tb-s-cur .s-item {
    margin: 0;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #9aa3b5;
    background: #252b38;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.home-hero-search .tb-search.-hero .tb-s-cur .s-item.active {
    color: #fff;
    background: var(--tb--main, #1f80ff);
}

.home-hero-search .tb-search.-hero input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 10px 0 0 !important;
    border: none !important;
    background: transparent !important;
    color: #fff;
    font-size: 14px;
    line-height: 42px;
    box-shadow: none !important;
}

.home-hero-search .tb-search.-hero input::-webkit-input-placeholder {
    color: #6a7386;
}

.home-hero-search .tb-search.-hero input::-moz-placeholder {
    color: #6a7386;
}

.home-hero-search .tb-search.-hero input::placeholder {
    color: #6a7386;
}

.home-hero-search .tb-search.-hero .-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    height: calc(100% + 3px);
    min-width: 82px;
    margin: -1.5px -1.5px -1.5px 0;
    padding: 0 14px;
    border: none;
    border-radius: 0 7px 7px 0;
    background: var(--tb--main, #1f80ff);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.home-hero-search .tb-search.-hero .-hero-btn:hover {
    opacity: 0.92;
}

.home-hero-search .tb-search.-hero .-hero-btn .tbfa,
.home-hero-search .tb-search.-hero .-hero-btn .fa-search {
    position: static !important;
    top: auto !important;
    right: auto !important;
    height: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 14px !important;
    color: #fff !important;
    background: transparent !important;
}

.home-hero-search .menu-hot {
    margin-top: 12px !important;
    margin-bottom: 0;
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.home-hero-search .menu-hot .-label {
    color: #8b93a7;
    font-size: 12px;
}

.home-hero-search .menu-hot a,
.home-hero-search .menu-hot .menu-item a {
    display: inline-block;
    padding: 2px 10px;
    color: #b8c0d0 !important;
    background: #252b38;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.home-hero-search .menu-hot a:hover,
.home-hero-search .menu-hot .menu-item a:hover {
    color: #fff !important;
    background: var(--tb--main, #1f80ff);
}

.home-hero-search .menu-hot .hot-menu,
.home-hero-search .menu-hot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 幻灯 / 搜索：统一紧凑高度 */
.home-hero-search,
.home-hero-slide {
    height: 156px;
}

.home-hero-slide {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
}

.home-hero-search {
    max-height: none;
}

.home-hero-slide .home-slide-swiper,
.home-hero-slide .home-slide-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-slide .swiper-slide,
.home-hero-slide .swiper-slide a {
    height: 100%;
}

.home-hero-slide .swiper-slide a,
.home-hero-slide .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-slide .swiper-pagination {
    bottom: 8px !important;
}

.home-hero-slide .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #fff;
    opacity: 0.4;
}

.home-hero-slide .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--tb--main, #1f80ff);
}

.home-slide-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    color: #8b93a7;
}

.home-slide-empty .tbfa {
    margin-bottom: 6px;
    font-size: 28px;
    color: #4a90e2;
    opacity: 0.8;
}

.home-slide-empty .-t {
    margin: 0 0 4px;
    font-size: 14px;
    color: #e8ecf4;
}

.home-slide-empty .-d {
    margin: 0;
    font-size: 12px;
    color: #6a7386;
}

@media (max-width: 960px) {
    .home-hero {
        flex-direction: column;
        gap: 10px;
    }

    .home-hero-search {
        height: auto;
        padding: 16px;
    }

    .home-hero-slide {
        height: auto;
        aspect-ratio: 16 / 6;
    }

    .home-hero-search .s-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .home-hero-search .tb-search.-pc.-hero {
        display: none !important;
    }

    .home-hero-search .tb-search.-m.-hero {
        display: flex !important;
    }

    .home-hero-search .tb-search.-hero {
        height: 40px;
        padding-left: 6px;
    }

    .home-hero-search .tb-search.-hero input {
        line-height: 40px;
        font-size: 13px;
    }

    .home-hero-search .tb-search.-hero .-hero-btn {
        min-width: 72px;
        padding: 0 12px;
        font-size: 13px;
    }

    .home-hero-search .s-title {
        font-size: 16px;
    }
}
