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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.app {
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(135deg, #0052d9, #00297a);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-header h1 { font-size: 22px; font-weight: 600; }
.subtitle { font-size: 13px; opacity: 0.8; }

.nav-bar {
    background: #fff;
    display: flex;
    padding: 0 40px;
    border-bottom: 1px solid #e5e7eb;
    gap: 4px;
}
.nav-item {
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-item:hover { color: #0052d9; }
.nav-item.active {
    color: #0052d9;
    border-bottom-color: #0052d9;
    font-weight: 600;
}

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.home-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,82,217,0.1);
    border-color: #0052d9;
}
.card-icon { font-size: 28px; }
.card-num { font-size: 32px; font-weight: 700; color: #0052d9; }
.card-label { font-size: 14px; color: #666; }

.workflow-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
}
.workflow-steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.step {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.step-num {
    width: 32px;
    height: 32px;
    background: #0052d9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step-content h3 { font-size: 14px; margin-bottom: 4px; }
.step-content p { font-size: 12px; color: #666; line-height: 1.5; }
.step-arrow {
    font-size: 22px;
    color: #ccc;
    padding-top: 18px;
    flex-shrink: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-header h2 { font-size: 20px; }
.section-actions { display: flex; gap: 8px; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.btn-primary { background: #0052d9; color: #fff; }
.btn-primary:hover { background: #0040b0; }
.btn-secondary { background: #f0f2f5; color: #333; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #e5e7eb; }
.btn-success { background: #00a870; color: #fff; }
.btn-success:hover { background: #008a5c; }
.btn-danger { background: #e34d59; color: #fff; }
.btn-danger:hover { background: #c93540; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.form { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #e5e7eb; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: #444; }
.required { color: #e34d59; }
.form-group input,
.form-group select,
.form-group textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #0052d9; box-shadow: 0 0 0 2px rgba(0,82,217,0.15); }
.form-section { margin-top: 24px; }
.form-section h3 { font-size: 16px; margin-bottom: 8px; }
.form-section textarea { width: 100%; }
.form-hint { font-size: 12px; color: #999; margin-bottom: 8px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: #e3f9e9; color: #008a5c; border: 1px solid #b7ebc9; }
.flash-error { background: #fde8e8; color: #c93540; border: 1px solid #f5c6cb; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }

.table-wrapper { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f9fafb; padding: 12px 16px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #e5e7eb; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.data-table tr:hover td { background: #f9fafb; }
.link { color: #0052d9; text-decoration: none; }
.link:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #e3f9e9; color: #008a5c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fde8e8; color: #c93540; }
.badge-muted { background: #f3f4f6; color: #6b7280; }
.badge-ai { background: #ede9fe; color: #6d28d9; font-weight: 600; }
.badge-confirmed { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.ai-notice { display:flex; align-items:center; gap:16px; background:#fffbeb; border:2px solid #fcd34d; border-radius:10px; padding:16px 20px; margin-bottom:20px; }
.ai-notice-icon { font-size:24px; color:#d97706; }
.ai-notice strong { display:block; font-size:14px; color:#92400e; margin-bottom:4px; }
.ai-notice p { font-size:13px; color:#78716c; }
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state p { margin-bottom: 16px; }

.job-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
    font-size: 14px;
    color: #666;
}
.jd-content { background: #fff; border-radius: 12px; padding: 30px; border: 1px solid #e5e7eb; }
.jd-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.jd-section h3 { font-size: 16px; margin-bottom: 12px; color: #0052d9; }
.jd-section ol, .jd-section ul { padding-left: 20px; }
.jd-section li { margin-bottom: 6px; font-size: 14px; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table td {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.info-table td:first-child,
.info-table td:nth-child(3) { color: #888; width: 80px; font-size: 13px; }

.raw-input {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-avatar {
    width: 56px;
    height: 56px;
    background: #0052d9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.profile-header h2 { font-size: 20px; }
.profile-header p { font-size: 13px; color: #888; margin-top: 2px; }

.exp-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.exp-header { font-size: 14px; font-weight: 600; color: #333; }
.exp-role { font-size: 14px; color: #0052d9; margin-bottom: 6px; }
.duty-list { padding-left: 18px; }
.duty-list li { font-size: 13px; color: #555; margin-bottom: 3px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #0052d9;
    border-radius: 14px;
    font-size: 13px;
}

.match-summary {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    text-align: center;
}
.match-pair { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 20px; }
.match-item { text-align: center; }
.match-item .label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.match-item strong { display: block; font-size: 16px; }
.match-item .sub { font-size: 12px; color: #888; }
.match-vs { font-size: 18px; color: #ccc; font-weight: 700; }
.total-score { margin-bottom: 16px; }
.big-score { font-size: 56px; font-weight: 800; color: #0052d9; line-height: 1; }
.score-label { font-size: 14px; color: #888; margin-top: 4px; }
.match-summary-text { font-size: 15px; color: #555; max-width: 500px; margin: 0 auto; }

.score { font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.score-high { color: #008a5c; }
.score-mid { color: #b45309; }
.score-low { color: #e34d59; }

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.dim-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.dim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.dim-weight { font-size: 11px; color: #aaa; }
.dim-score { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.dim-reason { font-size: 12px; color: #888; line-height: 1.4; }

.review-form { text-align: left; margin-top: 20px; }
.review-form textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 14px; }

.alert { padding: 20px; border-radius: 10px; margin-bottom: 16px; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #e3f9e9; border: 1px solid #b7ebc9; color: #008a5c; }
.alert h3 { font-size: 16px; margin-bottom: 8px; }
.alert p { font-size: 14px; margin-bottom: 8px; }

.muted { color: #999; font-size: 13px; }

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .workflow-steps { flex-direction: column; }
    .step-arrow { display: none; }
    .dimension-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .nav-bar { overflow-x: auto; padding: 0 16px; }
    .main-content { padding: 20px 16px; }
}
