/* 银发聘移动端样式 - 专为小屏幕优化 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #0D9488;
    --primary-light: #14B8A6;
    --primary-dark: #0F766E;
    --primary-50: #F0FDFA;
    --accent-color: #F59E0B;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg-color: #FFFFFF;
    --bg-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --danger-color: #EF4444;
    --success-color: #10B981;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gray);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.header-btn-login {
    color: var(--primary-color);
    background: var(--primary-50);
}

.header-btn-login:hover {
    background: #CCFBF1;
}

.header-btn-register {
    color: white;
    background: var(--primary-color);
}

.header-btn-register:hover {
    background: var(--primary-dark);
}

/* 主容器 */
.container {
    max-width: 100%;
    padding: 72px 16px 90px;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 20px;
    margin: -16px -16px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero p {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 24px;
}

/* 快捷操作按钮 */
.quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quick-btn i {
    font-size: 32px;
    color: var(--primary-color);
}

.quick-btn span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

/* 搜索区域 */
.search-section {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.search-box {
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--bg-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn:active {
    transform: scale(0.98);
}

/* 热门职位 */
.section {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.section-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.job-card:hover {
    background: var(--primary-50);
    transform: translateX(4px);
}

.job-card:active {
    transform: scale(0.98);
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.job-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-info i {
    font-size: 16px;
    color: var(--primary-color);
}

.job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-tag {
    padding: 4px 10px;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.job-tag.highlight {
    background: #FEF3C7;
    color: #D97706;
}

/* 优势介绍 */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 固定底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    display: flex;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s;
    min-height: 50px;
    justify-content: center;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item:active {
    background: var(--primary-50);
}

/* 用户状态栏 */
.user-bar {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 32px;
    color: var(--primary-color);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.user-role {
    font-size: 14px;
    color: var(--text-light);
}

.user-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.user-btn:hover {
    background: var(--primary-dark);
}

/* 统计信息 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-color);
    padding: 20px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 分类导航 */
.category-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-color);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-item:active {
    transform: scale(0.95);
}

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-50);
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

/* 媒体查询 - 平板适配 */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: 0 auto;
        padding: 80px 24px 100px;
    }
    
    .hero {
        padding: 60px 40px;
        margin: -24px -24px 30px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 24px;
    }
}
