/* ── CSS 变量 ─────────────────────────────────────────────────────────────── */
:root {
    /* 主题色 */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd6;
    --color-accent: #fa8c16;
    --color-accent-hover: #e07a0f;
    --color-bg-page: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-text-dark: #333333;
    --color-text-muted: #999999;
    --color-border: #f0f0f0;
    --color-border-light: #f5f5f5;

    /* 阴影 */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-card-header: 0 2px 12px rgba(0, 0, 0, 0.08);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 20px;
    --radius-round: 24px;

    /* 字体 */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-page);
}

.navbar-brand {
    font-weight: 600;
}

/* ── 通用卡片区块样式 ────────────────────────────────────────── */
.section-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.section-text {
    color: #555555;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ── 职位卡片 ──────────────────────────────────────────────── */
.job-card-wrapper {
    margin-bottom: 16px;
}

.job-card {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--color-border) !important;
    padding: 20px !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    background-color: var(--color-bg-card) !important;
}

.job-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.job-card-content {}

.job-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
}

.job-card-salary {
    color: var(--color-accent);
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.job-card-requirements {
    color: var(--color-text-muted);
    font-size: 14px;
}

.job-card-company {
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 14px;
}

/* ── 搜索栏样式 ──────────────────────────────────────────────── */
.search-bar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
}

.search-btn {
    border-radius: var(--radius-round) !important;
    background-color: var(--color-accent) !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-left: -50px;
}

.search-btn:hover {
    background-color: var(--color-accent-hover) !important;
}

.search-input {
    border-radius: var(--radius-round) !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ── 城市选择区 ──────────────────────────────────────────────── */
.city-filter-bar {
    background: var(--color-bg-page);
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.city-filter-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
}

.city-label {
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    margin-right: 16px;
    white-space: nowrap;
}

.city-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.city-pill {
    border-radius: var(--radius-pill) !important;
    font-size: 13px !important;
    padding: 4px 12px !important;
    margin: 3px !important;
}

.city-custom-input {
    border-radius: var(--radius-pill) !important;
    width: 160px !important;
    font-size: 13px !important;
    margin-left: 12px !important;
}

/* ── 空状态 & 错误状态 ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 20px;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── 城市筛选侧边栏 ──────────────────────────────────────── */
.city-sidebar {
    padding: 16px 12px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.city-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-filter-item .form-check {
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0;
}

.city-filter-item .form-check:hover {
    background-color: #f0f0ff;
}

.city-filter-item .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.city-filter-item .form-check-label {
    font-size: 14px;
    color: #555555;
    cursor: pointer;
}

/* ── IP 定位区域 ──────────────────────────────────────── */
.geo-city-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#geo-city-label {
    font-size: 14px;
    color: white;
    white-space: nowrap;
    margin-right: 6px;
}

/* ── 移动端适配 ─────────────────────────────────────── */
@media (max-width: 768px) {
    .city-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 20px;
    }

    .city-filter-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .search-btn {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
    }
}

/* ── 未登录掩码提示 ─────────────────────────────────────────── */
.login-tip-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f0ff, #faf0ff);
    border: 1px solid #d4c8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b5b95;
}

.masked-notice {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.masked-login-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.masked-login-link:hover {
    color: #5a6fd6;
    text-decoration: underline;
}

.masked-text {
    color: #ccc;
    filter: blur(4px);
    user-select: none;
}

/* ── 导航栏用户头像和下拉菜单 ───────────────────────────── */
.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
}

.navbar-avatar-icon {
    font-size: 28px;
    color: rgba(255,255,255,0.85);
}

.navbar-nickname {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.navbar-user-dropdown .dropdown-toggle {
    padding: 4px 8px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.navbar-user-dropdown {
    display: flex;
    align-items: center;
}

.navbar .navbar-nav {
    align-items: center;
}

/* ── 薪资下拉框美化（已禁用）───────────────────────────────────
#salary-dropdown .Select-control {
    border-radius: 20px !important;
    border: 2px solid #667eea !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15) !important;
    min-height: 36px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#salary-dropdown .Select-control:hover {
    border-color: #764ba2 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
}

#salary-dropdown .Select-placeholder {
    color: #667eea !important;
    font-weight: 500 !important;
}

#salary-dropdown .Select-value-label {
    color: #333 !important;
    font-weight: 500 !important;
}

#salary-dropdown .Select-arrow {
    border-color: #667eea transparent transparent !important;
}

#salary-dropdown.is-open .Select-arrow {
    border-color: transparent transparent #667eea !important;
}

#salary-dropdown .Select-menu-outer {
    border-radius: 12px !important;
    border: 1px solid #e0e0ff !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2) !important;
    margin-top: 6px !important;
    overflow: hidden !important;
}

#salary-dropdown .Select-option {
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #555 !important;
    transition: background 0.15s ease !important;
}

#salary-dropdown .Select-option:hover {
    background: linear-gradient(135deg, #f0f0ff, #e8e6ff) !important;
    color: #333 !important;
}

#salary-dropdown .Select-option.is-focused {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
*/

/* ── dash_uploader 内置文件名隐藏（由自定义 upload-file-list 管理）── */
#apply-uploader .dz-details,
#apply-uploader .dz-filename,
#apply-uploader [data-dz-name] {
    display: none !important;
}
