* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 24px;
    color: #1a5d4c;
}

.btn-primary {
    background: #1a5d4c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0e3d32;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-sm {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.btn-sm:hover {
    background: #e2e8f0;
}

.btn-back {
    background: none;
    border: none;
    color: #1a5d4c;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
}

.btn-link {
    background: none;
    border: none;
    color: #1a5d4c;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    font-size: 14px;
}

/* 职位网格 */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.job-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.job-client {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.job-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: #e2e8f0;
}

.job-status.published {
    background: #dcfce7;
    color: #166534;
}

.job-candidate-count {
    color: #64748b;
}

/* 版本栏 */
.version-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.version-buttons {
    display: flex;
    gap: 8px;
}

.version-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.version-btn.active {
    background: #1a5d4c;
    color: white;
    border-color: #1a5d4c;
}

/* Tab */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: #1a5d4c;
    font-weight: 500;
    border-bottom: 2px solid #1a5d4c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

/* JD内容 */
.jd-content {
    padding: 20px;
}

.jd-pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    margin: 0;
}

/* 关键词网格 */
.keyword-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.keyword-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.keyword-box h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.keyword-box.required h4 { color: #dc2626; }
.keyword-box.plus h4 { color: #16a34a; }
.keyword-box.minus h4 { color: #eab308; }
.keyword-box.veto h4 { color: #ef4444; }

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

.tag {
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
}

/* BOSS信息 */
.boss-info {
    padding: 20px;
}

.boss-row {
    margin-bottom: 16px;
}

.boss-row strong {
    display: inline-block;
    width: 100px;
}

/* 邀约话术 */
.invitation-content {
    padding: 20px;
}

.invitation-text {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.6;
}

/* 候选人表格 */
.candidates-table {
    width: 100%;
    border-collapse: collapse;
}

.candidates-table th,
.candidates-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.candidates-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
}

.score-high { color: #16a34a; font-weight: 600; }
.score-mid { color: #eab308; }
.score-low { color: #ef4444; }

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
}

.modal-large {
    width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header .close {
    cursor: pointer;
    font-size: 24px;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}