/* 首页 v2 —— 所有类名使用 hp- 前缀，避免影响站内其它页面 */
.hp-main {
    background: #fff;
    color: #212529;
}

/* ---------- Hero / 搜索 ---------- */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 44px;
    color: #fff;
    background:
        radial-gradient(900px 320px at 15% 0%, rgba(68, 122, 255, .55), rgba(68, 122, 255, 0) 70%),
        radial-gradient(700px 300px at 90% 100%, rgba(79, 226, 193, .22), rgba(79, 226, 193, 0) 70%),
        linear-gradient(135deg, #04003f 0%, #1b2a8a 58%, #244fe7 100%);
}

.hp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .18;
    pointer-events: none;
}

.hp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hp-kicker {
    margin: 0 0 10px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #bfe0ff;
}

.hp-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3.1vw, 2.7rem);
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
}

.hp-lead {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .84);
}

.hp-search {
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto 18px;
    padding: 7px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(4, 0, 63, .35);
}

.hp-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    font-size: 1rem;
    color: #212529;
    background: transparent;
}

.hp-search button {
    flex: 0 0 auto;
    border: 0;
    padding: 0 26px;
    border-radius: 10px;
    background: #244fe7;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
}

.hp-search button:hover {
    background: #1d3fb9;
}

.hp-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: .9rem;
}

.hp-quick-label {
    color: rgba(255, 255, 255, .65);
}

.hp-quick a {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.hp-quick a:hover {
    background: rgba(255, 255, 255, .26);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.hp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.hp-stat {
    padding: 0 28px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.hp-stat:last-child {
    border-right: 0;
}

.hp-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.hp-stat span {
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}

/* ---------- 通用区块 ---------- */
.hp-section {
    padding: 46px 0;
}

.hp-section-gray {
    background: #f5f5f5;
}

.hp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.hp-section-head h2 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #04003f;
}

.hp-section-head p {
    margin: 0;
    font-size: .92rem;
    color: #717488;
}

.hp-more {
    flex: 0 0 auto;
    color: #244fe7;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.hp-more:hover {
    text-decoration: underline;
}

/* ---------- 分类 ---------- */
.hp-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.hp-cat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hp-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(4, 0, 63, .1);
}

.hp-cat-thumb {
    position: relative;
    display: block;
    height: 120px;
    overflow: hidden;
    background: #dcdcdc;
}

.hp-cat-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hp-cat:hover .hp-cat-thumb img {
    transform: scale(1.05);
}

.hp-cat-count {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(4, 0, 63, .78);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
}

.hp-cat-body {
    padding: 13px 15px 15px;
}

.hp-cat-body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

.hp-cat-body h3 a {
    color: #04003f;
    text-decoration: none;
}

.hp-cat-body h3 a:hover {
    color: #244fe7;
}

.hp-cat-body ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-cat-body li a {
    color: #717488;
    font-size: .84rem;
    text-decoration: none;
}

.hp-cat-body li a:hover {
    color: #244fe7;
    text-decoration: underline;
}

/* ---------- 最新 listings ---------- */
.hp-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.hp-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(4, 0, 63, .1);
}

.hp-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hp-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f2fa;
}

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

.hp-card-body {
    padding: 12px 14px 14px;
}

.hp-card-price {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 800;
    color: #04003f;
}

.hp-card-title {
    display: -webkit-box;
    min-height: 2.5em;
    margin: 0 0 6px;
    overflow: hidden;
    color: #212529;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hp-card-loc {
    margin: 0;
    overflow: hidden;
    color: #717488;
    font-size: .78rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- 州 / 城市 ---------- */
.hp-states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.hp-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    color: #212529;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.hp-state:hover {
    border-color: #244fe7;
    color: #244fe7;
    box-shadow: 0 8px 18px rgba(4, 0, 63, .08);
}

.hp-state-arrow {
    color: #b7bac9;
    font-size: .9rem;
    font-style: normal;
    transition: color .18s ease, transform .18s ease;
}

.hp-state:hover .hp-state-arrow {
    color: #244fe7;
    transform: translateX(2px);
}

.hp-subtitle {
    margin: 0 0 12px;
    color: #04003f;
    font-size: 1.05rem;
    font-weight: 700;
}

.hp-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hp-city {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 999px;
    color: #212529;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.hp-city span {
    color: #717488;
    font-size: .78rem;
    font-weight: 400;
}

.hp-city:hover {
    border-color: #244fe7;
    color: #244fe7;
}

/* ---------- 三步流程 ---------- */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.hp-step {
    padding: 22px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
}

.hp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e8eeff;
    color: #244fe7;
    font-weight: 800;
}

.hp-step h3 {
    margin: 0 0 8px;
    color: #04003f;
    font-size: 1.05rem;
    font-weight: 700;
}

.hp-step p {
    margin: 0 0 12px;
    color: #717488;
    font-size: .88rem;
    line-height: 1.6;
}

.hp-step-link {
    color: #244fe7;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.hp-step-link:hover {
    text-decoration: underline;
}

/* ---------- 底部 CTA ---------- */
.hp-cta-wrap {
    padding: 0 0 56px;
}

.hp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 18px;
    background: linear-gradient(120deg, #04003f, #244fe7);
    color: #fff;
}

.hp-cta h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.hp-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: .92rem;
}

.hp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.hp-btn-light {
    background: #fff;
    color: #04003f;
}

.hp-btn-light:hover {
    background: #e8eeff;
    color: #04003f;
}

.hp-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
}

.hp-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
    .hp-hero {
        padding: 36px 0 30px;
    }

    .hp-search {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .hp-search input {
        padding: 13px 14px;
        background: #fff;
        border-radius: 10px;
    }

    .hp-search button {
        width: 100%;
        padding: 13px;
    }

    .hp-stat {
        padding: 0 16px;
    }

    .hp-section {
        padding: 34px 0;
    }

    .hp-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hp-cta {
        padding: 26px 22px;
    }
}

@media (max-width: 480px) {
    .hp-stat {
        width: 50%;
        margin-bottom: 12px;
        border-right: 0;
    }
}
