/* 我的页面 UI v3（大肥鱼 2026-11-30 重构）
   要点：
   1) 对齐修复：#content 自带 12px 内边距，这里所有卡片左右外边距归零，保证 hero/stats/menu/logout 同一条左边线
   2) 资料卡重做：水波 + 顶部光泽 + 头像描边光晕 + 在线呼吸点
   3) 统计卡：图标放大加圆角渐变底，数字等宽数字特性
   4) 分组标题左对齐卡片内容，加渐变竖条
   5) 菜单卡：行高收一档，图标配色分色，按压反馈
   6) 原样式没有深色模式，这里补齐 body.dark 全套
*/

#app #content { background: transparent; }

/* 我的页专属柔光背景（支持 :has 的浏览器才生效，不影响其它页） */
#content:has(> .me-hero) {
  background: transparent;
  background-image: radial-gradient(420px 220px at 92% -70px, rgba(124,195,238,.26), transparent 68%);
  background-repeat: no-repeat;
}

/* ══════════ 顶部资料卡 ══════════ */
.me-hero {
  margin: 14px 0 0 !important;
  border-radius: 24px !important;
  padding: 20px 18px !important;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 90% -10%, rgba(255,255,255,.96) 0%, rgba(255,255,255,0) 56%),
    radial-gradient(78% 70% at 0% 112%, rgba(124,195,238,.40) 0%, rgba(124,195,238,0) 62%),
    linear-gradient(140deg, #F4FBFF 0%, #E5F3FE 48%, #D4EAFA 100%) !important;
  border: 1px solid rgba(255,255,255,.95) !important;
  box-shadow: 0 12px 30px rgba(70,130,180,.14), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
/* 右下角水波 */
.me-hero::before {
  content: ''; position: absolute; width: 200px; height: 200px;
  right: -74px; bottom: -112px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,195,238,.38) 0%, rgba(124,195,238,0) 70%);
  pointer-events: none;
}
/* 左上角光泽：不要糊成一圈白，改成淡蓝光 */
.me-hero::after {
  content: ''; position: absolute; left: -40px; top: -70px; width: 230px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 42%, rgba(124,195,238,.30) 0%, rgba(124,195,238,0) 68%);
  pointer-events: none;
}
.me-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }

.me-hero .me-avatar, .me-hero .me-avatar[data-avframe] {
  width: 68px !important; height: 68px !important;
  border-radius: 21px !important;
  flex: none;
  /* 不铺白底、不描白环：头像自己的图自带底，加白圈会顶出一圈白边 */
  background-color: transparent !important;
  box-shadow:
    0 8px 18px rgba(20,70,110,.18),
    0 0 0 1px rgba(74,159,216,.12) !important;
}

.me-hero .me-hero-text { flex: 1; min-width: 0; color: #0E2C3D; overflow: hidden; }
.me-hero .me-name {
  color: #0E2C3D !important;
  font-size: 20px !important; font-weight: 800 !important;
  letter-spacing: .2px;
  /* 长昵称不换行、不顶掉右侧「在线」胶囊 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.me-hero .me-acc {
  color: #4E6A7C !important;
  opacity: 1 !important;
  font-size: 11.5px !important;
  letter-spacing: .25px;
  margin-top: 5px !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 头衔小标签 */
.me-hero .mo-title {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; padding: 2px 7px;
  border-radius: 999px; vertical-align: 2px;
  font-size: 10px; font-weight: 800; color: #8A6A24;
  background: linear-gradient(140deg, #FDF3D9, #F2DCA6);
  box-shadow: 0 1px 4px rgba(201,138,60,.18);
}
.me-hero .mo-title svg { width: 10px; height: 10px; }

/* 在线胶囊 + 呼吸点 */
.me-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 10.5px !important; font-weight: 700 !important;
  color: #1E7A57 !important;
  background: rgba(255,255,255,.93) !important;
  padding: 5px 10px !important; border-radius: 999px !important;
  box-shadow: 0 3px 10px rgba(70,130,180,.14), inset 0 0 0 1px rgba(255,255,255,.9);
}
.me-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #46B87F;
  box-shadow: 0 0 0 2px rgba(70,184,127,.18);
  animation: meDotPulse 2.6s ease-in-out infinite;
}
@keyframes meDotPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(70,184,127,.18); }
  50%      { box-shadow: 0 0 0 5px rgba(70,184,127,.05); }
}

/* ══════════ 三项统计 ══════════ */
.me-stats {
  margin: 10px 0 0 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 22px rgba(70,130,180,.09) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  overflow: hidden;
}
.me-stats .stat { padding: 15px 6px 13px !important; transition: background .16s ease; }
.me-stats .stat:active { background: rgba(74,159,216,.055); }
.me-stats .stat + .stat { border-left: 1px solid rgba(74,159,216,.09) !important; }
.me-stats .stat-ico {
  width: 34px !important; height: 34px !important;
  border-radius: 12px !important;
  margin: 0 auto 7px !important;
  display: flex; align-items: center; justify-content: center;
}
/* app.css 给图标套了一个白色圆环（.stat-ico::after + radius 50%），
   在白卡上看着就是个白圈，业主明确要去掉 —— 这里整块关掉 */
.me-stats .stat-ico::after,
.me-stats .stat-ico::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
}
.me-stats .stat-ico .ico-svg { width: 17px !important; height: 17px !important; stroke-width: 2; }
.me-stats .stat-num, .me-stats .num {
  font-size: 19px !important; font-weight: 800 !important;
  color: #12303F !important;
  letter-spacing: -.2px !important;
  font-variant-numeric: tabular-nums;
}
.me-stats .stat-label, .me-stats .label {
  font-size: 10.5px !important; color: #5C7183 !important;
  margin-top: 4px !important; letter-spacing: .3px;
}

/* ══════════ 分组标题 ══════════ */
.me-group-title {
  display: flex; align-items: center; gap: 7px;
  margin: 20px 16px 8px !important;
  padding: 0 !important;
  font-size: 11px !important; font-weight: 800 !important;
  color: #52697C !important;
  letter-spacing: 1.2px;
  text-transform: none !important;
}
.me-group-title::before {
  content: ''; width: 3px; height: 11px; border-radius: 2px;
  background: linear-gradient(180deg, #7CC3EE, #4A9FD8);
  opacity: .9;
}

/* ══════════ 菜单卡 ══════════ */
.me-card {
  margin: 0 0 12px !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 22px rgba(70,130,180,.08) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  overflow: hidden;
}
.me-card .line { padding: 13px 16px !important; transition: background .14s ease; }
.me-card .line + .line { border-top: 1px solid rgba(74,159,216,.08) !important; }
.me-card .line:active { background: rgba(74,159,216,.06) !important; }
.me-card .lico {
  width: 32px !important; height: 32px !important;
  border-radius: 10px !important;
  margin-right: 12px !important;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.me-card .lico svg, .me-card .lico .ico-svg { width: 16px !important; height: 16px !important; }
.me-card .l {
  font-size: 14.5px !important; font-weight: 600 !important;
  color: #1B3A4D !important; letter-spacing: .1px;
}
/* 右侧值：app.css 里 `.me-card .line .r` 带 !important，这里同特异度但后加载，能压住 */
.me-card .line .r {
  font-size: 12px !important; color: #5C7183 !important;
  font-weight: 500 !important; letter-spacing: .2px;
  /* 右侧值最长半张卡，超出省略，别把左边标题挤变形 */
  max-width: 52%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 分色图标底：柔和一档，跟全站撞色但别太艳 */
.me-card .line .lico.c-blue   { background: linear-gradient(145deg,#E8F4FD,#CDE7F9) !important; color: #3B8CC7 !important; }
.me-card .line .lico.c-teal   { background: linear-gradient(145deg,#E1F5F1,#BFE5DC) !important; color: #2A8A78 !important; }
.me-card .line .lico.c-gold   { background: linear-gradient(145deg,#FDF4DC,#F3DA9C) !important; color: #A9762F !important; }
.me-card .line .lico.c-pink   { background: linear-gradient(145deg,#FDE8EF,#F4BFD1) !important; color: #B04568 !important; }
.me-card .line .lico.c-amber  { background: linear-gradient(145deg,#FEF2DE,#F7D9A4) !important; color: #A8721C !important; }
.me-card .line .lico.c-violet { background: linear-gradient(145deg,#EEE9FB,#CFC3F0) !important; color: #63529F !important; }
.me-card .line .lico.c-green  { background: linear-gradient(145deg,#E2F7E9,#B7E2C7) !important; color: #2B8A5C !important; }
.me-card .line .lico.c-gray   { background: linear-gradient(145deg,#EFF3F7,#D5DEE7) !important; color: #62798C !important; }
.me-card .line .lico.c-slate  { background: linear-gradient(145deg,#E9F0F6,#C9D7E4) !important; color: #4E6880 !important; }

/* ══════════ 退出登录 ══════════ */
.me-logout {
  margin: 16px 0 0 !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(226,87,76,.16) !important;
  box-shadow: 0 6px 16px rgba(70,130,180,.07) !important;
  color: #C63B37 !important;
  font-size: 15px !important; font-weight: 700 !important;
  padding: 14px 0 !important; text-align: center !important;
  transition: transform .14s ease, background .14s ease;
}
.me-logout:active { background: rgba(226,87,76,.07) !important; transform: scale(.985); }

/* ══════════ 版本尾巴 ══════════ */
.me-ver {
  margin: 14px 0 4px !important;
  text-align: center;
  font-size: 10.5px !important;
  color: #667A89 !important;
  letter-spacing: .4px;
}

/* ══════════ 深色模式 ══════════ */
body.dark #content:has(> .me-hero) {
  background-image: radial-gradient(420px 220px at 92% -70px, rgba(42,111,151,.40), transparent 68%);
}
body.dark .me-hero {
  background:
    radial-gradient(120% 100% at 88% -12%, rgba(112,190,235,.28) 0%, rgba(112,190,235,0) 58%),
    radial-gradient(86% 76% at 0% 112%, rgba(42,111,151,.55) 0%, rgba(42,111,151,0) 64%),
    linear-gradient(140deg, #17415C 0%, #123650 55%, #0E2A40 100%) !important;
  border-color: rgba(255,255,255,.09) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
body.dark .me-hero::after {
  background: radial-gradient(circle at 34% 42%, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 68%);
}
body.dark .me-hero::before {
  background: radial-gradient(circle, rgba(74,159,216,.26) 0%, rgba(74,159,216,0) 70%);
}
body.dark .me-hero .me-avatar, body.dark .me-hero .me-avatar[data-avframe] {
  background-color: transparent !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,.42),
    0 0 0 1px rgba(124,195,238,.16) !important;
}
body.dark .me-hero .me-name { color: #F2FAFF !important; }
body.dark .me-hero .me-acc { color: #A6C0D4 !important; }
body.dark .me-hero .mo-title {
  color: #1B1200; background: linear-gradient(140deg,#F0D79E,#D9B266);
}
body.dark .me-badge {
  background: rgba(255,255,255,.10) !important;
  color: #7FE0B0 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
body.dark .me-stats, body.dark .me-card {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.26) !important;
}
body.dark .me-stats .stat + .stat,
body.dark .me-card .line + .line { border-color: rgba(255,255,255,.07) !important; }
body.dark .me-stats .stat-num, body.dark .me-stats .num { color: #E9F3FA !important; }
/* dark-stats-num-fix：app.css 把数字做成渐变文字（-webkit-text-fill-color: transparent），
   深色卡片上就成了一片深蓝、几乎看不见；这里改回浅色实心字 */
body.dark .me-stats .stat-num, body.dark .me-stats .num {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #E9F3FA !important;
  color: #E9F3FA !important;
}
body.dark .me-stats .stat-label, body.dark .me-stats .label { color: #8CA3B7 !important; }
body.dark .me-stats .stat-ico { filter: brightness(.88) saturate(.92); }
body.dark .me-card .l { color: #E6EFF7 !important; }
body.dark .me-card .r { color: #7C93A7 !important; }
body.dark .me-card .line .lico { filter: brightness(.86) saturate(.85); }
body.dark .me-card .line:active { background: rgba(255,255,255,.055) !important; }
body.dark .me-group-title { color: #7E96AB !important; }
body.dark .me-group-title::before { background: linear-gradient(180deg,#5FA8D8,#2E6E9E); }
body.dark .me-logout {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(226,87,76,.26) !important;
  color: #F08A84 !important;
  box-shadow: none !important;
}
body.dark .me-ver { color: #7E93A6 !important; }

/* 小屏收一点 */
@media (max-width: 360px) {
  .me-hero { padding: 17px 15px !important; }
  .me-hero .me-avatar { width: 62px !important; height: 62px !important; border-radius: 19px !important; }
  .me-hero .me-name { font-size: 18.5px !important; }
  .me-stats .stat-num, .me-stats .num { font-size: 17.5px !important; }
}
