
/* ============================================================
   我的：照 App mine_page.dart
   ============================================================ */
.mine-head {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px;
  font-size: 18px; font-weight: 700;
  background: #FFFFFF;
  color: #1A1A1E;
}

/* 未登录 */
.mine-login { background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); margin: 14px; }
.btn-primary {
  display: block; margin: 0 auto 22px; width: 132px; text-align: center;
  padding: 10px 0; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
}

/* 名片 */
.mu { background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); margin: 12px 14px 0; padding: 16px 16px 14px; }
.mu-top { display: flex; align-items: flex-start; gap: 13px; }
.mu-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; background: #F7F8FA; border: 1px solid var(--border); }
.mu-av img { width: 100%; height: 100%; object-fit: cover; }
.mu-av i { display: grid; place-items: center; width: 100%; height: 100%; font-style: normal; font-size: 21px; font-weight: 700; color: var(--text-2); }
.mu-main { flex: 1; min-width: 0; }
.mu-nick { font-size: 18.5px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 6px; }
.mu-edit { color: var(--text-3); }
.mu-edit svg { width: 15px; height: 15px; }
.mu-phone { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.mu-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mu-tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.mu-tag.title { background: var(--brand-soft); color: var(--brand); }
.mu-tag.ok { background: #E8F7F0; color: #0E7A46; border: 1px solid rgba(14, 122, 70, .22); font-size: 9.5px; padding: 2px 6px; border-radius: 4px; }
.mu-join { font-style: normal; font-size: 9.5px; color: var(--text-3); }
.mu-plan {
  flex: none; margin-top: 2px; padding: 3px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; line-height: 1.2;
  background: #FFF7E6; border: 1px solid #F2DFB4; color: #8A6100;
}
.mu-plan.svip { background: #1C1F26; border-color: #C9A227; color: #E9C46A; }
.mu-meta { display: flex; gap: 16px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.mu-meta > div { flex: 1; min-width: 0; }
.mu-k { font-size: 9.5px; letter-spacing: .8px; color: var(--text-3); }
.mu-v { margin-top: 5px; font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; }
.mu-v .lv-on { color: var(--brand); }
.mu-open { font-size: 10.5px; font-weight: 700; color: var(--brand); }

/* 数据概览 */
.ms { background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); margin: 12px 14px 0; overflow: hidden; }
.ms-head { display: flex; align-items: center; padding: 11px 16px 0 18px; }
.ms-k { font-size: 9.5px; letter-spacing: .8px; color: var(--text-3); }
.ms-switch { margin-left: auto; display: flex; gap: 4px; }
.ms-switch a { font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.ms-switch a.on { background: var(--brand-soft); border-color: rgba(196, 30, 58, .35); color: var(--brand); font-weight: 600; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 16px 12px; text-align: center; }
.ms-grid b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ms-grid span { font-size: 9.5px; color: var(--text-3); }
.ms-insight { display: flex; align-items: center; gap: 8px; padding: 12px 14px 13px 16px; border-top: 1px solid var(--border); }
.ms-insight svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.ms-insight b { font-size: 13.5px; font-weight: 600; }
.ms-insight span { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-insight i { margin-left: auto; font-style: normal; color: var(--text-3); }

/* 三张快捷卡 */
.mq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 14px 0; }
.mq a { background: #fff; border-radius: 14px; box-shadow: var(--card-shadow); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.mq svg { width: 18px; height: 18px; color: var(--brand); }
.mq b { font-size: 13px; font-weight: 600; }
.mq span { font-size: 11px; color: var(--text-3); }

/* 会员条 */
.mvip { display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--card-shadow); }
.mvip-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.mvip-ic svg { width: 18px; height: 18px; }
.mvip-tx { flex: 1; min-width: 0; }
.mvip-tx b { display: block; font-size: 14px; font-weight: 600; }
.mvip-tx span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.mvip-btn { flex: none; background: var(--brand); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 600; }

/* 分组列表 */
.gt { font-size: 12.5px; font-weight: 500; color: var(--text-3); padding: 0 18px; margin: 18px 0 8px; }
.grp { background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); margin: 0 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.row + .row { border-top: 1px solid var(--border); }
.row svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.row-tx { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.row-tip { font-size: 12.5px; color: var(--text-3); }
.row-arr { font-size: 15px; color: #C9C4C6; }

body.page-mine { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 14px); }

@media (min-width: 900px) {
  .mine-head, .mu, .ms, .mq, .mvip, .gt, .grp, .mine-login { max-width: 720px; margin-left: auto; margin-right: auto; }
  .mine-head { border-radius: 0 0 20px 20px; }
  .mq { padding: 0; }
}

/* 数据看板：没权限时的锁定态 */
.ms-insight.locked b { color: var(--text-2); }
.ms-insight.locked .lock-tag {
  font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: #FFF7E6; border: 1px solid #F2DFB4; color: #8A6100;
}
.ms-insight.locked .lock-hint { font-size: 11px; color: var(--text-3); }
.ms-insight.locked .mi:last-child { margin-left: auto; color: #C9C4C6; }

/* PC 双栏时左栏不要再显示粉色「我的」标题条：顶部导航已经有「我的」了 */
@media (min-width: 769px) {
  .mine-head { display: none; }
}
