/* ===== 日头家政人才 H5 全局样式（小程序 app.wxss 移植，rpx→rem：1rem = 100rpx） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(100vw / 7.5); }
body {
  background-color: #f5f5f5;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
  line-height: 1.5;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; outline: none; border: none; background: none; }
button { padding: 0; }

/* 顶部导航栏 */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 0.88rem;
  background: #62b9b0; color: #fff;
  display: flex; align-items: center;
  max-width: 750px; margin: 0 auto;
  padding-top: env(safe-area-inset-top);
}
.navbar-back {
  width: 0.9rem; text-align: center; font-size: 0.5rem; line-height: 1; cursor: pointer;
  flex-shrink: 0; padding-bottom: 0;
}
.navbar-title {
  flex: 1; text-align: center; font-size: 0.34rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 0.2rem;
}
.navbar-right { width: 0.9rem; flex-shrink: 0; }

/* 页面容器 */
.app {
  padding-top: calc(0.88rem + env(safe-area-inset-top));
  min-height: 100vh;
}
.app.has-tabbar {
  padding-bottom: calc(0.96rem + env(safe-area-inset-bottom));
}
.app.no-nav { padding-top: 0; }

/* 底部 TabBar */
.tabbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-width: 750px; margin: 0 auto;
}
.tabbar {
  display: flex; height: 0.96rem; padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid #eee;
  box-sizing: content-box; overflow: hidden;
}
.tabbar-item {
  flex: 1; height: 0.96rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #999; cursor: pointer;
}
.tabbar-item.on { color: #62b9b0; }
.tabbar-mark {
  width: 0.44rem; height: 0.44rem; line-height: 0.44rem; text-align: center;
  font-size: 0.22rem; font-weight: 700; border-radius: 0.12rem; background: #f3f3f3; color: #999;
}
.tabbar-item.on .tabbar-mark { background: #62b9b0; color: #fff; }
.tabbar-txt { margin-top: 0.04rem; font-size: 0.2rem; line-height: 0.28rem; }

/* 通用类（app.wxss） */
.container { padding: 0.24rem; padding-bottom: calc(0.24rem + env(safe-area-inset-bottom)); }
.card { background: #fff; border-radius: 0.16rem; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.04); }
.primary { color: #62b9b0; }
.btn-primary {
  background: #62b9b0; color: #fff; border-radius: 0.12rem; text-align: center;
  font-size: 0.3rem; font-weight: 500; height: 0.88rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.form .btn-primary { width: 100%; }
.btn-ghost {
  background: #f5f5f5; color: #333; border-radius: 0.12rem; text-align: center;
  font-size: 0.28rem; height: 0.72rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.tag {
  display: inline-block; font-size: 0.22rem; padding: 0.04rem 0.14rem; border-radius: 0.08rem;
  background: rgba(98,185,176,0.12); color: #62b9b0; margin-right: 0.1rem; margin-bottom: 0.08rem;
}
.tag-gray { background: #f5f5f5; color: #666; }
.empty { padding: 1.2rem 0.4rem; text-align: center; color: #999; }
.empty-icon { font-size: 0.8rem; margin-bottom: 0.16rem; opacity: 0.45; }
.empty-btn {
  display: inline-block; margin-top: 0.28rem; padding: 0.12rem 0.36rem;
  background: #62b9b0; color: #fff; border-radius: 0.32rem; font-size: 0.26rem; cursor: pointer;
}
.section-title { font-size: 0.34rem; font-weight: 600; color: #222; margin-bottom: 0.24rem; }
.salary { color: #e8645a; font-weight: 600; }
.safe-bottom { height: env(safe-area-inset-bottom); }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 9999; background: rgba(0,0,0,0.75); color: #fff; border-radius: 0.16rem;
  padding: 0.24rem 0.36rem; font-size: 0.28rem; max-width: 70vw; text-align: center;
  display: none; opacity: 0; transition: opacity 0.2s;
}
.toast.show { display: block; opacity: 1; }
.toast-icon { font-size: 0.5rem; margin-bottom: 0.12rem; }
.toast-text { line-height: 1.4; word-break: break-all; }

/* Loading */
.loading-mask {
  position: fixed; inset: 0; z-index: 9998; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,0.2);
}
.loading-mask.show { display: flex; }
.loading-box {
  background: rgba(0,0,0,0.75); border-radius: 0.2rem; padding: 0.4rem 0.5rem;
  display: flex; flex-direction: column; align-items: center;
}
.loading-spinner {
  width: 0.56rem; height: 0.56rem; border: 0.06rem solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #fff; font-size: 0.26rem; margin-top: 0.2rem; }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 9997; display: none;
  align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.5);
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 750px; background: #fff;
  border-radius: 0.24rem 0.24rem 0 0; padding: 0.4rem 0.32rem 0;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(30%); opacity: 0.5; } to { transform: none; opacity: 1; } }
.modal-title { text-align: center; font-size: 0.32rem; font-weight: 600; }
.modal-content { text-align: center; font-size: 0.28rem; color: #555; line-height: 1.6; margin-top: 0.24rem; white-space: pre-wrap; }
.modal-btns { display: flex; margin-top: 0.36rem; border-top: 1px solid #eee; }
.modal-btn {
  flex: 1; text-align: center; padding: 0.28rem 0; font-size: 0.32rem; color: #666; cursor: pointer;
}
.modal-btn.primary { color: #62b9b0; font-weight: 600; }
.modal-btn + .modal-btn { border-left: 1px solid #eee; }

/* Picker */
.picker { width: 100%; max-width: 750px; background: #fff; border-radius: 0.24rem 0.24rem 0 0; animation: slideUp 0.25s ease; }
.picker-hd { display: flex; align-items: center; padding: 0.24rem 0.32rem; border-bottom: 1px solid #f0f0f0; }
.picker-cancel { color: #999; font-size: 0.3rem; cursor: pointer; }
.picker-ok { color: #62b9b0; font-size: 0.3rem; font-weight: 600; cursor: pointer; }
.picker-title { flex: 1; text-align: center; font-size: 0.3rem; color: #333; }
.picker-list { max-height: 5rem; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.picker-item { text-align: center; padding: 0.28rem 0; font-size: 0.3rem; color: #333; cursor: pointer; border-bottom: 1px solid #f7f7f7; }
.picker-item.on { color: #62b9b0; font-weight: 600; }

/* 省市区三级联动 */
.region-picker { width: 100%; max-width: 750px; background: #fff; border-radius: 0.24rem 0.24rem 0 0; animation: slideUp 0.25s ease; }
.region-cols { display: flex; height: 5.2rem; padding-bottom: env(safe-area-inset-bottom); }
.region-col { flex: 1; overflow-y: auto; border-right: 1px solid #f0f0f0; }
.region-col:last-child { border-right: none; }
.region-item { padding: 0.24rem 0.16rem; text-align: center; font-size: 0.26rem; color: #333; cursor: pointer; line-height: 1.4; }
.region-item.on { color: #62b9b0; font-weight: 600; background: rgba(98,185,176,0.08); }

/* 图片预览 */
.lightbox {
  position: fixed; inset: 0; z-index: 9996; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,0.9);
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; }

/* 表单通用 */
.form-item { display: flex; align-items: center; background: #fff; padding: 0 0.32rem; min-height: 1.04rem; border-bottom: 1px solid #f5f5f5; }
.form-item .label { width: 1.7rem; font-size: 0.3rem; color: #333; flex-shrink: 0; }
.form-item input, .form-item textarea { flex: 1; font-size: 0.3rem; color: #333; padding: 0.2rem 0; }
.form-item textarea { min-height: 1.2rem; resize: none; line-height: 1.6; }
.form-item .placeholder { color: #bbb; }
.arrow-r { color: #ccc; font-size: 0.4rem; }
.more-tip { text-align: center; color: #999; font-size: 0.24rem; padding: 0.2rem 0 0.4rem; }
