/* ============================================================
   上海勘察外业云 H5 版 —— 全局样式
   主题色 #2A8885（对应原 App 的 mui my_header）
   ============================================================ */

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system-font, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  background-color: #efeff4;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
  background: transparent;
}

.hidden {
  display: none !important;
}

/* ---------- 页面容器 ---------- */
#app {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.page {
  min-height: 100vh;
}

/* 带底部导航的页面留出空间 */
.page-with-tabbar {
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

/* ---------- 顶部导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 46px;
  background-color: #2A8885;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  height: calc(46px + env(safe-area-inset-top));
}

.navbar-title {
  font-size: 17px;
  font-weight: 500;
}

.navbar-btn {
  position: absolute;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 8px 10px;
  background: transparent;
}

.navbar-btn-left {
  left: 2px;
}

.navbar-btn-right {
  right: 2px;
  font-size: 20px;
}

/* ---------- 卡片 / 列表 ---------- */
.card {
  background-color: #fff;
  border-radius: 10px;
  margin: 12px;
  overflow: hidden;
}

.cell {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.cell:last-child {
  border-bottom: none;
}

.cell-body {
  flex: 1;
  min-width: 0;
}

.cell-name {
  font-size: 15px;
  color: #333;
}

.cell-sub {
  font-size: 13px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-arrow {
  color: #bbb;
  font-size: 18px;
  margin-left: 6px;
  flex-shrink: 0;
}

/* ---------- 表单 ---------- */
.form-row {
  display: flex;
  align-items: center;
  padding: 11px 15px;
  background-color: #fff;
  border-bottom: 1rpx solid #eee;
  border-bottom: 1px solid #eee;
}

.form-row:last-child {
  border-bottom: none;
}

.form-label {
  width: 85px;
  font-size: 14px;
  color: #333;
  flex-shrink: 0;
}

.form-value {
  flex: 1;
  font-size: 14px;
  min-width: 0;
}

.form-input {
  width: 100%;
  font-size: 15px;
}

.form-input[disabled] {
  color: #999;
}

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: calc(100% - 30px);
  margin: 15px;
  padding: 12px 0;
  border-radius: 22px;
  font-size: 16px;
  text-align: center;
}

.btn::after {
  border: none;
}

.btn-primary {
  background-color: #2A8885;
  color: #fff;
}

.btn-blue {
  background-color: #007aff;
  color: #fff;
}

.btn-green {
  background-color: #4cd964;
  color: #fff;
}

.btn-outline {
  background-color: #fff;
  color: #2A8885;
  border: 1px solid #2A8885;
}

.btn-mini {
  display: inline-block;
  width: auto;
  margin: 0 0 0 8px;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- 加载框 ---------- */
.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  color: #fff;
  min-width: 110px;
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 25%;
  transform: translateX(-50%);
  z-index: 2100;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  max-width: 76%;
  text-align: center;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- 模态弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  padding: 16px 20px 6px;
}

.modal-content {
  text-align: center;
  font-size: 15px;
  color: #555;
  padding: 4px 24px 20px;
  word-break: break-all;
}

.modal-btns {
  display: flex;
  border-top: 1px solid #eee;
}

.modal-btn {
  flex: 1;
  background: #fff;
  font-size: 16px;
  padding: 13px 0;
  color: #666;
}

.modal-btn + .modal-btn {
  border-left: 1px solid #eee;
}

.modal-btn-primary {
  color: #2A8885;
  font-weight: 500;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  background: #fff;
  border-top: 1px solid #ddd;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 0 3px;
  color: #707070;
}

.tab-item.active {
  color: #2A8885;
}

.tab-icon {
  font-size: 22px;
  line-height: 1.2;
}

.tab-label {
  font-size: 11px;
}

/* ---------- 通用小元素 ---------- */
.empty-tips {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 40px 0;
}

.section-label {
  margin: 15px 15px 8px;
  font-size: 14px;
  color: #333;
}

.tip-red {
  color: red;
  font-size: 12px;
  padding: 4px 15px 8px;
}

.text-red {
  color: red;
}

/* 人员圆形图标 */
.person-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  margin-right: 11px;
  flex-shrink: 0;
}

.icon-record {
  background-color: #fb4746;
}

.icon-jizhang {
  background-color: royalblue;
}

/* 加载更多/没有更多 */
.list-footer {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 14px 0;
}

/* ============================================================
 * 页面专属样式
 * ============================================================ */

/* ---------- 登录页 ---------- */
.login-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.login-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-content {
  position: relative;
  top: 24vh;
  width: 90%;
  left: 50%;
  margin-left: -45%;
  border-radius: 10px;
  padding: 0 25px 20px;
  background-color: #fff;
}

.login-logo {
  text-align: center;
  margin-top: -37px;
}

.logo-img {
  width: 74px;
  height: 74px;
  border: 1px solid #fb4746;
  border-radius: 50%;
  background-color: #fff;
}

.link-area {
  margin-top: 12px;
  margin-bottom: 8px;
  text-align: right;
}

.link-area a {
  color: #fb4746;
  font-size: 14px;
}

.ipttxt-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ipt-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}

.ipt {
  flex: 1;
  height: 36px;
  border: 1px solid #fb4746;
  border-radius: 30px;
  padding-left: 15px;
  font-size: 14px;
  background-color: transparent;
}

.remember-row {
  margin-top: 12px;
  margin-bottom: 6px;
}

.remember-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.remember-label input {
  margin-right: 6px;
}

.btn-login {
  margin: 10px 0 5px;
  padding: 10px 0;
  background-color: #ff7776;
  border: 1px solid #fb4746;
  border-radius: 30px;
  color: #fff;
  font-size: 16px;
  width: 100%;
}

/* ---------- 项目浏览：搜索栏 ---------- */
.search-bar {
  background: #2A8885;
  padding: 10px 12px 14px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.search-input {
  background: #fff;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  width: 100%;
  margin-bottom: 10px;
}

.search-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-btns .btn-mini {
  margin: 0;
}

.project-card {
  padding: 12px 15px;
}

.project-card:active {
  background: #f6f6f6;
}

.project-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.project-line {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 关联手机号/重置密码 ---------- */
.qiyedaima {
  color: yellowgreen;
  font-size: 17px;
  font-weight: bold;
}

/* ---------- 人员分配页 ---------- */
.card-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #2A8885;
  text-align: right;
}

.role-switch {
  display: flex;
  margin: 0 12px 12px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.role-item {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  font-size: 14px;
  color: #666;
}

.role-item.active {
  background-color: #2A8885;
  color: #fff;
}

.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background-color: #fff;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.06);
  z-index: 800;
}

/* ---------- 孔信息列表 ---------- */
.selcard {
  position: fixed;
  top: calc(46px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 90;
  background-color: antiquewhite;
  padding: 10px 12px;
}

.sel-row {
  display: flex;
}

.sel-item {
  flex: 1;
  text-align: center;
}

.sel-label {
  font-size: 14px;
  color: #333;
}

.sel-label.active {
  color: #2A8885;
  font-weight: bold;
}

.sel-count {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.hole-no {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.hole-js {
  background-color: red;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  padding: 1px 7px;
  margin-right: 8px;
}

.hole-name {
  font-size: 15px;
  font-weight: bold;
  flex: 1;
}

.hole-no.text-red .hole-name {
  color: red;
}

.hole-depth {
  font-size: 14px;
  color: #333;
}

/* ---------- 复选列表 ---------- */
.check-item {
  cursor: pointer;
}
