/* 个人中心 · 图示布局 */

body.hm-page-mine {
  background: #f3f4f6 !important;
}

body.hm-page-mine .myCenter.wrap-content {
  background: #f3f4f6 !important;
}

body.hm-page-mine .myCenter > .header,
body.hm-page-mine .myCenter > .v12-head,
body.hm-page-mine .myCenter > .v11-head,
body.hm-page-mine #main > *:not(#hm_mine_home) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

#hm_mine_home.mh-root {
  display: none;
  padding: 0 0 88px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
}

body.hm-page-mine #main {
  top: 0 !important;
  background: #f3f4f6 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  position: relative !important;
}

body.hm-page-mine #hm_mine_home.mh-root {
  display: block !important;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.mh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 44px;
  padding: 0 12px;
  margin: 0;
  background: #f3f4f6;
  box-sizing: border-box;
}

.mh-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  height: 100%;
}

.mh-brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

/* 顶栏以下内容左右留白 */
#hm_mine_home.mh-root > .mh-card,
#hm_mine_home.mh-root > .mh-grid,
#hm_mine_home.mh-root > .mh-list {
  margin-left: 12px;
  margin-right: 12px;
}

#hm_mine_home.mh-root > .mh-card:first-of-type {
  margin-top: 8px;
}

.mh-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mh-top-money {
  font-size: 13px;
  font-weight: 700;
  color: #c9a227;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mh-top-charge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e73b3b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.mh-top-kf {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.mh-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
}

.mh-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mh-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fde8ec;
  color: #e73b3b;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mh-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-profile-main {
  min-width: 0;
  flex: 1;
}

.mh-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-sub {
  margin: 0;
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-settings {
  flex-shrink: 0;
  color: #8a8a8a;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.mh-money-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mh-money-big {
  font-size: 28px;
  font-weight: 800;
  color: #c9a227;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.mh-money-side {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.2;
}

.mh-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mh-action {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  line-height: 1.2;
}

.mh-action.primary {
  background: #e73b3b;
  color: #fff;
  border: 1px solid #e73b3b;
}

.mh-action.ghost {
  background: #fff;
  color: #555;
  border: 1px solid #e3e5e8;
}

.mh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.mh-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 8px;
  text-decoration: none;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-height: 88px;
}

.mh-grid-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.mh-grid-icon .iconfont {
  font-size: 20px;
  font-weight: normal;
  color: #fff;
  line-height: 1;
}

.mh-grid-icon.c1 { background: #e73b3b; }
.mh-grid-icon.c2 { background: #2f7de0; }
.mh-grid-icon.c3 { background: #c9a227; }
.mh-grid-icon.c4 { background: #2f9e5b; }
.mh-grid-icon.c5 { background: #1aa3a3; }
.mh-grid-icon.c6 { background: #e67e22; }
.mh-grid-icon.c7 { background: #7363f6; }
.mh-grid-icon.c8 { background: #5c6bc0; }
.mh-grid-icon.c9 { background: #26a69a; }

.mh-grid-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  text-align: center;
}

.mh-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
}

.mh-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f1f3;
  box-sizing: border-box;
}

.mh-list-item:last-child {
  border-bottom: none;
}

.mh-list-left {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}

.mh-list-item.mh-app-item .mh-list-left,
.mh-list-item.mh-kf-item .mh-list-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mh-app-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-app-icon-wrap .iconfont {
  font-size: 28px;
  color: #ec2829;
  line-height: 1;
}

.mh-app-hot {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 22px;
  height: auto;
  pointer-events: none;
}

.mh-app-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.mh-kf-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.mh-list-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8a8a8a;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mh-list-right::after {
  content: "›";
  font-size: 16px;
  color: #bbb;
  line-height: 1;
}

.mh-guest {
  padding: 40px 16px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.mh-guest a {
  color: #e73b3b;
  font-weight: 700;
  text-decoration: none;
}
