/* ============================================
   Postovago 首页全新样式
   保留原有 index.css 兼容，新增本文件增强
   ============================================ */

/* 重置和基础 */
.home-body {
    background-color: #f7f9fc;
    font-family: Inter, Helvetica, Arial, sans-serif;
}

/* ========== Header ========== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(5,20,41,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1248px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    flex-shrink: 0;
}
.logo-img {
    height: 48px;
    width: auto;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #7f8b99;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all .2s;
}
.nav-link:hover {
    background-color: rgba(11,113,217,.1);
    color: #0b71d9;
}
.nav-icon {
    height: 18px;
    width: 18px;
}
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #393f47;
}
@media (max-width: 1024px) {
    .nav-link span { display: none; }
    .nav-link { padding: 10px; }
    .hamburger-btn { display: inline-flex; }
}
@media (max-width: 768px) {
    .header-nav .nav-share, .header-nav .nav-favoritos { display: none; }
}

/* ========== Hero ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0b71d9 0%, #0a64bf 50%, #0959ab 100%);
    padding: 60px 16px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #fff;
}
.hero-title span { display: block; }
.hero-sub {
    font-size: 18px !important;
    font-weight: 400 !important;
    opacity: .9;
    margin-top: 8px;
}
.hero-desc {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 32px;
}
.hero-desc strong {
    color: #ffe766;
    font-weight: 700;
}

/* 搜索表单 */
.hero-search {
    text-align: left;
}
.search-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.search-field {
    position: relative;
    flex: 1;
}
.search-keyword {
    border-bottom: 1px solid #e4e7eb;
}
.search-region select,
.search-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #393f47;
    background: transparent;
}
.search-region select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: .5;
}
.search-btn {
    height: 56px;
    border: none;
    background: #0b71d9;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    padding: 0 32px;
}
.search-btn:hover {
    background: #0959ab;
}

@media (min-width: 768px) {
    .hero-section { padding: 80px 16px 100px; }
    .hero-title { font-size: 44px; }
    .hero-sub { font-size: 22px !important; }
    .search-row {
        flex-direction: row;
        border-radius: 8px;
    }
    .search-keyword {
        border-bottom: none;
        border-right: 1px solid #e4e7eb;
    }
    .search-region {
        border-right: 1px solid #e4e7eb;
        min-width: 220px;
    }
}

/* 热门关键词 */
.hot-keywords {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.hot-label {
    font-size: 14px;
    opacity: .8;
}
.hot-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.hot-tag:hover {
    background: rgba(255,255,255,.35);
    transform: translateY(-1px);
}

/* ========== Stats Bar ========== */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.stats-inner {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-radius: 8px;
    background: #fff;
}
.stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 8px;
}
.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0b71d9;
    margin-bottom: 4px;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: #7f8b99;
}
.stat-divider {
    width: 1px;
    background: #e4e7eb;
    margin: 8px 0;
}
@media (max-width: 640px) {
    .stat-divider { display: none; }
    .stat-item { min-width: 50%; }
}

/* ========== Sections ========== */
.home-main {
    padding-top: 32px;
}
.section {
    margin-bottom: 48px;
}
.section-inner {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 16px;
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0b0d0e;
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #0b71d9, #57991f);
    border-radius: 2px;
}
.section-more {
    color: #0b71d9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.section-more:hover { text-decoration: underline; }

/* ========== Latest Jobs ========== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}
@media (min-width: 640px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .jobs-grid { grid-template-columns: repeat(3, 1fr); } }

.job-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    transition: all .25s;
    overflow: hidden;
}
.job-card:hover {
    border-color: #0b71d9;
    box-shadow: 0 8px 24px rgba(11,113,217,.12);
    transform: translateY(-2px);
}
.job-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}
.job-title {
    font-size: 17px;
    font-weight: 600;
    color: #0b0d0e;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.job-company {
    font-size: 14px;
    color: #0b71d9;
    margin-bottom: 10px;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: #7f8b99;
}
.job-location, .job-salary {
    display: inline-flex;
    align-items: center;
}
.job-salary { color: #e07a14; font-weight: 500; }

/* ========== Categories ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e4e7eb;
}
@media (min-width: 480px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .categories-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .categories-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #393f47;
    transition: all .2s;
    background: #f7f9fc;
}
.category-card:hover {
    background: #eaf3fb;
    transform: translateX(2px);
}
.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0b71d9, #0a64bf);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-text {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ========== States Grid with Images ========== */
.states-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) { .states-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .states-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 992px) { .states-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .states-grid { grid-template-columns: repeat(6, 1fr); } }

.state-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4/3;
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.state-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
.state-img-wrap {
    position: absolute;
    inset: 0;
}
.state-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.state-card:hover .state-img { transform: scale(1.08); }
.state-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.state-info {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2;
}
.state-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ========== Hot Cities ========== */
.hot-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e4e7eb;
}
.hot-city-link {
    padding: 10px 18px;
    background: #f0f4f8;
    border-radius: 20px;
    text-decoration: none;
    color: #393f47;
    font-size: 14px;
    transition: all .2s;
    border: 1px solid transparent;
}
.hot-city-link:hover {
    background: #eaf3fb;
    border-color: #0b71d9;
    color: #0b71d9;
}

/* ========== States Hierarchy ========== */
.states-hierarchy {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}
@media (min-width: 480px) { .states-hierarchy { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .states-hierarchy { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .states-hierarchy { grid-template-columns: repeat(4, 1fr); } }

.state-group {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    padding: 16px;
}
.state-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #0b71d9;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e7eb;
}
.cities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.city-item a {
    display: block;
    padding: 6px 8px;
    color: #393f47;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all .15s;
}
.city-item a:hover {
    background: #f0f4f8;
    color: #0b71d9;
}

/* ========== 清除原有样式冲突 ========== */
.home-body ._0clkul,
.home-body .CmUIUk,
.home-body .J0+1kp,
.home-body .jYDIcy {
    display: none;
}
