* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 搜索框样式 */
.search-container {
    background-color: #1890ff;
    padding: 13.33px;
    text-align: center;
}

.search-box {
    width: 90%;
    max-width: 600px;
    height: 26.67px;
    border-radius: 13.33px;
    border: none;
    padding: 0 13.33px;
    font-size: 14px;
    outline: none;
}

/* 轮播广告样式 */
.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-slide {
    width: 100%;
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 保持宽高比，完整显示图片 */
    object-position: center;
    background-color: #f0f0f0;
}

/* 导航栏样式 */
.nav-container {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.nav-item {
    text-align: center;
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nav-text {
    font-size: 14px;
    color: #333;
}

/* 上方广告样式 */
.top-ad-container {
    width: 100%;
    margin: 15px 0;
}

.top-ad-item {
    width: 100%;
    margin-bottom: 10px;
}

.top-ad-image {
    width: 100%;
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 保持宽高比，完整显示图片 */
    object-position: center;
    background-color: #f0f0f0;
}

/* 职位分类导航 */
.job-category-container {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 15px;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    padding: 0 15px 10px;
    border-bottom: 1px solid #eee;
}

.category-list {
    display: flex;
    flex-wrap: nowrap; /* 强制不换行，激活横向滚动 */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
    gap: 15px;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.category-list::-webkit-scrollbar {
    display: none; /* Webkit 隐藏滚动条 */
}

.category-item {
    flex-shrink: 0;
    text-align: center;
}

.category-name {
    font-size: 14px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 15px;
}

.category-name.active {
    background-color: #1890ff;
    color: white;
}

/* 职位列表 */
.job-list-container {
    background-color: white;
    padding: 15px;
}

.job-list-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.job-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    cursor: pointer;
}

.job-item:last-child {
    border-bottom: none;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-meta-info {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.job-benefits {
    color: #333;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.5;
}

.job-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.job-company-info {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    margin-right: 10px;
}

.job-company-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0;
}

.job-company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-company-logo-placeholder {
    font-size: 20px;
}

.job-company-name-wrapper {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #666;
}

.apply-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-item:last-child {
    border-bottom: none;
}

.job-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.job-company {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.job-salary {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.job-location {
    color: #999;
    font-size: 14px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.bottom-nav-item {
    text-align: center;
}

.bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.bottom-nav-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bottom-nav-text {
    font-size: 12px;
}

/* 主内容区域需要留出底部导航的空间 */
.main-content {
    padding-bottom: 60px;
}

.page-alert {
    margin: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-alert--danger {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.page-alert--success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #237804;
}

.nav-link, .link-reset {
    text-decoration: none;
    color: inherit;
}

.nav-icon-placeholder {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.job-item {
    cursor: pointer;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 0;
    box-shadow: none;
    background-color: white;
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-salary {
    color: red;
    font-weight: bold;
}

.job-meta-info {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.job-benefits {
    color: #000;
    font-size: 14px;
    margin: 5px 0;
    background-color: transparent;
}

.job-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.job-company-info {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.job-company-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.job-company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-company-logo-placeholder {
    font-size: 20px;
}

.job-company-name-wrapper {
    flex: 1;
    word-break: break-word;
    overflow: hidden;
}

.apply-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.footer-info {
    background: #fff;
    margin-top: 15px;
    padding: 15px;
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
}

.link-reset {
    text-decoration: none;
    color: inherit;
}

.nav-icon-placeholder {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.page-alert {
    margin: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-alert--danger {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.page-alert--success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #237804;
}

.page-alert {
    margin: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-alert--danger {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.page-alert--success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #237804;
}

