/*
 修改说明：重做 www.91cyzp.cn H5 样式，使首页、招聘详情、套餐、登录、我的页面贴近小程序前端结构；
 仅影响独立 H5 站点样式，不会影响其他功能。
*/
:root {
  --primary: #e9582f;
  --primary-dark: #d44924;
  --orange: #ff8a30;
  --blue: #2f7bff;
  --green: #20a66a;
  --text: #1f2329;
  --muted: #646a73;
  --line: #eef0f3;
  --bg: #f7f8fa;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9edf3;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #e9edf3;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-page {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 42px rgba(24, 34, 54, 0.12);
}

.mini-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(31, 35, 41, 0.06);
  backdrop-filter: blur(12px);
}

.header-top,
.header-bottom,
.header-actions,
.filter-card,
.filter-actions,
.bottom-actions,
.simple-header {
  display: flex;
  align-items: center;
}

.header-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.city-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.chevron {
  color: var(--primary);
  font-size: 18px;
}

.header-actions {
  gap: 8px;
  flex: none;
}

.top-link {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff3ee;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.header-bottom {
  gap: 10px;
}

.search-box {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f3f6;
}

.search-icon {
  color: #8f959e;
  font-size: 19px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.switch-btn,
.login-mini-btn,
.primary-wide,
.wechat-login,
.package-card button,
.phone-btn,
.apply-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.switch-btn {
  flex: none;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
}

.mini-main {
  padding: 12px 12px 86px;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fff;
  color: #4e5969;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.05);
  font-size: 14px;
}

.notice-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1ec;
  color: var(--primary);
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.05);
}

.quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
}

.quick-icon.blue {
  background: var(--blue);
}

.quick-icon.orange {
  background: var(--orange);
}

.quick-action strong,
.quick-action em {
  display: block;
}

.quick-action strong {
  font-size: 16px;
}

.quick-action em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.login-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f2, #ffffff);
  border: 1px solid #ffe3d6;
}

.login-card[hidden] {
  display: none;
}

.login-card strong {
  font-size: 15px;
}

.login-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-mini-btn {
  flex: none;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
}

.filter-card {
  position: sticky;
  top: 116px;
  z-index: 10;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
}

.filter-tabs {
  display: flex;
  gap: 14px;
}

.tab-btn {
  position: relative;
  padding: 8px 4px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.tab-btn.is-active {
  color: var(--primary);
}

.tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--primary);
  transform: translateX(-50%);
}

.filter-actions {
  gap: 8px;
}

.filter-btn {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff3ee;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.job-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.job-card {
  position: relative;
  display: block;
  padding: 16px 15px 14px 18px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(31, 35, 41, 0.05);
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 4px;
  height: 34px;
  border-radius: 0 5px 5px 0;
  background: var(--primary);
}

.job-title-row,
.job-salary-row,
.job-location-row {
  display: flex;
  align-items: center;
}

.job-title-row {
  justify-content: space-between;
  gap: 10px;
}

.job-title-row h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-badge {
  flex: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff1ec;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.job-salary-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.job-salary {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.job-count {
  padding: 4px 7px;
  border-radius: 5px;
  background: #fff1ec;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 8px;
  border-radius: 5px;
  background: #f5f7fa;
  color: #4e5969;
  font-size: 12px;
}

.job-desc {
  display: -webkit-box;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-location-row {
  gap: 6px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #fafafb;
  color: var(--muted);
  font-size: 13px;
}

.job-location-row em {
  margin-left: auto;
  color: #b26a4d;
  font-style: normal;
  white-space: nowrap;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.tabbar a {
  display: grid;
  gap: 3px;
  justify-items: center;
  color: #7c838c;
  font-size: 12px;
}

.tabbar span {
  font-size: 20px;
}

.tabbar a.active {
  color: var(--primary);
  font-weight: 800;
}

.simple-header {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.simple-header a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.simple-header strong {
  font-size: 17px;
}

.detail-main {
  padding-bottom: 110px;
}

.detail-card,
.login-panel,
.package-head,
.package-card,
.profile-card,
.rights-card,
.menu-grid {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.05);
}

.detail-card {
  margin-bottom: 12px;
  padding: 16px;
}

.detail-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-detail h1 {
  margin: 0;
  font-size: 24px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.detail-title-row span {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.salary-large {
  margin: 10px 0;
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.company-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.company-logo,
.avatar,
.brand-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  font-weight: 900;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.company-row p {
  margin-top: 4px;
}

.location-line::before {
  content: "⌖ ";
  color: var(--primary);
}

.bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 480px);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  transform: translateX(-50%);
}

.action-icon {
  flex: none;
  width: 48px;
  height: 44px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #4e5969;
  font-size: 12px;
  font-weight: 800;
}

.phone-btn,
.apply-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
}

.phone-btn {
  background: var(--orange);
}

.login-panel {
  padding: 24px 18px;
}

.brand-block {
  text-align: center;
}

.brand-logo,
.avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 18px;
  font-size: 28px;
}

.brand-block h1 {
  margin: 0;
  font-size: 24px;
}

.brand-block p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.wechat-login,
.primary-wide {
  width: 100%;
  height: 48px;
  border-radius: 999px;
}

.wechat-login {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  background: #1aad19;
}

.wechat-login span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.divider {
  margin: 18px 0;
  color: #8f959e;
  text-align: center;
  font-size: 13px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.form-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.code-field {
  grid-template-columns: 1fr auto;
}

.code-field span {
  grid-column: 1 / -1;
}

.code-field button {
  height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff3ee;
  color: var(--primary);
  font-weight: 800;
}

.package-head {
  padding: 18px;
  background: linear-gradient(135deg, #fff3ee, #fff);
}

.package-head h1 {
  margin: 0;
  font-size: 24px;
}

.package-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.package-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.package-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 0 4px;
}

.package-card {
  padding: 16px;
  border: 1px solid var(--line);
}

.package-card.hot {
  border-color: #ffd2bf;
  background: linear-gradient(135deg, #fff7f2, #fff);
}

.package-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff1ec;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.package-card h2 {
  margin: 0;
  font-size: 20px;
}

.package-card p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.package-price {
  margin-bottom: 13px;
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.package-price small {
  color: var(--muted);
  font-size: 13px;
}

.package-card button {
  width: 100%;
  height: 44px;
  border-radius: 999px;
}

.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.profile-card .avatar {
  flex: none;
  margin: 0;
}

.profile-card h1 {
  margin: 0;
  font-size: 20px;
}

.profile-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rights-card {
  margin-top: 12px;
  padding: 16px;
}

.rights-card strong {
  font-size: 18px;
}

.rights-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.rights-card a {
  color: var(--primary);
  font-weight: 800;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--line);
}

.menu-grid a,
.menu-grid button {
  min-height: 54px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.sheet[hidden] {
  display: none;
}

.sheet,
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.sheet-mask {
  background: rgba(0, 0, 0, 0.36);
}

.sheet-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 81;
  width: min(100%, 480px);
  max-height: 68vh;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  transform: translateX(-50%);
  overflow: auto;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sheet-head button {
  background: transparent;
  color: var(--primary);
  font-weight: 800;
}

.sheet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sheet-options button {
  min-height: 42px;
  border-radius: 8px;
  background: #f5f7fa;
  color: var(--text);
  font-weight: 700;
}

.sheet-options button.is-active {
  background: #fff1ec;
  color: var(--primary);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 100;
  min-width: min(300px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 35, 41, 0.92);
  text-align: center;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
  }

  .app-page {
    min-height: calc(100vh - 48px);
    border-radius: 18px;
    overflow: hidden;
  }

  .tabbar,
  .bottom-actions,
  .sheet-panel {
    width: 480px;
  }
}
