/* ============================================================================
   pages/me.css · 我的页（账号卡 / 关注 / 阅读设置 / 安装 / 关于；游客·登录·管理员三态）
   依赖：tokens + base + components（designer 共享层）
   基线：_tmp/ui-v3/design/css/pages/me.css（F 设计稿 1:1），仅追加本页新增结构
   （关注 chip 可删/删除按钮、安装卡按钮组、关于隐藏入口、协议弹层排版、减少动效开关）。
   ========================================================================== */

/* ------------------------------ 账号卡 ------------------------------ */
.profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  overflow: hidden;
}
.profile::after {
  content: "";
  position: absolute;
  right: -24%; top: -60%;
  width: 64%; height: 220%;
  background: radial-gradient(closest-side, var(--aurora-violet-soft), transparent 70%);
  pointer-events: none;
}
.profile-avatar {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-20);
  font-weight: var(--fw-bold);
  color: var(--txt-on-brand);
  background: var(--brand-grad);
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.profile-avatar--guest {
  color: var(--txt-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.profile-avatar--guest svg { width: 26px; height: 26px; }
.profile-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 7px; font-size: var(--fs-20); font-weight: var(--fw-bold); letter-spacing: .01em; }
.profile-name .badge { height: 20px; }
.profile-sub { margin-top: 4px; font-size: var(--fs-12); color: var(--txt-2); line-height: var(--lh-3); }
.profile-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.profile-actions .btn { min-height: 34px; padding: 0 14px; font-size: var(--fs-12); gap: 5px; }
.profile-actions .btn svg { width: 15px; height: 15px; }

.profile-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: calc(-1 * var(--s-1));
  padding: 8px var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  font-size: var(--fs-11);
  line-height: var(--lh-3);
  color: var(--txt-2);
}
.profile-note svg { width: 13px; height: 13px; color: var(--aurora-teal); flex: none; margin-top: 1px; }

/* ------------------------------ 设置分组 ------------------------------ */
.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0 4px;
  font-size: var(--fs-11);
  letter-spacing: .06em;
  color: var(--txt-2);
}
.group-title .card-link { margin-right: 0; }
.group { padding: var(--s-2) var(--s-4); }
.group .list-item { padding: 11px 0; }
.group-card { padding: 0 var(--s-4); }
.group-card .list-item { padding: 12px 0; }

/* 阅读设置行内控件 */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 11px 0;
  border-bottom: 1px solid var(--line-1);
}
.set-row:last-child { border-bottom: 0; }
.set-main { min-width: 0; }
.set-k { font-size: var(--fs-13); color: var(--txt-0); }
.set-d { margin-top: 2px; font-size: 10px; color: var(--txt-2); line-height: var(--lh-3); }
.set-ctl { flex: none; display: flex; align-items: center; gap: 6px; }
.set-ctl .seg > button { height: 28px; padding: 0 9px; font-size: var(--fs-11); }
.set-ctl .seg { padding: 2px; }

/* 关注列表 */
.follow-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 6px 0 9px;
  border-radius: var(--r-full);
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  font-size: var(--fs-12);
  color: var(--txt-1);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.follow:active { transform: scale(.97); }
.follow .f-badge {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, #3b82f6), var(--c2, #1e40af));
  flex: none;
}
.follow .f-name { max-width: 7.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow .f-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-3);
  background: var(--surface-2);
  flex: none;
}
.follow .f-x svg { width: 11px; height: 11px; }
.follow-empty { display: block; font-size: var(--fs-12); line-height: var(--lh-4); color: var(--txt-2); padding: 2px 0; }
.follow-matches { margin-top: var(--s-2); border-top: 1px solid var(--line-1); }
.follow-matches .list-item { min-height: 52px; }
.follow-matches .btn--icon { width: 34px; min-width: 34px; min-height: 34px; border-radius: 50%; }
.follow-matches .btn--icon svg { width: 15px; height: 15px; }

/* 安装 / 关于（2026-11-11 安全审计加固：下载面板改为「信息行 + 操作行 + SHA256 行」） */
.install-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s-3) var(--s-4);
}
.install-row { display: flex; align-items: center; gap: var(--s-3); }
.install-ico {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.install-ico svg { width: 20px; height: 20px; }
.install-main { flex: 1; min-width: 0; }
.install-main b { font-size: var(--fs-13); font-weight: var(--fw-semibold); }
.install-main p { margin-top: 2px; font-size: 10px; color: var(--txt-2); }
.install-row .btn--icon { width: var(--tap-min); min-width: var(--tap-min); min-height: var(--tap-min); border-radius: 50%; }
.install-row .btn--icon svg { width: 15px; height: 15px; }
.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.install-sha { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 10px; color: var(--txt-2); }
.install-sha-k { color: var(--txt-3); letter-spacing: .04em; flex: none; }
.install-sha-v { font-size: 10px; color: var(--txt-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.version-foot { padding: var(--s-3) 0 0; text-align: center; font-size: 10px; color: var(--txt-3); line-height: var(--lh-4); }
.version-foot .dot-sep { margin: 0 5px; opacity: .5; }

/* 关于弹层里的版本号（隐藏入口 7 连点） */
.about-ver {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 2px;
  background: none;
  border: 0;
  color: var(--txt-1);
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}

/* 协议 / 帮助弹层排版（me + auth 共用） */
.legal { font-size: var(--fs-13); line-height: var(--lh-4); color: var(--txt-1); }
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
.legal b { color: var(--txt-0); font-weight: var(--fw-semibold); }
.legal ul { margin: 2px 0 10px; padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--aurora-teal); }
.legal .hint { color: var(--txt-2); }

/* 积分即将过期提示（会员与积分卡内） */
.member-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 2px;
  padding: 9px var(--s-3);
  border-radius: var(--r-sm);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  font-size: var(--fs-11);
  line-height: var(--lh-3);
  color: var(--warn);
}
.member-tip svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.member-tip b { color: inherit; font-weight: var(--fw-semibold); }

/* ------------------------------ 联系客服 / 密保 ------------------------------ */
.support-qr { display: flex; justify-content: center; padding: var(--s-2) 0; }
.support-qr img {
  width: min(60vw, 220px);
  height: auto;
  border-radius: var(--r-md);
  background: #fff;
  padding: 8px;
  box-shadow: var(--sh-1);
}
.support-qr-ph {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px dashed var(--line-2);
  color: var(--txt-2);
  font-size: var(--fs-12);
  line-height: var(--lh-4);
}
.support-qr-ph .hint { font-size: 10px; line-height: var(--lh-3); }
.support-rows { margin-top: var(--s-3); border-top: 1px solid var(--line-1); }
.support-rows .kv-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-1);
}
.support-rows .kv-row:last-child { border-bottom: 0; }
.support-rows .kv-k { flex: none; width: 4.6em; color: var(--txt-2); font-size: var(--fs-12); }
.support-rows .kv-v { flex: 1; min-width: 0; text-align: right; color: var(--txt-0); font-size: var(--fs-13); word-break: break-all; }
.support-rows .btn { flex: none; }

/* ------------------------------ 减少动效（全局开关，页面提供） ------------------------------ */
html[data-motion="off"] .aurora,
html[data-motion="off"] .noise { display: none !important; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* ------------------------------ 骨架 ------------------------------ */
.me-skeleton .sk-card { margin-bottom: 10px; }

/* ============================================================================
   J1 · 赔率异动提醒卡（阅读设置下方；安卓状态栏推送开关）
   —— 复用 .set-row/.switch/.seg；网页端与旧版 APK 无 Notify 插件时整卡置灰，
      开关不可点（不出死按钮），说明文案诚实写「请使用安卓 APP 开启推送」。
   ========================================================================== */
.notify-card { padding-top: 2px; }
.notify-card .set-d { font-size: 10px; }
.notify-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 10px 0 4px;
}
.notify-actions .hint { font-size: 10px; color: var(--txt-3); }
.notify-actions .btn svg { width: 14px; height: 14px; }

/* 不可用态（网页端 / 旧 APK）：开关、等级、测试按钮全部置灰，不响应点击 */
.switch.is-disabled { opacity: .4; pointer-events: none; }
.switch.is-disabled .track { cursor: default; }
.seg.is-disabled { opacity: .4; pointer-events: none; }
.notify-card .btn[disabled] { opacity: .5; }
.notify-card.is-busy .switch,
.notify-card.is-busy .seg { opacity: .55; }
.notify-card.is-busy .track::after { animation: notify-busy 1s var(--ease-in-out) infinite; }
@keyframes notify-busy {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ------------------------------ 亮色微调 ------------------------------ */
:root[data-theme="light"] .follow { background: var(--bg-1); }
:root[data-theme="light"] .profile-note { background: var(--bg-1); }
:root[data-theme="light"] .notify-card--off { background: var(--bg-1); }

/* ============================================================================
   F3 安卓壳安装卡（有新版时）：主「浏览器打开更新」+ 次「复制更新链接」
   —— 44px 触控、暗亮通用、360 宽不溢出
   ========================================================================== */
.install-card--native .install-actions { gap: 8px; }
.install-card--native .install-actions .btn {
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: var(--fs-12);
}
.install-card--native .install-actions .btn--primary { flex: 1 1 auto; min-width: 0; }
.install-card--native .install-actions .btn--ghost { flex: 0 0 auto; }
.install-card--native .install-main p { line-height: 1.45; }

