/* Sleekpace 前台样式 v2：白底、品牌蓝、橙色强调。仅桌面端。 */
:root {
  color-scheme: light;
  --bg: #f5f7fa; --surface: #fff; --surface-2: #f0f3f8;
  --ink: #111827; --ink-2: #4b5563; --ink-3: #6b7280;
  --line: #e5e7eb; --line-2: #d1d5db;
  --brand: #1d4ed8; --brand-hover: #1e40af; --brand-soft: #eff4ff;
  --accent: #ea580c; --success: #15803d; --danger: #b91c1c;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06); --shadow: 0 4px 16px rgba(17,24,39,.08);
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.container { width: min(100% - 64px, 1200px); margin-inline: auto; }
.preline { white-space: pre-line; color: var(--ink-2); }

/* 按钮 */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius); font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-hover); }
.button-quiet { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.button-quiet:hover { border-color: var(--brand); color: var(--brand); }
.button-coral { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.button-light { background: #fff; color: var(--brand); }
.button-light:hover { background: #eaf0ff; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.text-link { color: var(--brand); font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.icon-button { display: none; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 40px; height: 60px; padding: 0 max(32px, calc((100% - 1200px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.brand-mark span { font-size: 11px; margin-left: 1px; }
.brand-word { display: inline-flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand-dot { color: var(--accent); }
.brand-word small { padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--ink-3); font-size: 13px; font-weight: 400; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { position: relative; padding: 0 14px; line-height: 60px; color: var(--ink-2); font-size: 15px; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--brand); }
.account-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.account-nav > a:not(.button) { color: var(--ink-2); }
.account-nav > a:not(.button):hover { color: var(--brand); }
.employer-link span { display: none; }
.nav-divider { width: 1px; height: 18px; background: var(--line-2); }

/* 提示条与操作进度 */
.flash { width: min(100% - 64px, 1200px); margin: 16px auto 0; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.flash-success { background: #eaf7ee; color: var(--success); }
.flash-error { background: #fef2f2; color: var(--danger); }
.form-shell .flash { width: auto; margin: 0 0 14px; }
.operation-status { position: fixed; right: 24px; top: 76px; z-index: 200; display: grid; gap: 6px; min-width: 260px; max-width: 360px; padding: 12px 16px; border-radius: 10px; background: #0f172a; color: #fff; box-shadow: var(--shadow); }
.operation-status[hidden] { display: none; }
.operation-status.success { background: #166534; }
.operation-status.error { background: var(--danger); }
.operation-status progress { width: 100%; height: 6px; accent-color: #93b4ff; }
.operation-status progress[hidden], .toast-dismiss[hidden] { display: none; }
.toast-dismiss { justify-self: end; color: #fff; text-decoration: underline; font-size: 12px; }

/* 页头 */
.page-hero { padding: 28px 0; background: linear-gradient(100deg, #fff, #eef3fe); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.page-hero p { margin-top: 6px; color: var(--ink-2); }
.page-hero .eyebrow { margin: 0 0 8px; color: var(--brand); font-weight: 600; }
.section { padding: 40px 0 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.section-head p { margin-top: 4px; color: var(--ink-3); }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.section-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--accent); }
.eyebrow { display: block; }

/* 表单 */
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field label { font-weight: 500; }
.field small { color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.form-shell { width: min(100% - 64px, 760px); margin: 32px auto 64px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-shell > p { color: var(--ink-3); text-align: center; }
.form-grid { grid-template-columns: 1fr 1fr; }
.field-full { grid-column: 1 / -1; }
.form-shell .button { height: 44px; font-size: 15px; }
.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty h3 { color: var(--ink); font-size: 16px; margin: 6px 0; }
.empty .button, .empty .text-link { margin: 14px 6px 0; }
.empty-symbol, .recruit-symbol { display: none; }
.auth-choice { grid-template-columns: 1fr 1fr; }
.choice-card { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s, box-shadow .15s; }
.choice-card:hover { border-color: #b6c7f2; box-shadow: var(--shadow); }
.choice-card h2 { font-size: 20px; }
.choice-card p { color: var(--ink-2); }
.choice-card .eyebrow { color: var(--brand); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px auto 0; color: var(--ink-3); }
.onboarding-steps span { display: inline-flex; align-items: center; gap: 8px; }
.onboarding-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 12px; }
.onboarding-steps .active { color: var(--ink); font-weight: 600; }
.onboarding-steps .active b { background: var(--brand); color: #fff; }
.onboarding-steps i { width: 40px; height: 1px; background: var(--line-2); }
/* 首页 */
.hero { position: relative; overflow: hidden; background: #fff url("../images/bg-hero.webp") center / cover no-repeat; }
.hero-topline { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 32px; align-items: center; width: min(100% - 64px, 1200px); margin: 0 auto; padding: 56px 0 32px; }
.hero-copy .eyebrow { display: inline-flex; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #dbe4fb; box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: 13px; }
.eyebrow-line { display: none; }
.hero h1 { font-size: 48px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.highlight-word { background: linear-gradient(90deg, #1d4ed8, #4f7df3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.highlight-word svg { display: none; }
.heading-period { color: var(--accent); }
.hero-description { margin-top: 18px; color: var(--ink-2); font-size: 17px; }
.hero-explore { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--brand); font-weight: 500; }
.fine-label { display: none; }
.circle-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.hero-art { position: relative; aspect-ratio: 4 / 3; background: url("../images/sleekpace-hero-studio.webp") center / contain no-repeat; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); }
.hero-art > * { display: none; }
.hero-search-area { width: min(100% - 64px, 1200px); margin: 0 auto; padding: 0 0 48px; }
.search-bar { display: flex; align-items: stretch; height: 60px; max-width: 760px; border: 1px solid #d6e0f8; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 12px 32px rgba(29,78,216,.12); overflow: hidden; }
.search-bar:focus-within { border-color: var(--brand); }
.search-icon { display: grid; place-items: center; padding: 0 0 0 16px; color: var(--ink-3); font-size: 20px; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font-size: 15px; background: transparent; }
.search-bar select { width: 150px; border: 0; border-left: 1px solid var(--line); outline: 0; padding: 0 12px; background: transparent; cursor: pointer; }
.search-bar .button { height: auto; margin: 6px; padding: 0 28px; font-size: 16px; }
.search-bar .button span { display: none; }
.hot-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.hot-search > span { color: var(--ink-3); }
.hot-search a { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #e1e8fa; color: var(--ink-2); }
.hot-search a:hover { background: var(--brand-soft); color: var(--brand); }
.hot-search .search-caption { display: none; }
.discipline-section { padding: 56px 0; background: linear-gradient(180deg, #fff, #f3f6fd); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 24px 22px 20px; overflow: hidden; border: 1px solid #e3e9f8; border-radius: 18px; background: linear-gradient(160deg, #fff 55%, #eef3fe 100%); transition: transform .25s, box-shadow .25s, border-color .25s; }
.category-card:hover { transform: translateY(-4px); border-color: #b9ccf7; box-shadow: 0 18px 40px rgba(29,78,216,.14); }
.category-top { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; }
.category-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 20px; }
.card-arrow { color: var(--ink-3); }
.category-en { margin-top: 56px; color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.category-card h3 { margin-top: 4px; font-size: 18px; }
.category-card:hover h3 { color: var(--brand); }
.category-card p { margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.jobs-section { padding: 56px 0; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.job-list { display: grid; gap: 12px; }
.job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: #b6c7f2; box-shadow: var(--shadow); }
.job-card h3 { font-size: 16px; font-weight: 600; }
.job-card:hover h3 { color: var(--brand); }
.job-category { display: inline-block; margin-bottom: 4px; padding: 0 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 12px; line-height: 20px; }
.company { margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.salary { color: var(--accent); font-size: 17px; font-weight: 600; white-space: nowrap; }
.job-card-end { display: flex; align-items: center; gap: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 1px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; line-height: 20px; }
.recruit-panel { position: relative; display: grid; gap: 12px; padding: 28px; border-radius: 18px; color: #fff; background: #1636b8 url("../images/bg-employer.webp") center / cover no-repeat; }
.recruit-panel .section-kicker { color: #bcd0ff; }
.recruit-panel h3 { font-size: 22px; line-height: 1.35; }
.recruit-panel p { color: #d3defd; }
.recruit-panel .button { justify-self: start; }
.recruit-foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); color: #bcd0ff; font-size: 12px; }
.jobs-empty { grid-column: 1 / -1; }
.journey-section { padding: 56px 0; background: #fff; border-block: 1px solid var(--line); }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.journey-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.journey-grid span { color: var(--accent); font-weight: 700; font-size: 20px; }
.journey-grid h3 { margin: 8px 0 4px; font-size: 18px; }
.journey-grid p { color: var(--ink-2); }

/* 职位列表与详情 */
.job-layout .filter-panel { position: sticky; top: 80px; }
.filter-panel h2 { font-size: 16px; margin-bottom: 14px; }
.filter-panel form { display: grid; gap: 14px; }
.sticky { position: sticky; top: 80px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; width: min(100% - 64px, 1200px); margin: 0 auto; }
.detail-main, .detail-side { display: grid; gap: 16px; }
.detail-main section, .detail-side section { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.detail-main h2, .detail-side h2 { font-size: 18px; margin-bottom: 10px; }
.detail-side h3 { font-size: 14px; margin: 0 0 6px; }
.detail-side p { color: var(--ink-2); margin-bottom: 6px; word-break: break-all; }
.detail-side a { color: var(--brand); }
.detail-side .button { margin-top: 10px; width: 100%; }
.detail-main .section-head { margin-bottom: 12px; }
.detail-main .section-head h2 { font-size: 18px; }
.detail-main .salary { font-size: 24px; }

/* 会员中心 */
.member-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; width: min(100% - 64px, 1200px); margin: 32px auto 64px; }
.member-nav { display: grid; gap: 2px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); position: sticky; top: 80px; }
.member-nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); }
.member-nav a:hover { background: var(--surface-2); }
.member-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { display: grid; gap: 2px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.metric span { color: var(--ink-3); font-size: 13px; }
.metric strong { font-size: 28px; color: var(--brand); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: grid; gap: 10px; align-content: start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan h2 { font-size: 20px; margin: 0; }
.plan p { color: var(--ink-2); }
.plan-featured { border-color: var(--brand); box-shadow: 0 8px 24px rgba(29,78,216,.12); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--surface-2); color: var(--ink-3); font-weight: 500; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }

/* 管理后台 */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-toolbar nav { display: flex; gap: 8px; }
.admin-review-list { display: grid; gap: 16px; }
.review-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; color: var(--ink-2); }
.review-actions { display: flex; gap: 10px; margin-top: 14px; align-items: flex-start; }
.review-actions textarea { flex: 1; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); }

/* 页脚 */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 44px; }
.footer-top { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; align-items: start; width: min(100% - 64px, 1200px); margin: 0 auto; padding-bottom: 32px; }
.footer-brand strong { color: #fff; font-size: 20px; }
.footer-brand strong span { color: var(--accent); }
.footer-brand p { margin-top: 10px; color: #94a3b8; }
.footer-slogan { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; }
.footer-slogan span { color: #6d93f5; }
.site-footer nav { display: grid; gap: 8px; }
.site-footer nav a { color: #94a3b8; font-size: 13px; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; width: min(100% - 64px, 1200px); margin: 0 auto; padding: 18px 0 22px; border-top: 1px solid #1e293b; color: #64748b; font-size: 12px; }
.footer-bottom a:hover { color: #cbd5e1; }
.footer-bottom > span { display: none; }
.filing-divider { margin: 0 6px; }
.category-top { top: 8px; right: 8px; }
.category-top .category-art { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(29,78,216,.18)); transition: transform .3s; }
.category-card:hover .category-art { transform: scale(1.1) rotate(-4deg); }

/* 修正：搜索框并入首屏左栏；页脚贴底 */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
.site-footer { margin-top: auto; }
.hero-copy .hero-search-area { width: auto; margin: 28px 0 0; padding: 0; }
.hero-copy .search-bar { max-width: 640px; }
.hero-grid { padding: 64px 0 56px; }
.hero-explore { display: none; }
.panel.form-grid, form.panel { display: grid; gap: 16px; }
.panel.form-grid { grid-template-columns: 1fr 1fr; }
.panel .button { justify-self: start; }
.panel.form-grid .button.field-full { justify-self: stretch; }
.member-shell > div > .panel + .data-table, .member-shell .data-table { margin-top: 18px; }
.review-actions input { flex: 1; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.review-actions input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
.review-actions .button { height: 36px; }
.admin-review-list .section-head { align-items: flex-start; }
.admin-review-list .section-head h2 { font-size: 18px; margin: 0; }
.job-layout:has(> .filter-panel) { grid-template-columns: 280px minmax(0, 1fr); }
.job-layout > .filter-panel { order: -1; }
