:root {
  --orange: #FF5A1F;
  --orange-deep: #E04A12;
  --orange-50: #FFF1EB;
  --orange-line: #FFC7B0;
  --ink: #16202E;
  --body: #444441;
  --sub: #6B7280;
  --hint: #A8AEB8;
  --line: #ECEEF1;
  --sep: #D5D9E0;
  --bg: #F5F6F8;
  --fill: #F1F2F4;
  --green: #0F6E56;
  --green-50: #EAF6F1;
  --red: #E24B4A;
  --radius: 12px;
  --bar-h: 46px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.no-tab { padding-bottom: 0; }

.app {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 26px; height: 26px; border-radius: 8px; background: var(--orange);
  color: #fff; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-name { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--sub); }
.topbar .right a { color: var(--sub); }
.topbar .right a.accent { color: var(--orange); }
.icon-btn {
  border: 0; background: none; padding: 0; font-size: 13px; color: var(--sub);
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.back { border: 0; background: none; padding: 4px 2px; margin-left: -4px; cursor: pointer; line-height: 0; }
.title-center { font-size: 16px; font-weight: 500; position: absolute; left: 50%; transform: translateX(-50%); }

/* ---------- 搜索 ---------- */
.search-wrap { padding: 12px 16px 0; background: #fff; }
.search {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: 10px; background: var(--fill);
}
.search svg { flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 14px; color: var(--ink); font-family: inherit;
}
.search input::placeholder { color: var(--hint); }
.city-pick { font-size: 12px; color: var(--orange); border: 0; background: none; padding: 0; white-space: nowrap; cursor: pointer; }

/* ---------- 首页 banner ---------- */
.banner {
  margin: 16px 16px 0; padding: 18px; border-radius: var(--radius);
  background: var(--orange-50); position: relative; overflow: hidden;
}
.banner h1 { margin: 0 0 6px; font-size: 18px; font-weight: 500; letter-spacing: .2px; }
.banner p { margin: 0 0 14px; font-size: 12.5px; color: #A8451D; }
.banner .cta {
  display: inline-block; padding: 6px 16px; border-radius: 14px;
  background: var(--orange); color: #fff; font-size: 12.5px; border: 0;
}
.banner .art {
  position: absolute; right: 16px; top: 20px; width: 78px; height: 62px;
  border-radius: 10px; background: #fff; padding: 12px;
}
.banner .art i { display: block; height: 6px; border-radius: 3px; background: #FFD9C7; margin-bottom: 7px; }
.banner .art i:nth-child(2) { background: var(--fill); width: 84%; }
.banner .art i:nth-child(3) { background: var(--fill); width: 66%; }
.banner .art i:nth-child(4) { background: #FF8A5C; width: 46%; height: 9px; margin-bottom: 0; }

/* ---------- 快捷入口 ---------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 12px 16px 0; padding: 14px 4px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; color: var(--body); }
.quick .qi {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange-50);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 区块标题 ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 16px 10px;
}
.sec-head h2 { margin: 0; font-size: 16px; font-weight: 500; }
.sec-head a { font-size: 12px; color: var(--orange); }

/* ---------- 岗位卡片 ---------- */
.job-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.job-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px 16px;
  transition: transform .12s ease;
}
.job-card:active { transform: scale(.995); }
.job-title {
  font-size: 16px; font-weight: 500; color: var(--ink);
  line-height: 1.45; word-break: break-word; white-space: pre-wrap;
}
.job-meta {
  margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--sub); row-gap: 2px;
}
.job-meta .sep { color: var(--sep); margin: 0 6px; }
.job-meta .salary { color: var(--orange); font-weight: 500; font-size: 13px; }
.job-time { float: right; font-size: 11.5px; color: var(--hint); font-weight: 400; margin-left: 8px; }
.job-card.off { opacity: .55; }

/* ---------- 筛选条 ---------- */
.filters {
  display: flex; gap: 8px; padding: 10px 16px 12px; overflow-x: auto;
  background: #fff; border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid #E4E7EB; background: #fff; color: var(--ink);
  font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--orange-50); border-color: var(--orange-line); color: var(--orange-deep); }
.count-tip { padding: 12px 16px 4px; font-size: 12px; color: var(--sub); }

/* ---------- 详情 ---------- */
.detail-wrap { background: #fff; padding: 18px 16px 20px; }
.detail-title { font-size: 19px; font-weight: 500; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.detail-meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--sub); }
.detail-meta .sep { color: var(--sep); margin: 0 8px; }
.detail-meta .salary { color: var(--orange); font-weight: 500; font-size: 14px; }
.detail-sub { margin-top: 8px; font-size: 11.5px; color: var(--hint); }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.h2 { font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.detail-body { font-size: 14px; color: var(--body); white-space: pre-wrap; word-break: break-word; }
.loc-box { background: #F7F8FA; border-radius: 10px; padding: 12px 14px; }
.loc-box .k { font-size: 11.5px; color: var(--sub); }
.loc-box .v { font-size: 13px; color: var(--ink); margin-top: 2px; }
.tpl-box { border: 1px dashed var(--sep); border-radius: 10px; padding: 14px; background: #FBFCFD; }
.tpl-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); padding: 5px 0; }
.tpl-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); flex: none; }
.tpl-row .tag { font-size: 11px; color: var(--orange); margin-left: auto; text-align: right; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; max-width: 520px; margin: 0 auto;
}
.btn {
  height: 46px; border-radius: 10px; border: 0; font-size: 15px; font-weight: 500;
  cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:disabled { background: #C9CDD4; color: #fff; }
.btn-ghost { background: #fff; border: 1.2px solid var(--orange); color: var(--orange); flex: 0 0 108px; font-size: 13px; font-weight: 400; }
.btn-plain { background: var(--fill); color: var(--ink); }

/* ---------- 表单 ---------- */
.form-wrap { background: #fff; padding: 4px 16px 20px; }
.field { margin-top: 16px; }
.field label { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field label .req { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); display: inline-block; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; outline: none; background: var(--fill);
  border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--ink);
  font-family: inherit; line-height: 1.5;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--hint); }
.field .hint { font-size: 11.5px; color: var(--hint); margin-top: 6px; }
.upload {
  border: 1px dashed var(--sep); border-radius: 10px; background: #FBFCFD;
  padding: 22px 14px; text-align: center; cursor: pointer;
}
.upload .plus {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange-50);
  margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
}
.upload .t { font-size: 13px; color: var(--ink); }
.upload .s { font-size: 11.5px; color: var(--hint); margin-top: 4px; }
.upload.done { border-color: var(--green); background: var(--green-50); }
.upload.done .t { color: var(--green); }

/* ---------- 状态页 ---------- */
.state-page { padding: 96px 32px; text-align: center; }
.state-page .em { font-size: 17px; font-weight: 500; color: var(--ink); }
.state-page .ds { font-size: 13px; color: var(--sub); margin-top: 10px; line-height: 1.7; }
.state-page .btn { margin: 24px auto 0; max-width: 220px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 520px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 0 8px; font-size: 11px; color: var(--sub);
}
.tabbar a.on { color: var(--orange); }

/* ---------- 公司介绍 ---------- */
.hero { background: var(--ink); color: #fff; padding: 24px 16px 22px; }
.hero .row { display: flex; align-items: center; gap: 12px; }
.hero .big-logo {
  width: 38px; height: 38px; border-radius: 11px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; flex: none;
}
.hero h1 { font-size: 18px; margin: 0; font-weight: 500; }
.hero .tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero .tag { padding: 4px 12px; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 11.5px; }
.hero .slogan { margin-top: 14px; font-size: 12.5px; color: #FFB59B; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; margin: -14px 16px 0; border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 0; }
.stats div { text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 17px; font-weight: 500; }
.stats span { font-size: 11.5px; color: var(--sub); }
.about-sec { background: #fff; padding: 20px 16px; margin-top: 12px; }
.about-sec p { margin: 0 0 8px; font-size: 14px; color: var(--body); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photos div { aspect-ratio: 4/3; border-radius: 8px; background: var(--fill) center/cover no-repeat; }
.contact-row { display: flex; gap: 8px; font-size: 13.5px; color: var(--body); padding: 7px 0; }
.contact-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-top: 9px; flex: none; }

/* ---------- 我的报名 ---------- */
.apply-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.apply-card .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.apply-card .h b { font-size: 15px; font-weight: 500; }
.apply-card .h span { font-size: 11.5px; color: var(--hint); flex: none; }
.apply-card .kv { display: flex; gap: 8px; font-size: 12.5px; color: var(--sub); padding: 4px 0; }
.apply-card .kv b { font-weight: 400; color: var(--ink); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 12px);
  background: rgba(22,32,46,.92); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 20px; opacity: 0; pointer-events: none;
  transition: all .22s ease; z-index: 99; max-width: 78vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.empty { text-align: center; padding: 60px 20px; color: var(--hint); font-size: 13.5px; }
.skeleton { height: 86px; border-radius: var(--radius); background: linear-gradient(90deg,#f2f3f5,#fafbfc,#f2f3f5); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

/* ---------- 后台 ---------- */
.admin-body { background: #F5F6F8; }
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.admin-top {
  background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.admin-top .inner {
  max-width: 1080px; margin: 0 auto; height: 58px; padding: 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.admin-top .brand-name { font-size: 15px; }
.admin-top .right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--sub); }
.admin-tabs { display: flex; gap: 6px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); max-width: 1080px; margin: 0 auto; }
.admin-tabs button {
  border: 0; background: none; padding: 12px 14px; font-size: 13.5px; color: var(--sub);
  border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.admin-tabs button.on { color: var(--ink); font-weight: 500; border-bottom-color: var(--orange); }
.admin-tabs .badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10.5px; text-align: center; margin-left: 5px; vertical-align: 1px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.panel-head .sub { font-size: 12px; color: var(--sub); }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 4px 20px 16px; }

.btn-sm {
  height: 32px; padding: 0 14px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  border: 1px solid #E4E7EB; background: #fff; color: var(--ink); font-family: inherit;
}
.btn-sm.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-sm.danger { color: var(--red); }
.btn-sm:disabled { opacity: .5; cursor: default; }

.job-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.job-row:last-child { border-bottom: 0; }
.job-row .main { min-width: 0; flex: 1; }
.job-row .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row .meta { font-size: 12px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row .ops { display: flex; align-items: center; gap: 8px; flex: none; }
.status { font-size: 11.5px; padding: 3px 10px; border-radius: 11px; border: 0; cursor: pointer; font-family: inherit; }
.status.online { background: var(--green-50); color: var(--green); }
.status.offline { background: var(--fill); color: var(--sub); }
.apply-badge {
  position: relative; border: 1px solid #E4E7EB; background: #fff; border-radius: 7px;
  height: 30px; padding: 0 10px; font-size: 12px; color: var(--ink); cursor: pointer; font-family: inherit;
}
.apply-badge i {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; line-height: 16px;
  background: var(--red); color: #fff; border-radius: 8px; font-size: 10.5px; font-style: normal; padding: 0 4px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.admin-field label { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 6px; }
.admin-field input, .admin-field textarea, .admin-field select {
  width: 100%; border: 1px solid #E4E7EB; border-radius: 8px; padding: 9px 12px;
  font-size: 13.5px; font-family: inherit; outline: none; background: #fff; color: var(--ink);
}
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--orange); }
.admin-field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.admin-field .hint { font-size: 11px; color: var(--hint); margin-top: 5px; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline input { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--orange); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(22,32,46,.42); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 520px;
  max-height: 84vh; overflow: auto; padding: 20px;
}
.modal h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.modal .desc { font-size: 12px; color: var(--sub); margin: 0 0 14px; }
.ap-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.ap-item .top { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange-50); color: var(--orange-deep);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; cursor: pointer;
}
.ap-item .who { min-width: 0; flex: 1; }
.ap-item .who b { font-size: 14px; font-weight: 500; }
.ap-item .who .time { font-size: 11.5px; color: var(--hint); }
.ap-item .new { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.ap-item dl { margin: 10px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; font-size: 12.5px; }
.ap-item dt { color: var(--sub); }
.ap-item dd { margin: 0; color: var(--ink); word-break: break-all; white-space: pre-wrap; }
.ap-item .foot { display: flex; gap: 8px; margin-top: 10px; }
.linkbtn { border: 0; background: none; color: var(--orange); font-size: 12.5px; cursor: pointer; padding: 0; font-family: inherit; }

.login-wrap { max-width: 340px; margin: 0 auto; padding: 80px 20px; }
.login-wrap .logo { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; margin-bottom: 18px; }
.login-wrap h1 { font-size: 20px; margin: 0 0 6px; font-weight: 500; }
.login-wrap p { font-size: 13px; color: var(--sub); margin: 0 0 22px; }

@media (max-width: 640px) {
  .admin-shell, .admin-top .inner, .admin-tabs { padding-left: 14px; padding-right: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .job-row { flex-wrap: wrap; }
  .job-row .ops { width: 100%; justify-content: flex-end; }
}
