* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f5f6fa; color: #2d3436; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { font-size: 24px; font-weight: 700; background: linear-gradient(135deg, #4a6cf7, #6c63ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
nav a { font-size: 14px; color: #636e72; transition: color .2s; }
nav a:hover, nav a.active { color: #4a6cf7; }
.btn { display: inline-block; padding: 8px 22px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; font-weight: 500; transition: all .2s; }
.btn-primary { background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; box-shadow: 0 2px 8px rgba(74,108,247,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(74,108,247,.4); }
.btn-outline { border: 1.5px solid #4a6cf7; color: #4a6cf7; background: transparent; }
.btn-outline:hover { background: #f0f3ff; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-danger { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff; }
.btn-success { background: linear-gradient(135deg, #00b894, #00a381); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #fdcb6e, #f39c12); color: #fff; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #4a6cf7 0%, #6c63ff 50%, #a29bfe 100%); color: #fff; padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; }
.hero p { font-size: 18px; opacity: .85; margin-bottom: 36px; }
.search-box { display: flex; max-width: 640px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.search-box input { flex: 1; padding: 16px 22px; border: none; font-size: 16px; outline: none; }
.search-box button { padding: 16px 36px; background: #ff6b6b; color: #fff; border: none; cursor: pointer; font-size: 16px; font-weight: 500; transition: background .2s; }
.search-box button:hover { background: #ee5a24; }

/* ===== Sections ===== */
.section { margin: 48px auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 22px; font-weight: 600; }
.section-header a { color: #4a6cf7; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.section-header a::after { content: '→'; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #edf2f7; transition: all .25s; cursor: pointer; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); border-color: #d5e0f5; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; color: #2d3436; }
.card .company { color: #636e72; font-size: 13px; margin-bottom: 10px; }
.card .company:hover { color: #4a6cf7; }
.card .salary { color: #ff6b6b; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card .tags span { background: #f0f3ff; padding: 4px 12px; border-radius: 6px; font-size: 12px; color: #636e72; }
.card .time { font-size: 12px; color: #b2bec3; margin-top: 12px; }

/* ===== Company Grid ===== */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.company-card { background: #fff; border-radius: 12px; padding: 28px 20px; text-align: center; border: 1px solid #edf2f7; transition: all .25s; }
.company-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); border-color: #d5e0f5; }
.company-logo { width: 64px; height: 64px; background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; font-weight: 700; }
.company-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.company-card .meta { color: #636e72; font-size: 13px; }

/* ===== Footer ===== */
footer { background: #2d3436; color: #b2bec3; padding: 40px 0; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col p, .footer-col a { font-size: 13px; color: #b2bec3; display: block; margin-bottom: 6px; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #444; font-size: 13px; }

/* ===== Forms ===== */
.form-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, #f5f6fa 0%, #e8ecf8 100%); }
.form-box { width: 420px; background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.form-box h2 { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: #636e72; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 16px; border: 1.5px solid #e0e4ec; border-radius: 10px; font-size: 14px; transition: border .2s; background: #fafbfc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #4a6cf7; background: #fff; box-shadow: 0 0 0 3px rgba(74,108,247,.1); }
.form-group textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.form-tip { text-align: center; margin-top: 20px; font-size: 14px; color: #636e72; }
.form-tip a { color: #4a6cf7; font-weight: 500; }
.form-btn { width: 100%; padding: 12px; font-size: 16px; margin-top: 8px; }

/* ===== Alert ===== */
.alert { padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.alert-error { background: #fff5f5; color: #e74c3c; border: 1px solid #fed7d7; }
.alert-success { background: #f0fff4; color: #27ae60; border: 1px solid #c6f6d5; }

/* ===== Tab Switch ===== */
.tab-switch { display: flex; background: #f0f2f5; border-radius: 10px; padding: 3px; margin-bottom: 24px; }
.tab-switch div { flex: 1; text-align: center; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: #636e72; transition: all .2s; }
.tab-switch div.active { background: #fff; color: #4a6cf7; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ===== Detail Page ===== */
.detail-page { max-width: 900px; margin: 0 auto; padding: 32px 20px; }
.detail-header { background: #fff; border-radius: 16px; padding: 32px; margin-bottom: 20px; }
.detail-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.detail-header .subtitle { color: #636e72; font-size: 14px; margin-bottom: 16px; }
.detail-header .salary { color: #ff6b6b; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.detail-header .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-header .tags span { background: #f0f3ff; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #636e72; }
.detail-section { background: #fff; border-radius: 16px; padding: 28px 32px; margin-bottom: 20px; }
.detail-section h3 { font-size: 17px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.detail-section p, .detail-section div { font-size: 14px; line-height: 1.8; color: #555; }

/* ===== Company Detail ===== */
.company-detail-header { background: #fff; border-radius: 16px; padding: 32px; display: flex; gap: 24px; align-items: center; margin-bottom: 20px; }
.company-detail-logo { width: 80px; height: 80px; background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; flex-shrink: 0; }
.company-detail-info h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.company-detail-info .meta { color: #636e72; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== User Layout ===== */
.user-layout { display: flex; max-width: 1200px; margin: 30px auto; gap: 24px; padding: 0 20px; min-height: calc(100vh - 200px); }
.user-sidebar { width: 220px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.04); height: fit-content; }
.user-sidebar .user-avatar { width: 56px; height: 56px; background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 8px auto 12px; font-weight: 700; }
.user-sidebar .user-name { text-align: center; font-weight: 600; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.user-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 2px; color: #636e72; transition: all .2s; }
.user-sidebar a:hover, .user-sidebar a.active { background: #f0f3ff; color: #4a6cf7; }
.user-sidebar a .badge { margin-left: auto; background: #ff6b6b; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; }
.user-content { flex: 1; }
.user-content .page-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.content-card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; font-size: 14px; white-space: nowrap; }
th { background: #f8f9fc; font-weight: 600; color: #636e72; font-size: 13px; }
td { border-bottom: 1px solid #f0f2f5; }
tr:hover td { background: #fafbfc; }
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-pending { background: #fff8e1; color: #f39c12; }
.status-viewed { background: #e3f2fd; color: #4a6cf7; }
.status-approved { background: #e8f5e9; color: #27ae60; }
.status-rejected { background: #ffebee; color: #e74c3c; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.pagination span { padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; background: #fff; border: 1px solid #e0e4ec; transition: all .2s; }
.pagination span:hover { border-color: #4a6cf7; color: #4a6cf7; }
.pagination span.active { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }

/* ===== Job Form ===== */
.job-form { max-width: 700px; }
.job-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== Chat ===== */
.chat-page { max-width: 1000px; margin: 30px auto; padding: 0 20px; height: calc(100vh - 140px); }
.chat-wrap { display: flex; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.chat-sidebar { width: 320px; border-right: 1px solid #f0f2f5; display: flex; flex-direction: column; }
.chat-sidebar-title { padding: 18px 20px; font-weight: 600; font-size: 16px; border-bottom: 1px solid #f0f2f5; }
.chat-sidebar-list { flex: 1; overflow-y: auto; }
.chat-sidebar-item { padding: 16px 20px; cursor: pointer; border-bottom: 1px solid #f8f8f8; display: flex; align-items: center; gap: 12px; transition: background .15s; }
.chat-sidebar-item:hover { background: #f8f9fc; }
.chat-sidebar-item.active { background: #f0f3ff; }
.chat-sidebar-item .avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex-shrink: 0; }
.chat-sidebar-item .chat-info { flex: 1; min-width: 0; }
.chat-sidebar-item .chat-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.chat-sidebar-item .chat-preview { font-size: 12px; color: #b2bec3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sidebar-item .chat-time { font-size: 11px; color: #b2bec3; flex-shrink: 0; }
.chat-sidebar-item .unread-dot { width: 8px; height: 8px; background: #ff6b6b; border-radius: 50%; flex-shrink: 0; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 16px 24px; border-bottom: 1px solid #f0f2f5; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.chat-messages { flex: 1; padding: 24px; overflow-y: auto; }
.chat-msg { margin-bottom: 18px; max-width: 75%; }
.chat-msg.self { margin-left: auto; }
.chat-msg .bubble { padding: 12px 18px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.chat-msg.self .bubble { background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.other .bubble { background: #f0f2f5; border-bottom-left-radius: 4px; }
.chat-msg .time { font-size: 11px; color: #b2bec3; margin-top: 4px; padding: 0 4px; }
.chat-msg.self .time { text-align: right; }
.chat-input-wrap { display: flex; padding: 16px 24px; border-top: 1px solid #f0f2f5; gap: 12px; align-items: center; }
.chat-input-wrap input { flex: 1; padding: 12px 18px; border: 1.5px solid #e0e4ec; border-radius: 10px; font-size: 14px; outline: none; transition: border .2s; }
.chat-input-wrap input:focus { border-color: #4a6cf7; }
.chat-input-wrap button { padding: 12px 28px; background: linear-gradient(135deg, #4a6cf7, #6c63ff); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .2s; }
.chat-input-wrap button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(74,108,247,.3); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #b2bec3; font-size: 15px; flex-direction: column; gap: 12px; }
.chat-empty .icon { font-size: 48px; opacity: .5; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 60px; color: #b2bec3; }
.loading::after { content: '...'; animation: dots 1.5s infinite; }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #b2bec3; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* ===== Page Header ===== */
.page-header { background: #fff; padding: 24px 0; border-bottom: 1px solid #f0f2f5; }
.page-header h1 { font-size: 22px; font-weight: 600; }
.page-header .breadcrumb { font-size: 13px; color: #b2bec3; margin-top: 4px; }
.page-header .breadcrumb a { color: #636e72; }

/* ===== Slider ===== */
.card-grid-wrapper, .company-grid-wrapper { overflow: hidden; position: relative; }
.card-grid.sliding, .company-grid.sliding { display: flex; gap: 18px; transition: transform .35s ease; will-change: transform; }
.slider-controls { display: flex; align-items: center; gap: 8px; }
.slider-controls a { color: #4a6cf7; font-size: 14px; }
.slide-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #e0e4ec; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .2s; color: #636e72; }
.slide-btn:hover { border-color: #4a6cf7; color: #4a6cf7; background: #f0f3ff; }
