/* H5：可点击元素手型（button / navigator / 带 hover-class / @click 注入的 .h5-clickable） */
button,
uni-button,
navigator,
uni-navigator,
[hover-class]:not([hover-class="none"]):not([hover-class=""]) {
  cursor: pointer;
}

.h5-clickable {
  cursor: pointer;
}

page {
  height: 100%;
  font-family:
    "Source Han Serif SC",
    "Source Han Serif CN",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

view {
  box-sizing: border-box;
}

button {
  margin: 0;
  padding: 0;
}

#app {
  margin: 0 auto;
  max-width: 650px !important;
}

/* ── H5 系统导航栏 uni-page-head（随主题 CSS 变量；首屏默认青瓷·宣纸）── */
:root {
  --bg-page: #fbf9f6;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5650;
  --border-color: #e8e5df;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.035);
}

uni-page-head {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 650px;
}

.uni-page-head {
  background-color: var(--bg-page, #fbf9f6) !important;
  color: var(--text-primary, #2c2c2c) !important;
  border-bottom: 1px solid var(--border-color, #e8e5df);
  box-shadow: var(--shadow-card, 0 2px 16px rgba(0, 0, 0, 0.035));
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.uni-page-head__title {
  color: var(--text-primary, #2c2c2c) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.uni-page-head-hd .uni-page-head-btn {
  cursor: pointer;
}

.uni-page-head-hd svg path {
  fill: var(--text-primary, #2c2c2c) !important;
}

.uni-page-head ~ .uni-placeholder {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 651px) {
  .uni-page-head {
    left: 50% !important;
    right: auto !important;
    width: 100%;
    max-width: 650px;
    transform: translateX(-50%);
  }
}

.h5-tab-nav {
  z-index: 1000;
}

* {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
uni-toast,
uni-modal,
uni-action-sheet {
  z-index: 9999999;
}

/* H5：picker 底部弹层默认 z-index≈1000，须高于业务 fixed 弹窗（如 99998 的成员统计模态） */
.uni-picker-container {
  z-index: 9999999 !important;
}

.uni-picker-container .uni-picker {
  z-index: 9999999 !important;
}

uni-modal .uni-mask {
  background: rgba(44, 44, 44, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

uni-modal .uni-modal {
  width: min(88vw, 340px);
  max-width: 340px;
  border-radius: 16px;
  box-shadow:
    0 24px 48px -12px rgba(44, 44, 44, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  text-align: left;
  overflow: hidden;
  animation: uni-modal-h5-enter 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes uni-modal-h5-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

uni-modal .uni-modal__hd {
  padding: 22px 22px 8px;
}

uni-modal .uni-modal__title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #2C2C2C;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  text-align: center;
}

uni-modal .uni-modal__bd {
  padding: 8px 22px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #A09B93;
  max-height: min(52vh, 360px);
}

uni-modal .uni-modal__ft {
  line-height: 50px;
  font-size: 16px;
  font-weight: 500;
  background: #FBF9F6;
}

uni-modal .uni-modal__ft::after {
  border-top-color: #E8E5DF;
}

uni-modal .uni-modal__btn {
  text-align: center;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

uni-modal .uni-modal__btn:active {
  background-color: #F2F0EC;
}

uni-modal .uni-modal__btn::after {
  border-left-color: #E8E5DF;
}

uni-modal .uni-modal__btn_default {
  color: #5a5650 !important;
}

uni-button {
  margin-left: 0;
  margin-right: 0;
}

uni-modal .uni-modal__btn_primary {
  color: #5BA89E;
}
