/* ===== 全局样式 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --primary:#4f46e5; --primary-dark:#4338ca; --primary-light:#818cf8;
    --accent:#f59e0b; --success:#10b981; --danger:#ef4444; --warning:#f97316;
    --text:#1f2937; --text-light:#6b7280; --bg:#f8fafc; --white:#ffffff;
    --border:#e5e7eb; --shadow:0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg:0 10px 40px rgba(0,0,0,0.12); --radius:12px; --radius-sm:8px;
}
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; color:var(--text); background:var(--bg); line-height:1.6; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== 导航栏 ===== */
.navbar { background:var(--white); box-shadow:var(--shadow); position:fixed; top:0; left:0; right:0; z-index:1000; height:64px; }
.nav-container { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:100%; }
.logo { display:flex; align-items:center; gap:8px; font-size:22px; font-weight:700; color:var(--primary); }
.logo i { font-size:24px; }
.nav-links { display:flex; gap:4px; }
.nav-links a { padding:8px 16px; border-radius:var(--radius-sm); font-size:14px; font-weight:500; color:var(--text-light); transition:all .2s; }
.nav-links a:hover, .nav-links a.active { background:var(--primary); color:var(--white); }
.nav-right { display:flex; align-items:center; gap:12px; }
.btn-login { padding:8px 20px; background:var(--primary); color:var(--white); border:none; border-radius:var(--radius-sm); font-size:14px; cursor:pointer; transition:background .2s; }
.btn-login:hover { background:var(--primary-dark); }

.user-area { position:relative; cursor:pointer; padding:6px 12px; border-radius:var(--radius-sm); display:flex; align-items:center; gap:8px; }
.user-area:hover { background:var(--bg); }
.user-dropdown { display:none; position:absolute; top:100%; right:0; background:var(--white); border-radius:var(--radius-sm); box-shadow:var(--shadow-lg); min-width:160px; overflow:hidden; margin-top:4px; z-index:100; }
.user-area:hover .user-dropdown { display:block; }
.user-dropdown a { display:block; padding:10px 16px; font-size:14px; color:var(--text); transition:background .2s; }
.user-dropdown a:hover { background:var(--bg); }
.user-dropdown a i { margin-right:8px; width:16px; }
.user-badge { background:linear-gradient(135deg,#f59e0b,#ef4444); color:white; font-size:10px; font-weight:700; padding:2px 8px; border-radius:10px; }
.username { font-size:14px; font-weight:500; }

/* ===== Hero ===== */
.hero { margin-top:64px; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); padding:80px 20px; text-align:center; color:white; }
.hero h1 { font-size:42px; margin-bottom:16px; }
.hero .highlight { color:#fbbf24; }
.hero p { font-size:18px; opacity:.9; margin-bottom:32px; }
.search-box { display:flex; max-width:560px; margin:0 auto 40px; background:var(--white); border-radius:50px; overflow:hidden; box-shadow:var(--shadow-lg); }
.search-box input { flex:1; padding:14px 24px; border:none; font-size:16px; outline:none; color:var(--text); }
.search-box button { padding:14px 28px; background:var(--primary); color:white; border:none; font-size:16px; cursor:pointer; transition:background .2s; }
.search-box button:hover { background:var(--primary-dark); }
.hero-stats { display:flex; justify-content:center; gap:60px; }
.stat-num { display:block; font-size:32px; font-weight:700; }
.stat-label { font-size:14px; opacity:.8; }

/* ===== 分类卡片 ===== */
.categories { padding:80px 0; }
.section-title { text-align:center; font-size:28px; margin-bottom:12px; }
.section-desc { text-align:center; color:var(--text-light); margin-bottom:40px; }
.category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.category-card { background:var(--white); border-radius:var(--radius); padding:32px; text-align:center; box-shadow:var(--shadow); transition:all .3s; }
.category-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.category-card .card-icon { width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:28px; color:white; }
.category-card.state .card-icon { background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
.category-card.public .card-icon { background:linear-gradient(135deg,#ef4444,#b91c1c); }
.category-card.private .card-icon { background:linear-gradient(135deg,#10b981,#047857); }
.category-card h3 { font-size:20px; margin-bottom:8px; }
.category-card p { color:var(--text-light); font-size:14px; margin-bottom:12px; }
.card-count { display:inline-block; background:var(--bg); padding:4px 12px; border-radius:20px; font-size:13px; color:var(--primary); font-weight:500; }

/* ===== 岗位信息卡片流 ===== */
.job-cards-container { display:flex; flex-direction:column; gap:12px; }
.job-card { background:var(--white); border-radius:var(--radius); padding:20px 24px; box-shadow:var(--shadow); transition:all .2s; position:relative; border-left:4px solid transparent; }
.job-card:hover { box-shadow:var(--shadow-lg); transform:translateX(2px); }
.job-card.urgent { border-left-color:var(--danger); }
.job-card.state-card { border-left-color:#3b82f6; }
.job-card.public-card { border-left-color:#ef4444; }
.job-card.private-card { border-left-color:#10b981; }

.job-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.job-card-header h3 { font-size:17px; font-weight:600; }
.job-card-header h3 a { color:var(--text); transition:color .2s; }
.job-card-header h3 a:hover { color:var(--primary); }
.job-card-actions { display:flex; gap:8px; align-items:center; }
.btn-bookmark { background:none; border:1px solid var(--border); border-radius:6px; padding:4px 10px; cursor:pointer; font-size:14px; color:var(--text-light); transition:all .2s; }
.btn-bookmark.active { color:#ef4444; border-color:#ef4444; background:#fff1f2; }
.btn-bookmark:hover { border-color:var(--primary); color:var(--primary); }

.job-card-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.meta-tag { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:14px; background:var(--bg); color:var(--text-light); }
.meta-tag i { font-size:11px; }

.job-card-info { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:6px 16px; font-size:15px; color:var(--text-light); margin-bottom:10px; }
.job-card-info span { display:flex; align-items:center; gap:4px; }
.job-card-info .label { color:var(--text-light); min-width:60px; }

.job-card-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px solid var(--border); }
.job-card-links { display:flex; gap:8px; }
.btn-apply { padding:6px 16px; background:var(--primary); color:white; border:none; border-radius:6px; font-size:13px; cursor:pointer; transition:background .2s; }
.btn-apply:hover { background:var(--primary-dark); }
.btn-copy-code { padding:6px 16px; background:var(--accent); color:white; border:none; border-radius:6px; font-size:13px; cursor:pointer; }
.btn-copy-code:hover { background:#d97706; }
.progress-select { padding:6px 12px; border:1px solid var(--border); border-radius:8px; font-size:13px; font-weight:500; outline:none; cursor:pointer; appearance:auto; min-width:90px; }
.progress-select:focus { border-color:var(--primary); }
.progress-select.has-progress { color:white; border:none; border-radius:16px; font-weight:600; padding:6px 14px; }
.progress-select.progress-已投递 { background:#3b82f6; }
.progress-select.progress-待笔试 { background:#f59e0b; }
.progress-select.progress-面试中 { background:#8b5cf6; }
.progress-select.progress-已拿Offer { background:#10b981; }
.progress-select.progress-已挂 { background:#ef4444; }

/* 状态标签 */
.status-tag { padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.status-active { background:#d1fae5; color:#047857; }
.status-progress { background:#fef3c7; color:#92400e; }
.status-closed { background:#fee2e2; color:#b91c1c; }
.status-info { background:#e0e7ff; color:#3730a3; }

/* 倒计时紧急标签 */
.deadline-urgent { color:var(--danger); font-weight:700; font-size:12px; display:inline-flex; align-items:center; gap:4px; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.deadline-urgent.blinking { animation:blink 1s infinite; }

/* ===== 筛选栏 ===== */
.filter-bar { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; align-items:center; }
.filter-bar select, .filter-bar input[type="text"] { padding:10px 16px; border:1px solid var(--border); border-radius:var(--radius-sm); font-size:14px; outline:none; background:var(--white); }
.filter-bar select:focus, .filter-bar input[type="text"]:focus { border-color:var(--primary); }
.filter-bar button { padding:10px 20px; background:var(--primary); color:white; border:none; border-radius:var(--radius-sm); font-size:14px; cursor:pointer; }
.filter-group { display:flex; gap:6px; flex-wrap:wrap; }
.filter-chip { padding:6px 14px; border:1px solid var(--border); border-radius:20px; font-size:13px; cursor:pointer; background:var(--white); transition:all .2s; }
.filter-chip:hover, .filter-chip.active { background:var(--primary); color:white; border-color:var(--primary); }
.result-count { font-size:13px; color:var(--text-light); margin-left:auto; }

/* ===== 旧表格（保留兼容） ===== */
.job-table-wrapper { background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.job-table { width:100%; border-collapse:collapse; }
.job-table th { background:var(--bg); padding:14px 16px; text-align:left; font-size:13px; font-weight:600; color:var(--text-light); }
.job-table td { padding:14px 16px; border-top:1px solid var(--border); font-size:14px; }
.job-table tr:hover { background:#f9fafb; }
.tag { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; font-weight:500; }
.tag-state { background:#dbeafe; color:#1d4ed8; }
.tag-public { background:#fee2e2; color:#b91c1c; }
.tag-private { background:#d1fae5; color:#047857; }
.btn-detail { padding:6px 16px; background:var(--primary); color:white; border:none; border-radius:6px; font-size:13px; cursor:pointer; transition:background .2s; }
.btn-detail:hover { background:var(--primary-dark); }

/* ===== 分页 ===== */
.pagination { display:flex; justify-content:center; gap:8px; margin-top:32px; }
.pagination button { padding:8px 14px; border:1px solid var(--border); background:var(--white); border-radius:6px; cursor:pointer; font-size:14px; transition:all .2s; }
.pagination button.active, .pagination button:hover { background:var(--primary); color:white; border-color:var(--primary); }
.pagination button:disabled { opacity:.5; cursor:not-allowed; }

/* ===== 日历组件 ===== */
.calendar-section { margin:30px 0; }
.calendar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.calendar-header h3 { font-size:20px; }
.calendar-nav { display:flex; gap:8px; }
.calendar-nav button { padding:6px 14px; border:1px solid var(--border); background:var(--white); border-radius:6px; cursor:pointer; font-size:14px; }
.calendar-nav h3 { margin:0 12px; font-size:20px; white-space:nowrap; }
.calendar-nav button:hover { background:var(--bg); }
.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; background:var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.calendar-cell { background:var(--white); padding:8px; min-height:80px; font-size:13px; }
.calendar-cell .day-num { font-weight:600; margin-bottom:4px; color:var(--text-light); }
.calendar-cell.today .day-num { color:var(--primary); font-weight:700; }
.calendar-cell.weekend { background:#fafafa; }
.calendar-cell.past-date { opacity:0.4; }
.calendar-cell.past-date .day-num { color:#bbb; }
.cal-event { display:block; padding:2px 6px; margin-bottom:2px; border-radius:4px; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.cal-event.deadline-event { background:#fee2e2; color:#b91c1c; }
.cal-event.other-event { background:#dbeafe; color:#1d4ed8; }
.cal-day-header { background:var(--bg); padding:8px; text-align:center; font-size:13px; font-weight:600; color:var(--text-light); }


/* ===== 页脚 ===== */
.footer { background:#1f2937; color:#d1d5db; padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; padding-bottom:40px; }
.footer-col h4 { color:white; margin-bottom:16px; font-size:16px; }
.footer-col p { font-size:14px; line-height:1.8; }
.footer-col a { display:block; padding:4px 0; font-size:14px; color:#9ca3af; transition:color .2s; }
.footer-col a:hover { color:white; }
.footer-bottom { border-top:1px solid #374151; padding:20px 0; text-align:center; font-size:13px; color:#9ca3af; }

/* ===== 登录弹窗 ===== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:2000; align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.modal { background:var(--white); border-radius:var(--radius); padding:40px; width:400px; max-width:90%; position:relative; animation:slideUp .3s ease; }
@keyframes slideUp { from{transform:translateY(20px);opacity:0;} to{transform:translateY(0);opacity:1;} }
.modal-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:24px; color:var(--text-light); cursor:pointer; }
.modal-tabs { display:flex; margin-bottom:24px; border-bottom:2px solid var(--border); }
.tab { flex:1; padding:12px; background:none; border:none; font-size:16px; font-weight:500; color:var(--text-light); cursor:pointer; position:relative; transition:color .2s; }
.tab.active { color:var(--primary); }
.tab.active::after { content:''; position:absolute; bottom:-2px; left:0; right:0; height:2px; background:var(--primary); }
.form-group { display:flex; align-items:center; border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:16px; padding:0 12px; transition:border-color .2s; }
.form-group:focus-within { border-color:var(--primary); }
.form-group label { color:var(--text-light); margin-right:8px; }
.form-group input { flex:1; padding:12px 0; border:none; outline:none; font-size:14px; }
.btn-submit { width:100%; padding:14px; background:var(--primary); color:white; border:none; border-radius:var(--radius-sm); font-size:16px; font-weight:500; cursor:pointer; margin-top:8px; transition:background .2s; }
.btn-submit:hover { background:var(--primary-dark); }
.form-tip { text-align:center; font-size:12px; color:var(--text-light); margin-top:12px; }

/* ===== Toast ===== */
.toast { position:fixed; top:80px; left:50%; transform:translateX(-50%) translateY(-20px); background:var(--text); color:white; padding:12px 24px; border-radius:var(--radius-sm); font-size:14px; z-index:3000; opacity:0; transition:all .3s; pointer-events:none; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success { background:var(--success); }
.toast.error { background:var(--danger); }

/* ===== 页面通用 ===== */
.page-header { margin-top:64px; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); padding:40px 20px; text-align:center; color:white; }
.page-header h1 { font-size:28px; margin-bottom:8px; }
.page-header p { opacity:.85; }
.page-content { max-width:1200px; margin:0 auto; padding:30px 20px; }

/* ===== 后台管理 ===== */
.admin-layout { display:flex; margin-top:64px; min-height:calc(100vh - 64px); }
.admin-sidebar { width:240px; background:#1f2937; padding:20px 0; flex-shrink:0; }
.admin-sidebar a { display:flex; align-items:center; gap:10px; padding:12px 24px; color:#9ca3af; font-size:14px; transition:all .2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background:rgba(255,255,255,.1); color:white; }
.admin-sidebar a i { width:20px; }
.admin-main { flex:1; padding:24px; background:var(--bg); overflow-y:auto; }
.admin-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.admin-header h2 { font-size:22px; }
.btn-add { padding:10px 20px; background:var(--success); color:white; border:none; border-radius:var(--radius-sm); font-size:14px; cursor:pointer; }
.stat-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat-card { background:var(--white); border-radius:var(--radius-sm); padding:20px; box-shadow:var(--shadow); }
.stat-card h4 { font-size:13px; color:var(--text-light); margin-bottom:8px; }
.stat-card .value { font-size:28px; font-weight:700; color:var(--primary); }
.admin-table { width:100%; background:var(--white); border-radius:var(--radius-sm); box-shadow:var(--shadow); border-collapse:collapse; }
.admin-table th { background:var(--bg); padding:12px 16px; text-align:left; font-size:13px; color:var(--text-light); font-weight:600; }
.admin-table td { padding:12px 16px; border-top:1px solid var(--border); font-size:14px; }
.btn-sm { padding:4px 12px; border:none; border-radius:4px; font-size:12px; cursor:pointer; margin-right:4px; }
.btn-edit { background:#dbeafe; color:#1d4ed8; }
.btn-delete { background:#fee2e2; color:#b91c1c; }

/* ===== 表单弹窗 ===== */
.form-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:2000; align-items:center; justify-content:center; }
.form-modal.show { display:flex; }
.form-modal .modal { width:500px; }
.form-row { margin-bottom:16px; }
.form-row label { display:block; font-size:14px; font-weight:500; margin-bottom:6px; }
.form-row input, .form-row select, .form-row textarea { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:6px; font-size:14px; outline:none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color:var(--primary); }
.form-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:24px; }
.form-actions button { padding:10px 24px; border:none; border-radius:6px; font-size:14px; cursor:pointer; }
.form-actions .btn-cancel { background:var(--bg); color:var(--text); }
.form-actions .btn-save { background:var(--primary); color:white; }

/* ===== 个人中心 ===== */
.profile-card { background:var(--white); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow); margin-bottom:24px; }
.profile-card h3 { margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.profile-info { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.profile-info .info-item { font-size:14px; }
.profile-info .info-item span { color:var(--text-light); margin-right:8px; }

/* ===== 收藏管理 ===== */
.bookmarks-section { margin-top:30px; }
.bookmark-count { display:inline-flex; align-items:center; gap:4px; background:var(--bg); padding:4px 10px; border-radius:20px; font-size:13px; color:var(--primary); }

/* ===== 响应式 ===== */
@media (max-width:768px) {
    .nav-links { display:none; }
    .hero h1 { font-size:28px; }
    .hero-stats { flex-direction:column; gap:16px; }
    .category-grid { grid-template-columns:1fr; }
    .pricing-grid { grid-template-columns:1fr; }
    .pricing-card.featured { transform:none; }
    .footer-grid { grid-template-columns:1fr; }
    .stat-cards { grid-template-columns:repeat(2,1fr); }
    .admin-sidebar { width:60px; }
    .admin-sidebar a span { display:none; }
    .job-card-info { grid-template-columns:1fr; }
    .calendar-grid { font-size:11px; }
    .calendar-cell { min-height:50px; padding:4px; }
}
