/* ============================================================
   phone-fudge.css —— 奶油软糖主题专属覆盖层
   从 phone.css 剥离，集中维护 .phone-theme-fudge 的所有规则。
   依赖：phone.css（变量、基础布局、玻璃主题），必须在其之后加载。
   ============================================================ */

/* ============================================================
   主题：奶油软糖（fudge）—— 实色 + 圆润 + 柔和阴影 + 无边框
   配色：主背景/主文字  与  顶栏侧边栏/主题色  两套交错
   先覆盖桌面（图标 + 设置卡），其余 App 后续逐步铺开
   ============================================================ */
.phone-shell.phone-theme-fudge {
  background:
    linear-gradient(180deg,
      var(--text-secondary) 0%,
      color-mix(in srgb, var(--text-secondary) 50%, var(--bg)) 55%,
      var(--bg) 100%);
  box-shadow: 0 18px 60px rgba(0,0,0,0.36);
}
.phone-shell.phone-theme-fudge::before { display: none; }
/* ---- fudge + 有壁纸 + 桌面态：复活遮罩 + app 名字染白加阴影 ---- */
/* 壁纸底色不可控，浅字压亮壁纸看不清。只作用于桌面态（.phone-home-mode），
   app 内部不受影响（fudge 进 app 已铺纯底）。绝不改 --text，避免污染图标/卡片配色。 */
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode::before {
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.30));
  z-index: 0;
}
/* app 名字：纯白 + 阴影（覆盖上面的 text-shadow:none） */
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-app-icon-label {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 0 8px rgba(0,0,0,0.30) !important;
}
/* 个人资料卡文字 / 桌面寄语：也染白加阴影 */
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-profile-name,
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-profile-bio,
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-home-note,
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-widget,
.phone-shell.phone-theme-fudge.fudge-has-wallpaper.phone-home-mode .phone-statusbar {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}
/* 进入 App 后（非桌面态）：内容区铺主文字色纯底，与实色卡片拉开对比 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-body {
  background: var(--text);
}
/* 顶栏（状态栏 + 标题栏）也铺主文字色，与 body 连成一片 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-statusbar,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-header {
  background: var(--text);
}
/* 顶栏 + 底栏文字/图标反转为背景色（主文字色底上才看得清） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-statusbar,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-header,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) #phone-title,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-nav-btn {
  color: var(--bg);
}
/* 底部 tab 栏：铺主文字色底，文字反转为背景色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-tabbar {
  background: var(--text);
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-tab {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-tab.active {
  color: var(--bg);
}

/* 桌面 App 图标：实色圆形 + 柔和阴影，去边框去毛玻璃 */
.phone-shell.phone-theme-fudge .phone-app-icon-circle {
  border-radius: 50%;
  background: var(--text);
  border: none;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--text) 10%, transparent);
  backdrop-filter: none;
}
.phone-shell.phone-theme-fudge .phone-icon-glyph {
  width: 20px;
  height: 20px;
  color: var(--accent);
  filter: none;
}
.phone-shell.phone-theme-fudge .phone-icon-glyph svg {
  width: 19px;
  height: 19px;
}
.phone-shell.phone-theme-fudge .phone-app-settings .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-minimize .phone-app-icon-circle {
  background: var(--text);
}
.phone-shell.phone-theme-fudge .phone-app-icon-label {
  text-shadow: none;
}
/* 配色 B：主背景色底 + 主文字色图标（按 App 指定）
   takeout 饿了咪 / map 地图 / memo 备忘录 / chat 聊天 / youyu 游鱼小铺 / cottage 小屋 / calendar 日历 / radio 电台 */
.phone-shell.phone-theme-fudge .phone-app-takeout .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-map .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-memo .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-chat .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-youyu .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-cottage .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-calendar .phone-app-icon-circle,
.phone-shell.phone-theme-fudge .phone-app-radio .phone-app-icon-circle {
  background: var(--bg);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.phone-shell.phone-theme-fudge .phone-app-takeout .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-map .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-memo .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-chat .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-youyu .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-cottage .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-calendar .phone-icon-glyph,
.phone-shell.phone-theme-fudge .phone-app-radio .phone-icon-glyph {
  color: var(--accent);
}
/* 占位/待解锁：实色弱化、去虚线边框 */
.phone-shell.phone-theme-fudge .phone-app-icon-circle-placeholder {
  border: none;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: none;
  backdrop-filter: none;
}

/* 设置卡：实色圆角 + 柔和阴影，无边框 */
.phone-shell.phone-theme-fudge .phone-settings-card {
  background: var(--bg-secondary);
  border: none;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  backdrop-filter: none;
}
.phone-shell.phone-theme-fudge .phone-settings-btn.secondary {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: none;
}

/* 底部 dock：去掉外框，完全透明（图标直接浮在背景上） */
.phone-shell.phone-theme-fudge .phone-dock {
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
/* 个人资料卡：主文字色底，无边框，柔和阴影 */
.phone-shell.phone-theme-fudge .phone-profile-card {
  background: var(--text);
  border: none;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--text) 12%, transparent);
}
/* 卡内名字/签名改背景色（浅底上的深字），去文字阴影 */
.phone-shell.phone-theme-fudge .phone-profile-name,
.phone-shell.phone-theme-fudge .phone-profile-bio {
  color: var(--bg);
  text-shadow: none;
  caret-color: var(--bg);
}
/* 头像框去边框 */
.phone-shell.phone-theme-fudge .phone-profile-avatar {
  border: none;
}

/* ---- 第二页小组件卡片配色 ---- */
/* 快递大卡：主文字色底 */
.phone-shell.phone-theme-fudge .phone-dw-express {
  background: var(--text);
  border: none;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--text) 12%, transparent);
}
.phone-shell.phone-theme-fudge .phone-dw-express .phone-dw-express-name,
.phone-shell.phone-theme-fudge .phone-dw-express .phone-dw-express-unit,
.phone-shell.phone-theme-fudge .phone-dw-express .phone-dw-express-empty,
.phone-shell.phone-theme-fudge .phone-dw-express .phone-dw-express-foot {
  color: var(--bg);
}
/* 天数数字保留主题色（浅底上更醒目） */
.phone-shell.phone-theme-fudge .phone-dw-express .phone-dw-express-num {
  color: var(--accent);
}
/* 钱包余额卡（第1个 mini）：背景色底 */
.phone-shell.phone-theme-fudge .phone-dw-mini:nth-child(1) {
  background: var(--bg);
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* 记账/本月结余卡（第2个 mini）：主文字色底 */
.phone-shell.phone-theme-fudge .phone-dw-mini:nth-child(2) {
  background: var(--text);
  border: none;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--text) 12%, transparent);
}
.phone-shell.phone-theme-fudge .phone-dw-mini:nth-child(2) .phone-dw-mini-label,
.phone-shell.phone-theme-fudge .phone-dw-mini:nth-child(2) .phone-dw-mini-num,
.phone-shell.phone-theme-fudge .phone-dw-mini:nth-child(2) .phone-dw-mini-empty {
  color: var(--bg);
}
/* 进度条卡：背景色底 */
.phone-shell.phone-theme-fudge .phone-dw-takeout {
  background: var(--bg);
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* 番茄钟卡：主文字色底 */
.phone-shell.phone-theme-fudge .phone-tomato-card {
  background: var(--text);
  border: none;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--text) 12%, transparent);
}
/* 番茄钟卡内文字/时钟改次文字色（浅底上可读） */
.phone-shell.phone-theme-fudge .phone-tomato-card .phone-tomato-label,
.phone-shell.phone-theme-fudge .phone-tomato-card .phone-tomato-goal,
.phone-shell.phone-theme-fudge .phone-tomato-card .phone-tomato-clock {
  color: var(--text-secondary);
}
.phone-shell.phone-theme-fudge .phone-tomato-card .tomato-clock-min { stroke: var(--text-secondary); }
.phone-shell.phone-theme-fudge .phone-tomato-card .tomato-clock-center { fill: var(--text-secondary); }

/* ---- 第三页卡片配色 ---- */
/* 日历卡（banner）：背景色底 */
.phone-shell.phone-theme-fudge .phone-cal-banner {
  background: var(--bg);
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* 纪念日卡：主文字色底（无背景图时），文字转背景色 */
.phone-shell.phone-theme-fudge .phone-anniversary-card {
  background-color: var(--text);
  border: none;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--text) 12%, transparent);
}
.phone-shell.phone-theme-fudge .phone-anniversary-card .phone-anniversary-card-text {
  color: var(--bg);
}
/* 音乐播放器卡：背景色底 */
.phone-shell.phone-theme-fudge .phone-music-card {
  background: var(--bg);
  border: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}

/* ---- 音乐 App 内页（播放详情 / 音乐库 / 评论）：主文字色深底，文字反转为背景色 ---- */
/* 主要文字：标题、歌曲名、控制按钮、激活歌词 → 浅色 */
.phone-shell.phone-theme-fudge .phone-mdetail-title,
.phone-shell.phone-theme-fudge .phone-mdetail-ctrl,
.phone-shell.phone-theme-fudge .phone-mdetail-lrc-line.active,
.phone-shell.phone-theme-fudge .phone-mlib-h-title,
.phone-shell.phone-theme-fudge .phone-mlib-title,
.phone-shell.phone-theme-fudge .phone-mlib-title.active,
.phone-shell.phone-theme-fudge .phone-mlib-add-btn,
.phone-shell.phone-theme-fudge .phone-mcomment-content {
  color: var(--bg) !important;
}
/* 次要文字：歌手、副标题、歌词、时间、菜单、操作图标、评论名/时间 → 半透明浅色 */
.phone-shell.phone-theme-fudge .phone-mdetail-artist,
.phone-shell.phone-theme-fudge .phone-mdetail-menu,
.phone-shell.phone-theme-fudge .phone-mdetail-lrc-line,
.phone-shell.phone-theme-fudge .phone-mdetail-lrc-empty,
.phone-shell.phone-theme-fudge .phone-mdetail-action-btn,
.phone-shell.phone-theme-fudge .phone-music-times,
.phone-shell.phone-theme-fudge .phone-mlib-h-sub,
.phone-shell.phone-theme-fudge .phone-mlib-sub,
.phone-shell.phone-theme-fudge .phone-mlib-rel,
.phone-shell.phone-theme-fudge .phone-mlib-empty,
.phone-shell.phone-theme-fudge .phone-mcomment-name,
.phone-shell.phone-theme-fudge .phone-mcomment-meta,
.phone-shell.phone-theme-fudge .phone-mcomment-empty,
.phone-shell.phone-theme-fudge .phone-mcomment-tip {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 歌曲行的卡片底：用浅色半透明块在深底上分层 */
.phone-shell.phone-theme-fudge .phone-mlib-row.active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* 评论页：顶部歌曲卡标题 + "评论"标题 → 浅色 */
.phone-shell.phone-theme-fudge .phone-mcomment-card-title,
.phone-shell.phone-theme-fudge .phone-mcomment-bar-title {
  color: var(--bg) !important;
}
/* 评论页：歌手、刷新按钮 → 半透明浅色 */
.phone-shell.phone-theme-fudge .phone-mcomment-card-artist,
.phone-shell.phone-theme-fudge .phone-mcomment-refresh {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 评论 / 热评 tab：和「本地 / 云端」同一个改法 —— 基础样式那层
   用 var(--text-secondary) + opacity 0.6 压暗，深底上会糊成看不见 */
.phone-shell.phone-theme-fudge .phone-mcomment-tab {
  color: color-mix(in srgb, var(--bg) 60%, transparent) !important;
  opacity: 1 !important;
}
.phone-shell.phone-theme-fudge .phone-mcomment-tab.active {
  color: var(--bg) !important;
}
/* 评论页顶部歌曲卡：浅色半透明块分层 */
.phone-shell.phone-theme-fudge .phone-mcomment-card {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* ---- 批量选择态操作条 ---- */
/* 这三处发暗的根因不同：selall 的边框和文字都吃 --border / --text，
   在 fudge 的深底上和背景同色；barcount 吃 --text-secondary 同理；
   seldel 的边框是 color-mix(--danger 45%, --border)，已经吃到一半主题色，
   但文字是纯 --danger（全局死值 #a33），压在深绿上明度差不够。 */
.phone-shell.phone-theme-fudge .phone-music-selall,
.phone-shell.phone-theme-fudge .phone-music-seladd:not(:disabled) {
  border-color: color-mix(in srgb, var(--bg) 30%, transparent) !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-music-selall:active,
.phone-shell.phone-theme-fudge .phone-music-seladd:active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* 「加入歌单」不可点态：和删除的不可点态一套，避免两个禁用按钮长得不一样 */
.phone-shell.phone-theme-fudge .phone-music-seladd:disabled {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
  border-color: color-mix(in srgb, var(--bg) 22%, transparent) !important;
}
/* 删除/移出：警示色保留，只把死值 #a33 换成同一套里更亮的那个红。
   边框那条 color-mix 不动 —— 它有 55% 是 --border，本来就随主题走。 */
.phone-shell.phone-theme-fudge .phone-music-seldel:not(:disabled) {
  color: #e5484d !important;
}
/* 不可点态：不该抢注意力，走次要浅色 */
.phone-shell.phone-theme-fudge .phone-music-seldel:disabled {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
  border-color: color-mix(in srgb, var(--bg) 22%, transparent) !important;
}
/* 「已选 N 首」/「N 首」计数 */
.phone-shell.phone-theme-fudge .phone-music-pl-barcount {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 勾选圈：未选中只有一圈 --border，深底上看不见。选中态是实心 --accent，对比够，不动 */
.phone-shell.phone-theme-fudge .phone-music-check {
  border-color: color-mix(in srgb, var(--bg) 40%, transparent) !important;
}
/* 选中行的底：--accent 8% 在深底上分辨不出，改成和 .active 一致的浅色薄块 */
.phone-shell.phone-theme-fudge .phone-mlib-row.checked {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* ---- 我的歌单 / 一起听记录 两个子页 ---- */
/* 个人资料头部：深底上文字反转为背景色 */
.phone-shell.phone-theme-fudge .phone-radio-mine-header-name {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-radio-mine-header-sub {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 无头像时的字母圆：accent 底在深绿上不够跳，改浅底深字 */
.phone-shell.phone-theme-fudge .phone-radio-mine-ava-fallback {
  background: var(--bg) !important;
  color: var(--text) !important;
}
/* 身份标记（网易云 / 未登录）：浅色半透明块 + 浅字 */
.phone-shell.phone-theme-fudge .phone-music-id-tag {
  background: color-mix(in srgb, var(--bg) 16%, transparent) !important;
  color: color-mix(in srgb, var(--bg) 80%, transparent) !important;
  border-color: transparent !important;
}
/* 本地 / 云端 切换：选中浅色，未选中半透明 */
.phone-shell.phone-theme-fudge .phone-mpl-tab {
  color: color-mix(in srgb, var(--bg) 60%, transparent) !important;
  opacity: 1 !important;
}
.phone-shell.phone-theme-fudge .phone-mpl-tab.active {
  color: var(--bg) !important;
}
/* 歌单卡 / 一起听记录卡：实色浅底 + 大圆角，照电台订阅卡那套 */
.phone-shell.phone-theme-fudge .phone-music-pl-card,
.phone-shell.phone-theme-fudge .phone-lt-hist-card {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* 卡内文字回到正常的深字（卡是浅底，不跟着反转） */
.phone-shell.phone-theme-fudge .phone-music-pl-name,
.phone-shell.phone-theme-fudge .phone-lt-hist-obj {
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .phone-music-pl-sub,
.phone-shell.phone-theme-fudge .phone-lt-hist-meta,
.phone-shell.phone-theme-fudge .phone-lt-hist-time {
  color: var(--text-secondary) !important;
}
/* 歌单封面没图时的兜底块：浅卡上用淡灰，不能用透明黑 */
.phone-shell.phone-theme-fudge .phone-music-pl-cover {
  background: var(--bg-tertiary) !important;
}
/* 发现页。卡跟歌单卡同一套：实色浅底 + 大圆角，卡内文字不反转。
   基础样式里这三处用的 --bg-secondary 在 fudge 下是渐变，得换成实色。 */
.phone-shell.phone-theme-fudge .phone-disc-search,
.phone-shell.phone-theme-fudge .phone-disc-daily,
.phone-shell.phone-theme-fudge .phone-disc-guide {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
/* 搜索框是胶囊形，不能跟卡一样拉直角 */
.phone-shell.phone-theme-fudge .phone-disc-search { border-radius: 18px; }
.phone-shell.phone-theme-fudge .phone-disc-daily-title,
.phone-shell.phone-theme-fudge .phone-disc-line-name,
.phone-shell.phone-theme-fudge .phone-disc-guide-title {
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .phone-disc-search,
.phone-shell.phone-theme-fudge .phone-disc-daily-sub,
.phone-shell.phone-theme-fudge .phone-disc-line-i,
.phone-shell.phone-theme-fudge .phone-disc-line-artist,
.phone-shell.phone-theme-fudge .phone-disc-guide-text {
  color: var(--text-secondary) !important;
}
/* 日推列表页的头部在页面底上（不在卡里），要跟着反转 */
.phone-shell.phone-theme-fudge .phone-disc-page-title { color: var(--bg) !important; }
.phone-shell.phone-theme-fudge .phone-disc-page-sub,
.phone-shell.phone-theme-fudge .phone-disc-row-i:not(.phone-v-row-done) {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 已生成标记：fudge 的页面底是深绿，--accent 在上面对比够，直接用。
   不参与上面那条反色 —— 反成 --bg 就跟普通序号没区别了，标记会消失。 */
.phone-shell.phone-theme-fudge .phone-disc-row-i.phone-v-row-done {
  color: var(--accent) !important; opacity: 1 !important; font-weight: 700 !important;
}
/* 「加入歌单」描边按钮。它在页面底（深绿）上不在卡里，
   所以跟全选按钮同一套反色配方：--bg 30% 描边 + var(--bg) 文字。
   基础样式的 --border 和 --text 在深绿底上都会融进去。 */
.phone-shell.phone-theme-fudge .phone-disc-addpl {
  border-color: color-mix(in srgb, var(--bg) 30%, transparent) !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-disc-addpl:active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* 搜索页。搜索条是「卡」（实色浅底，里面的字不反转），
   而歌行在页面底（深绿）上，那部分要反转成 --bg。
   .phone-nes-bar 用了 --bg-secondary，在 fudge 下那是渐变，得换实色。 */
.phone-shell.phone-theme-fudge .phone-nes-bar {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
.phone-shell.phone-theme-fudge .phone-nes-bar,
.phone-shell.phone-theme-fudge .phone-nes-bar input::placeholder {
  color: var(--text-secondary) !important;
}
/* 输入的字在浅底卡里，用深色 —— 不能跟着页面底反转，否则打上去看不见 */
.phone-shell.phone-theme-fudge .phone-nes-bar input { color: var(--text) !important; }
/* 搜索按钮已经是 --accent 实心，只补一下圆角跟胶囊对齐 */
.phone-shell.phone-theme-fudge .phone-nes-go { border-radius: 16px; }
/* 歌行部分：时长、已添加标记都在深绿底上 */
.phone-shell.phone-theme-fudge .phone-nes-dur,
.phone-shell.phone-theme-fudge .phone-nes-added {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-nes-tap:active {
  background: color-mix(in srgb, var(--bg) 10%, transparent) !important;
}
/* ＋ 按钮跟「加入歌单」同一套反色配方 */
.phone-shell.phone-theme-fudge .phone-nes-add {
  border-color: color-mix(in srgb, var(--bg) 30%, transparent) !important;
  color: color-mix(in srgb, var(--bg) 70%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-nes-add:active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* 已入库那个对勾用实色 --bg（比未入库的 70% 更亮），
   在深绿底上是这一行里最显眼的元素 —— 它就该显眼。
   不能用 --accent：那是奶油软糖的糖果色，压在深绿上对比度不够。 */
.phone-shell.phone-theme-fudge .phone-nes-add.in-lib {
  border-color: var(--bg) !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-nes-playing { color: var(--bg) !important; }
/* 推荐歌单。区分两层：
   封面是卡（浅底实色，圆角跟歌单卡一致），而区标题和歌单名直接压在
   页面底（深绿）上，要反转成 --bg。 */
.phone-shell.phone-theme-fudge .phone-recpl-cover {
  background: var(--bg) !important;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
.phone-shell.phone-theme-fudge .phone-recpl-title,
.phone-shell.phone-theme-fudge .phone-recpl-name {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-recpl-sub,
.phone-shell.phone-theme-fudge .phone-recpl-empty {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 榜单条。容器压在深绿页面底上，用浅底实色（--bg）当卡，跟封面卡同一层级；
   里面的字随之反转成深色（--text 在 fudge 下就是深绿系）。
   不用 --bg-secondary：那在 fudge 下是渐变，铺成一整块长条会很脏。 */
.phone-shell.phone-theme-fudge .phone-tl-list {
  background: var(--bg) !important;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
.phone-shell.phone-theme-fudge .phone-tl-name { color: var(--text) !important; }
.phone-shell.phone-theme-fudge .phone-tl-meta,
.phone-shell.phone-theme-fudge .phone-tl-arrow,
.phone-shell.phone-theme-fudge .phone-tl-icon {
  color: color-mix(in srgb, var(--text) 60%, transparent) !important;
}
/* 虚拟版发现页。页面底是深绿，字要反转成 --bg。
   渐变封面本身是 hsl 实色，不用改 —— 它跟深绿底对比足够。 */
/* 伪播放页：歌名歌手歌词都用真播放页的类（.phone-mdetail-*），fudge 那边
   已经反转过，这里只剩 credits 这一条自己的。 */
.phone-shell.phone-theme-fudge .phone-vp-credits {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 单曲详情页：整页直接铺在深绿底上（没有卡片承载），所有文字都要反转。
   介绍和歌词是长文本，压到 --bg 78% —— 比标题淡一档但仍然好读。 */
.phone-shell.phone-theme-fudge .phone-v-trk-name,
.phone-shell.phone-theme-fudge .phone-v-trk-sec-title,
.phone-shell.phone-theme-fudge .phone-v-trk-busy-text { color: var(--bg) !important; }
.phone-shell.phone-theme-fudge .phone-v-trk-desc,
.phone-shell.phone-theme-fudge .phone-v-lrc-line {
  color: color-mix(in srgb, var(--bg) 78%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-v-trk-artist,
.phone-shell.phone-theme-fudge .phone-v-trk-credits {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 骨架灰块：基础样式用 --bg-secondary，在 fudge 下那是渐变，
   脉冲动画起来会很脏。换成半透明的 --bg。 */
.phone-shell.phone-theme-fudge .phone-v-sk-line {
  background: color-mix(in srgb, var(--bg) 18%, transparent) !important;
}
/* 热搜榜。它在搜索页里，页面底是深绿，所以字要反转成 --bg（浅色）。
   跟推荐歌单的区标题同一套配方。 */
.phone-shell.phone-theme-fudge .phone-hots-title,
.phone-shell.phone-theme-fudge .phone-hots-word {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-hots-sub,
.phone-shell.phone-theme-fudge .phone-hots-desc {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-hots-i {
  color: color-mix(in srgb, var(--bg) 70%, transparent) !important;
  opacity: 1 !important;
}
/* 前三名和「热」标：糖果主色压在深绿上对比度不够，改用实色 --bg 反色 ——
   跟搜索页已入库那个对勾同一个判断。 */
.phone-shell.phone-theme-fudge .phone-hots-i.top {
  color: var(--bg) !important; font-weight: 700;
}
.phone-shell.phone-theme-fudge .phone-hots-hot {
  background: var(--bg) !important;
  color: var(--text) !important;
}
/* 骨架屏在深绿底上：用半透明的 --bg 而不是基础样式里的 --bg-secondary
   （那在 fudge 下是渐变，动画起来会很脏）。 */
.phone-shell.phone-theme-fudge .phone-recpl-cover-ph,
.phone-shell.phone-theme-fudge .phone-recpl-name-ph {
  background: color-mix(in srgb, var(--bg) 18%, transparent) !important;
}
/* 「加载更多」跟「加入歌单」同一套反色配方 —— 它也在页面底上 */
.phone-shell.phone-theme-fudge .phone-recpl-more {
  border-color: color-mix(in srgb, var(--bg) 30%, transparent) !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-recpl-more:active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
/* 全局偏好折叠卡。音乐没有 app 容器类可限定作用域，
   所以按「我的」页那个贴顶头部的兄弟关系锁定，避免影响电台自己那页 */
.phone-shell.phone-theme-fudge .phone-mlib-page .phone-radio-prefs {
  background: var(--bg) !important;
  border: none !important;
}
.phone-shell.phone-theme-fudge .phone-mlib-page .phone-radio-prefs .phone-radio-prefs-title {
  color: var(--text) !important;
}
/* 评论页底部输入栏：融入深底，去突兀的浅色直角块 */
.phone-shell.phone-theme-fudge .phone-mcomment-input-bar {
  background: var(--text) !important;
  border-top: none !important;
}
.phone-shell.phone-theme-fudge .phone-mcomment-input-bar input {
  background: color-mix(in srgb, var(--bg) 16%, transparent) !important;
  border: none !important;
  color: var(--bg) !important;
}
/* 一起听留言卡：深底主题下文字反成背景色，卡片底用浅色半透明块 */
.phone-shell.phone-theme-fudge .lt-msg-card {
  background: color-mix(in srgb, var(--bg) 14%, transparent) !important;
}
.phone-shell.phone-theme-fudge .lt-msg-card span,
.phone-shell.phone-theme-fudge .lt-msg-card div {
  color: var(--bg) !important;
}
/* 一起听记录详情页 hero 卡：深底主题下用实色浅底，内部深字保持清晰 */
.phone-shell.phone-theme-fudge .lt-detail-hero {
  background: var(--bg) !important;
}
/* section 标题（深底上反成浅色） */
.phone-shell.phone-theme-fudge .lt-detail-section-title {
  color: color-mix(in srgb, var(--bg) 80%, transparent) !important;
}
/* 一起听播放页：顶部歌名/歌手是内联 var(--text)，深底上反成浅色 */
.phone-shell.phone-theme-fudge .phone-mdetail-page [style*="color:var(--text)"] {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-mdetail-page [style*="color:var(--text-secondary)"] {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 一起听/播放详情页：进度条在深底上反色（轨道、填充、圆点） */
.phone-shell.phone-theme-fudge .phone-mdetail-page .phone-music-bar {
  background: color-mix(in srgb, var(--bg) 24%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-mdetail-page .phone-music-bar-fill {
  background: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-mdetail-page .phone-music-bar-dot {
  background: var(--bg) !important;
  border-color: var(--bg) !important;
}
/* 音乐详情页 / 一起听页的播放按钮：和电台页刚好镜像。
   基础样式是 background: var(--text) + color: var(--bg)，在浅底页面上是对的，
   但这两个页的底色本身就是 --text，深绿圆压深绿底，圆形会消失。
   这里反过来：浅色实心圆 + 深绿图标，让它在四个浅色图标里仍然是视觉重心。 */
.phone-shell.phone-theme-fudge .phone-mdetail-page .phone-mdetail-play {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* ============================================================
   商城（桃宝/饿了咪）App 内部：去边框 + 圆角化
   ============================================================ */
/* 去掉所有边框分割线 */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-track-card,
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-search-input-wrap,
.phone-shell.phone-theme-fudge .phone-shop-app .phone-tabbar {
  border: none;
}
/* 搜索框：更圆润 + 实色底（去半透明卡片色，与视频搜索框同款） */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-search-input-wrap {
  border-radius: 999px;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 搜索按钮：更圆润 */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-search-btn {
  border-radius: 999px;
  padding: 0 16px;
}
/* 刷新 / 自定义按钮：更圆润、去边框 */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-shop-refresh-btn,
.phone-shell.phone-theme-fudge .phone-shop-app .phone-shop-custom-btn {
  border-radius: 999px !important;
  border: none !important;
}
/* 刷新推荐按钮：实色底（去半透明卡片色，与搜索框同款；自定义按钮是 accent 不动） */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-shop-refresh-btn {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 商品卡 / 订单卡 / 搜索记录卡：更圆的圆角 + 背景色实色 + 加内边距防文字挤 */
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-shop-app .phone-map-track-card {
  border-radius: 18px;
  background: var(--bg) !important;
  padding: 14px;
}

/* ============================================================
   .phone-map-track-card 全局兜底适配（不限 App 作用域）
   该卡片被地图轨迹/搜索记录、桃宝/饿了咪搜索记录、论坛搜索记录（独立页，
   无 .phone-forum-app 作用域）等多处复用，样式应一致。统一在此兜底：
   实色底 + 大圆角 + 去边框，任何 App 用它都自动适配 fudge，无需逐个作用域补。
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-map-track-card {
  border-radius: 18px;
  background: var(--bg) !important;
  padding: 14px;
  border: none !important;
}

/* ============================================================
   论坛（风闻搬家）App 内部：圆角化（实色背景已由 fudge 默认提供）
   行内样式写死了 border-radius，需 !important 覆盖
   ============================================================ */
/* 搜索框 + 帖子卡：更圆 + 去边框 */
.phone-shell.phone-theme-fudge .phone-forum-app #phone-forum-search,
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-post-card {
  border-radius: 18px !important;
  border: none !important;
}
/* 搜索框：实色底（去半透明卡片色，与视频搜索框同款） */
.phone-shell.phone-theme-fudge .phone-forum-app #phone-forum-search {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 帖子卡加内边距防文字挤 + 背景色实色 */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-post-card {
  padding: 14px !important;
  background: var(--bg) !important;
}
/* ============================================================
   「我的」页入口卡（.phone-forum-mine-card：论坛的我的发帖/收藏/搜索记录、
   地图的我的轨迹/搜索记录，跨 App 复用同一 class，故不限作用域）
   内联 background:var(--bg-tertiary) / --bg-secondary 会被 phone.css 全局渐变
   规则(特异性0,3,1)刷成半透明发虚，深底上文字看不清。
   照钱包卡/心动卡做法：加属性选择器提特异性到(0,4,0)压过它，改实色浅底。
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-forum-mine-card[style*="background:var(--bg-tertiary)"] {
  background: var(--bg) !important;
  border: none !important;
}
.phone-shell.phone-theme-fudge .phone-forum-mine-card .phone-forum-mine-icon[style*="background:var(--bg-secondary)"] {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 全局偏好折叠卡（复用电台 .phone-radio-prefs，限定论坛作用域不影响电台本身） */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-radio-prefs {
  background: var(--bg) !important;
  border: none !important;
}
.phone-shell.phone-theme-fudge .phone-forum-app .phone-radio-prefs .phone-radio-prefs-title {
  color: var(--text) !important;
}
/* 热搜榜条目：与顶栏/详情页同一套配色——主文字色作底、背景色作字，避免壁纸把 --text 改白后看不清 */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hot-header {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hot-item {
  background: var(--text) !important;
  border-radius: 16px;
  padding: 12px 14px !important;
  margin-bottom: 8px;
}
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hot-item .phone-forum-hot-title {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hot-item .phone-forum-hot-desc {
  color: color-mix(in srgb, var(--bg) 62%, transparent) !important;
}
/* 热搜专区页头部标题/描述：页面在 body 上（浅底），文字用主文字色系即可 */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hotzone-title {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-hotzone-desc {
  color: color-mix(in srgb, var(--bg) 62%, transparent) !important;
}
/* 搜索 / 刷新 / 发帖按钮：胶囊形、去边框 */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-search-btn,
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-refresh-btn,
.phone-shell.phone-theme-fudge .phone-forum-app .phone-forum-post-btn {
  border-radius: 999px !important;
  border: none !important;
}
/* 底部 tabbar 去边框 */
.phone-shell.phone-theme-fudge .phone-forum-app .phone-tabbar {
  border: none;
}
/* 搜索记录行：去掉分割线 */
.phone-shell.phone-theme-fudge .phone-forum-app #phone-forum-history-panel > div[style*="border-bottom"] {
  border-bottom: none !important;
}
/* ---- 论坛编辑/发帖页：输入框 + 按钮大圆角 ---- */
/* 标题/时间/正文/配图描述/标签 输入框 */
.phone-shell.phone-theme-fudge .phone-forum-edit input,
.phone-shell.phone-theme-fudge .phone-forum-edit textarea {
  border-radius: 16px !important;
  border: none !important;
  padding: 12px 16px !important;
}
/* 发布 / 删除 / 从相册选 按钮 */
.phone-shell.phone-theme-fudge .phone-forum-edit button {
  border-radius: 999px !important;
  border: none !important;
}

/* ---- 论坛帖子详情页：内容区铺主文字色深底，文字需反转为背景色 ---- */
/* 正文 + Markdown 内容 + 发帖人名 + 评论区标题/用户名等：反转为浅色 */
.phone-shell.phone-theme-fudge .phone-forum-detail-page,
.phone-shell.phone-theme-fudge .phone-forum-detail-page .phone-forum-detail-md,
.phone-shell.phone-theme-fudge .phone-forum-detail-page .md-content,
.phone-shell.phone-theme-fudge .phone-forum-detail-page [style*="color:var(--text)"] {
  color: var(--bg) !important;
}
/* 次要文字（时间、计数、评论时间）：半透明背景色 */
.phone-shell.phone-theme-fudge .phone-forum-detail-page [style*="color:var(--text-secondary)"] {
  color: color-mix(in srgb, var(--bg) 62%, transparent) !important;
}
/* 标签：保留主题强调色，仅把底改成半透明浅色 */
.phone-shell.phone-theme-fudge .phone-forum-detail-page [style*="background:var(--bg-tertiary)"] {
  background: color-mix(in srgb, var(--bg) 16%, transparent) !important;
}
/* 底栏评论框：深底上换成半透明浅色块 + 浅色字 */
.phone-shell.phone-theme-fudge .phone-forum-detail-page .phone-forum-detail-actions {
  background: var(--text) !important;
  border-top: none !important;
}
.phone-shell.phone-theme-fudge .phone-forum-detail-page .phone-forum-detail-actions > div[style*="background:var(--bg-tertiary)"] {
  background: color-mix(in srgb, var(--bg) 16%, transparent) !important;
  border: none !important;
}
.phone-shell.phone-theme-fudge .phone-forum-detail-page .phone-forum-detail-actions input {
  color: var(--bg) !important;
}

/* 顶栏返回/导航按钮：去底、去边框、去毛玻璃，只留图标 */
.phone-shell.phone-theme-fudge .phone-nav-btn {
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   地图 App 内部：去边框 + 圆角化（与商城同一套思路）
   ============================================================ */
/* 去边框 */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-track-card,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-search-input-wrap,
.phone-shell.phone-theme-fudge .phone-map-app .phone-tabbar {
  border: none;
}
/* 搜索框：胶囊形 + 实色底（去半透明卡片色，与视频搜索框同款） */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-search-input-wrap {
  border-radius: 999px;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 搜索按钮：胶囊形 */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-search-btn {
  border-radius: 999px;
  padding: 0 16px;
}
/* 结果卡 / 轨迹卡：大圆角 + 背景色实色 + 内边距防文字挤 */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-track-card {
  border-radius: 18px;
  background: var(--bg) !important;
  padding: 14px;
}
/* 搜索记录行：去掉分割线 */
.phone-shell.phone-theme-fudge .phone-map-app #phone-map-searchhist-panel > div[style*="border-bottom"] {
  border-bottom: none !important;
}

/* ---- 附近 Tab：深色 body 上标题文字反色 + 卡片去边框大圆角 ---- */
/* 位置主标题 / 同步标题：body 铺 var(--text) 深底，原 color:var(--text) 会看不清，反转为背景色 */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-loc,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-sync-title {
  color: var(--bg) !important;
}
/* 副标题 / 同步说明 / 空态 / 图例：次级文字反色（用背景色的 65% 弱化，保持层次） */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-sub,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-sync-desc,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-empty,
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-legend {
  color: color-mix(in srgb, var(--bg) 65%, transparent) !important;
}
/* 同步开关卡：去边框 + 大圆角 + 实色底 + 加内边距（与结果卡同款处理） */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-synccard {
  border: none !important;
  border-radius: 18px !important;
  background: var(--bg) !important;
  padding: 14px 16px !important;
}
/* 同步卡内的标题：卡片是浅底，文字用回主文字色（不跟随上面的反色） */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-synccard .phone-map-near-sync-title {
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-synccard .phone-map-near-sync-desc {
  color: var(--text-secondary) !important;
}
/* 方位图画布：去边框（渐变底自带层次，不需要描边） */
.phone-shell.phone-theme-fudge .phone-map-app .phone-map-near-canvas {
  border: none !important;
}


/* ============================================================
   好友圈 App：顶部封面 + 发动态编辑页 圆角化
   ============================================================ */
/* 顶部封面：更大圆角 */
.phone-shell.phone-theme-fudge .phone-moments-cover {
  border-radius: 22px;
}
/* 发动态编辑页：正文/配图描述/时间 输入框，大圆角 + 去边框 + 内边距 */
.phone-shell.phone-theme-fudge .phone-moment-edit textarea,
.phone-shell.phone-theme-fudge .phone-moment-edit input {
  border-radius: 16px !important;
  border: none !important;
  padding: 12px 16px !important;
}
/* 对谁可见 / 发布 / 从相册选 按钮：胶囊形 + 去边框 */
.phone-shell.phone-theme-fudge .phone-moment-edit .phone-visible-trigger,
.phone-shell.phone-theme-fudge .phone-moment-edit button {
  border-radius: 999px !important;
  border: none !important;
}

/* ---- 好友圈动态列表：卡片圆角化 ---- */
/* 动态卡：大圆角 + 内边距 */
.phone-shell.phone-theme-fudge .phone-moment-card {
  border-radius: 18px;
  border: none;
  padding: 14px;
  background: var(--bg) !important;
}
/* 评论卡：圆角化 + 去边框 */
.phone-shell.phone-theme-fudge .phone-moment-comment-card {
  border-radius: 14px;
  border: none;
  padding: 8px 12px;
  background: var(--bg-tertiary) !important;
}
/* 评论区分割线去掉 */
.phone-shell.phone-theme-fudge .phone-moment-comments {
  border-top: none;
}
/* 配图卡 + 配图描述：圆角化 */
.phone-shell.phone-theme-fudge .phone-moment-image {
  border-radius: 14px;
  border: none;
}
.phone-shell.phone-theme-fudge .phone-moment-image-desc {
  border-radius: 14px;
}
/* 分享卡片（分享的帖子/影视/音乐/直播等）：去边框 + 大圆角 + 半透明柔和底 */
.phone-shell.phone-theme-fudge .phone-moment-share-card {
  border: none !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--bg) 14%, transparent) !important;
  padding: 11px 13px !important;
}
/* 分享卡里的类型标签：去边框，改成柔和胶囊 */
.phone-shell.phone-theme-fudge .phone-moment-share-kind {
  border: none !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent) 18%, transparent) !important;
  padding: 2px 9px !important;
}

/* ============================================================
   备忘录 App：卡片 + 编辑页 + 按钮 圆角化
   ============================================================ */
/* 备忘录卡：大圆角 + 去边框 + 内边距 */
.phone-shell.phone-theme-fudge .phone-memo-preview-card {
  border-radius: 18px;
  border: none;
  padding: 14px;
  background: var(--bg) !important;
}
/* 编辑页输入框：大圆角 + 去边框 + 内边距 + 实色底（去半透明卡片色，与搜索框同款） */
.phone-shell.phone-theme-fudge .phone-memo-edit-page input,
.phone-shell.phone-theme-fudge .phone-memo-edit-page textarea {
  border-radius: 16px !important;
  border: none !important;
  padding: 12px 16px !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 编辑/添加宠物页：页面铺深底，框外的标签/说明文字反转为背景色（否则同色隐形）。
   输入框本身是白底深字，不反转，故 input/textarea 的文字色单独恢复。 */
.phone-shell.phone-theme-fudge .phone-pet-create-page,
.phone-shell.phone-theme-fudge .phone-pet-create-page label,
.phone-shell.phone-theme-fudge .phone-pet-create-page span,
.phone-shell.phone-theme-fudge .phone-pet-create-page div {
  color: var(--bg) !important;
}
/* 图片区按钮（选择图片/AI生成/清除）：深底上反色文字 + 背景色描边，AI 生成保留强调色 */
.phone-shell.phone-theme-fudge .phone-pet-create-page #pet-image-upload,
.phone-shell.phone-theme-fudge .phone-pet-create-page #pet-image-clear {
  color: var(--bg) !important;
  border-color: color-mix(in srgb, var(--bg) 45%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-pet-create-page input,
.phone-shell.phone-theme-fudge .phone-pet-create-page textarea {
  color: var(--text) !important;
}
/* 保存 / 收藏 / 分享 / 删除 按钮：胶囊形 + 去边框 */
.phone-shell.phone-theme-fudge .phone-memo-save-btn,
.phone-shell.phone-theme-fudge .phone-memo-action-btn {
  border-radius: 999px;
  border: none;
}
/* App 内底部按钮落在主文字色底上：收藏/分享（非删除）文字改背景色才看得清 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-memo-action-btn:not(.danger) {
  color: var(--bg);
}

/* ============================================================
   相机 App：输入框 + 调整镜头/重置按钮 实色化 + 圆角
   ============================================================ */
/* 拍摄页文字输入框：大圆角 + 去边框 + 实色底 */
.phone-shell.phone-theme-fudge .phone-camera-text {
  border-radius: 16px !important;
  border: none !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
.phone-shell.phone-theme-fudge .phone-camera-text:focus {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 调整镜头 / 重置按钮：胶囊形 + 去边框 + 实色底 */
.phone-shell.phone-theme-fudge .phone-camera-btn-secondary {
  border-radius: 999px !important;
  border: none !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}

/* ============================================================
   钱包 App：绑定属性卡 + 添加按钮 圆角化
   ============================================================ */
/* 绑定属性卡：大圆角 + 去边框 + 实色底
   注意：内联是 background:var(--bg-secondary)，会被 phone.css 全局渐变规则(特异性0,3,1)刷成 --bg-tertiary 半透明。
   这里加属性选择器把特异性提到 (0,4,0) 压过它。 */
.phone-shell.phone-theme-fudge .phone-wallet-card[style*="background:var(--bg-secondary)"] {
  border-radius: 18px !important;
  border: none !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 添加货币按钮：大圆角 + 去虚线边框 + 文字改深主色（行内写死了 text-secondary，需 !important 盖过） */
  .phone-shell.phone-theme-fudge .phone-wallet-add-btn {
    border-radius: 18px !important;
    border: none !important;
    background: var(--bg-tertiary) !important;
    color: var(--text) !important;
  }

/* ============================================================
   记账 App：各卡片去边框 + 大圆角 + 背景色实色
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-ledger-summary,
.phone-shell.phone-theme-fudge .phone-ledger-item,
.phone-shell.phone-theme-fudge .phone-ledger-year-row {
  border: none !important;
  border-radius: 18px !important;
  background: var(--bg) !important;
}
/* 年视图当前月：用主题色细描边突出（保留语义） */
.phone-shell.phone-theme-fudge .phone-ledger-year-row.cur {
  box-shadow: inset 0 0 0 2px var(--accent);
}
/* 手动记一笔按钮：大圆角 */
.phone-shell.phone-theme-fudge .phone-ledger-add-btn {
  border-radius: 18px !important;
  border: none !important;
}
/* 记账右上角视图切换图标（落在主文字色顶栏上）→ 背景色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-ledger-viewbtn {
  color: var(--bg);
}
/* 日历视图文字（月份/星期/日期/明细标题）→ 背景色 */
.phone-shell.phone-theme-fudge .phone-ledger-cal-month,
.phone-shell.phone-theme-fudge .phone-ledger-cal-wd,
.phone-shell.phone-theme-fudge .phone-ledger-cal-day,
.phone-shell.phone-theme-fudge .phone-ledger-cal-detail-title {
  color: var(--bg);
}

/* ============================================================
   小屋 + 衣橱 App：贴页面底的标题 → 背景色
   ============================================================ */
/* 衣橱「当前着装」标题：落在主文字色页面底上 → 背景色（卡片内的部位名不改，用文字色） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .wardrobe-card-title {
  color: var(--bg) !important;
}
/* 衣橱/小屋右上角 AI 按钮（落在主文字色顶栏上） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .cottage-ai-btn {
  color: var(--bg);
}

/* 衣橱：卡片 + 按钮去边框 + 大圆角 */
.phone-shell.phone-theme-fudge .wardrobe-part {
  border: none !important;
  border-radius: 18px;
  background: var(--bg-secondary) !important;
  padding: 14px 16px;
}
.phone-shell.phone-theme-fudge .wardrobe-portrait {
  border: none !important;
  border-radius: 18px;
  background-color: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
.phone-shell.phone-theme-fudge .wardrobe-portrait-empty {
  border: none !important;
  border-radius: 18px;
  background-color: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
.phone-shell.phone-theme-fudge .wardrobe-item {
  border-radius: 14px;
}
.phone-shell.phone-theme-fudge .wardrobe-btn {
  border: none !important;
  border-radius: 999px;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
.phone-shell.phone-theme-fudge .wardrobe-part-add {
  border: none !important;
  border-radius: 999px;
}

/* 小屋：全部实色卡片 + 去边框 + 大圆角（带封面图的住所信息卡除外，避免盖掉图片） */
.phone-shell.phone-theme-fudge .cottage-mall-card,
.phone-shell.phone-theme-fudge .cottage-house-card,
.phone-shell.phone-theme-fudge .cottage-info-card:not(.cottage-info-card-img),
.phone-shell.phone-theme-fudge .cottage-room-card,
.phone-shell.phone-theme-fudge .cottage-room-info,
.phone-shell.phone-theme-fudge .cottage-item-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 18px;
  box-shadow: none !important;
}
/* 小屋/衣橱商城的商品卡 + 仓库卡（复用 .phone-map-result-card，但根容器无商城作用域） */
.phone-shell.phone-theme-fudge .phone-cottage-shell .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-cottage-shop .phone-map-result-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 18px;
  padding: 14px;
}
/* 宠物列表卡：fudge 下用背景色（与手机整体底色一致），去边框大圆角 */
.phone-shell.phone-theme-fudge .cottage-pet-card {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 18px;
}
/* fudge 是实色主题：宠物列表卡即使有壁纸也保持实色，压过 has-wallpaper 通配半透明规则
   （宠物卡内联 background:var(--bg-tertiary)，会被 has-wallpaper 通配命中变半透明，这里用属性选择器提特异性覆盖回实色） */
.phone-shell.phone-theme-fudge.has-wallpaper .cottage-pet-card[style*="background:var(--bg-tertiary)"],
.phone-shell.phone-theme-fudge.has-wallpaper .cottage-pet-card[style*="background: var(--bg-tertiary)"] {
  background-image: none !important;
  background-color: var(--bg) !important;
}
/* 小屋/衣橱商城：搜索框 + 搜索按钮去边框 + 胶囊形 */
.phone-shell.phone-theme-fudge .phone-cottage-shop .phone-map-search-input-wrap {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 999px;
}
.phone-shell.phone-theme-fudge .phone-cottage-shop .phone-map-search-btn {
  border-radius: 999px;
}
/* 小屋：带图片的住所信息卡保持铺满，不强制圆角内边距 */
.phone-shell.phone-theme-fudge .cottage-info-card-img {
  border-radius: 18px;
}
/* 小屋：按钮去边框（含虚线）+ 胶囊形 + 文字深主色（落在浅 bg-secondary 块上） */
  .phone-shell.phone-theme-fudge .cottage-add-btn,
  .phone-shell.phone-theme-fudge .cottage-set-cur-btn,
  .phone-shell.phone-theme-fudge .cottage-item-add {
    border: none !important;
    border-radius: 999px;
    background: var(--bg-secondary) !important;
    color: var(--text) !important;
  }
/* 小屋：楼层下拉框去边框 + 大圆角 */
.phone-shell.phone-theme-fudge .cottage-floor-select {
  border: none !important;
  border-radius: 14px;
  background: var(--bg-secondary) !important;
}
.phone-shell.phone-theme-fudge .cottage-floor-menu {
  border: none !important;
  border-radius: 14px;
}

/* 聊天：联系人/会话名字 + 详情页右上角按钮 → 背景色（落在主文字色底上） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-chat-name {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) #phone-header-right button {
  color: var(--bg) !important;
}

/* 电台发现页：分类网格卡 → 实色背景 + 大圆角 + 去边框 + 柔和阴影 */
.phone-shell.phone-theme-fudge .phone-radio-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}
.phone-shell.phone-theme-fudge .phone-radio-card:hover {
  box-shadow: 0 5px 16px rgba(0,0,0,0.14);
}

/* 电台预览页：左右切换按钮 → 去边框 */
.phone-shell.phone-theme-fudge .phone-radio-ctrl-btn {
  border: none !important;
}

/* 电台「我的」页：订阅卡 + 下期预告块 → 实色背景 + 大圆角 */
.phone-shell.phone-theme-fudge .phone-radio-mine-header-name {
  color: var(--bg);
}
.phone-shell.phone-theme-fudge .phone-radio-mine-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 18px;
}
.phone-shell.phone-theme-fudge .phone-radio-mine-next {
  background: var(--bg-tertiary) !important;
  border-radius: 14px;
}
/* 电台播放按钮：fudge 下详情页背景是 --bg（浅色），按钮底保持透明或用背景色，图标用主文字色 */
.phone-shell.phone-theme-fudge .phone-radio-play-btn {
  background: var(--bg) !important;
  color: var(--text) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
}
.phone-shell.phone-theme-fudge .phone-radio-play-btn svg {
  fill: var(--text) !important;
}
/* 电台前后切换按钮：分类预览页控制区，图标用主文字色 */
.phone-shell.phone-theme-fudge .phone-radio-ctrl-btn {
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .phone-radio-ctrl-btn svg {
  stroke: var(--text) !important;
}
/* 电台详情页控制按钮（跳过/前/后/列表）：图标用主文字色，播放按钮单独处理。
   必须限定在 .phone-radio-detail 内。.phone-mdetail-ctrl 是四个页面共用的类
   （音乐详情页、一起听页、电台播放页、电台历史播放页），而两边底色是反的：
   电台页是铺满的 overlay，底色 var(--bg)（浅），所以图标要 --text；
   音乐详情页和一起听页在 phone-body 里，底色 var(--text)（深），图标要 --bg。
   不限定的话这里会盖掉前面「音乐 App 内页反色」那组同名规则 —— 选择器逐字相同、
   !important 也相同，纯靠先后顺序定输赢，结果是音乐详情页的图标深绿压深绿。 */
.phone-shell.phone-theme-fudge .phone-radio-detail .phone-mdetail-ctrl {
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .phone-radio-detail .phone-mdetail-ctrl svg {
  fill: var(--text) !important;
  stroke: var(--text) !important;
}
/* 电台详情页播放按钮：浅底上要深色圆+浅色图标。
   音乐详情页不需要这两条 —— 基础样式里 .phone-mdetail-play 本来就是
   background: var(--text) / color: var(--bg)，在深绿底上正好是深圆浅图标。 */
.phone-shell.phone-theme-fudge .phone-radio-detail .phone-mdetail-ctrl.phone-mdetail-play {
  background: var(--text) !important;
  border-radius: 50%;
}
.phone-shell.phone-theme-fudge .phone-radio-detail .phone-mdetail-ctrl.phone-mdetail-play svg {
  fill: var(--bg) !important;
  stroke: var(--bg) !important;
}

/* 日历：事项卡 → 去边框 + 大圆角 + 实色背景 */
.phone-shell.phone-theme-fudge .phone-cal-ev-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 16px;
}

/* ============================================================
   日历 App：页面文字落在主文字色底上 → 改背景色
   ============================================================ */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-cal-title-text,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-cal-nav-btn,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-cal-weekday,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-cal-day-title {
  color: var(--bg);
}
/* 日期数字（排除今天/选中态，它们有专属高亮色） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-cal-cell:not(.phone-cal-today):not(.phone-cal-selected) .phone-cal-daynum {
  color: var(--bg);
}

/* ============================================================
   全部订单聚合页：订单卡去边框 + 大圆角 + 背景色实色
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-deliveries-app .phone-map-result-card {
  border: none !important;
  border-radius: 18px !important;
  background: var(--bg) !important;
  padding: 14px;
}
.phone-shell.phone-theme-fudge .phone-deliveries-app .phone-tabbar {
  border: none;
}

/* ============================================================
   飞鸟（快递）+ 游鱼（小铺）App：卡片去边框 + 大圆角 + 背景色实色
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-feiniao-app .phone-map-result-card,
.phone-shell.phone-theme-fudge .phone-youyu-app .phone-map-result-card {
  border: none !important;
  border-radius: 18px !important;
  background: var(--bg) !important;
  padding: 14px;
}
/* 添加寄件 / 上架商品 按钮：大圆角 + 去虚线边框 + 实色底 + 文字深主色（行内写死 text-secondary，需 !important） */
  .phone-shell.phone-theme-fudge .phone-feiniao-add-btn,
  .phone-shell.phone-theme-fudge .phone-youyu-add-btn {
    border-radius: 18px !important;
    border: none !important;
    background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
    color: var(--text) !important;
  }
/* 底部 tabbar 去边框 */
.phone-shell.phone-theme-fudge .phone-feiniao-app .phone-tabbar,
.phone-shell.phone-theme-fudge .phone-youyu-app .phone-tabbar {
  border: none;
}

/* ============================================================
   番茄钟 App：实色背景 + 历史记录卡大圆角
   ============================================================ */
/* App 页整体实色背景：奶油软糖走主文字色底（与深色底栏融合，浅色卡片撑层次） */
.phone-shell.phone-theme-fudge .phone-tomato-app {
  background: var(--text);
}
/* 专注播放器卡：实色背景 + 去毛玻璃 */
.phone-shell.phone-theme-fudge .phone-tomato-player {
  background: var(--bg-secondary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* 历史记录卡：大圆角 + 背景色实色 */
.phone-shell.phone-theme-fudge .phone-tomato-hist-card {
  border-radius: 18px;
  background: var(--bg-secondary) !important;
}
/* tabbar 去边框 */
.phone-shell.phone-theme-fudge .phone-tomato-app .phone-tabbar {
  border: none;
}
/* 邀请陪伴卡：实色背景色底（深背景上半透明白底会看不清字） */
.phone-shell.phone-theme-fudge .phone-tomato-companion {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   邮箱 App：收件/往来列表卡片实色背景（奶油软糖浅底上半透明白卡看不清字，照论坛卡片处理）
   ============================================================ */
.phone-shell.phone-theme-fudge .phone-email-card,
.phone-shell.phone-theme-fudge .phone-email-letter-card {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 14px !important;
}
/* 番茄钟全屏模式：状态栏也补主文字色底（与深背景/底栏统一，否则露出浅色横条） */
.phone-shell.phone-theme-fudge.phone-tomato-mode .phone-statusbar {
  background: var(--text);
}

/* 聊天输入框：奶油软糖用圆润无边框（玻璃冰糖保持方正带边框）+ 实色底 */
.phone-shell.phone-theme-fudge .phone-chat-input-box {
  border: none !important;
  border-radius: 18px !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* char（对方）气泡：默认透明底，fudge 下改实色浅底（形状/边框不动） */
.phone-shell.phone-theme-fudge .online-chat-text {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 手机聊天 App 对方文字气泡：内联 --bg-tertiary 半透明，会被 phone.css 全局渐变规则(0,3,1)命中压制，
   加属性选择器提特异性到 (0,4,0) 压过它，改实色（我方 accent 气泡不动） */
.phone-shell.phone-theme-fudge .phone-chat-txt-char[style*="var(--bg-tertiary)"] {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 加号菜单（图片/表情/相册/语音/位置/转账…）图标底框：内层 div 内联 --bg-tertiary 半透明，
   同样被全局规则压制，用子选择器+属性选择器提特异性改实色 */
.phone-shell.phone-theme-fudge .phone-plus-item > div[style*="var(--bg-tertiary)"] {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
/* 聊天设置页各分区卡片（备注昵称/角色语音/线下互动/视频通话立绘/上下文）：内联 --bg-tertiary 半透明，
   被全局规则压制，用后代+属性选择器提特异性改实色 */
.phone-shell.phone-theme-fudge .phone-chat-settings-page div[style*="var(--bg-tertiary)"] {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}

/* ============================================================
   心动模拟客服对话气泡：奶油软糖深底上，默认 --bg-tertiary 会解析成深灰，
   跟粉白顶栏/输入栏不搭（看起来很脏）。照论坛/邮箱卡片处理：
   AI 气泡走实色浅底，用户气泡叠一层 accent 淡色，都无边框 + 大圆角。
   ============================================================ */
.phone-shell.phone-theme-fudge .hs-bubble-ai {
  background: var(--bg) !important;
  border: none !important;
  border-radius: 18px !important;
  color: var(--text) !important;
}
.phone-shell.phone-theme-fudge .hs-bubble-user {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg)) !important;
  border: none !important;
  border-radius: 18px !important;
  color: var(--text) !important;
}

/* 客服顶栏文字：fudge 深底上默认 --text 深色会看不见，反成浅色 */
.phone-shell.phone-theme-fudge .hs-svc-title {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .hs-svc-sub {
  color: var(--bg) !important;
  opacity: 0.65 !important;
}

/* ============================================================
   心动目标卡：fudge 深底上默认 --bg-tertiary 会发灰半透明、文字发暗看不清。
   照论坛/书架卡处理：实色浅底 + 大圆角，文字反成浅色，
   accent 元素（好感度数字/进度条填充/戳一下按钮）保持强调色不动。
   ============================================================ */
/* 卡片本体：实色浅底（加属性选择器提特异性，压过 phone.css 的全局卡片渐变规则 [style*=bg-tertiary]:not(.wv-tag-pill)） */
.phone-shell.phone-theme-fudge .hs-app-target-card[style*="background:var(--bg-tertiary)"] {
  background: var(--bg) !important;
}
/* 卡片是浅色实色底，文字/进度条槽/减号按钮都保持默认（--text 深字、--bg-secondary 浅槽），不反色 */

/* ============================================================
   阅读 App：fudge 下 .phone-body 铺主文字色深底，
   阅读各页文字默认是 var(--text)（深色）会埋进深底里看不见。
   策略与壁纸模式一致：主文字反成 --bg（浅色）、次要文字半透明浅色，
   卡片改实色浅块 + 大圆角 + 无边框。
   ============================================================ */

/* ---- 书架页 ---- */
/* 顶栏标题 / 分区标题 / 齿轮 → 浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-topbar-title,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-mine-section-title,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-gear {
  color: var(--bg) !important;
}
/* 书架卡：实色浅块 + 大圆角 + 去边框 + 更松内边距（原 10px/固定高 100px 偏挤；高度统一加大并固定，避免无封面占位块被内容撑长） */
.phone-shell.phone-theme-fudge .phone-reading-shelf-card {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 18px;
  padding: 14px !important;
  height: 124px !important;
}
.phone-shell.phone-theme-fudge .phone-reading-shelf-swipe { border-radius: 18px; }
/* 来源角标：fudge 圆角大、内边距大，往内挪一点避免贴边 */
.phone-shell.phone-theme-fudge .phone-reading-shelf-dot { top: 13px; right: 13px; }
/* 卡内文字保持原变量即可（卡片是浅底），只需保证标题/简介在浅底上是深字——默认 var(--text) 正合适，不覆盖 */
/* 右上角「+」按钮：浅块 */
.phone-shell.phone-theme-fudge .phone-reading-add-btn {
  background: var(--bg-secondary) !important;
}
/* 空状态文字 → 浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-empty-title {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-empty-desc {
  color: color-mix(in srgb, var(--bg) 64%, transparent) !important;
}

/* ---- 发现页 ---- */
/* 搜索栏：实色浅块 + 胶囊 */
.phone-shell.phone-theme-fudge .phone-reading-discover-bar input {
  background: var(--bg-secondary) !important;
  border: none !important;
  border-radius: 999px !important;
}
.phone-shell.phone-theme-fudge .phone-reading-search-btn {
  border-radius: 999px !important;
}

/* ---- 目录页 ---- */
/* 书名 / 作者 / 简介 / 分区标题 → 浅色（落在深底上） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-title,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-section {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-author,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-intro {
  color: color-mix(in srgb, var(--bg) 66%, transparent) !important;
}
/* 章节项文字 → 浅色，序号/已读 → 半透明浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-name {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-idx,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-item.read .phone-reading-toc-name,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-lock {
  color: color-mix(in srgb, var(--bg) 55%, transparent) !important;
}
.phone-shell.phone-theme-fudge .phone-reading-toc-item:active {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-toc-gear {
  color: var(--bg) !important;
}
/* 底部「开始阅读」条：深底上换成半透明浅块底 */
.phone-shell.phone-theme-fudge .phone-reading-toc-footer {
  background: color-mix(in srgb, var(--bg) 10%, transparent) !important;
  border-top: none !important;
}

/* ---- 设置页 ---- */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-set-rowlabel {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-set-rowdesc {
  color: color-mix(in srgb, var(--bg) 62%, transparent) !important;
}
/* 设置按钮：浅块 + 胶囊 + 去边框 */
.phone-shell.phone-theme-fudge .phone-reading-set-btn {
  background: color-mix(in srgb, var(--bg) 14%, transparent) !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-reading-set-btn.danger {
  color: #ff9b9b !important;
}

/* ---- 阅读器正文页 ---- */
/* 标题 / 正文 → 浅色（深底上阅读），副标题 → 半透明浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-chapter-title,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-chapter-body {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-chapter-sub {
  color: color-mix(in srgb, var(--bg) 60%, transparent) !important;
}
/* 段落想法图标：半透明浅色，命中态保持主题色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-note-dot {
  color: color-mix(in srgb, var(--bg) 60%, transparent) !important;
}
/* 想法卡（正文内）：半透明浅块，内文反成浅色 */
.phone-shell.phone-theme-fudge .phone-reading-note-card {
  background: color-mix(in srgb, var(--bg) 12%, transparent) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-note-card-tx {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-note-card-nm {
  color: color-mix(in srgb, var(--bg) 64%, transparent) !important;
}
/* 底部辅助功能条（共读笔记/本章说/打赏/分享）：浅块底 + 图标文字反色 */
.phone-shell.phone-theme-fudge .phone-reading-actionbar {
  background: color-mix(in srgb, var(--bg) 10%, transparent) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-actionbtn-ic {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-actionbtn-tx {
  color: color-mix(in srgb, var(--bg) 62%, transparent) !important;
}
/* 章节导航按钮：上一章（次按钮）改半透明浅块 + 浅字；下一章保留主题色 */
.phone-shell.phone-theme-fudge .phone-reading-chapter-nav:not(.next) {
  background: color-mix(in srgb, var(--bg) 14%, transparent) !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge .phone-reading-chapter-nav.next {
  border-radius: 999px !important;
  border: none !important;
}
/* 想法输入弹层里的已写想法行：半透明浅块 + 浅字（弹层底是 --bg 浅色时不需要，但深底主题弹层沿用打赏面板，这里保险处理文字） */

/* ---- 查看大纲页 ---- */
/* 大纲页直接铺在深底上（无卡片包裹），正文/条目文字需反成浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-ol-text,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-ol-item {
  color: var(--bg) !important;
}
/* 分区标题保留主题强调色（accent 在深底上可见），警示条保持自身配色，均不覆盖 */

/* ---- 书评/评论区 ---- */
/* 评论铺在深底上（无卡片包裹）：正文反成浅色，名字/计数/刷新用半透明浅色 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-cmt-tx {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-cmt-name,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-cmt-count,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-cmt-refresh {
  color: color-mix(in srgb, var(--bg) 64%, transparent) !important;
}
/* 底部发送栏：半透明浅块底 + 浅字输入，发送按钮保留主题色 */
.phone-shell.phone-theme-fudge .phone-reading-cmt-inputbar {
  background: color-mix(in srgb, var(--bg) 10%, transparent) !important;
  border-top: none !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-reading-cmt-inputbar input {
  color: var(--bg) !important;
}
/* 周程：启用文字在奶油软糖深底上改背景色（浅字） */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-week-enable {
  color: var(--bg);
}
/* 周几切换条：未选中那天默认落在深页底上糊成一团，铺浅底+深字（active 态保留 accent 高亮不动） */
.phone-shell.phone-theme-fudge .phone-week-daytab {
  background: var(--bg-secondary);
  color: var(--text);
}
/* 时段卡：铺浅底（对齐日历事项卡），内部 title/note/time 的变量色落浅底上即可读 */
.phone-shell.phone-theme-fudge .phone-week-slot-card {
  background: var(--bg-secondary);
}

/* ============================================================
   视频 App（发现页 / 我的页）—— 卡片文字与设置项直接落在深页底上，需反转为浅字
   ============================================================ */
/* 卡片标题：深底上改浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-card-title {
  color: var(--bg);
}
/* 卡片副信息（类型·主演/主播）：深底上用半透明浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-card-by {
  color: color-mix(in srgb, var(--bg) 64%, transparent);
}
/* 分区标题（关注的直播/最近观看/其他）：深底上改浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-mine-section {
  color: var(--bg);
}
/* 空状态提示文字：深底上用半透明浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-empty-text {
  color: color-mix(in srgb, var(--bg) 64%, transparent);
}
/* 管理态提示条：深底上用半透明浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-mine-edittip {
  color: color-mix(in srgb, var(--bg) 64%, transparent);
}
/* 直播关注头像名字：深底上改浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-live-follow-name {
  color: var(--bg);
}
/* 生成设置项（参考世界观/参考近期主线）：勾选文字落在深页底上，改浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-genrow .circle-check-text {
  color: var(--bg);
}
/* 视频设置页 overlay（电影设置/剧集设置）：内联 background:var(--bg) 是白底，
   但复用了阅读设置页的浅字规则 → 白底白字看不见。fudge 下改深底，与阅读设置页一致 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-set-overlay {
  background: var(--text) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-set-overlay .phone-header,
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-set-overlay .phone-statusbar {
  background: var(--text) !important;
}
/* overlay 顶栏（返回按钮 + 标题）：容器内联 color:var(--text) 在深底上是深字，反成浅字 */
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-set-overlay .phone-video-set-topbar {
  color: var(--bg) !important;
}
.phone-shell.phone-theme-fudge:not(.phone-home-mode) .phone-video-set-overlay .phone-nav-btn {
  color: var(--bg) !important;
}
/* 视频发现页搜索框 + 按钮：奶油软糖大圆角 + 去边框（与论坛/阅读同款） */
.phone-shell.phone-theme-fudge .phone-video-search {
  border-radius: 18px !important;
  border: none !important;
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
}
.phone-shell.phone-theme-fudge .phone-video-search-btn {
  border-radius: 999px !important;
  border: none !important;
}
/* 顶部分类 tab（视频：直播/电影/剧集/动漫；阅读：长篇/短篇）：
   默认是半透明灰胶囊底，压在实色/壁纸上显脏。fudge 下换实色底 + 实色选中块，
   延续奶油软糖的实色圆润风。 */
.phone-shell.phone-theme-fudge .phone-video-cat-tabs,
.phone-shell.phone-theme-fudge .phone-reading-type-tabs {
  background: var(--bg-secondary-solid, var(--bg-secondary)) !important;
  border-radius: 999px !important;
  padding: 4px !important;
}
.phone-shell.phone-theme-fudge .phone-video-cat-tab,
.phone-shell.phone-theme-fudge .phone-reading-type-tab {
  border-radius: 999px !important;
}
.phone-shell.phone-theme-fudge .phone-video-cat-tab.active,
.phone-shell.phone-theme-fudge .phone-reading-type-tab.active {
  background: var(--accent) !important;
  color: var(--on-accent) !important;
}
