/* 移动端公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #165DFF;
    --primary-light: #E8F3FF;
    --orange: #FF7D00;
    --success: #00B42A;
    --warning: #FF7D00;
    --danger: #F53F3F;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --text-1: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --border: #E5E6EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-1);
    background: var(--bg);
    line-height: 1.5;
    padding-bottom: 60px;
    max-width: 750px;
    margin: 0 auto;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    max-width: 750px;
    margin: 0 auto;
}

.header-back {
    position: absolute;
    left: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.header-title {
    font-size: 17px;
    font-weight: 500;
}

.header-right {
    position: absolute;
    right: 12px;
    font-size: 14px;
    cursor: pointer;
}

/* 底部Tab */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.tabbar-item.active {
    color: var(--primary);
}

.tabbar-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

/* 内容区域 */
.page-content {
    padding-top: 44px;
    min-height: 100vh;
}

.page-content.no-header {
    padding-top: 0;
}

/* 卡片 */
.card {
    background: var(--card);
    border-radius: 12px;
    margin: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:active {
    background: #0F48C9;
}

.btn-orange {
    background: var(--orange);
    color: #fff;
}

.btn-orange:active {
    background: #E67000;
}

.btn-block {
    width: 100%;
    height: 48px;
    border-radius: 24px;
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-small {
    height: 32px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 16px;
    min-width: auto;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    outline: none;
    min-height: 120px;
    resize: none;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--primary);
}

/* 职位卡片 */
.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.job-card:active {
    transform: scale(0.98);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    flex: 1;
    margin-right: 12px;
}

.job-salary {
    font-size: 18px;
    font-weight: 600;
    color: var(--orange);
}

.job-info {
    display: flex;
    align-items: center;
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.job-company {
    color: var(--text-2);
    font-size: 14px;
    margin-bottom: 8px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.job-tag {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    border-radius: 4px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f2f3f5;
}

.job-area {
    color: var(--text-3);
    font-size: 13px;
}

.job-time {
    color: var(--text-3);
    font-size: 12px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 0 16px;
    height: 40px;
    margin: 12px;
}

.search-icon {
    color: var(--text-3);
    margin-right: 8px;
    font-size: 16px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 轮播图 */
.banner {
    margin: 0 12px 12px;
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 快捷入口 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 12px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 6px;
}

.quick-icon.blue { background: #E8F3FF; color: var(--primary); }
.quick-icon.orange { background: #FFF7E8; color: var(--orange); }
.quick-icon.green { background: #E8FFEA; color: var(--success); }
.quick-icon.red { background: #FFECE8; color: var(--danger); }

.quick-text {
    font-size: 13px;
    color: var(--text-2);
}

/* 区县导航 */
.area-nav {
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 12px;
    padding: 16px;
}

.area-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.area-more {
    font-size: 13px;
    color: var(--text-3);
    font-weight: normal;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-item {
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
}

.area-item.active {
    background: var(--primary);
    color: #fff;
}

/* 列表标题 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 12px 12px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 8px;
}

/* 个人中心 */
.profile-header {
    background: linear-gradient(135deg, var(--primary), #4080FF);
    padding: 30px 20px;
    color: #fff;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    margin-right: 16px;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-type {
    font-size: 13px;
    opacity: 0.9;
}

.profile-menu {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f3f5;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-icon {
    width: 24px;
    font-size: 18px;
    margin-right: 12px;
    color: var(--primary);
}

.menu-text {
    flex: 1;
    font-size: 15px;
}

.menu-arrow {
    color: var(--text-3);
    font-size: 14px;
}

/* 登录页 */
.login-page {
    padding: 60px 24px;
    min-height: 100vh;
    background: #fff;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-3);
    font-size: 14px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-2);
    cursor: pointer;
    position: relative;
}

.login-tab.active {
    color: var(--primary);
    font-weight: 500;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 20px;
    color: var(--text-3);
    font-size: 13px;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 弹窗 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s;
}

.modal-content {
    width: 100%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    font-size: 20px;
    color: var(--text-3);
    cursor: pointer;
}

.modal-body {
    padding: 16px;
}

/* 福利标签选择 */
.welfare-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.welfare-item {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
}

.welfare-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* 固定底部操作栏 */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99;
    max-width: 750px;
    margin: 0 auto;
}

.footer-btn {
    flex: 1;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-3);
    cursor: pointer;
    padding: 0 8px;
}

.footer-icon i {
    font-size: 20px;
    margin-bottom: 2px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 44px;
    z-index: 50;
}

.filter-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
    position: relative;
}

.filter-item.active {
    color: var(--primary);
}

.filter-item::after {
    content: '';
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* 消息列表 */
.message-item {
    display: flex;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f2f3f5;
    cursor: pointer;
}

.message-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-icon.system { background: #E8F3FF; color: var(--primary); }
.message-icon.interview { background: #FFF7E8; color: var(--orange); }
.message-icon.chat { background: #E8FFEA; color: var(--success); }

.message-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-name {
    font-size: 15px;
    font-weight: 500;
}

.message-time {
    font-size: 12px;
    color: var(--text-3);
}

.message-text {
    font-size: 13px;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 0 6px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}
