/* ==========================================================================
   brand-ui.css —— 艾米无忧品牌 UI（APP_LOGO.pdf 视觉规范 1:1 落地）
   载入顺序：必须最后加载，覆盖 58 复刻色板与旧绿色登录。
   标准色：无忧红 #E50C54（C12 M97 Y52 K0 / R229 G12 B84），色阶 10%~100%。
   例图：第 7 页开屏、第 8 页首页（传统版）、第 9 页首页（AI 版）、
         第 10/11 页注册、第 12 页登录、第 3 页字标/ICON、第 1 页企业标。
   ========================================================================== */
:root {
  --aimi-red: #E50C54;
  --aimi-red-90: #E82565;
  --aimi-red-80: #EB3E76;
  --aimi-red-70: #EE5888;
  --aimi-red-60: #F1719A;
  --aimi-red-50: #F48BAC;
  --aimi-red-40: #F7A4BE;
  --aimi-red-30: #F9BED0;
  --aimi-red-20: #FBD7E2;
  --aimi-red-10: #FDEBF1;
  --aimi-deep: #C10846;
  --aimi-ink: #231815;
  --aimi-gray: #606060;

  /* 全局旧色板一并归一到品牌色，让其余页面不再出现 58 橙 / 登录绿 */
  --brand: #E50C54;
  --brand-deep: #C10846;
  --brand-soft: #FDEBF1;
  --c-brand: #E50C54;
  --c-brand-press: #C10846;
  --c-brand-soft: #FDEBF1;
  --c-head: #E50C54;
  --c-head-search: rgba(240, 76, 128, .92);
  --c-head-ph: #FBD7E2;
  --c-price: #E50C54;
  --c-tag-bg: #FDEBF1;
  --err: #E50C54;
}

/* ---------------------------------------------------------------- 通用页面 */
.page--aimi { background: #fff; }
.page--aimi .page__scroll {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.page--aimi button { font-family: inherit; cursor: pointer; }
.page--aimi img { display: block; }

/* ------------------------------------------------------------ 底部 Tab（4 项） */
.tabbar {
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #EDEDED;
  padding-bottom: 0;
}
.tabbar:not(.is-hidden) { display: grid; }
.aimi-tab {
  position: relative;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 0 0;
  color: #231815;
}
.aimi-tab__ico { width: 28px; height: 28px; object-fit: contain; }
.aimi-tab--brand .aimi-tab__ico { width: 30px; height: 30px; }
.aimi-tab__label { font-size: 11px; line-height: 1.2; letter-spacing: .5px; color: #231815; }
.aimi-tab.is-active .aimi-tab__label { color: #E50C54; }

/* ============================================================ 首页 · 传统版 */
.bh { min-height: 100%; padding-bottom: 18px; }
.bh__head {
  background: linear-gradient(180deg, #F02A67 0%, #F35488 30%, #F9A9C6 65%, #FDE6EE 88%, #FFFFFF 100%);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
}
.bh__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.bh__nav button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 11px;
  white-space: nowrap;
}
.bh__nav .is-on { font-weight: 700; font-size: 12px; position: relative; }
.bh__nav .is-on::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.bh__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-top: 8px;
  padding: 0 4px 0 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(180, 20, 75, .10);
}
.bh__search-logo { width: 23px; height: 23px; flex: 0 0 auto; }
.bh__search-line { width: 1px; height: 16px; background: #E5E5E5; flex: 0 0 auto; }
.bh__search-kw { flex: 1 1 auto; font-size: 14px; color: #333; }
.bh__search-ai {
  flex: 0 0 auto;
  font: italic 700 20px/1 "Arial", sans-serif;
  color: #F0487E;
  letter-spacing: -1px;
  padding-right: 4px;
}
.bh__search-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #E50C54;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.bh__news {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 2px 8px;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh__speaker { font-size: 12px; }

.bh__banner {
  position: relative;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center 42%;
  box-shadow: 0 6px 14px rgba(150, 30, 75, .14);
}
.bh__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.06) 45%, rgba(0,0,0,.46) 100%);
}
.bh__banner-brand {
  position: absolute;
  z-index: 1;
  top: 12px; left: 14px;
  color: #fff;
  font: italic 600 17px/1 "STKaiti", "KaiTi", "Songti SC", serif;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.bh__banner-meta {
  position: absolute;
  z-index: 1;
  top: 62px; left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.bh__banner-meta i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #E50C54;
  display: inline-block;
  margin-right: 2px;
}
.bh__banner-title {
  position: absolute;
  z-index: 1;
  left: 14px; bottom: 26px;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.bh__banner-title em { color: #FF2E63; font-style: normal; font-weight: 800; }
.bh__banner-dots {
  position: absolute;
  z-index: 1;
  left: 14px; bottom: 12px;
  display: flex;
  gap: 4px;
}
.bh__banner-dots i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.75); }
.bh__banner-dots i.is-on { background: #E50C54; }

.bh__cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 2px;
  padding: 14px 8px 4px;
}
.bh__cat {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.bh__cat img { width: 36px; height: 36px; object-fit: contain; }
.bh__cat span { font-size: 11px; color: #231815; white-space: nowrap; }
.bh__pager { display: flex; justify-content: center; gap: 6px; padding: 6px 0 12px; }
.bh__pager i { width: 18px; height: 4px; border-radius: 3px; background: #C9CDD2; }
.bh__pager i.is-on { background: #E50C54; }

.bh__jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 10px; }
.bh__job { border: 0; background: transparent; padding: 0; text-align: left; }
.bh__job-img { width: 100%; height: 138px; object-fit: cover; border-radius: 8px; }
.bh__job-title {
  display: flex; align-items: center; gap: 4px;
  margin-top: 6px;
  font-size: 11px; color: #231815;
  white-space: nowrap;
}
.bh__job-badge {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 3px;
  background: #E50C54;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.bh__job-salary { margin-top: 3px; font-size: 10.5px; color: #8A8A8A; white-space: nowrap; }
.bh__job-salary b { color: #E50C54; font-size: 13px; }
.bh__job-fav {
  display: flex; align-items: center; gap: 3px;
  font-size: 9.5px; color: #9A9A9A;
}
.bh__job-fav i {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--aimi-red-20);
  color: #E50C54;
  font-style: normal;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
}

/* ============================================================== 首页 · AI 版 */
.bi { min-height: 100%; position: relative; padding: 0 20px; }
.bi__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
  padding-top: calc(4px + env(safe-area-inset-top, 0px));
  font-size: 11px;
  color: #606060;
}
.bi__top button { border: 0; background: transparent; padding: 0; font-size: 11px; color: inherit; }
.bi__to-classic { text-decoration: underline; text-underline-offset: 3px; }
.bi__auth { display: flex; align-items: center; gap: 6px; }
.bi__reg {
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: #E50C54 !important;
  color: #fff !important;
  font-weight: 600;
}
.bi__rule { height: 1px; background: #D9D9D9; margin: 0 -20px; }
.bi__logo { width: 62%; max-width: 260px; margin: 56px auto 0; }
.bi__search {
  display: flex; align-items: center; gap: 8px;
  height: 40px; margin: 34px auto 0;
  padding: 0 4px 0 10px;
  border: 1.5px solid #E50C54;
  border-radius: 999px;
  max-width: 290px;
  background: #fff;
}
.bi__search-logo { width: 24px; height: 24px; }
.bi__search-line { width: 1px; height: 17px; background: #E5E5E5; }
.bi__search-kw { flex: 1; font-size: 14px; color: #333; }
.bi__search-ai { font: italic 700 21px/1 Arial, sans-serif; color: #F0487E; }
.bi__search-btn {
  height: 31px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: #E50C54; color: #fff;
  font-size: 13px; font-weight: 600;
}
.bi__hot { margin: 34px 4px 0; }
.bi__hot-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #606060; }
.bi__hot-head b { color: #E50C54; font-weight: 700; margin-left: 6px; }
.bi__hot-head button { border: 0; background: transparent; font-size: 10px; color: #999; padding: 0; }
.bi__hot-rule { height: 1px; background: #D9D9D9; margin: 8px 0 10px; }
.bi__hot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.bi__hot-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.bi__hot-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border: 0; background: transparent; padding: 0;
  text-align: left;
  font-size: 11.5px; color: #606060; white-space: nowrap;
}
.bi__hot-num { width: 14px; flex: 0 0 auto; color: #999; font-size: 11px; }
.bi__hot-row:nth-child(3) .bi__hot-num { color: #E50C54; }
.bi__hot-tag {
  padding: 0 3px; border-radius: 2px;
  font-size: 9px; color: #fff;
  background: #E50C54;
}
.bi__hot-tag--orange { background: #F5A623; }
.bi__dome {
  position: absolute;
  left: -20%; right: -20%; bottom: 0;
  height: 15%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(120% 150% at 50% 100%, #FDEBF1 0%, var(--aimi-red-20) 45%, rgba(244,139,172,.35) 78%, rgba(244,139,172,0) 100%);
}
.bi__foot {
  position: absolute;
  bottom: 4.5%; left: 50%;
  width: 96px;
  transform: translateX(-50%);
}

/* ============================================================ 登录 / 注册 */
.ba {
  flex: 1 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 26px;
}
.ba__logo { width: 152px; margin: 17vh auto 46px; }
.ba--register .ba__logo { margin: 9vh auto 34px; }
.ba__form { width: 100%; }

.ba__row {
  display: flex; align-items: center;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #E50C54;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.ba__label {
  flex: 0 0 33%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #E50C54;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ba__row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0; outline: none;
  background: transparent;
  padding: 0 16px;
  font: 14px/1 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #231815;
}
.ba__row input::placeholder { color: #C9CDD2; }

.ba__forgot { display: flex; justify-content: flex-end; gap: 12px; margin: -4px 4px 16px; }
.ba__forgot button { border: 0; background: transparent; color: #8A8A8A; font-size: 11px; padding: 0; }
.ba__forgot .ba__code-login { color: #B0B0B0; font-size: 10px; }

.ba__agree { display: flex; align-items: center; gap: 6px; margin: 0 2px 20px; font-size: 11px; color: #8A8A8A; }
.ba__agree input {
  appearance: none; -webkit-appearance: none;
  width: 12px; height: 12px; margin: 0;
  border: 1px solid #B9BDC2; border-radius: 2px; background: #fff;
}
.ba__agree input:checked { background: #E50C54; border-color: #E50C54; }
.ba__agree a { color: #1B6CFF; text-decoration: none; }

.ba__submit {
  display: block;
  width: 100%;
  height: 44px;
  border: 0; border-radius: 999px;
  background: #E50C54;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  box-shadow: 0 6px 14px rgba(229, 12, 84, .22);
}
.ba__submit:active { transform: scale(.99); }
.ba__submit:disabled { background: var(--aimi-red-40); box-shadow: none; }
.ba__regline { display: flex; justify-content: center; gap: 6px; margin-top: 14px; font-size: 11px; color: #8A8A8A; }
.ba__regline button { border: 0; background: transparent; color: #E50C54; font-size: 11px; padding: 0; }
.ba__home {
  align-self: center;
  margin-top: auto;
  margin-bottom: 26px;
  border: 0; background: transparent;
  color: #E50C54;
  font-size: 11px;
  padding: 0;
}

/* 注册：身份分段 + 资料表单 */
.ba__segment {
  display: flex;
  width: 100%;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid #E50C54;
  border-radius: 999px;
  overflow: hidden;
}
.ba__segment button {
  flex: 1;
  border: 0; background: #fff;
  color: #E50C54;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.ba__segment button.is-on { background: #E50C54; color: #fff; }
.ba__fields { display: flex; flex-direction: column; gap: 10px; }
.ba__field,
.ba__select,
.ba__textarea {
  width: 100%;
  height: 34px;
  border: 1px solid #C9CDD2;
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  font: 11.5px/1 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #231815;
  outline: none;
}
.ba__field::placeholder, .ba__textarea::placeholder { color: #9A9A9A; }
.ba__field:focus, .ba__select:focus, .ba__textarea:focus { border-color: #E50C54; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba__select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8A8A8A 50%), linear-gradient(135deg, #8A8A8A 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 11px) 14px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 26px;
  color: #9A9A9A;
}
.ba__textarea { height: 104px; border-radius: 12px; padding: 10px 14px; resize: none; line-height: 1.5; }
.ba--register .ba__submit { width: 132px; margin: 26px auto 0; letter-spacing: 2px; }

/* ------------------------------------------- 旧 auth 次要页同步换成无忧红 */
.auth { --auth-green: #E50C54; --auth-green-2: #F5537F; --auth-sub: #8A8A8A; }
.auth__hero { background: linear-gradient(158deg, #F5537F 0%, #E50C54 55%, #C10846 100%); }
.auth__bubble { color: #E50C54; box-shadow: 0 6px 16px rgba(229, 12, 84, .18); }
.auth__field:focus-within { box-shadow: 0 0 0 1.5px rgba(229, 12, 84, .35); }
.auth__eye, .auth__send, .auth__forgot, .auth__agree a { color: #E50C54; }
.auth__agree input:checked { background: #E50C54; border-color: #E50C54; }
.auth__primary {
  background: linear-gradient(90deg, #F5537F, #E50C54);
  box-shadow: 0 8px 18px rgba(229, 12, 84, .26);
}
.auth__primary:disabled { background: var(--aimi-red-40); }
.auth__wx i svg path { fill: #E50C54; }

/* 窄屏适配：保持例图比例，字号等比缩小 */
@media (max-width: 360px) {
  .bh__nav { gap: 8px; font-size: 10px; }
  .bh__nav button { font-size: 10px; }
  .bh__banner { height: 148px; }
  .bh__banner-title { font-size: 23px; }
  .ba { padding: 0 20px; }
}
