/* ===== 全局基础 ===== */
/* Google Fonts 在某些网络环境不可用，改用系统字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px; /* 默认字体缩小 */
}

:root {
    --primary: #6c63ff;
    --primary-dark: #554fcf;
    --primary-light: #a89fff;
    --secondary: #f093fb;
    --accent: #4facfe;
    --success: #43e97b;
    --success-dark: #38d669;
    --danger: #f5576c;
    --danger-dark: #e04055;
    --warning: #f9a825;
    --info: #00c6fb;
    --text-dark: #2d3748;
    --text-mid: #4a5568;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --bg-light: #f7f8ff;
    --bg-card: #ffffff;
    --border: #e8eaf6;
    --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.08);
    --shadow-md: 0 6px 24px rgba(108, 99, 255, 0.14);
    --shadow-lg: 0 15px 50px rgba(108, 99, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 45%, #2c5364 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 24px 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 60% 40%, rgba(44, 130, 201, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(32, 58, 67, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 940px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(80, 60, 180, 0.3), 0 0 0 1px rgba(255,255,255,0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

/* ===== 头部 ===== */
header {
    background: linear-gradient(135deg, #667eea 0%, #6c63ff 40%, #764ba2 100%);
    color: white;
    padding: 44px 36px 36px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-text {
    flex: 1;
    text-align: center;
}

header h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

header p {
    font-size: 1.05em;
    opacity: 0.88;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 语言切换 */
.lang-switch {
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
    padding: 9px 20px;
    border-radius: 40px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-left: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.lang-switch:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ===== 导航 ===== */
.navigation {
    display: flex;
    background: #fff;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(108,99,255,0.07);
}

.nav-btn {
    flex: 1;
    padding: 18px;
    border: none;
    background: transparent;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-btn.active {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.nav-btn.active::after {
    left: 10%;
    right: 10%;
}

/* ===== 页面动画 ===== */
.page {
    display: none;
    padding: 32px;
    animation: pageIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 表单样式 ===== */
.resume-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: linear-gradient(145deg, #fafbff, #f3f4ff);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    transition: box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(108,99,255,0.25);
}

.form-section h2 {
    color: var(--primary);
    margin-bottom: 22px;
    font-size: 1.35em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--text-mid);
    font-size: 0.9em;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.8px solid #e2e5f0;
    border-radius: var(--radius-sm);
    font-size: 0.97em;
    transition: all 0.25s;
    font-family: inherit;
    background: #fff;
    color: var(--text-dark);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(108, 99, 255, 0.12);
    background: #fdfdff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c63ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.7;
}

/* ===== 按钮 ===== */
.form-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 12px;
}

.btn-submit,
.btn-reset,
.btn-export,
.btn-view,
.btn-delete {
    padding: 12px 32px;
    border: none;
    border-radius: 40px;
    font-size: 0.97em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #6c63ff 50%, #764ba2 100%);
    color: white;
    flex: 1;
    max-width: 220px;
    box-shadow: 0 4px 18px rgba(108, 99, 255, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108, 99, 255, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    background: linear-gradient(135deg, #8f9aaa, #6c757d);
    color: white;
    flex: 1;
    max-width: 220px;
    box-shadow: 0 4px 14px rgba(108,117,125,0.25);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.35);
}

.btn-export {
    background: linear-gradient(135deg, #43e97b, #38d669);
    color: white;
    border-radius: 40px;
    padding: 9px 20px;
    font-size: 0.9em;
    box-shadow: 0 3px 12px rgba(56, 214, 105, 0.3);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 214, 105, 0.45);
}

.btn-view {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88em;
    box-shadow: 0 3px 10px rgba(108,99,255,0.3);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(108,99,255,0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #f5576c, #e04055);
    color: white;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.88em;
    box-shadow: 0 3px 10px rgba(240,75,92,0.25);
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(240,75,92,0.38);
}

.btn-word {
    background: linear-gradient(135deg, #4facfe, #00c6fb);
    color: white;
    border-radius: 40px;
    box-shadow: 0 3px 12px rgba(0,198,251,0.3);
}

.btn-word:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,198,251,0.45);
}

.btn-download {
    background: linear-gradient(135deg, #43e97b, #38d669);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 22px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 3px 12px rgba(56,214,105,0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56,214,105,0.45);
}

/* ===== 简历列表 ===== */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.list-header h2 {
    color: var(--primary);
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.resume-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resume-card {
    background: #fff;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.resume-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.resume-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(108,99,255,0.3);
}

.resume-card:hover::before {
    opacity: 1;
}

/* 未读卡片 */
.resume-card.unread {
    background: linear-gradient(145deg, #fdfeff, #f8f9ff);
}

.resume-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.resume-photo img {
    border: 2.5px solid var(--primary);
    box-shadow: 0 3px 12px rgba(108,99,255,0.2);
    border-radius: 50%;
}

.resume-text {
    flex: 1;
    min-width: 200px;
}

.resume-text h3 {
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 1.15em;
    font-weight: 700;
}

.resume-text p {
    color: var(--text-light);
    margin: 2px 0;
    font-size: 0.9em;
}

.resume-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 40px;
    font-size: 1.1em;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border);
}

/* ===== 搜索栏 ===== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 160px;
    padding: 10px 16px;
    border: 1.8px solid #e2e5f0;
    border-radius: 40px;
    font-size: 0.9em;
    outline: none;
    transition: all 0.25s;
    background: #fafbff;
    font-family: inherit;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
    background: #fff;
}

.search-bar select {
    padding: 10px 14px;
    border: 1.8px solid #e2e5f0;
    border-radius: 40px;
    font-size: 0.9em;
    background: #fafbff;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: all 0.25s;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236c63ff' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.search-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

/* 改密码按钮 */
.change-pwd-btn {
    margin-left: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #8f9aaa, #6c757d);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(108,117,125,0.25);
}

.change-pwd-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(108,117,125,0.35);
}

/* ===== 弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(30, 20, 60, 0.55);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.modal-content {
    background: white;
    margin: 4% auto;
    padding: 36px;
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 30px 80px rgba(80,60,180,0.25);
    border: 1px solid rgba(108,99,255,0.1);
}

@keyframes modalIn {
    from { transform: translateY(-30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* 滚动条美化 */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: #f0f1ff; border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.4); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,0.7); }

.close {
    position: absolute;
    right: 20px; top: 16px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close:hover {
    color: var(--danger);
    background: rgba(245,87,108,0.1);
    transform: rotate(90deg);
}

/* 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(30,20,60,0.7);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-content {
    background: white;
    margin: 8% auto;
    padding: 0 40px 40px;
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 420px;
    min-height: 420px;
    position: relative;
    text-align: center;
    animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 30px 80px rgba(80,60,180,0.3);
    border: 1px solid rgba(108,99,255,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-content::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #6c63ff, #764ba2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.login-content h2 {
    color: var(--primary);
    margin: 32px 0 6px;
    font-size: 1.5em;
    font-weight: 700;
}

.login-content .login-subtitle {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.88em;
}

.login-content .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-content .form-group label {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
}

/* 登录弹窗居中辅助 */
.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1.8px solid #e2e5f0;
    border-radius: var(--radius-sm);
    font-size: 1em;
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
}

.login-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(108,99,255,0.12);
}

.login-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-login, .btn-cancel {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 40px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea, #6c63ff, #764ba2);
    color: white;
    box-shadow: 0 4px 18px rgba(108,99,255,0.38);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108,99,255,0.5);
}

.btn-cancel {
    background: linear-gradient(135deg, #8f9aaa, #6c757d);
    color: white;
    box-shadow: 0 3px 12px rgba(108,117,125,0.2);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.32);
}

/* ===== 详情弹窗 ===== */
.resume-detail-section {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1.5px solid var(--border);
}

.resume-detail-section:last-child {
    border-bottom: none;
}

.detail-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.resume-detail-section h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(108,99,255,0.12);
}

.detail-item {
    margin-bottom: 11px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.detail-item strong {
    color: var(--text-mid);
    min-width: 110px;
    font-weight: 600;
    font-size: 0.9em;
    padding-top: 1px;
    flex-shrink: 0;
}

.detail-item span {
    color: var(--text-dark);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ===== 照片/文件预览 ===== */
.photo-preview {
    margin-top: 10px;
    min-height: 50px;
}

.photo-preview img {
    border-radius: 12px;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.photo-preview img:hover {
    transform: scale(1.05);
}

.file-preview { margin-top: 10px; }

.file-info {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    border: 1.5px solid var(--border);
    border-left: 4px solid var(--primary);
}

.file-info strong { color: var(--text-mid); }

/* ===== 进度条 ===== */
.progress-wrap {
    background: #e8eaf6;
    border-radius: 20px;
    height: 9px;
    margin: 10px 0 20px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #6c63ff, #f093fb);
    border-radius: 20px;
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 2px 8px rgba(108,99,255,0.3);
}

.progress-label {
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
    text-align: right;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

/* ===== 成功消息 ===== */
.success-message {
    background: linear-gradient(135deg, #d4f5e2, #b8f0d0);
    color: #166534;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
    border: 1.5px solid rgba(67,233,123,0.3);
    border-left: 4px solid var(--success);
    display: none;
    animation: fadeIn 0.3s;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* ===== 统计横幅 ===== */
#statsBanner {
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1.5px solid rgba(108,99,255,0.15);
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.9em;
    box-shadow: var(--shadow-sm);
}

/* ===== 状态标签颜色 ===== */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.status-待审核  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.status-已联系  { background: #cfe2ff; color: #0a4da6; border: 1px solid #6ea8fe; }
.status-面试中  { background: #ffe5d0; color: #974a00; border: 1px solid #fd9e58; }
.status-已录用  { background: #d1f5df; color: #0a5c2a; border: 1px solid #43e97b; }
.status-不合适  { background: #fde8ea; color: #9b1b28; border: 1px solid #f5576c; }

/* 已读/未读 */
.read-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 700;
}

.read-tag.unread { background: #fde8ea; color: #c41230; border: 1px solid #f5576c; }
.read-tag.read   { background: #f0f1f3; color: #8b95a1; border: 1px solid #d0d5db; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body { padding: 8px 6px; }

    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    header { padding: 28px 18px 24px; }
    header h1 { font-size: 1.65em; }
    header p  { font-size: 0.88em; }

    .lang-switch { margin-left: 0; }

    .page { padding: 16px 12px; }
    .form-section { padding: 18px 14px; }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-submit, .btn-reset {
        max-width: 100%;
        width: 100%;
    }

    /* 管理页头部按钮换行 */
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .list-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .list-header button, .list-header .btn-export {
        flex: 1;
        min-width: 80px;
        text-align: center;
        font-size: 0.82em !important;
        padding: 8px 10px !important;
    }

    /* 搜索栏全宽 */
    .search-bar {
        flex-direction: column;
        gap: 8px;
    }
    .search-bar input,
    .search-bar select {
        width: 100%;
        min-width: unset;
    }
    .search-bar button {
        width: 100%;
    }

    /* 简历卡片 */
    .resume-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 10px;
    }
    .resume-card > div:first-child {
        width: 100%;
    }
    .resume-info {
        width: 100%;
        gap: 10px;
    }
    .resume-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .btn-view, .btn-delete {
        flex: 1;
        min-width: 0;
        padding: 9px 10px;
        font-size: 0.85em;
    }

    /* 弹窗全屏化 */
    .modal-content {
        margin: 0 auto;
        padding: 20px 14px;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 95vh;
    }

    .login-content {
        padding: 0 18px 28px;
        margin: 0 auto;
        max-height: 90vh;
        overflow-y: auto;
        min-height: 360px;
    }

    .login-modal.active {
        padding: 10px;
        align-items: center;
    }

    /* 统计看板折叠区域 */
    #dashboardPanel > div {
        flex-direction: column !important;
    }

    /* 批量操作栏 */
    #bulkActionBar {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 12px !important;
    }
    #bulkActionBar > div:last-child {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    #bulkActionBar button {
        flex: 1;
        min-width: 80px;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    body { padding: 0; }
    .container { border-radius: 0; box-shadow: none; }
    body::before { display: none; }
    header { padding: 22px 14px; }
    header h1 { font-size: 1.4em; }
    .page { padding: 12px 10px; }
    .form-section { padding: 14px 12px; }
    .form-section h2 { font-size: 1.15em; }
    /* 模态框底部抽屉样式（排除登录弹窗，只在 JS 打开时生效） */
    .modal:not(.login-modal) { align-items: flex-end; }
    .modal-content {
        border-radius: 20px 20px 0 0;
        padding: 18px 12px;
        margin: 0;
        max-height: 92vh;
    }

    /* 登录弹窗在小屏幕居中显示 */
    .login-modal.active {
        align-items: center;
        justify-content: center;
    }
    .login-content {
        padding: 0 16px 24px;
        margin: 0;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: var(--radius-lg);
        min-height: 320px;
    }

    /* 简历卡片更紧凑 */
    .resume-card { padding: 12px 10px; }
    .resume-text h3 { font-size: 1em; }
    .resume-text p { font-size: 0.85em; }
}

/* ===== 动画按钮激活态 ===== */
.btn-submit:active,
.btn-login:active {
    transform: scale(0.97) translateY(0);
}

/* ===== 自定义滚动条（全局）===== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f3f4ff; }
::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108,99,255,0.6); }
