/* elaiban-web/pages/profile.html · 个人中心视觉重构（武汉通 H5） */

.uc-body {
  background: #f5f1ea;
  font-family: var(--font-sans), -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* h5.css 用 `html.h5-app body` / `.app-shell` 提升了底色特异度，这里同步覆盖为暖纸色 */
html.h5-app body.uc-body { background: #f5f1ea; }
html.h5-app body.uc-body .app-shell,
html.h5-app body.uc-body .main-scroll { background: #f5f1ea; }

.uc-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px 24px;
  color: #241f1b;
}

/* ── 城市影像头部 ─────────────────────────────────── */
.uc-hero {
  position: relative;
  height: 272px;
  margin: 0 -12px;
  overflow: hidden;
  background: #31100f;
}
.uc-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: brightness(.84) saturate(.96);
}
.uc-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 6, 6, .58) 0%, rgba(32, 8, 8, .16) 40%, rgba(28, 8, 8, .58) 74%, rgba(24, 6, 6, .82) 100%),
    linear-gradient(100deg, rgba(120, 20, 20, .38), rgba(120, 20, 20, 0) 58%);
}

.uc-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 0;
}
.uc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius:8px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.uc-back svg { width: 19px; height: 19px; }
.uc-topbar__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.uc-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius:8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}
.uc-help svg { width: 13px; height: 13px; }

/* 身份卡：浮在城市影像上 */
.uc-idcard {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px;
  border-radius:8px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 20px 40px -26px rgba(30, 10, 8, .75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.uc-avatar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius:8px;
  overflow: hidden;
  color: #fff;
  font-family: var(--serif), "Noto Serif SC", serif;
  font-size: 21px;
  font-weight: 700;
  background: linear-gradient(150deg, #cf5a44, #9a2020);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(189, 46, 46, .16);
}
.uc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.uc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.uc-id strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #241f1b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-id p {
  margin: 0;
  font-size: 12px;
  letter-spacing: .02em;
  color: #8c8276;
}
.uc-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 19px;
  margin-top: 1px;
  padding: 0 7px;
  border-radius:8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #9a3a30;
  background: rgba(189, 46, 46, .09);
}
.uc-badge.is-off { color: #8c8276; background: #f2ede5; }

.uc-edit {
  flex: none;
  height: 36px;
  padding: 0 13px;
  border: 1px solid #e8ddcd;
  border-radius:8px;
  background: #fff;
  color: #6f6558;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.uc-edit:active { border-color: rgba(189, 46, 46, .45); color: var(--primary); }

/* ── 统计 ─────────────────────────────────────────── */
.uc-stats {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 16px 4px;
  border-radius:8px;
  background: #fff;
  box-shadow: 0 14px 28px -26px rgba(70, 35, 25, .5);
}
.uc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.uc-stat b {
  font-family: var(--serif), "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  color: #2a2320;
}
.uc-stat span {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #8c8276;
}
.uc-stat__divider {
  flex: none;
  width: 1px;
  height: 24px;
  background: #eee7dc;
}

/* ── 通用卡片 ─────────────────────────────────────── */
.uc-card {
  margin-top: 12px;
  border-radius:8px;
  background: #fff;
  box-shadow: 0 14px 28px -26px rgba(70, 35, 25, .45);
}
.uc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 6px;
}
.uc-card__head h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #2a2320;
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px 8px 12px;
}
.uc-grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border-radius:8px;
  text-decoration: none;
  color: inherit;
  transition: background .16s ease;
}
.uc-grid__item:active { background: #faf6ef; }
.uc-grid__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius:8px;
  color: #5c5349;
  background: #f6f1e8;
}
.uc-grid__icon svg { width: 21px; height: 21px; }
.uc-grid__icon--brand {
  color: #fff;
  background: linear-gradient(140deg, #cb4b3f, #a02222);
  box-shadow: 0 10px 18px -12px rgba(160, 34, 34, .7);
}
.uc-grid__label {
  font-size: 11.5px;
  letter-spacing: .02em;
  color: #4d453c;
}
.uc-dot {
  position: absolute;
  top: 10px;
  right: 18px;
  min-width: 7px;
  height: 7px;
  border-radius:8px;
  background: var(--primary);
}

/* ── 更多服务 ─────────────────────────────────────── */
.uc-list { padding: 4px 6px; }
.uc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 12px;
  border: none;
  border-radius:8px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.uc-row:active { background: #faf6ef; }
.uc-row__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius:8px;
  color: #6e6255;
  background: #f7f2e9;
}
.uc-row__icon svg { width: 17px; height: 17px; }
.uc-row__label { flex: 1; }
.uc-row__note { font-size: 11px; color: #a09689; }
.uc-row__chevron { flex: none; width: 15px; height: 15px; color: #c4b9ab; }
.uc-row--danger .uc-row__label,
.uc-row--danger .uc-row__icon { color: #a3453a; }

/* ── 页脚声明 ─────────────────────────────────────── */
.uc-foot {
  margin: 18px 6px 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: #9c9287;
}
.uc-foot p { margin: 0; }
.uc-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── 编辑资料弹层 ─────────────────────────────────── */
.uc-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.uc-sheet[hidden] { display: none !important; }
.uc-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 8, .48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.uc-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 10px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius:8px;
  background: #fff;
  box-shadow: 0 -18px 50px -20px rgba(30, 12, 8, .4);
  animation: ucSheetUp .26s cubic-bezier(.22, .8, .3, 1);
}
@keyframes ucSheetUp {
  from { transform: translateY(16px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.uc-sheet__bar {
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius:8px;
  background: #ece5da;
}
.uc-sheet__panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #241f1b;
}
.uc-sheet__field {
  display: block;
}
.uc-sheet__field span {
  display: block;
  margin: 0 2px 7px;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: #8a8178;
}
.uc-sheet__field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #e9dfd2;
  border-radius:8px;
  background: #fdfbf8;
  font-family: inherit;
  font-size: 15px;
  color: #241f1b;
  outline: none;
}
.uc-sheet__field input:focus {
  border-color: rgba(189, 46, 46, .5);
  box-shadow: 0 0 0 3px rgba(189, 46, 46, .08);
  background: #fff;
}
.uc-sheet__hint {
  margin: 9px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: #a09689;
}
.uc-sheet__msg {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--destructive);
}
.uc-sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.uc-sheet__cancel,
.uc-sheet__save {
  flex: 1;
  height: 48px;
  border-radius:8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.uc-sheet__cancel {
  border: 1px solid #e8ddcd;
  background: #fff;
  color: #6f6558;
}
.uc-sheet__save {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #c93a34, #96201f);
  box-shadow: 0 14px 26px -16px rgba(150, 32, 31, .6);
}
.uc-sheet__save:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 360px) {
  .uc-hero { height: 258px; }
  .uc-idcard { gap: 10px; padding: 12px; }
  .uc-avatar { width: 48px; height: 48px; font-size: 19px; }
  .uc-grid__label { font-size: 11px; }
}

/* h5.css 内存在 `html.h5-app body * { border-radius:8px !important }` 的全站规则，
   个人中心各元素统一按 8px 圆角兜底，避免被页面级默认值改回其它数值。 */
html.h5-app body .uc-avatar { border-radius:8px !important; }
html.h5-app body .uc-avatar img { border-radius:8px !important; }
html.h5-app body .uc-back,
html.h5-app body .uc-help,
html.h5-app body .uc-edit,
html.h5-app body .uc-badge,
html.h5-app body .uc-dot { border-radius:8px !important; }
html.h5-app body .uc-idcard { border-radius:8px !important; }
html.h5-app body .uc-stats,
html.h5-app body .uc-card { border-radius:8px !important; }
html.h5-app body .uc-grid__icon,
html.h5-app body .uc-grid__item { border-radius:8px !important; }
html.h5-app body .uc-row,
html.h5-app body .uc-row__icon { border-radius:8px !important; }
html.h5-app body .uc-sheet__panel { border-radius:8px !important; }
html.h5-app body .uc-sheet__field input,
html.h5-app body .uc-sheet__cancel,
html.h5-app body .uc-sheet__save { border-radius:8px !important; }
