/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", 
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 500;
    color: #333;
}

/* 用户下拉菜单 */
.user-menu-wrapper {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.user-menu-wrapper:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.status-badge {
    background: #fef3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #667eea;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    margin-right: 15px;
}

.back-btn:hover {
    background: #f0f2ff;
}

/* 主内容区 */
.main-content {
    padding: 30px 0;
}

/* 搜索栏 */
.search-bar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* AI提示框 */
.ai-tip {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #ffa940;
}

.ai-icon {
    font-size: 20px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ff4d4f;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* 岗位列表 */
.job-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.job-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.job-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.job-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.match-score {
    color: #52c41a;
    font-weight: 600;
    font-size: 14px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.job-department {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-requirements {
    margin-bottom: 15px;
}

.job-requirements h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

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

.tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.job-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    color: #999;
}

.stat-value {
    color: #333;
    font-weight: 600;
}

.stat-value.hot {
    color: #ff4d4f;
}

/* 岗位详情弹层 */
.job-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.job-detail-overlay.active {
    display: block;
}

.job-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.job-detail-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 480px;
    max-width: 100%;
    background: #f7f8fc;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.25s ease-out;
}

.job-detail-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-detail-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-detail-match {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 600;
}

.job-detail-body {
    padding: 20px 20px 90px;
    overflow-y: auto;
}

.job-detail-section {
    background: white;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.job-detail-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.job-detail-unit {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
    color: #4b5563;
}

.job-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f3f4ff;
    border-radius: 999px;
}

.job-detail-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.job-detail-major {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}

.job-detail-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    white-space: pre-wrap;
}

.job-detail-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-detail-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.job-detail-stat-row .label {
    color: #6b7280;
}

.job-detail-stat-row .value {
    font-weight: 600;
    color: #111827;
}

.job-detail-stat-row .value.hot {
    color: #ef4444;
}

.job-detail-progress {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.job-detail-progress-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #f3f4f6;
    overflow: hidden;
    margin-bottom: 6px;
}

.job-detail-progress-segment {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.job-detail-progress-segment.first {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.job-detail-progress-segment.second {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.job-detail-progress-legend {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.first {
    background: #fb923c;
}

.legend-dot.second {
    background: #3b82f6;
}

.job-detail-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 20px 18px;
    background: linear-gradient(to top, rgba(247, 248, 252, 0.98), rgba(247, 248, 252, 0.9));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.job-detail-footer .btn {
    width: 100%;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    color: #666;
}

.nav-item:hover {
    background: #f5f5f5;
}

.nav-item.active {
    color: #667eea;
    font-weight: 500;
}

.nav-item-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.nav-item-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-icon {
    font-size: 24px;
}

.nav-text {
    font-size: 12px;
}

/* 表单样式 */
.application-form {
    max-width: 800px;
    margin: 0 auto;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-label {
    font-size: 14px;
    color: #999;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 500;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.title-icon {
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #ff4d4f;
}

/* 双列表单布局 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #fafafa;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.upload-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.upload-area-small {
    padding: 24px;
}

.upload-result {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.file-icon {
    font-size: 32px;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 500;
    color: #333;
}

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

.file-remove {
    background: #ff4d4f;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.file-remove:hover {
    background: #ff7875;
}

.ai-parse-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f0f2ff;
    border-radius: 8px;
    color: #667eea;
}

/* 轻量提示文字与链接按钮 */
.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

.mbti-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-btn {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #667eea;
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    background: #f5f7ff;
    transition: all 0.2s;
}

.link-btn:hover {
    background: #667eea;
    color: #fff;
}

/* 提示框 */
.tip-box {
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-icon {
    font-size: 18px;
}

/* 志愿选择 */
.volunteer-group {
    position: relative;
}

.volunteer-select {
    cursor: pointer;
}

.volunteer-stats {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.stat-item .stat-label {
    color: #666;
}

.stat-item .stat-value {
    font-weight: 600;
    color: #333;
}

.stat-item.hot .stat-value {
    color: #ff4d4f;
}

.stat-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f2ff;
}

.btn-outline {
    background: white;
    color: #666;
    border: 2px solid #d9d9d9;
}

.btn-outline:hover {
    border-color: #999;
    color: #333;
}

/* 我的申请页面样式 */
.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-icon {
    font-size: 40px;
}

.status-info {
    flex: 1;
}

.status-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.status-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.my-volunteers,
.my-resume {
    margin-bottom: 30px;
}

.volunteer-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

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

.volunteer-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.volunteer-badge.first {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.volunteer-badge.second {
    background: #e6f7ff;
    color: #1890ff;
}

.match-badge {
    color: #52c41a;
    font-weight: 600;
    font-size: 14px;
}

.volunteer-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.volunteer-details {
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.detail-value.hot {
    color: #ff4d4f;
}

.volunteer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.pending {
    background: #ffa940;
    animation: pulse 2s infinite;
}

.status-dot.viewed {
    background: #1890ff;
}

.status-dot.locked {
    background: #52c41a;
}

.status-dot.rejected {
    background: #ff4d4f;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* AI解析动画 */
.ai-parsing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f2ff 0%, #e6f0ff 100%);
    border-radius: 15px;
    margin-top: 20px;
}

.ai-brain-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.ai-brain {
    font-size: 64px;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

.ai-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    bottom: 30%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.ai-status-text {
    font-size: 16px;
    font-weight: 500;
    color: #667eea;
    text-align: center;
}

.ai-progress-container {
    width: 100%;
    max-width: 400px;
}

.ai-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressShine 2s linear infinite;
    transition: width 0.3s ease;
}

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

.ai-progress-text {
    text-align: center;
    font-size: 14px;
    color: #667eea;
    margin-top: 10px;
}

.ai-steps {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.ai-step.active {
    color: #667eea;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.ai-step.completed {
    color: #52c41a;
}

.ai-step-icon {
    font-size: 20px;
}

.ai-step.active .ai-step-icon {
    animation: spin 1s linear infinite;
}

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

/* AI解析结果展示 */
.ai-parse-result {
    padding: 20px;
    background: #f6ffed;
    border: 2px solid #b7eb8f;
    border-radius: 12px;
    margin-top: 20px;
}

.ai-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #52c41a;
}

.ai-result-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-result-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.ai-result-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

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

.ai-result-tag {
    background: linear-gradient(135deg, #f0f2ff 0%, #e6f0ff 100%);
    color: #667eea;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d6e4ff;
}

.ai-result-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.resume-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.resume-file {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-text:hover {
    background: #f0f2ff;
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-tag {
    background: linear-gradient(135deg, #f0f2ff 0%, #e6f0ff 100%);
    color: #667eea;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ai-analysis {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f0f2ff;
    border-radius: 8px;
    color: #667eea;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .job-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .job-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .job-list {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .status-overview {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .progress-line {
        width: 40px;
    }
}

/* 岗位匹配动画样式 */
.matching-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.matching-animation {
    text-align: center;
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.matching-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.matching-icon {
    font-size: 64px;
    animation: matchingPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.matching-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.matching-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.6;
    animation: matchingParticleRotate 3s linear infinite;
}

.matching-particle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.matching-particle:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.75s;
}

.matching-particle:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.matching-particle:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 2.25s;
}

.matching-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    animation: matchingTextFade 2s ease-in-out infinite;
}

.matching-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.matching-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.matching-step.active {
    opacity: 1;
    background: linear-gradient(135deg, #f0f2ff 0%, #e6f0ff 100%);
    border-left: 4px solid #667eea;
    transform: translateX(5px);
}

.matching-step.completed {
    opacity: 1;
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
    border-left: 4px solid #52c41a;
}

.matching-step .step-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.matching-step span:last-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@keyframes matchingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes matchingParticleRotate {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
        opacity: 0.6;
    }
}

@keyframes matchingTextFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 初始设置页面样式 */
.section-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.position-preference-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-preference-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.position-preference-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.position-preference-item.selected {
    border-color: #667eea;
    background: #f0f2ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.position-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.position-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.position-info {
    flex: 1;
}

.position-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.position-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.position-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

.position-preference-item.recommended {
    border-color: #52c41a;
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9ff 100%);
}

.position-preference-item.recommended:hover {
    border-color: #52c41a;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}

.position-preference-item.recommended.selected {
    border-color: #52c41a;
    background: linear-gradient(135deg, #f6ffed 0%, #e6f7ff 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.category-icon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.recommend-badge {
    display: inline-block;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.recommend-hint {
    font-size: 13px;
    color: #52c41a;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(82, 196, 26, 0.1);
    border-left: 3px solid #52c41a;
    border-radius: 4px;
    line-height: 1.5;
}

/* 理性决策辅助弹窗 */
.advice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advice-modal-overlay.active {
    opacity: 1;
}

.advice-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.advice-modal-overlay.active .advice-modal {
    transform: translateY(0);
}

.advice-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.advice-modal-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.advice-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.advice-modal-body {
    padding: 30px;
}

.advice-advantages {
    margin-bottom: 25px;
}

.advice-advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f2ff 0%, #fef3cd 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
}

.advice-advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.advantage-content {
    flex: 1;
}

.advantage-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.advantage-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.advice-modal-text {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
    margin-bottom: 20px;
}

.advice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.advice-content {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
}

.advice-modal-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f6ffed;
    border-radius: 8px;
    border: 1px solid #b7eb8f;
}

.tip-icon {
    font-size: 18px;
}

.advice-modal-tip span:last-child {
    font-size: 14px;
    color: #52c41a;
    font-weight: 500;
    line-height: 1.5;
}

.advice-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
}

.advice-modal-footer .btn {
    min-width: 150px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .advice-modal {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .advice-modal-header {
        padding: 20px;
    }
    
    .advice-modal-body {
        padding: 20px;
    }
    
    .advice-advantage-item {
        padding: 12px;
    }
    
    .advice-modal-text {
        padding: 15px;
    }
}

