body.home .xuede-hero-shell {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(12, 22, 49, .88), rgba(28, 63, 166, .78)),
        url('/wp-content/themes/ripro-v5/assets/img/bg.jpg') center/cover no-repeat;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

body.home .xuede-hero-shell::before,
body.home .xuede-hero-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
    opacity: .35;
}

body.home .xuede-hero-shell::before {
    inset: 14% auto auto -4%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, .24);
}

body.home .xuede-hero-shell::after {
    right: -3%;
    bottom: -8%;
    width: 220px;
    height: 220px;
    background: rgba(105, 145, 255, .24);
}

body.home .xuede-portal-hero {
    position: relative;
    z-index: 1;
    padding: 36px 30px 30px;
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.home .xuede-portal-kicker {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    letter-spacing: .08em;
}

body.home .xuede-portal-title {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
    margin-top: 8px;
}

body.home .xuede-portal-subtitle {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    margin-top: 10px;
}

body.home .xuede-searchbox {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 104px;
    gap: 0;
    max-width: 860px;
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
}

body.home .xuede-searchbox .search-source,
body.home .xuede-searchbox input,
body.home .xuede-searchbox button {
    height: 54px;
    border: 0;
    border-radius: 0;
}

body.home .xuede-searchbox .search-source {
    background: rgba(255, 255, 255, .12);
}

body.home .xuede-searchbox select {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    background: transparent;
    color: #fff;
}

body.home .xuede-searchbox input {
    min-width: 0;
    padding: 0 16px;
    background: rgba(255, 255, 255, .96);
    color: #0f172a;
}

body.home .xuede-searchbox input::placeholder {
    color: #94a3b8;
}

body.home .xuede-searchbox button {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4d67f4, #2e4bdc);
}

body.home .source-help-bar {
    margin-top: 10px;
}

body.home .source-help-link {
    display: inline-flex;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

body.home .xuede-portal-actions {
    margin-top: 18px;
}

body.home .xuede-portal-actions .btn-cta,
body.home .xuede-portal-actions .btn-link {
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

body.home .hot-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

body.home .hot-words span {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
}

body.home .xuede-cat-section {
    margin-bottom: 18px;
    padding: 18px 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8eaed;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

body.home .xuede-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.home .xuede-section-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

body.home .xuede-section-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

body.home .xuede-section-head span {
    font-size: 12px;
    color: #4d67f4;
    white-space: nowrap;
}

body.home .xuede-cat-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

body.home .home-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 108px;
    padding: 14px;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, .62) 100%),
        linear-gradient(135deg, #8ab4ff, #4d67f4);
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

body.home .home-cat-card:nth-child(2n) {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, .62) 100%),
        linear-gradient(135deg, #5a77ff, #3b82f6);
}

body.home .home-cat-card:nth-child(3n) {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, .62) 100%),
        linear-gradient(135deg, #7c3aed, #4f46e5);
}

body.home .home-cat-card:nth-child(4n) {
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, .62) 100%),
        linear-gradient(135deg, #0ea5e9, #2563eb);
}

body.home .home-cat-card.on {
    outline: 3px solid rgba(77, 103, 244, .28);
    transform: translateY(-1px);
}

body.home .home-cat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    background: rgba(255, 255, 255, .2);
}

body.home .home-cat-name {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 800;
}

body.home .home-cat-meta {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .84);
}

body.home .xuede-result-panel,
body.home .xuede-portal-note,
body.home .xuede-portal .topbar {
    border-radius: 14px;
}

@media (max-width: 1180px) {
    body.home .xuede-cat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.home .xuede-portal-hero {
        padding: 24px 18px 18px;
    }

    body.home .xuede-portal-title {
        font-size: 26px;
    }

    body.home .xuede-searchbox {
        grid-template-columns: 1fr;
    }

    body.home .xuede-searchbox .search-source,
    body.home .xuede-searchbox input,
    body.home .xuede-searchbox button {
        height: 48px;
    }

    body.home .xuede-cat-section {
        padding: 16px;
    }

    body.home .xuede-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home .xuede-cat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home .home-cat-card {
        min-height: 96px;
    }
}
