/* 皙昂科技校园招聘 · 全站样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #26233f; background: #f5f6fb; line-height: 1.6; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ===== 顶栏 ===== */
.topbar { background: #fff; border-bottom: 1px solid #eceaf6; position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; align-items: center; height: 60px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-size: 17px; letter-spacing: .5px; }
.brand i { font-style: normal; font-size: 12px; color: #fff; background: linear-gradient(135deg,#5b4bf5,#8a7bff); padding: 2px 8px; border-radius: 999px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 7px 14px; border-radius: 9px; font-size: 14.5px; color: #55506e; }
.topbar nav a:hover { background: #f3f1fd; }
.topbar nav a.on { color: #5b4bf5; background: #efecfe; font-weight: 600; }
.topbar .tr { display: flex; align-items: center; gap: 12px; }
.topbar .hi { font-size: 13.5px; color: #55506e; }
.ghost { font-size: 13.5px; color: #5b4bf5; border: 1px solid #d8d2fb; padding: 6px 14px; border-radius: 999px; }
.ghost:hover { background: #efecfe; }

/* ===== 门户首屏（登录页） ===== */
.hero { background: linear-gradient(160deg, #5b4bf5 0%, #7a5cf0 55%, #9a7bff 100%); color: #fff; padding: 46px 0 58px; }
.hero .wrap { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.hero-left { flex: 1.3; min-width: 300px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-left .tag { display: inline-block; font-size: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: 3px 12px; border-radius: 999px; }
.home-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 5px 13px; border-radius: 999px; transition: .15s; }
.home-link:hover { background: rgba(255,255,255,.26); }
.home-link i { font-style: normal; }
.hero-left h1 { font-size: 26px; line-height: 1.45; margin-bottom: 10px; }
.hero-left .sub { font-size: 14px; opacity: .92; margin-bottom: 22px; }
.timebox { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 14px 18px; display: inline-flex; flex-direction: column; gap: 6px; }
.timebox .row { font-size: 13px; opacity: .95; }
.timebox .cd { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.timebox .cd b { font-size: 22px; font-family: Consolas, monospace; background: rgba(255,255,255,.2); border-radius: 7px; padding: 2px 9px; }
.timebox .cd i { font-style: normal; font-size: 12px; opacity: .85; }
.hero-left .notice-link { display: inline-block; margin-top: 18px; font-size: 13.5px; color: #fff; border-bottom: 1px dashed rgba(255,255,255,.6); }

/* 登录卡 */
.logincard { width: 350px; background: #fff; color: #26233f; border-radius: 16px; padding: 26px 26px 20px; box-shadow: 0 18px 46px rgba(38,20,120,.28); }
.logincard h2 { font-size: 18px; margin-bottom: 4px; }
.logincard .hint { font-size: 12.5px; color: #8d88a8; margin-bottom: 16px; }
.logincard.err .hint { color: #e0564f; }
.logincard .fld { margin-bottom: 12px; }
.logincard input[type=text], .logincard input[type=password] { width: 100%; border: 1px solid #ddd8f0; border-radius: 10px; padding: 11px 13px; font-size: 14px; outline: none; background: #fbfaff; }
.logincard input:focus { border-color: #8a7bff; background: #fff; }
.agree { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: #6d688a; margin: 4px 0 14px; }
.agree input { margin-top: 3px; }
.agree u { color: #5b4bf5; cursor: pointer; }
.btn-main { display: block; width: 100%; border: 0; background: linear-gradient(135deg,#5b4bf5,#8a7bff); color: #fff; font-size: 15px; font-weight: 600; padding: 12px; border-radius: 11px; cursor: pointer; }
.btn-main:hover { filter: brightness(1.06); }
.btn-main[disabled] { opacity: .55; cursor: not-allowed; }
.logincard .alt { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.logincard .alt a { color: #5b4bf5; }

/* ===== 通用区块 ===== */
.sec { padding: 26px 0 40px; }
.sec h3.stitle { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sec h3.stitle::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(#5b4bf5,#8a7bff); }
.card { background: #fff; border: 1px solid #eceaf6; border-radius: 14px; padding: 18px 20px; }
.card + .card { margin-top: 14px; }

/* 岗位列表 */
.job-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #eceaf6; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; transition: .15s; text-decoration: none; color: inherit; }
.job-item:hover { border-color: #c9c1f7; box-shadow: 0 8px 22px rgba(91,75,245,.08); transform: translateY(-1px); }
.job-item:active { transform: scale(.99); }
.job-item .ji-main { flex: 1; min-width: 0; }
.job-item .ji-title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-item .ji-dept { font-size: 12px; color: #fff; background: linear-gradient(135deg,#5b4bf5,#8a7bff); border-radius: 6px; padding: 1px 8px; }
.job-item .ji-code { font-size: 12px; color: #8d88a8; }
.job-item .ji-meta { font-size: 13px; color: #6d688a; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.job-item .ji-meta b { color: #e0564f; font-size: 14px; }
.job-item .ji-btn { flex-shrink: 0; }
.btn { display: inline-block; border: 0; cursor: pointer; font-size: 13.5px; border-radius: 999px; padding: 8px 18px; }
.btn-pri { background: linear-gradient(135deg,#5b4bf5,#8a7bff); color: #fff; font-weight: 600; }
.btn-pri:hover { filter: brightness(1.06); }
.btn-line { background: #fff; color: #5b4bf5; border: 1px solid #d8d2fb; }
.btn-line:hover { background: #efecfe; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 搜索栏 */
.searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
.searchbar input { flex: 1; border: 1px solid #ddd8f0; border-radius: 11px; padding: 10px 14px; font-size: 14px; background: #fff; outline: none; }
.searchbar input:focus { border-color: #8a7bff; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.tbl th { background: #f3f1fd; color: #55506e; font-weight: 600; padding: 10px 12px; text-align: left; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid #f0eef9; }
.tbl tr:hover td { background: #faf9ff; }

/* 状态徽标 */
.badge { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.b-gray  { background: #f0eef9; color: #6d688a; }
.b-blue  { background: #e8f0ff; color: #2d6cdf; }
.b-green { background: #e4f7ec; color: #17954c; }
.b-red   { background: #fdecec; color: #d6453d; }
.b-amber { background: #fff4e0; color: #c07818; }
.b-purple{ background: #efecfe; color: #5b4bf5; }

/* ===== 详情/表单页 ===== */
.detail { max-width: 860px; margin: 0 auto; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { width: 132px; text-align: left; color: #6d688a; font-weight: 500; padding: 10px 12px; background: #faf9ff; border: 1px solid #f0eef9; vertical-align: top; }
.kv td { padding: 10px 12px; border: 1px solid #f0eef9; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.fi label { display: block; font-size: 13px; color: #55506e; margin-bottom: 5px; }
.fi label em { color: #d6453d; font-style: normal; margin-left: 2px; }
.fi input, .fi select, .fi textarea { width: 100%; border: 1px solid #ddd8f0; border-radius: 10px; padding: 10px 12px; font-size: 14px; background: #fbfaff; outline: none; font-family: inherit; }
.fi input:focus, .fi select:focus, .fi textarea:focus { border-color: #8a7bff; background: #fff; }
.fi textarea { min-height: 96px; resize: vertical; }
.fi .tip { font-size: 12px; color: #9a95b5; margin-top: 4px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* 附件上传 */
.uploads .up-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eceaf6; font-size: 13.5px; }
.uploads .up-row .nm { flex: 1; }
.uploads .up-row .st-ok { color: #17954c; }
.uploads .up-row .st-no { color: #9a95b5; }
.uploads input[type=file] { font-size: 12.5px; }

/* ===== 管理端 ===== */
.adm { display: flex; min-height: 100vh; }
.adm-side { width: 208px; background: #211d3a; color: #cfcbe6; padding: 18px 12px; flex-shrink: 0; }
.adm-side .logo { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; }
.adm-side .logo img { width: 28px; height: 28px; border-radius: 7px; }
.adm-side .logo span { font-size: 14.5px; color: #fff; font-weight: 700; }
.adm-side a.item { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 9px; font-size: 14px; margin-bottom: 3px; }
.adm-side a.item:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-side a.item.on { background: linear-gradient(135deg,#5b4bf5,#8a7bff); color: #fff; font-weight: 600; }
/* 侧栏图标：字母圆片（不用 emoji，避免部分系统渲染成乱码方块） */
.adm-side .ai { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-side a.item.on .ai { background: rgba(255,255,255,.25); }
.adm-side .out { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.adm-main { flex: 1; padding: 22px 26px; min-width: 0; }
.adm-main h2 { font-size: 18px; margin-bottom: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-cards .sc { background: #fff; border: 1px solid #eceaf6; border-radius: 13px; padding: 15px 17px; }
.stat-cards .sc b { display: block; font-size: 24px; font-family: Consolas, monospace; color: #5b4bf5; }
.stat-cards .sc span { font-size: 12.5px; color: #8d88a8; }
@media (max-width: 720px) { .adm { flex-direction: column; } .adm-side { width: auto; } }

/* 提示条 */
.msg { border-radius: 11px; padding: 11px 15px; font-size: 13.5px; margin-bottom: 14px; }
.msg-ok { background: #e4f7ec; color: #137a3f; }
.msg-err { background: #fdecec; color: #c73f37; }
.empty { text-align: center; color: #9a95b5; padding: 40px 0; font-size: 13.5px; }
.para { font-size: 14px; color: #3d3958; white-space: pre-wrap; }

/* 公告列表 */
.notice-item { display: block; background: #fff; border: 1px solid #eceaf6; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.notice-item:hover { border-color: #c9c1f7; }
.notice-item .nt { font-size: 15px; font-weight: 600; }
.notice-item .nd { font-size: 12.5px; color: #8d88a8; margin-top: 3px; }

.foot { padding: 26px 0 34px; text-align: center; font-size: 12.5px; color: #9a95b5; }
.foot a { color: #7a74a0; }

/* ===== 移动端适配（≤720px） ===== */
@media (max-width: 720px) {
  /* 顶栏：品牌 + 登录一行，导航横滑第二行 */
  .topbar .wrap { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 8px 12px; }
  .topbar nav { order: 3; flex: 0 0 100%; width: 100%; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { white-space: nowrap; padding: 8px 14px; font-size: 14px; flex-shrink: 0; border-radius: 999px; background: #f3f1fd; }
  .topbar nav a.on { background: #efecfe; color: #5b4bf5; font-weight: 600; }
  .topbar .tr { margin-left: auto; }
  .ghost { padding: 7px 13px; min-height: 36px; display: inline-flex; align-items: center; }

  /* 首屏紧凑化 */
  .hero { padding: 26px 0 30px; background: linear-gradient(165deg, #5b4bf5 0%, #8a6cf7 100%); }
  .hero .wrap { flex-direction: column; gap: 0; }
  .hero-left { min-width: 0; }
  .hero-top { margin-bottom: 12px; }
  .home-link { font-size: 12px; padding: 4px 11px; }
  .hero-left h1 { font-size: 21px; line-height: 1.4; }
  .hero-left .sub { font-size: 13.5px; margin-bottom: 16px; }
  .hero-fig { margin: 14px 0 16px; border-radius: 12px; max-height: 220px; overflow: hidden; }
  .why { margin: 14px 0 14px; padding: 14px 14px; border-radius: 12px; }
  .why-t { font-size: 13.5px; }
  .why-list { grid-template-columns: 1fr; gap: 8px; }
  .why-list > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; }
  .why-list b { font-size: 13px; margin: 0; white-space: nowrap; }
  .why-list span { font-size: 12px; }
  .timebox { width: 100%; padding: 12px 14px; }
  .timebox .cd { flex-wrap: wrap; gap: 4px 6px; }
  .timebox .cd b { font-size: 16px; padding: 2px 8px; }

  /* 区块与卡片 */
  .sec { padding: 18px 0 22px; }
  .sec h3.stitle { font-size: 16px; margin-bottom: 12px; }
  .jobs-sec { padding-top: 18px; }
  .card { padding: 14px 15px; border-radius: 12px; }

  /* 岗位卡片：整卡可点，移动端更紧凑 */
  .job-item { padding: 13px 14px; margin-bottom: 10px; border-radius: 12px; min-height: 56px; }
  .job-item .ji-title { font-size: 15px; gap: 6px; }
  .job-item .ji-dept { font-size: 11px; padding: 1px 7px; }
  .job-item .ji-meta { gap: 4px 10px; font-size: 12.5px; margin-top: 6px; }
  .job-item .ji-meta b { font-size: 13.5px; }

  /* 公告卡片 */
  .notice-item { padding: 13px 14px; border-radius: 12px; }
  .notice-item .nt { font-size: 14.5px; }
  .notice-item.feat { flex-direction: column; gap: 12px; }
  .notice-item.feat .feat-img { width: 100%; height: auto; max-height: 180px; border-radius: 10px; }
  .notice-item.feat .nt { font-size: 15.5px; }
  .notice-item.feat .fd { font-size: 12.5px; }

  /* 详情页键值表堆叠 */
  .kv, .kv tbody { display: block; }
  .kv tr { display: block; border-bottom: 1px dashed #eceaf6; padding: 6px 0; }
  .kv th { display: block; width: auto; border: 0; background: transparent; padding: 6px 10px 0; font-size: 12px; }
  .kv td { display: block; border: 0; padding: 2px 10px 6px; }
  .detail { max-width: 100%; }

  /* 表单与附件 */
  .form-grid { grid-template-columns: 1fr; }
  .fi input, .fi select, .fi textarea { padding: 12px 13px; font-size: 15px; } /* 16px 以下防 iOS 聚焦缩放 */
  .fi select { font-size: 15px; }
  .uploads .up-row { flex-wrap: wrap; }
  .uploads .up-row span:first-child { width: 100%; }
  .uploads input[type=file] { font-size: 14px; width: 100%; }

  /* 搜索栏 */
  .searchbar input { padding: 11px 14px; font-size: 15px; }
  .btn { padding: 9px 16px; min-height: 38px; }

  /* 按钮主 CTA 更大触摸区 */
  .btn-login { padding: 15px 0; }

  .foot { padding: 22px 0 30px; }
}

/* iPhone 底部安全区 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 720px) {
    .foot { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  }
}

/* 首页主公告卡 */
.notice-item.feat { display: flex; gap: 16px; align-items: stretch; padding: 18px 20px; border-color: #d8d2fb; background: linear-gradient(135deg, #fbfaff, #f5f2ff); }
.notice-item.feat .feat-img { width: 168px; height: 108px; object-fit: cover; border-radius: 11px; flex-shrink: 0; }
.notice-item.feat .feat-main { flex: 1; min-width: 0; }
.notice-item.feat .nt { font-size: 16.5px; }
.notice-item.feat .fd { font-size: 13px; color: #55506e; margin-top: 6px; line-height: 1.7; }
.notice-item.feat .fgo { font-size: 13px; color: #5b4bf5; font-weight: 700; margin-top: 8px; }
.notice-item.feat .fgo i { font-style: normal; }
.notice-item.feat:hover .fgo i { transform: translateX(3px); }
@media (max-width: 720px) {
  .notice-item.feat { flex-direction: column; }
  .notice-item.feat .feat-img { width: 100%; height: auto; max-height: 190px; }
}

/* ===== 招聘页改版：宣传区 / 名额条 / 岗位分组 ===== */
.b-orange { background: #fff0e0; color: #d9761a; }
.hero-fig { margin: 18px 0 20px; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(30,20,80,.18); }
.hero-fig img { display: block; width: 100%; }
.why { margin: 20px 0 18px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); }
.why-t { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: .5px; }
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why-list > div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; }
.why-list b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.why-list span { display: block; font-size: 12px; opacity: .85; line-height: 1.5; }
.quota-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(90deg, #f3f0ff, #fdf3ec); border: 1px solid #e6e0fb;
  font-size: 13.5px; color: #4a4370; }
.quota-bar b { color: #5b4bf5; font-size: 17px; margin: 0 2px; }
.quota-bar .qb-tot { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  background: #5b4bf5; color: #fff; font-size: 12.5px; }
.quota-bar .qb-r { color: #7a7398; font-size: 13px; }
.job-group { margin-bottom: 26px; }
.jg-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.jg-tip { font-size: 12.5px; color: #8d88a8; }
.jobs-sec { padding-top: 34px; }
@media (max-width: 720px) {
  .why-list { grid-template-columns: 1fr; }
  .quota-bar { flex-direction: column; align-items: flex-start; }
}
