/* 宠物小屋枢纽（已合并进首页 index.html）：手机单列、柔和治愈画风 */
:root {
  --hub-ink: #5b4633;
  --hub-muted: #9c8055;
  --hub-line: rgba(226, 168, 106, 0.30);
  --hub-card: rgba(255, 250, 240, 0.90);
  --hub-tab-h: calc(58px + env(safe-area-inset-bottom, 0px));
}

/* 首页原有悬浮功能球：功能已全部搬进小屋，这里统一隐藏 */
#rank-ball,
#msg-ball,
#user-btn,
#house-ball,
.qiankun-ball,
.lottery-entry { display: none !important; }

/* ---- 宠物显示互斥：小屋打开时，隐藏首页的漂浮宠物 ---- */
/* 首页的 3 个漂浮宠物容器是 position:fixed + z-index:9999，会飘在小屋之上 */
/* 小屋打开时（#hub-view 未 hidden）把它们藏掉，只留小屋里的静态立绘 */
body:has(#hub-view:not([hidden])) #pet-container,
body:has(#hub-view:not([hidden])) #pet2-container,
body:has(#hub-view:not([hidden])) #pet3-container,
body:has(#hub-view:not([hidden])) .pet-menu-ball,
body:has(#hub-view:not([hidden])) .pet-info-tooltip,
body:has(#hub-view:not([hidden])) .pet-speech-bubble {
  display: none !important;
}

/* 回退方案：浏览器不支持 :has() 时，由 JS 加 .hub-open 类来隐藏 */
body.hub-open #pet-container,
body.hub-open #pet2-container,
body.hub-open #pet3-container,
body.hub-open .pet-menu-ball,
body.hub-open .pet-info-tooltip,
body.hub-open .pet-speech-bubble {
  display: none !important;
}

/* ============ 小屋主视图 ============ */
#hub-view,
#hub-view * { box-sizing: border-box; margin: 0; padding: 0; }
#hub-view {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 12% 8%, #fff1c4 0%, rgba(255, 241, 196, 0) 44%),
    radial-gradient(circle at 92% 18%, #ffe4a8 0%, rgba(255, 228, 168, 0) 48%),
    linear-gradient(180deg, #fffaf0 0%, #fff3d8 48%, #ffedc6 100%);
  padding-bottom: var(--hub-tab-h);
}
#hub-view[hidden] { display: none !important; }
#hub-view a { color: inherit; text-decoration: none; }
#hub-view button { font: inherit; color: inherit; cursor: pointer; }

#hub-view .hub-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 10px 14px 4px;
}
/* ---- 顶部栏：铺 xiaowu 贴图，按钮改为透明热区，图内文字即所见 ---- */
#hub-view .hub-top {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 10px;
  aspect-ratio: 1804 / 215;
  background: url("assets/xiaowu/skin/dingbu.jpg") center / 100% 100% no-repeat;
}
#hub-view .hub-top-btn,
#hub-view .hub-icon-btn {
  position: absolute;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
#hub-view #hub-to-home { left: 2.05%; top: 9.3%; width: 18.3%; height: 79.1%; }
#hub-view #hub-admin { left: 71.34%; top: 9.3%; width: 16.35%; height: 79.1%; }
#hub-view .hub-icon-btn { left: 90.74%; top: 4.65%; width: 7.76%; height: 86.05%; }
#hub-view .hub-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#hub-view .hub-admin[hidden] { display: none !important; }
/* 普通用户看不到后台，用与贴图同色贴片盖住图内「管理员」字样 */
#hub-view .hub-admin-cover { display: none; }
#hub-view .hub-top > .hub-admin-cover {
  position: absolute;
  left: 66.24%;
  top: 0;
  width: 23.28%;
  height: 69.8%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fdfbe4 0%, #fdf7dc 50%, #fcefcb 100%);
}
#hub-view .hub-admin[hidden] + .hub-admin-cover { display: block; }
#hub-view .hub-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d7a;
  box-shadow: 0 0 0 2px #fff;
}
#hub-view .hub-dot[hidden] { display: none; }
#hub-view .hub-pet {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 0;
  text-align: center;
}
#hub-view .hub-pet-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0 auto 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
#hub-view .hub-pet-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(226, 168, 106, 0.28), rgba(226, 168, 106, 0));
}
#hub-view .hub-pet-stage.has-bg {
  border-radius: 22px;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
#hub-view .hub-pet-stage.has-floor::after { display: none; }
#hub-view .hub-stage-floor {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  width: calc(100% + 8px);
  height: 58px;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  z-index: 1;
}
#hub-view .hub-stage-decor {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 84px;
  height: 84px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
#hub-view .hub-pet-img {
  position: relative;
  z-index: 3;
  max-width: min(200px, 72%);
  max-height: 100%;
  animation: hubPetFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(198, 146, 82, 0.22));
}
#hub-view .hub-pet-img.is-empty { opacity: 0.45; }
@keyframes hubPetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
#hub-view .hub-pet-name { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
/* 未登录/未激活时的提示态：换柔和色，别像正式名字 */
#hub-view .hub-pet-name.is-guest { font-size: 14px; font-weight: 600; color: #B99A72; letter-spacing: 0.04em; }

/* ---- 切换宝宝形态按钮（宠物立绘左侧空白处）---- */
#hub-view .hub-pet-switch {
  position: absolute;
  left: 6px;
  /* 用 top 定位（从舞台顶部往下），屏幕变矮时不会顶穿顶部栏 */
  top: 82px;                 /* = 主题按钮 top(12) + 其高度(约66) + 间隔(4) */
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.16s ease;
}
#hub-view .hub-pet-switch[hidden] { display: none !important; }
#hub-view .hub-pet-switch:active { transform: scale(0.9); }
#hub-view .hub-switch-ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fffdf7 0%, #fff0d8 100%);
  border: 2px solid rgba(240, 200, 140, 0.9);
  box-shadow: 0 4px 12px rgba(226, 170, 126, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}
#hub-view .hub-switch-ico {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}
#hub-view .hub-switch-txt {
  font-size: 10px;
  font-weight: 800;
  color: #A8834E;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
/* 切换时的轻微脉冲，提示这是可点的 */
@keyframes hubSwitchPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(226, 170, 126, 0.28), 0 0 0 0 rgba(255, 190, 110, 0.55); }
  50% { box-shadow: 0 4px 12px rgba(226, 170, 126, 0.28), 0 0 0 7px rgba(255, 190, 110, 0); }
}
#hub-view .hub-pet-switch .hub-switch-ring { animation: hubSwitchPulse 2.4s ease-in-out infinite; }

/* ---- 切换小屋主题按钮（竖排在「切换」按钮正上方）---- */
#hub-view .hub-theme-switch {
  position: absolute;
  left: 6px;
  /* 用 top 定位（从舞台顶部往下），屏幕变矮时不会顶穿顶部栏 */
  top: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.16s ease;
}
#hub-view .hub-theme-switch[hidden] { display: none !important; }
#hub-view .hub-theme-switch:active { transform: scale(0.9); }
#hub-view .hub-theme-ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fffdf7 0%, #ffe9f2 100%);
  border: 2px solid rgba(240, 180, 205, 0.9);
  box-shadow: 0 4px 12px rgba(226, 150, 180, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  /* 预留：后续主题文件可替换为图片背景 */
  background-size: cover;
  background-position: center;
}
#hub-view .hub-theme-svg {
  width: 24px;
  height: 24px;
  display: block;
}
/* 兼容：若主题文件后续改为图片图标，可用此容器承载 */
#hub-view .hub-theme-ico {
  font-size: 22px;
  line-height: 1;
  display: block;
}
#hub-view .hub-theme-txt {
  font-size: 10px;
  font-weight: 800;
  color: #A8788E;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
@keyframes hubThemePulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(226, 150, 180, 0.28), 0 0 0 0 rgba(255, 150, 190, 0.5); }
  50% { box-shadow: 0 4px 12px rgba(226, 150, 180, 0.28), 0 0 0 7px rgba(255, 150, 190, 0); }
}
#hub-view .hub-theme-switch .hub-theme-ring { animation: hubThemePulse 2.4s ease-in-out infinite; }

#hub-view .hub-sat { flex: 0 0 auto; margin: 6px auto 0; width: 100%; max-width: 240px; }
#hub-view .hub-sat-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  border: 1px solid rgba(226, 168, 106, 0.35);
}
#hub-view .hub-sat-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6cf7e, #efb04f);
  transition: width 0.35s ease;
}
#hub-view .hub-sat-fill.is-warn { background: linear-gradient(90deg, #f3c98a, #eaa95c); }
#hub-view .hub-sat-fill.is-low { background: linear-gradient(90deg, #f0a86a, #e07d3c); }
#hub-view .hub-sat-text { margin-top: 4px; font-size: 11px; color: var(--hub-muted); }
/* ---- 金币 / 魅力：真实卡片 + 图标 + 实时数值 ---- */
#hub-view .hub-res {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  flex: 0 0 auto;
  margin: 8px 0;
}
#hub-view .hub-res-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(160deg, #fffdf7 0%, #fff3e0 100%);
  border: 1.5px solid rgba(240, 214, 178, 0.9);
  box-shadow: 0 4px 11px rgba(226, 170, 126, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
#hub-view .hub-res-ico { width: 30px; height: 30px; display: block; object-fit: contain; flex: 0 0 auto; }
#hub-view .hub-res-v {
  display: block;
  color: #5b3b2d;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  font-size: 19px;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ---- 今日目标：标题栏 ---- */
#hub-view .hub-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  margin: 2px 2px 7px;
}
#hub-view .hub-goal-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  color: #8A6A9E;
  letter-spacing: 0.02em;
}
#hub-view .hub-goal-svg { width: 15px; height: 15px; display: block; }
#hub-view .hub-goal-tip {
  font-size: 10px;
  font-weight: 800;
  color: #E0799F;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #F8DEE7;
  padding: 1px 8px;
  border-radius: 8px;
}

/* ---- 今日任务：真实卡片 + 独立图标 ---- */
#hub-view .hub-tasks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 0 0 auto;
  margin-bottom: 8px;
}
#hub-view .hub-task {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px 8px;
  border: 1.5px solid rgba(240, 214, 178, 0.9);
  border-radius: 16px;
  background: linear-gradient(160deg, #fffdf7 0%, #fff2de 100%);
  box-shadow: 0 4px 11px rgba(226, 170, 126, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease;
}
#hub-view .hub-task:active { transform: scale(0.955); }
#hub-view .hub-task-ico { width: 30px; height: 30px; display: block; object-fit: contain; }
#hub-view .hub-task-txt { font-size: 11.5px; font-weight: 800; color: #6b4632; letter-spacing: -0.2px; }
#hub-view .hub-task #hub-task-checkin-dot,
#hub-view .hub-task #hub-task-fish-dot,
#hub-view .hub-task #hub-task-adv-dot { top: 8px; right: 10px; }
/* ---- 功能卡：真实卡片 + 独立图标（6 张双列语义色） ---- */
#hub-view .hub-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px 8px;
  flex: 0 0 auto;
}
#hub-view .hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 5px 9px;
  border: 1.5px solid var(--hbd, #F5E7D5);
  border-radius: 16px;
  background: var(--hbg, linear-gradient(160deg, #fffdf7 0%, #fff3e0 100%));
  box-shadow: 0 5px 13px var(--hsh, rgba(226, 170, 126, 0.18)), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
#hub-view .hub-card:active { transform: scale(0.955); }
#hub-view .hub-card:hover, #hub-view .hub-card:focus { transform: none; }
#hub-view .hub-card-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; }
#hub-view .hub-card-ico img { width: 100%; height: 100%; display: block; object-fit: contain; }
#hub-view .hub-card-txt { display: flex; flex-direction: column; align-items: center; gap: 1px; }
#hub-view .hub-card-txt .t1 { font-size: 11.5px; font-weight: 800; color: #5A4A66; letter-spacing: -0.2px; white-space: nowrap; }
#hub-view .hub-card-txt .t2 { font-size: 9px; color: #A08F98; letter-spacing: -0.2px; white-space: nowrap; }
/* 六张卡片的语义配色（暖光奶油系） */
#hub-view #hub-card-adv     { --hbg: linear-gradient(150deg,#FFF8E8,#FFEFC9); --hbd:#F8E2AE; --hsh:rgba(238,196,110,.24); }
#hub-view #hub-card-battle  { --hbg: linear-gradient(150deg,#F2F9FF,#DFEEFD); --hbd:#CFE2F7; --hsh:rgba(140,180,225,.24); }
#hub-view #hub-card-fish    { --hbg: linear-gradient(150deg,#FFF6F0,#FFE6D6); --hbd:#FAD9C2; --hsh:rgba(240,170,140,.24); }
#hub-view #hub-card-rank    { --hbg: linear-gradient(150deg,#FAF6FF,#EDE3FD); --hbd:#E1D3F8; --hsh:rgba(165,135,220,.24); }
#hub-view #hub-card-msg     { --hbg: linear-gradient(150deg,#F4FCF6,#DFF5E6); --hbd:#CDEBD8; --hsh:rgba(120,195,150,.24); }
#hub-view #hub-card-lottery { --hbg: linear-gradient(150deg,#FFF6FA,#FFE4EF); --hbd:#F8D6E4; --hsh:rgba(240,145,180,.24); }
/* ---- 独立卡片：小屋串门 / 神秘商店（6 卡图下方单独一排） ---- */
#hub-view .hub-extra {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
#hub-view .hub-extra-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(240, 190, 145, 0.55);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffeede 100%);
  box-shadow: 0 8px 16px rgba(226, 170, 126, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #6b4632;
}
#hub-view .hub-extra-card:active { transform: translateY(1px); }
#hub-view .hub-extra-svg { display: block; width: 34px; height: 34px; }
#hub-view .hub-extra-ico { display: none; }
#hub-view .hub-extra-name { font-size: 14px; font-weight: 800; letter-spacing: 0.05em; }
#hub-view .hub-sheet {
  position: fixed;
  inset: 0;
  /* 190：高于音乐悬浮窗(170/171)避免弹层底部行被其隐形容器拦截点击，
     低于 rank/user/vx 等 200 级全屏层 */
  z-index: 190;
  background: rgba(82, 58, 28, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#hub-view .hub-sheet[hidden] { display: none; }
#hub-view .hub-sheet-card {
  width: min(430px, 100%);
  max-height: 70vh;
  overflow: auto;
  padding: 18px 16px 24px;
  border-radius: 24px 24px 0 0;
  background: #fffaf0;
}
#hub-view .hub-sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
#hub-view .hub-msg-item {
  display: block;
  width: 100%;
  text-align: left;
  background: #fffdf6;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--hub-line);
}
#hub-view .hub-msg-empty { font-size: 13px; color: var(--hub-muted); padding: 12px 0; }
#hub-view .hub-go {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #f6c76a, #eaa94a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* 为固定底部 Tab 预留空间（首页相册页也会被 hub.css 加载） */
body { padding-bottom: calc(var(--hub-tab-h) + 4px); }

/* ============ 全局底部 Tab 栏（首页/小屋通用） ============ */
.hub-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: flex;
  height: var(--hub-tab-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 250, 240, 0.94);
  border-top: 1px solid var(--hub-line);
  backdrop-filter: blur(10px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.hub-tabbar .hub-tab {
  flex: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: inherit;
  font-size: 12px;
  color: #b39a72;
  cursor: pointer;
}
.hub-tabbar .hub-tab.is-on { color: #c98a2e; font-weight: 700; }
.hub-tabbar-spacer { height: var(--hub-tab-h); }

/* ============ 乾坤阁抽奖：内嵌浮层 ============ */
.hub-iframe-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.hub-iframe-layer[hidden] { display: none !important; }
.hub-iframe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #fff8e8;
  border-bottom: 1px solid var(--hub-line);
}
.hub-iframe-title { font-size: 14px; font-weight: 700; color: #7a5a30; }
.hub-iframe-close {
  border: 1px solid var(--hub-line);
  background: #fffdf6;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #8a6a3a;
  cursor: pointer;
}
.hub-iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ============ 矮屏收紧：保证小屋一屏内全部显示、无需上滑 ============ */
@media (max-height: 720px) {
  #hub-view .hub-wrap { width: min(340px, 100%); padding: 8px 12px 2px; }
  #hub-view .hub-top { margin-bottom: 8px; }
  #hub-view .hub-tasks { margin-bottom: 6px; gap: 7px; }
  #hub-view .hub-res { margin: 6px 0; gap: 8px; }
  #hub-view .hub-extra { margin-top: 6px; }
  #hub-view .hub-pet-stage { margin-bottom: 4px; }
  #hub-view .hub-pet-name { font-size: 14px; }
  #hub-view .hub-sat { margin-top: 4px; }
  /* 新增：矮屏下卡片整体收紧，把空间让给宠物立绘区 */
  #hub-view .hub-task { padding: 6px 4px 7px; }
  #hub-view .hub-task-ico { width: 27px; height: 27px; }
  #hub-view .hub-task-txt { font-size: 11px; }
  #hub-view .hub-res-item { height: 44px; }
  #hub-view .hub-res-ico { width: 27px; height: 27px; }
  #hub-view .hub-res-v { font-size: 17px; }
  #hub-view .hub-grid { gap: 8px 7px; }
  #hub-view .hub-card { padding: 7px 5px 8px; gap: 2px; }
  #hub-view .hub-card-ico { width: 38px; height: 38px; }
  #hub-view .hub-card-txt .t1 { font-size: 11px; }
  #hub-view .hub-card-txt .t2 { font-size: 8.5px; }
}

/* ---------- 小屋内的「喂吃的」「陪我聊聊天」面板 ----------
   pet-feed.js / pet-app.js 的面板是给首页 floating 宠物定位的（left:208px），
   在小屋窄屏上会顶出屏幕，这里统一收进视口并居中。 */
@media (max-width: 430px) {
  body:has(#hub-view:not([hidden])) #pet-app .pet-feed-panel,
  body.hub-open #pet-app .pet-feed-panel {
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) scale(0.92);
    transform-origin: bottom center;
    width: calc(100vw - 28px);
    max-width: 360px;
    bottom: 84px;
  }
  body:has(#hub-view:not([hidden])) #pet-app .pet-feed-panel.show,
  body.hub-open #pet-app .pet-feed-panel.show {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  body:has(#hub-view:not([hidden])) #pet-app .pet-chat-container,
  body.hub-open #pet-app .pet-chat-container {
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
    width: calc(100vw - 28px);
    max-width: 360px;
  }
}


/* ---------- 小屋 · 陪我聊聊天 弹层（奶油风） ---------- */
.hub-chat-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(60, 40, 20, .32);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 18px;
}
.hub-chat-layer[hidden] { display: none !important; }
.hub-chat-card {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  background: linear-gradient(165deg, #FFFCF4 0%, #FFF6E6 100%);
  border: 1.5px solid #F3E0C2;
  box-shadow: 0 14px 40px rgba(180, 140, 80, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hub-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: linear-gradient(120deg, #FFF4DE, #FFEACB);
  border-bottom: 1px solid #F6E4C8;
}
.hub-chat-title { font-size: 14px; font-weight: 800; color: #7A5334; letter-spacing: .06em; }
.hub-chat-close {
  border: none; background: rgba(255,255,255,.85); color: #A8834E;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.hub-chat-close:active { transform: scale(.92); }
.hub-chat-log {
  padding: 12px 14px 6px;
  max-height: 44vh;
  min-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-chat-row { display: flex; }
.hub-chat-row.me { justify-content: flex-end; }
.hub-chat-bub {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-word;
}
.hub-chat-row.me .hub-chat-bub {
  background: linear-gradient(150deg, #FFE9BE, #FFDCA0);
  color: #6B4632; border-bottom-right-radius: 5px;
}
.hub-chat-row.pet .hub-chat-bub {
  background: #fff; color: #6B4632;
  border: 1px solid #F3E4CC; border-bottom-left-radius: 5px;
}
.hub-chat-tip { text-align: center; font-size: 11px; color: #B99A72; padding: 2px 0 6px; }
.hub-chat-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 14px 10px;
}
.hub-chat-chip {
  border: 1px solid #F0DCBC; background: rgba(255,255,255,.9);
  color: #8C6A45; font-size: 11px; padding: 5px 10px;
  border-radius: 999px; cursor: pointer;
}
.hub-chat-chip:active { background: #FFF0D6; }
.hub-chat-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px 14px;
  border-top: 1px solid #F6E7D0;
  background: rgba(255,253,247,.9);
}
.hub-chat-input {
  flex: 1; height: 38px; border-radius: 12px;
  border: 1.5px solid #F0DCBC; background: #fff;
  padding: 0 12px; font-size: 12.5px; color: #6B4632; outline: none;
}
.hub-chat-input:focus { border-color: #E9C88C; }
.hub-chat-send {
  height: 38px; padding: 0 16px; border-radius: 12px; border: none;
  background: linear-gradient(150deg, #FFDFA4, #FFCB79);
  color: #7A5334; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
/* ---------- 底部两张大卡的图标配色（默认主题：暖橙）---------- */
#hub-view .hub-extra-card {
  --x-stroke: #96603f;
  --x-house-fill: #ffd9a8;
  --x-house-heart: #f2909f;
  --x-shop-body: #ffc98d;
  --x-shop-lid: #ffb877;
}

/* ==================================================================
   主题皮肤 · 清欢（qinghuan）
   配色取自设计稿：浅青绿页面 + 青玉绿卡片 + 墨绿文字 + 暖金点缀
   切换方式：#hub-view[data-theme="qinghuan"] / body[data-theme="qinghuan"]

   实现要点：
   1) 顶栏不是滤镜，而是「青绿版贴图」assets/theme/qinghuan/dingbu_qh.jpg
      —— 原方案 hue-rotate 会把奶油色药丸/文字一起搅坏，且会连带
         .hub-admin-cover 补丁变白，遮住「管理员」区域，故弃用。
   2) 页面底色按设计稿采样重建：上浅青灰 → 中奶油白 → 下浅青绿。
   ================================================================== */

/* ---------- 页面底色：按设计稿纵向渐变 ---------- */
#hub-view[data-theme="qinghuan"] {
  background:
    radial-gradient(ellipse 130% 34% at 50% 0%, rgba(148, 201, 185, 0.62) 0%, rgba(148, 201, 185, 0) 68%),
    radial-gradient(ellipse 120% 26% at 50% 100%, rgba(184, 222, 207, 0.5) 0%, rgba(184, 222, 207, 0) 70%),
    linear-gradient(180deg,
      #94c9b9 0%,
      #9acfbf 5%,
      #acd8c9 10%,
      #b3dcca 15%,
      #c1e8d6 20%,
      #cdeed9 25%,
      #def5e1 30%,
      #e4f7e3 35%,
      #eefae2 40%,
      #f1fadf 45%,
      #f6fce2 50%,
      #f4fce5 55%,
      #eefae4 60%,
      #eaf9e6 65%,
      #daf3e0 70%,
      #cbecd9 75%,
      #c8eddc 80%,
      #c5e7d6 85%,
      #c5e7d6 90%,
      #b8decf 100%);
  color: #2c5b4e;
}

/* ---------- 顶部栏：换青绿金边贴图（保留原有图标布局与热区） ---------- */
#hub-view[data-theme="qinghuan"] .hub-top {
  filter: none;
  background-image: url("assets/theme/qinghuan/dingbu_qh.jpg");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
/* 「管理员」遮盖片：贴合贴图药丸几何，避免露出白色方块/涂抹感 */
#hub-view[data-theme="qinghuan"] .hub-top > .hub-admin-cover {
  left: 68.6%;
  top: 11.5%;
  width: 20.4%;
  height: 77%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eefdf4 0%, #f2fff8 45%, #e6fbed 100%);
  box-shadow: 0 1px 3px rgba(96, 150, 122, 0.16);
}

/* ---------- 宝宝名字 / 饱食度 ---------- */
#hub-view[data-theme="qinghuan"] .hub-pet-name { color: #2c5b4e; }
#hub-view[data-theme="qinghuan"] .hub-pet-name.is-guest { color: #5d8271; }
#hub-view[data-theme="qinghuan"] .hub-sat-text { color: #5d8271; }
#hub-view[data-theme="qinghuan"] .hub-sat-bar {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(140, 185, 160, 0.5);
}
#hub-view[data-theme="qinghuan"] .hub-sat-fill { background: linear-gradient(90deg, #8FD0AE, #5FA98A); }

/* ---------- 今日目标标题 ---------- */
#hub-view[data-theme="qinghuan"] .hub-goal-title { color: #2c5b4e; }
#hub-view[data-theme="qinghuan"] .hub-goal-tip {
  color: #37624f;
  background: rgba(252, 255, 242, 0.9);
  border-color: rgba(176, 208, 178, 0.75);
}

/* ---------- 今日任务卡（浅青白卡 + 金色描边） ---------- */
#hub-view[data-theme="qinghuan"] .hub-task {
  background: linear-gradient(158deg, #fdfff8 0%, #eaf6e8 100%);
  border-color: rgba(222, 205, 156, 0.8);
  box-shadow: 0 4px 11px rgba(96, 150, 122, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
#hub-view[data-theme="qinghuan"] .hub-task-txt { color: #2f5f4c; }

/* ---------- 资源条（金币 / 魅力） ---------- */
#hub-view[data-theme="qinghuan"] .hub-res-item {
  background: linear-gradient(158deg, #fdfff8 0%, #f0f8e6 100%);
  border-color: rgba(222, 205, 156, 0.75);
  box-shadow: 0 3px 9px rgba(96, 150, 122, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
#hub-view[data-theme="qinghuan"] .hub-res-v { color: #2c5b4e; }

/* ---------- 功能卡（6 张）：统一青玉绿 + 金边 ---------- */
#hub-view[data-theme="qinghuan"] .hub-card,
#hub-view[data-theme="qinghuan"] #hub-card-adv,
#hub-view[data-theme="qinghuan"] #hub-card-battle,
#hub-view[data-theme="qinghuan"] #hub-card-fish,
#hub-view[data-theme="qinghuan"] #hub-card-rank,
#hub-view[data-theme="qinghuan"] #hub-card-msg,
#hub-view[data-theme="qinghuan"] #hub-card-lottery {
  --hbg: linear-gradient(158deg, #61998C 0%, #47756B 100%);
  --hbd: rgba(196, 176, 122, 0.9);
  --hsh: rgba(52, 96, 84, 0.3);
  background: var(--hbg);
  border-color: var(--hbd);
  box-shadow: 0 5px 13px var(--hsh), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
/* 卡片内文字转浅色（深青底上的白字，带描边保证可读） */
#hub-view[data-theme="qinghuan"] .hub-card-txt .t1,
#hub-view[data-theme="qinghuan"] .hub-card .t1 {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(20, 55, 45, 0.6);
}
#hub-view[data-theme="qinghuan"] .hub-card-txt .t2,
#hub-view[data-theme="qinghuan"] .hub-card .t2 {
  color: rgba(228, 245, 235, 0.92);
  text-shadow: 0 1px 2px rgba(20, 55, 45, 0.45);
}

/* ---------- 小屋串门 / 神秘商店（底部两张大卡） ---------- */
#hub-view[data-theme="qinghuan"] .hub-extra-card {
  background: linear-gradient(158deg, #61998C 0%, #47756B 100%);
  border-color: rgba(196, 176, 122, 0.9);
  box-shadow: 0 5px 13px rgba(52, 96, 84, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
#hub-view[data-theme="qinghuan"] .hub-extra-card .t1 {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(20, 55, 45, 0.6);
}
#hub-view[data-theme="qinghuan"] .hub-extra-card .t2 {
  color: rgba(228, 245, 235, 0.92);
  text-shadow: 0 1px 2px rgba(20, 55, 45, 0.45);
}

/* ---------- 「切换 / 主题」按钮 ---------- */
#hub-view[data-theme="qinghuan"] .hub-switch-ring,
#hub-view[data-theme="qinghuan"] .hub-theme-ring {
  background: linear-gradient(160deg, #fdfff8 0%, #e2f1e2 100%);
  border-color: rgba(206, 186, 132, 0.85);
  box-shadow: 0 4px 12px rgba(96, 150, 122, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
#hub-view[data-theme="qinghuan"] .hub-switch-txt,
#hub-view[data-theme="qinghuan"] .hub-theme-txt { color: #37624f; }

/* ---------- 底部两张大卡的图标：跟着主题换成青玉色 ---------- */
#hub-view[data-theme="qinghuan"] .hub-extra-card {
  --x-stroke: #2f5f4e;
  --x-house-fill: #cfe9d6;
  --x-house-heart: #C9A86A;
  --x-shop-body: #A8D6BF;
  --x-shop-lid: #7FBE9E;
}
/* 底部两卡的标题文字：原本是深褐 #6b4632，青底上要转白 */
#hub-view[data-theme="qinghuan"] .hub-extra-card { color: #ffffff; }
#hub-view[data-theme="qinghuan"] .hub-extra-name {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(20, 55, 45, 0.55);
}

/* ---------- 「主题」按钮里的调色盘图标：去掉粉调，转青玉 ---------- */
#hub-view[data-theme="qinghuan"] .hub-theme-svg path { stroke: #4F8D77 !important; }
#hub-view[data-theme="qinghuan"] .hub-theme-svg circle:nth-of-type(1) { fill: #7FBE9E !important; }
#hub-view[data-theme="qinghuan"] .hub-theme-svg circle:nth-of-type(2) { fill: #C9A86A !important; }
#hub-view[data-theme="qinghuan"] .hub-theme-svg circle:nth-of-type(3) { fill: #A8D6BF !important; }
#hub-view[data-theme="qinghuan"] .hub-theme-svg circle:nth-of-type(4) { fill: #5F9E86 !important; }

/* ---------- 底部 Tab ---------- */
.hub-tabbar[data-theme="qinghuan"],
body[data-theme="qinghuan"] .hub-tabbar {
  background: linear-gradient(180deg, rgba(252, 255, 240, 0.95) 0%, rgba(232, 246, 236, 0.98) 100%);
  border-top-color: rgba(150, 195, 170, 0.55);
}
body[data-theme="qinghuan"] .hub-tabbar .hub-tab { color: #6b9179; }
body[data-theme="qinghuan"] .hub-tabbar .hub-tab.is-on { color: #2c5b4e; }

/* ---------- 留言 / 弹层容器适配 ---------- */
#hub-view[data-theme="qinghuan"] .hub-sheet,
body[data-theme="qinghuan"] .hub-sheet {
  background: linear-gradient(180deg, #fdfff8 0%, #eaf6e8 100%);
  border-color: rgba(206, 186, 132, 0.8);
  color: #2c5b4e;
}

/* ---------- 鱼塘钓鱼：水域区换成海底鱼群 ---------- */
#hub-view[data-theme="qinghuan"] .pf-water,
body[data-theme="qinghuan"] .pf-water {
  background-image:
    linear-gradient(180deg, rgba(190, 232, 248, 0.10) 0%, rgba(30, 100, 145, 0.10) 100%),
    url("assets/theme/qinghuan/fish.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  border-color: rgba(150, 210, 230, 0.85);
}

/* ---------- 鱼塘钓鱼弹层：整体转青绿（贴图页之外的 UI 外壳） ---------- */
body[data-theme="qinghuan"] .pf-overlay .pf-panel,
body[data-theme="qinghuan"] .pet-battle-overlay .pf-panel,
body[data-theme="qinghuan"] .pf-panel {
  background: linear-gradient(180deg, #fdfff9 0%, #ecf7ec 100%);
  border-color: rgba(200, 182, 128, 0.7);
  color: #2c5b4e;
  box-shadow: 0 20px 48px rgba(50, 100, 84, 0.24);
}
body[data-theme="qinghuan"] .pf-head,
body[data-theme="qinghuan"] .pf-topbar {
  background: linear-gradient(180deg, rgba(246, 253, 244, 0.96) 0%, rgba(232, 246, 236, 0.96) 100%);
  border-bottom-color: rgba(176, 208, 178, 0.6);
}
body[data-theme="qinghuan"] .pf-title { color: #2c5b4e; }
body[data-theme="qinghuan"] .pf-coins,
body[data-theme="qinghuan"] .pf-timer { color: #2f6b57; }
/* 顶部工具胶囊（鱼篓 / 图鉴 / 渔具铺 / 关闭） */
body[data-theme="qinghuan"] .pf-chip {
  background: rgba(250, 255, 246, 0.94);
  border-color: rgba(176, 208, 178, 0.72);
}
body[data-theme="qinghuan"] .pf-chip:hover { border-color: #7FBE9E; }
body[data-theme="qinghuan"] .pf-chip-on {
  border-color: #4F8D77;
  background: #eaf7ee;
  box-shadow: 0 4px 12px rgba(79, 141, 119, 0.2);
}
body[data-theme="qinghuan"] .pf-chip-name { color: #2c5b4e; }
body[data-theme="qinghuan"] .pf-chip-sub { color: #6b9179; }
body[data-theme="qinghuan"] .pf-close {
  background: #eaf7ee;
  border-color: rgba(176, 208, 178, 0.8);
  color: #2c5b4e;
}
/* 主操作按钮（抛竿）：去掉橙色 */
body[data-theme="qinghuan"] .pf-btn-main {
  background: linear-gradient(135deg, #7FBE9E, #4F8D77);
  color: #fff;
  box-shadow: 0 10px 24px rgba(60, 120, 98, 0.32);
}
body[data-theme="qinghuan"] .pf-btn {
  background: rgba(250, 255, 246, 0.94);
  border-color: rgba(176, 208, 178, 0.8);
  color: #2c5b4e;
}
body[data-theme="qinghuan"] .pf-hint,
body[data-theme="qinghuan"] .pf-empty { color: #5d8271; }
body[data-theme="qinghuan"] .pf-card,
body[data-theme="qinghuan"] .pf-shop-item {
  background: rgba(252, 255, 248, 0.94);
  border-color: rgba(200, 182, 128, 0.6);
  color: #2c5b4e;
}
body[data-theme="qinghuan"] .pf-card-name,
body[data-theme="qinghuan"] .pf-shop-name { color: #2c5b4e; }
body[data-theme="qinghuan"] .pf-card-sub,
body[data-theme="qinghuan"] .pf-shop-desc { color: #6b9179; }
body[data-theme="qinghuan"] .pf-result {
  background: linear-gradient(180deg, #fbfff9 0%, #e9f6e9 100%);
  border-color: rgba(176, 208, 178, 0.7);
  color: #2c5b4e;
}
body[data-theme="qinghuan"] .pf-result-title,
body[data-theme="qinghuan"] .pf-sub-title { color: #2c5b4e; }
body[data-theme="qinghuan"] .pf-result-name { color: #2f6b57; }
body[data-theme="qinghuan"] .pf-result-desc { color: #5d8271; }

/* ---------- 鱼塘钓鱼：暖橙标签 / 徽标收尾青绿化 ---------- */
body[data-theme="qinghuan"] .pf-chip { border-color: rgba(176, 208, 178, 0.72); background: #fbfff9; }
body[data-theme="qinghuan"] .pf-chip:hover { border-color: #7FBE9E; }
body[data-theme="qinghuan"] .pf-chip-on { border-color: #4F8D77; background: #eaf7ee; box-shadow: 0 4px 12px rgba(79, 141, 119, 0.2); }
body[data-theme="qinghuan"] .pf-empty { color: #8fae9e; }
body[data-theme="qinghuan"] .pf-tag {
  background: rgba(244, 253, 246, 0.94);
  border-color: rgba(176, 208, 178, 0.75);
  color: #2f6b57;
}
body[data-theme="qinghuan"] .pf-tag-weather { color: #35705c; }
body[data-theme="qinghuan"] .pf-tag-rain { color: #2f6b8a; background: #e9f4fb; border-color: #bcdcec; }
body[data-theme="qinghuan"] .pf-badge-ok {
  background: #eaf7ee;
  color: #2f6b57;
  border-color: rgba(150, 200, 172, 0.8);
}
body[data-theme="qinghuan"] .pf-sub-head,
body[data-theme="qinghuan"] .pf-nav { color: #2c5b4e; }
body[data-theme="qinghuan"] .pf-line,
body[data-theme="qinghuan"] .pf-meter { background: rgba(200, 232, 214, 0.8); }
body[data-theme="qinghuan"] .pf-bar { background: rgba(215, 236, 222, 0.9); }
body[data-theme="qinghuan"] .pf-bar-safe { background: linear-gradient(90deg, #8FD0AE, #5FA98A); }
body[data-theme="qinghuan"] .pf-bar-marker { background: #4F8D77; }
body[data-theme="qinghuan"] .pf-buy,
body[data-theme="qinghuan"] .pf-ms-btn {
  background: rgba(250, 255, 246, 0.94);
  border-color: rgba(176, 208, 178, 0.8);
  color: #2c5b4e;
}

/* ==================================================================
   主题皮肤 · 凤求凰（fengqiu）
   配色取自设计稿：瓷白页面 + 远山青灰 + 凤羽朱红 + 金线描边
   切换方式：#hub-view[data-theme="fengqiu"] / body[data-theme="fengqiu"]

   实现要点：
   1) 顶栏用青白版贴图 assets/theme/fengqiu/dingbu_fq.jpg
      （由原暖金贴图重映射色相而来，保留原有图标位置与热区）
   2) 页面背景 = 设计稿纯艺术层（远山凤鸟 + 云纹），UI 全部真实元素，替换式不叠图
   3) 图标用 assets/theme/fengqiu/icons/*.png 整套替换默认猫系图标
   4) 卡片是「浅瓷白 + 金线双描边」，与设计稿的器物卡一致
   ================================================================== */

/* ---------- 页面底色：设计稿艺术层（远山凤鸟 + 云纹）+ 瓷白渐变 ----------
   手机端适配原则：背景只放「纯艺术」部分，自适应拉伸不变形；
   顶栏 / 卡片 / 图标全部由真实元素承担（图标配主题目录整体替换，不做图上叠图），
   所以任何屏幕比例下都不会出现「图里画一套 + 真实一套」的重影。 */
#hub-view[data-theme="fengqiu"] {
  background:
    /* 顶部装饰带（远山 + 凤鸟 + 云纹，随宽度等比缩放） */
    url("assets/theme/fengqiu/fq_top_art_centered.jpg") top center / 100% auto no-repeat,
    /* 顶栏下方一层白纱，保证「宝宝名 / 饱食度」文字始终清晰 */
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 30%, rgba(253,254,255,0.72) 38%, rgba(255,255,255,0.92) 45%, rgba(255,255,255,0.98) 52%, rgba(255,255,255,1) 60%),
    /* 底部云纹带 */
    url("assets/theme/fengqiu/fq_bottom_art.jpg") bottom center / 100% auto no-repeat,
    /* 底色渐变（瓷白 → 青灰蓝） */
    linear-gradient(180deg,
      #f3fdff 0%,
      #f6fefe 12%,
      #fdfefd 26%,
      #ffffff 42%,
      #fdfeff 56%,
      #f4fbff 68%,
      #e6f3fb 78%,
      #d6e7f5 86%,
      #c2d7e8 94%,
      #cfe0ee 100%);
  color: #3c4b5c;
}

/* ---------- 顶部栏：青白贴图 ---------- */
#hub-view[data-theme="fengqiu"] .hub-top {
  filter: none;
  aspect-ratio: 1328 / 158;
  background-image: url("assets/theme/fengqiu/fq_bar.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
#hub-view[data-theme="fengqiu"] .hub-top > .hub-admin-cover {
  /* 贴图 fq_bar.png 内「管理员」药丸实测范围：x 0.700~0.876，y 0.09~0.82 */
  left: 70%;
  top: 9%;
  width: 17.6%;
  height: 73%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbfe 0%, #f3f8fc 55%, #eaf1f8 100%);
  box-shadow: inset 0 0 6px rgba(150, 170, 200, 0.14);
}

/* ---------- 宝宝名字 / 饱食度 ---------- */
#hub-view[data-theme="fengqiu"] .hub-pet-name { color: #3a4a5e; }
#hub-view[data-theme="fengqiu"] .hub-pet-name.is-guest { color: #78899d; }
#hub-view[data-theme="fengqiu"] .hub-sat-text { color: #6b7d92; }
#hub-view[data-theme="fengqiu"] .hub-sat-bar {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(180, 198, 220, 0.75);
}
#hub-view[data-theme="fengqiu"] .hub-sat-fill {
  background: linear-gradient(90deg, #F5B7B4, #E8686B);
}

/* ---------- 今日目标 ---------- */
#hub-view[data-theme="fengqiu"] .hub-goal-title { color: #3a4a5e; }
#hub-view[data-theme="fengqiu"] .hub-goal-tip {
  color: #4a5a6e;
  background: rgba(253, 254, 255, 0.9);
  border-color: rgba(190, 205, 225, 0.85);
}

/* ---------- 今日任务卡：银线雕花卡框（设计稿裁切） ---------- */
#hub-view[data-theme="fengqiu"] .hub-task {
  aspect-ratio: 416 / 260;
  background: url("assets/theme/fengqiu/fq_frame_task.png") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(120, 150, 190, 0.22));
}
#hub-view[data-theme="fengqiu"] .hub-task-txt { color: #3c4b5c; }

/* ---------- 资源条 ---------- */
#hub-view[data-theme="fengqiu"] .hub-res-item {
  height: auto;
  aspect-ratio: 644 / 183;
  background: url("assets/theme/fengqiu/fq_frame_pill.png?v=20260919ex7") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 5px rgba(120, 150, 190, 0.2));
}
#hub-view[data-theme="fengqiu"] .hub-res-v { color: #2f3d4e; }

/* ---------- 功能卡（6 张）---------- */
#hub-view[data-theme="fengqiu"] .hub-card,
#hub-view[data-theme="fengqiu"] #hub-card-adv,
#hub-view[data-theme="fengqiu"] #hub-card-battle,
#hub-view[data-theme="fengqiu"] #hub-card-fish,
#hub-view[data-theme="fengqiu"] #hub-card-rank,
#hub-view[data-theme="fengqiu"] #hub-card-msg,
#hub-view[data-theme="fengqiu"] #hub-card-lottery {
  aspect-ratio: 417 / 385;
  background: url("assets/theme/fengqiu/fq_frame_card.png?v=20260919cb1") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 7px rgba(120, 150, 190, 0.22));
}
/* ---------- 图标：直接使用设计稿原图（图标自带银质圆章，不再叠加 CSS 圆环） ---------- */
#hub-view[data-theme="fengqiu"] .hub-task-ico {
  width: 60px;
  height: 36px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  object-fit: contain;
}
#hub-view[data-theme="fengqiu"] .hub-card-ico {
  width: 49px;
  height: 49px;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
#hub-view[data-theme="fengqiu"] .hub-card-ico img { width: 100%; height: 100%; object-fit: contain; }
#hub-view[data-theme="fengqiu"] .hub-res-ico { width: 31px; height: 31px; }
#hub-view[data-theme="fengqiu"] .hub-card-txt .t1,
#hub-view[data-theme="fengqiu"] .hub-card .t1 {
  color: #3a4a5e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
#hub-view[data-theme="fengqiu"] .hub-card-txt .t2,
#hub-view[data-theme="fengqiu"] .hub-card .t2 { color: #8090a4; }

/* ---------- 小屋串门 / 神秘商店：直接使用设计稿「整卡原图」（图标与文字已烘焙在图中） ---------- */
#hub-view[data-theme="fengqiu"] .hub-extra-card {
  --x-stroke: #46586e;
  aspect-ratio: 649 / 203;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 6px rgba(120, 150, 190, 0.22));
  color: #3a4a5e;
}
#hub-view[data-theme="fengqiu"] #hub-card-house {
  background: url("assets/theme/fengqiu/fq_extra_house.png?v=20260919ex7") center / 100% 100% no-repeat;
}
#hub-view[data-theme="fengqiu"] #hub-card-shop {
  background: url("assets/theme/fengqiu/fq_extra_shop.png?v=20260919ex7") center / 100% 100% no-repeat;
}
/* 图标与文字已烘焙在整卡原图中：隐藏真实元素，仅保留无障碍名称 */
#hub-view[data-theme="fengqiu"] .hub-extra-name {
  color: transparent;
  text-shadow: none;
}

/* ---------- 「切换 / 主题」按钮 ---------- */
#hub-view[data-theme="fengqiu"] .hub-switch-ring,
#hub-view[data-theme="fengqiu"] .hub-theme-ring {
  background: radial-gradient(circle at 50% 32%, #ffffff 0%, #eef5fb 58%, #dbe7f2 100%);
  border: 2px solid rgba(190, 205, 220, 0.95);
  box-shadow:
    0 4px 12px rgba(120, 150, 190, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
#hub-view[data-theme="fengqiu"] .hub-switch-txt,
#hub-view[data-theme="fengqiu"] .hub-theme-txt { color: #4a5a6e; }
/* 主题调色盘：使用设计稿原图 */
#hub-view[data-theme="fengqiu"] .hub-theme-ring {
  background:
    url("assets/theme/fengqiu/fq_ico_theme.png") center / 64% 64% no-repeat,
    radial-gradient(circle at 50% 32%, #ffffff 0%, #eef5fb 58%, #dbe7f2 100%);
}
#hub-view[data-theme="fengqiu"] .hub-theme-svg { display: none; }
/* 小屋串门 / 神秘商店：图标已烘焙在整卡原图中，隐藏真实元素 */
#hub-view[data-theme="fengqiu"] .hub-extra-ico { display: none; }
#hub-view[data-theme="fengqiu"] .hub-extra-svg { display: none; }

/* ---------- 底部 Tab ---------- */
.hub-tabbar[data-theme="fengqiu"],
body[data-theme="fengqiu"] .hub-tabbar {
  background:
    url("assets/theme/fengqiu/fq_bottom_art.jpg") bottom center / 100% auto no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 245, 253, 0.98) 100%);
  border-top-color: rgba(190, 205, 225, 0.7);
}
body[data-theme="fengqiu"] .hub-tabbar .hub-tab { color: #7c8da1; }
body[data-theme="fengqiu"] .hub-tabbar .hub-tab.is-on { color: #3a4a5e; }

/* ---------- 弹层 ---------- */
#hub-view[data-theme="fengqiu"] .hub-sheet,
body[data-theme="fengqiu"] .hub-sheet {
  background: linear-gradient(180deg, #ffffff 0%, #eff7fd 100%);
  border-color: rgba(201, 162, 75, 0.5);
  color: #3c4b5c;
}

/* ---------- 底部两卡的图标配色（凤求凰：青灰蓝 + 金）---------- */
#hub-view[data-theme="fengqiu"] .hub-extra-card {
  --x-stroke: #46586e;
  --x-house-fill: #DCE9F5;
  --x-house-heart: #E8686B;
  --x-shop-body: #BBD4E6;
  --x-shop-lid: #C9A24B;
}

/* ---------- 鱼塘钓鱼：水域换成凤求凰的水色 ---------- */
#hub-view[data-theme="fengqiu"] .pf-water,
body[data-theme="fengqiu"] .pf-water {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(90, 130, 175, 0.16) 100%),
    linear-gradient(180deg, #DCEBF8 0%, #A9C9E2 55%, #7FA8C4 100%);
  background-size: cover, cover;
  border-color: rgba(150, 185, 215, 0.9);
}
/* 钓鱼弹层外壳 */
body[data-theme="fengqiu"] .pf-panel {
  background: linear-gradient(180deg, #ffffff 0%, #eff7fd 100%);
  border-color: rgba(201, 162, 75, 0.5);
  color: #3c4b5c;
  box-shadow: 0 20px 48px rgba(110, 145, 185, 0.24);
}
body[data-theme="fengqiu"] .pf-head,
body[data-theme="fengqiu"] .pf-topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(238,246,253,0.96) 100%);
  border-bottom-color: rgba(190, 205, 225, 0.7);
}
body[data-theme="fengqiu"] .pf-title,
body[data-theme="fengqiu"] .pf-card-name,
body[data-theme="fengqiu"] .pf-shop-name,
body[data-theme="fengqiu"] .pf-sub-title,
body[data-theme="fengqiu"] .pf-result-title { color: #3a4a5e; }
body[data-theme="fengqiu"] .pf-coins,
body[data-theme="fengqiu"] .pf-timer,
body[data-theme="fengqiu"] .pf-result-name { color: #46617e; }
body[data-theme="fengqiu"] .pf-chip {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(190, 205, 225, 0.85);
}
body[data-theme="fengqiu"] .pf-chip:hover { border-color: #7FA8C4; }
body[data-theme="fengqiu"] .pf-chip-on {
  border-color: #5A7A9E;
  background: #eef6fd;
  box-shadow: 0 4px 12px rgba(90, 122, 158, 0.2);
}
body[data-theme="fengqiu"] .pf-chip-name { color: #3a4a5e; }
body[data-theme="fengqiu"] .pf-chip-sub { color: #8090a4; }
body[data-theme="fengqiu"] .pf-close {
  background: #eef6fd;
  border-color: rgba(190, 205, 225, 0.9);
  color: #3a4a5e;
}
body[data-theme="fengqiu"] .pf-btn-main {
  background: linear-gradient(135deg, #8FB4D4, #5A7A9E);
  color: #fff;
  box-shadow: 0 10px 24px rgba(90, 122, 158, 0.32);
}
body[data-theme="fengqiu"] .pf-btn {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(190, 205, 225, 0.9);
  color: #3a4a5e;
}
body[data-theme="fengqiu"] .pf-hint,
body[data-theme="fengqiu"] .pf-empty { color: #8090a4; }
body[data-theme="fengqiu"] .pf-card,
body[data-theme="fengqiu"] .pf-shop-item,
body[data-theme="fengqiu"] .pf-result {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(201, 162, 75, 0.45);
  color: #3c4b5c;
}
body[data-theme="fengqiu"] .pf-card-sub,
body[data-theme="fengqiu"] .pf-shop-desc,
body[data-theme="fengqiu"] .pf-result-desc { color: #8090a4; }
body[data-theme="fengqiu"] .pf-tag {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(190, 205, 225, 0.85);
  color: #46617e;
}
body[data-theme="fengqiu"] .pf-tag-weather { color: #46617e; }
body[data-theme="fengqiu"] .pf-badge-ok {
  background: #eef6fd; color: #46617e; border-color: rgba(160, 190, 220, 0.85);
}
body[data-theme="fengqiu"] .pf-bar { background: rgba(214, 231, 245, 0.9); }
body[data-theme="fengqiu"] .pf-bar-safe { background: linear-gradient(90deg, #9CC0DC, #5A7A9E); }
body[data-theme="fengqiu"] .pf-bar-marker { background: #5A7A9E; }
body[data-theme="fengqiu"] .pf-buy,
body[data-theme="fengqiu"] .pf-ms-btn {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(190, 205, 225, 0.9);
  color: #3a4a5e;
}
body[data-theme="fengqiu"] .pf-sub-head,
body[data-theme="fengqiu"] .pf-nav { color: #3a4a5e; }
body[data-theme="fengqiu"] .pf-line,
body[data-theme="fengqiu"] .pf-meter { background: rgba(206, 226, 242, 0.85); }

/* ==================================================================
   凤求凰 · 整图版（2026-09-20）
   用户要求：完全用整张设计稿做主题，清晰度不降、居中铺满（cover），
   画面与设计稿完全一致 —— 真实元素全部隐形，只保留可点击热区。
   整图：assets/theme/fengqiu/fq_design.jpg（1568×2944，原图字节未压缩）
   ================================================================== */
#hub-view[data-theme="fengqiu"] {
  background: url("assets/theme/fengqiu/fq_design.jpg?v=20260920xiuxian11") center center / cover no-repeat;
}

/* —— 顶栏：栏底/标题/图标都在整图里，去掉青白贴图；热区保留 —— */
#hub-view[data-theme="fengqiu"] .hub-top { background: none; }
#hub-view[data-theme="fengqiu"] .hub-top-btn,
#hub-view[data-theme="fengqiu"] .hub-icon-btn { background: none; color: transparent; }

/* —— 宝宝区：真实立绘 / 名字 / 饱食度显示（饱食度随喂食实时变化），只关掉自定义舞台底图 —— */
#hub-view[data-theme="fengqiu"] .hub-stage-floor,
#hub-view[data-theme="fengqiu"] .hub-stage-decor { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-pet-stage { background-image: none; }
#hub-view[data-theme="fengqiu"] .hub-pet-stage::after { display: none; }

/* —— 主题 / 切换：只留热区 —— */
#hub-view[data-theme="fengqiu"] .hub-theme-ring,
#hub-view[data-theme="fengqiu"] .hub-switch-ring {
  background: none; border-color: transparent; box-shadow: none; animation: none;
}
#hub-view[data-theme="fengqiu"] .hub-theme-svg,
#hub-view[data-theme="fengqiu"] .hub-switch-ico { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-theme-txt,
#hub-view[data-theme="fengqiu"] .hub-switch-txt { color: transparent; text-shadow: none; }

/* —— 今日目标标题 + 三张任务卡 —— */
#hub-view[data-theme="fengqiu"] .hub-goal-head { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-task { background: none !important; filter: none; }
#hub-view[data-theme="fengqiu"] .hub-task-ico { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-task-txt { color: transparent; }
#hub-view[data-theme="fengqiu"] .hub-dot { display: none !important; }

/* —— 金币 / 魅力：保留凤求凰空药丸框（叠掉图内烘焙药丸），图标与数值用真实数据实时显示 —— */

/* —— 六张功能卡 —— */
#hub-view[data-theme="fengqiu"] .hub-card { background: none !important; filter: none; }
#hub-view[data-theme="fengqiu"] .hub-card-ico { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-card-txt .t1,
#hub-view[data-theme="fengqiu"] .hub-card-txt .t2 { color: transparent; text-shadow: none; }

/* —— 小屋串门 / 神秘商店（含 #id 级贴图规则，用 !important 覆盖） —— */
#hub-view[data-theme="fengqiu"] #hub-card-house,
#hub-view[data-theme="fengqiu"] #hub-card-shop,
#hub-view[data-theme="fengqiu"] .hub-extra-card { background: none !important; filter: none; }
#hub-view[data-theme="fengqiu"] .hub-extra-ico,
#hub-view[data-theme="fengqiu"] .hub-extra-svg { visibility: hidden; }
#hub-view[data-theme="fengqiu"] .hub-extra-name { color: transparent; }

/* —— 底部 Tab：整图已画，真实 Tab 只留热区（仅在小屋打开时覆盖） —— */
body[data-theme="fengqiu"] #hub-view:not([hidden]) ~ .hub-tabbar {
  background: none !important;
  border-top-color: transparent;
  backdrop-filter: none;
}
body[data-theme="fengqiu"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab,
body[data-theme="fengqiu"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab.is-on {
  color: transparent;
  font-weight: 400;
}

/* ==================================================================
   主题皮肤 · 山海（qinghuan）· 整图版（2026-09-20）
   用户要求：完全按设计稿整图呈现、清晰度不降（原图字节未压缩）。
   整图：assets/theme/qinghuan/qh_design.jpg（1568×2944）
   呈现：整图 cover 居中铺满；真实宠物立绘 / 饱食度 / 金币 / 魅力
        按设计稿百分比落位（可实时变化）；其余元素保留图内烘焙，
        真实元素隐形，只留可点击热区。
   坐标依据设计稿实测（W=1568,H=2944）。
   ================================================================== */
body[data-theme="qinghuan"] {
  --qh-w: max(100vw, calc(100dvh * 1568 / 2944));
  --qh-h: max(100dvh, calc(100vw * 2944 / 1568));
  --qh-tx: calc((100vw - var(--qh-w)) / 2);
  --qh-ty: calc((100dvh - var(--qh-h)) / 2);
}
#hub-view[data-theme="qinghuan"] {
  background: url("assets/theme/qinghuan/qh_design.jpg?v=20260920xiuxian11") center center / cover no-repeat;
  padding-bottom: 0;
}
#hub-view[data-theme="qinghuan"] .hub-wrap {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* —— 顶栏：图内已画，热区按图内药丸几何定位 —— */
#hub-view[data-theme="qinghuan"] .hub-top {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.077);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.0146);
  width: calc(var(--qh-w) * 0.848);
  height: calc(var(--qh-h) * 0.051);
  margin: 0;
  aspect-ratio: auto;
  background: none;
}
#hub-view[data-theme="qinghuan"] .hub-top-btn,
#hub-view[data-theme="qinghuan"] .hub-icon-btn {
  background: none;
  color: transparent;
  border: 0;
  box-shadow: none;
}
#hub-view[data-theme="qinghuan"] #hub-to-home { left: 1.0%; top: 8.6%; width: 18.9%; height: 78.4%; }
#hub-view[data-theme="qinghuan"] #hub-admin { left: 71.0%; top: 8.6%; width: 16.8%; height: 78.4%; }
#hub-view[data-theme="qinghuan"] .hub-icon-btn { left: 89.9%; top: 8.6%; width: 10.6%; height: 78.4%; }
#hub-view[data-theme="qinghuan"] .hub-top > .hub-admin-cover {
  left: 71.0%;
  top: 8.6%;
  width: 16.8%;
  height: 78.4%;
  border-radius: 999px;
  background: #ffffff;
}

/* —— 宝宝区：真实立绘 / 饱食度保留，关掉自定义舞台 —— */
#hub-view[data-theme="qinghuan"] .hub-pet {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  pointer-events: none;
}
#hub-view[data-theme="qinghuan"] .hub-pet-stage {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
}
#hub-view[data-theme="qinghuan"] .hub-pet-stage::after { display: none; }
#hub-view[data-theme="qinghuan"] .hub-stage-floor,
#hub-view[data-theme="qinghuan"] .hub-stage-decor { display: none !important; }
#hub-view[data-theme="qinghuan"] #hub-pet-img {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.47);
  bottom: calc(100dvh - var(--qh-ty) - var(--qh-h) * 0.298);
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: calc(var(--qh-w) * 0.30);
  max-height: calc(var(--qh-h) * 0.23);
  z-index: 3;
  animation: none;
}
#hub-view[data-theme="qinghuan"] .hub-pet-name {
  visibility: visible;
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.431);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.3045);
  transform: translateX(-50%);
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2c5b4e;
  font-size: calc(var(--qh-h) * 0.015);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 5;
}
#hub-view[data-theme="qinghuan"] .hub-pet-name.is-guest {
  color: #5d8271;
  font-size: calc(var(--qh-h) * 0.013);
}
#hub-view[data-theme="qinghuan"] .hub-sat {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.197);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.2905);
  width: calc(var(--qh-w) * 0.468);
  height: calc(var(--qh-h) * 0.0102);
  margin: 0;
  max-width: none;
}
#hub-view[data-theme="qinghuan"] .hub-sat-bar {
  height: 100%;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(120, 170, 150, 0.55);
}
#hub-view[data-theme="qinghuan"] .hub-sat-fill {
  background: linear-gradient(90deg, #7fd0a8, #3f9d78);
}
#hub-view[data-theme="qinghuan"] .hub-sat-text {
  display: block;
  position: absolute;
  top: calc(100% + var(--qh-h) * 0.028);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #3f6b59;
  font-size: calc(var(--qh-h) * 0.0125);
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* —— 主题 / 切换：图内已画圆环，只留热区 —— */
#hub-view[data-theme="qinghuan"] .hub-theme-switch,
#hub-view[data-theme="qinghuan"] .hub-pet-switch {
  left: calc(var(--qh-tx) + var(--qh-w) * 0.112);
  width: calc(var(--qh-w) * 0.118);
  gap: 0;
  pointer-events: auto;
}
#hub-view[data-theme="qinghuan"] .hub-theme-switch { top: calc(var(--qh-ty) + var(--qh-h) * 0.0993); }
#hub-view[data-theme="qinghuan"] .hub-pet-switch { top: calc(var(--qh-ty) + var(--qh-h) * 0.1919); }
#hub-view[data-theme="qinghuan"] .hub-theme-ring,
#hub-view[data-theme="qinghuan"] .hub-switch-ring {
  width: calc(var(--qh-w) * 0.118);
  height: calc(var(--qh-w) * 0.118);
  background: none;
  border: 0;
  box-shadow: none;
  animation: none;
}
#hub-view[data-theme="qinghuan"] .hub-theme-svg,
#hub-view[data-theme="qinghuan"] .hub-switch-ico { visibility: hidden; }
#hub-view[data-theme="qinghuan"] .hub-theme-txt,
#hub-view[data-theme="qinghuan"] .hub-switch-txt { color: transparent; text-shadow: none; }

/* —— 今日目标标题 + 三张任务卡 —— */
#hub-view[data-theme="qinghuan"] .hub-goal-head { visibility: hidden; }
#hub-view[data-theme="qinghuan"] .hub-tasks {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.086);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.373);
  width: calc(var(--qh-w) * 0.834);
  height: calc(var(--qh-h) * 0.090);
  margin: 0;
  column-gap: calc(var(--qh-w) * 0.030);
  row-gap: 0;
}
#hub-view[data-theme="qinghuan"] .hub-task { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="qinghuan"] .hub-task-ico { visibility: hidden; }
#hub-view[data-theme="qinghuan"] .hub-task-txt { color: transparent; }
#hub-view[data-theme="qinghuan"] .hub-dot { display: none !important; }

/* —— 金币 / 魅力：保留图内药丸与图标，仅用真实数值盖住图内烘焙数字 —— */
#hub-view[data-theme="qinghuan"] .hub-res {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.079);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.487);
  width: calc(var(--qh-w) * 0.844);
  height: calc(var(--qh-h) * 0.060);
  margin: 0;
  column-gap: calc(var(--qh-w) * 0.026);
}
#hub-view[data-theme="qinghuan"] .hub-res-item {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#hub-view[data-theme="qinghuan"] .hub-res-ico { display: none; }
#hub-view[data-theme="qinghuan"] .hub-res-v {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  background: #ffffff;
  border-radius: calc(var(--qh-w) * 0.010);
  padding: calc(var(--qh-h) * 0.002) calc(var(--qh-w) * 0.010);
  color: #2b2b2b;
  font-weight: 800;
  letter-spacing: 0;
  font-size: calc(var(--qh-h) * 0.0387);
  line-height: 1;
  text-align: center;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
}
#hub-view[data-theme="qinghuan"] .hub-res-item:nth-child(1) .hub-res-v { left: 61.6%; min-width: calc(var(--qh-w) * 0.12); }
#hub-view[data-theme="qinghuan"] .hub-res-item:nth-child(2) .hub-res-v { left: 60.7%; min-width: calc(var(--qh-w) * 0.13); }

/* —— 六张功能卡 —— */
#hub-view[data-theme="qinghuan"] .hub-grid {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.088);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.561);
  width: calc(var(--qh-w) * 0.834);
  height: calc(var(--qh-h) * 0.273);
  margin: 0;
  column-gap: calc(var(--qh-w) * 0.035);
  row-gap: calc(var(--qh-h) * 0.014);
  grid-template-rows: repeat(2, 1fr);
}
#hub-view[data-theme="qinghuan"] .hub-card { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="qinghuan"] .hub-card-ico { visibility: hidden; }
#hub-view[data-theme="qinghuan"] .hub-card-txt .t1,
#hub-view[data-theme="qinghuan"] .hub-card-txt .t2 { color: transparent; text-shadow: none; }

/* —— 小屋串门 / 神秘商店 —— */
#hub-view[data-theme="qinghuan"] .hub-extra {
  position: absolute;
  left: calc(var(--qh-tx) + var(--qh-w) * 0.085);
  top: calc(var(--qh-ty) + var(--qh-h) * 0.851);
  width: calc(var(--qh-w) * 0.837);
  height: calc(var(--qh-h) * 0.061);
  margin: 0;
  column-gap: calc(var(--qh-w) * 0.037);
}
#hub-view[data-theme="qinghuan"] #hub-card-house,
#hub-view[data-theme="qinghuan"] #hub-card-shop,
#hub-view[data-theme="qinghuan"] .hub-extra-card { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="qinghuan"] .hub-extra-ico,
#hub-view[data-theme="qinghuan"] .hub-extra-svg { visibility: hidden; }
#hub-view[data-theme="qinghuan"] .hub-extra-name { color: transparent; text-shadow: none; }

/* —— 底部 Tab：图内已画，真实 Tab 只留热区 —— */
body[data-theme="qinghuan"] #hub-view:not([hidden]) ~ .hub-tabbar {
  top: calc(var(--qh-ty) + var(--qh-h) * 0.924);
  bottom: auto;
  height: calc(var(--qh-h) * 0.076);
  background: none !important;
  border-top-color: transparent;
  backdrop-filter: none;
}
body[data-theme="qinghuan"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab,
body[data-theme="qinghuan"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab.is-on {
  color: transparent;
  font-weight: 400;
}
/* ==================================================================
   主题皮肤 · 库洛米（kuromi）· 整图版（2026-09-20）
   用户要求：完全按设计稿整图呈现、清晰度不降（原图字节未压缩）。
   整图：assets/theme/kuromi/kuromi_design.jpg（1568×2944）
   呈现：整图 cover 居中铺满；真实宠物立绘 / 饱食度 / 金币 / 魅力
        按设计稿百分比落位（可实时变化）；其余元素保留图内烘焙，
        真实元素隐形，只留可点击热区。
   与山海主题共享同一模板坐标系（实测一致）。
   ================================================================== */
body[data-theme="kuromi"] {
  --kr-w: max(100vw, calc(100dvh * 1568 / 2944));
  --kr-h: max(100dvh, calc(100vw * 2944 / 1568));
  --kr-tx: calc((100vw - var(--kr-w)) / 2);
  --kr-ty: calc((100dvh - var(--kr-h)) / 2);
}
#hub-view[data-theme="kuromi"] {
  background: url("assets/theme/kuromi/kuromi_design.jpg?v=20260920xiuxian11") center center / cover no-repeat;
  padding-bottom: 0;
}
#hub-view[data-theme="kuromi"] .hub-wrap {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* —— 顶栏：图内已画，热区按图内药丸几何定位 —— */
#hub-view[data-theme="kuromi"] .hub-top {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.077);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.0146);
  width: calc(var(--kr-w) * 0.848);
  height: calc(var(--kr-h) * 0.051);
  margin: 0;
  aspect-ratio: auto;
  background: none;
}
#hub-view[data-theme="kuromi"] .hub-top-btn,
#hub-view[data-theme="kuromi"] .hub-icon-btn {
  background: none;
  color: transparent;
  border: 0;
  box-shadow: none;
}
#hub-view[data-theme="kuromi"] #hub-to-home { left: 1.0%; top: 8.6%; width: 18.9%; height: 78.4%; }
#hub-view[data-theme="kuromi"] #hub-admin { left: 71.0%; top: 8.6%; width: 16.8%; height: 78.4%; }
#hub-view[data-theme="kuromi"] .hub-icon-btn { left: 89.9%; top: 8.6%; width: 10.6%; height: 78.4%; }
#hub-view[data-theme="kuromi"] .hub-top > .hub-admin-cover {
  left: 71.0%;
  top: 8.6%;
  width: 16.8%;
  height: 78.4%;
  border-radius: 999px;
  background: #efe9fb;
}

/* —— 宝宝区：真实立绘 / 饱食度保留，关掉自定义舞台 —— */
#hub-view[data-theme="kuromi"] .hub-pet {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  pointer-events: none;
}
#hub-view[data-theme="kuromi"] .hub-pet-stage {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
}
#hub-view[data-theme="kuromi"] .hub-pet-stage::after { display: none; }
#hub-view[data-theme="kuromi"] .hub-stage-floor,
#hub-view[data-theme="kuromi"] .hub-stage-decor { display: none !important; }
#hub-view[data-theme="kuromi"] #hub-pet-img {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.47);
  bottom: calc(100dvh - var(--kr-ty) - var(--kr-h) * 0.298);
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: calc(var(--kr-w) * 0.30);
  max-height: calc(var(--kr-h) * 0.23);
  z-index: 3;
  animation: none;
}
#hub-view[data-theme="kuromi"] .hub-pet-name {
  visibility: visible;
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.431);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.3045);
  transform: translateX(-50%);
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4a2b5e;
  font-size: calc(var(--kr-h) * 0.015);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 5;
}
#hub-view[data-theme="kuromi"] .hub-pet-name.is-guest {
  color: #6b4a86;
  font-size: calc(var(--kr-h) * 0.013);
}
#hub-view[data-theme="kuromi"] .hub-sat {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.197);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.2905);
  width: calc(var(--kr-w) * 0.468);
  height: calc(var(--kr-h) * 0.0102);
  margin: 0;
  max-width: none;
}
#hub-view[data-theme="kuromi"] .hub-sat-bar {
  height: 100%;
  background: #f0e8fa;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(170, 130, 210, 0.55);
}
#hub-view[data-theme="kuromi"] .hub-sat-fill {
  background: linear-gradient(90deg, #c8a2f0, #8a5cc4);
}
#hub-view[data-theme="kuromi"] .hub-sat-text {
  display: block;
  position: absolute;
  top: calc(100% + var(--kr-h) * 0.028);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #5a3d78;
  font-size: calc(var(--kr-h) * 0.0125);
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* —— 主题 / 切换：图内已画圆环，只留热区 —— */
#hub-view[data-theme="kuromi"] .hub-theme-switch,
#hub-view[data-theme="kuromi"] .hub-pet-switch {
  left: calc(var(--kr-tx) + var(--kr-w) * 0.112);
  width: calc(var(--kr-w) * 0.118);
  gap: 0;
  pointer-events: auto;
}
#hub-view[data-theme="kuromi"] .hub-theme-switch { top: calc(var(--kr-ty) + var(--kr-h) * 0.0993); }
#hub-view[data-theme="kuromi"] .hub-pet-switch { top: calc(var(--kr-ty) + var(--kr-h) * 0.1919); }
#hub-view[data-theme="kuromi"] .hub-theme-ring,
#hub-view[data-theme="kuromi"] .hub-switch-ring {
  width: calc(var(--kr-w) * 0.118);
  height: calc(var(--kr-w) * 0.118);
  background: none;
  border: 0;
  box-shadow: none;
  animation: none;
}
#hub-view[data-theme="kuromi"] .hub-theme-svg,
#hub-view[data-theme="kuromi"] .hub-switch-ico { visibility: hidden; }
#hub-view[data-theme="kuromi"] .hub-theme-txt,
#hub-view[data-theme="kuromi"] .hub-switch-txt { color: transparent; text-shadow: none; }

/* —— 今日目标标题 + 三张任务卡 —— */
#hub-view[data-theme="kuromi"] .hub-goal-head { visibility: hidden; }
#hub-view[data-theme="kuromi"] .hub-tasks {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.086);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.373);
  width: calc(var(--kr-w) * 0.834);
  height: calc(var(--kr-h) * 0.090);
  margin: 0;
  column-gap: calc(var(--kr-w) * 0.030);
  row-gap: 0;
}
#hub-view[data-theme="kuromi"] .hub-task { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="kuromi"] .hub-task-ico { visibility: hidden; }
#hub-view[data-theme="kuromi"] .hub-task-txt { color: transparent; }
#hub-view[data-theme="kuromi"] .hub-dot { display: none !important; }

/* —— 金币 / 魅力：保留图内药丸与图标，仅用真实数值盖住图内烘焙数字 —— */
#hub-view[data-theme="kuromi"] .hub-res {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.079);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.487);
  width: calc(var(--kr-w) * 0.844);
  height: calc(var(--kr-h) * 0.060);
  margin: 0;
  column-gap: calc(var(--kr-w) * 0.026);
}
#hub-view[data-theme="kuromi"] .hub-res-item {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#hub-view[data-theme="kuromi"] .hub-res-ico { display: none; }
#hub-view[data-theme="kuromi"] .hub-res-v {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  border-radius: calc(var(--kr-w) * 0.010);
  padding: calc(var(--kr-h) * 0.002) calc(var(--kr-w) * 0.010);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 800;
  letter-spacing: 0;
  font-size: calc(var(--kr-h) * 0.0387);
  line-height: 1;
  text-align: center;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
}
#hub-view[data-theme="kuromi"] .hub-res-item:nth-child(1) .hub-res-v {
  left: 61.6%;
  min-width: calc(var(--kr-w) * 0.12);
  background: rgba(70, 34, 108, 0.80);
  box-shadow: 0 0 10px 5px rgba(70, 34, 108, 0.55);
}
#hub-view[data-theme="kuromi"] .hub-res-item:nth-child(2) .hub-res-v {
  left: 60.7%;
  min-width: calc(var(--kr-w) * 0.13);
  background: rgba(95, 42, 82, 0.80);
  box-shadow: 0 0 10px 5px rgba(95, 42, 82, 0.55);
}

/* —— 六张功能卡 —— */
#hub-view[data-theme="kuromi"] .hub-grid {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.088);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.561);
  width: calc(var(--kr-w) * 0.834);
  height: calc(var(--kr-h) * 0.273);
  margin: 0;
  column-gap: calc(var(--kr-w) * 0.035);
  row-gap: calc(var(--kr-h) * 0.014);
  grid-template-rows: repeat(2, 1fr);
}
#hub-view[data-theme="kuromi"] .hub-card { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="kuromi"] .hub-card-ico { visibility: hidden; }
#hub-view[data-theme="kuromi"] .hub-card-txt .t1,
#hub-view[data-theme="kuromi"] .hub-card-txt .t2 { color: transparent; text-shadow: none; }

/* —— 小屋串门 / 神秘商店 —— */
#hub-view[data-theme="kuromi"] .hub-extra {
  position: absolute;
  left: calc(var(--kr-tx) + var(--kr-w) * 0.085);
  top: calc(var(--kr-ty) + var(--kr-h) * 0.851);
  width: calc(var(--kr-w) * 0.837);
  height: calc(var(--kr-h) * 0.061);
  margin: 0;
  column-gap: calc(var(--kr-w) * 0.037);
}
#hub-view[data-theme="kuromi"] #hub-card-house,
#hub-view[data-theme="kuromi"] #hub-card-shop,
#hub-view[data-theme="kuromi"] .hub-extra-card { background: none !important; border: 0; box-shadow: none; }
#hub-view[data-theme="kuromi"] .hub-extra-ico,
#hub-view[data-theme="kuromi"] .hub-extra-svg { visibility: hidden; }
#hub-view[data-theme="kuromi"] .hub-extra-name { color: transparent; text-shadow: none; }

/* —— 底部 Tab：图内已画，真实 Tab 只留热区 —— */
body[data-theme="kuromi"] #hub-view:not([hidden]) ~ .hub-tabbar {
  top: calc(var(--kr-ty) + var(--kr-h) * 0.924);
  bottom: auto;
  height: calc(var(--kr-h) * 0.076);
  background: none !important;
  border-top-color: transparent;
  backdrop-filter: none;
}
body[data-theme="kuromi"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab,
body[data-theme="kuromi"] #hub-view:not([hidden]) ~ .hub-tabbar .hub-tab.is-on {
  color: transparent;
  font-weight: 400;
}

/* ---------- 库洛米主题：弹层 / 弹窗紫色调适配 ---------- */
#hub-view[data-theme="kuromi"] .hub-sheet,
body[data-theme="kuromi"] .hub-sheet {
  background: rgba(58, 28, 88, 0.44);
  color: #4a2b5e;
}
#hub-view[data-theme="kuromi"] .hub-sheet-card,
body[data-theme="kuromi"] .hub-sheet-card {
  background: linear-gradient(180deg, #f8f2ff 0%, #ece4f5 100%);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-overlay .pf-panel,
body[data-theme="kuromi"] .pet-battle-overlay .pf-panel,
body[data-theme="kuromi"] .pf-panel {
  background: linear-gradient(180deg, #f8f2ff 0%, #ece4f5 100%);
  border-color: rgba(180, 140, 210, 0.6);
  color: #4a2b5e;
  box-shadow: 0 20px 48px rgba(80, 50, 100, 0.22);
}
body[data-theme="kuromi"] .pf-head,
body[data-theme="kuromi"] .pf-topbar {
  background: linear-gradient(180deg, rgba(248, 240, 255, 0.96) 0%, rgba(234, 224, 242, 0.96) 100%);
  border-bottom-color: rgba(180, 140, 210, 0.55);
}
body[data-theme="kuromi"] .pf-title { color: #4a2b5e; }
body[data-theme="kuromi"] .pf-coins,
body[data-theme="kuromi"] .pf-timer { color: #5e3078; }
body[data-theme="kuromi"] .pf-chip {
  background: rgba(248, 244, 255, 0.94);
  border-color: rgba(170, 140, 200, 0.7);
}
body[data-theme="kuromi"] .pf-chip:hover { border-color: #9b6fd4; }
body[data-theme="kuromi"] .pf-chip-on {
  border-color: #7b4fb0;
  background: #ece4f5;
  box-shadow: 0 4px 12px rgba(123, 79, 176, 0.18);
}
body[data-theme="kuromi"] .pf-chip-name { color: #4a2b5e; }
body[data-theme="kuromi"] .pf-chip-sub { color: #8a6aa0; }
body[data-theme="kuromi"] .pf-close {
  background: #ece4f5;
  border-color: rgba(170, 140, 200, 0.75);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-btn-main {
  background: linear-gradient(135deg, #9b6fd4, #7b4fb0);
  color: #fff;
  box-shadow: 0 10px 24px rgba(100, 60, 150, 0.28);
}
body[data-theme="kuromi"] .pf-btn {
  background: rgba(248, 244, 255, 0.94);
  border-color: rgba(170, 140, 200, 0.75);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-hint,
body[data-theme="kuromi"] .pf-empty { color: #7a5a94; }
body[data-theme="kuromi"] .pf-card,
body[data-theme="kuromi"] .pf-shop-item {
  background: rgba(250, 246, 255, 0.94);
  border-color: rgba(180, 140, 210, 0.55);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-card-name,
body[data-theme="kuromi"] .pf-shop-name { color: #4a2b5e; }
body[data-theme="kuromi"] .pf-card-sub,
body[data-theme="kuromi"] .pf-shop-desc { color: #8a6aa0; }
body[data-theme="kuromi"] .pf-result {
  background: linear-gradient(180deg, #f6f0ff 0%, #e8ddf5 100%);
  border-color: rgba(170, 140, 200, 0.65);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-result-title,
body[data-theme="kuromi"] .pf-sub-title { color: #4a2b5e; }
body[data-theme="kuromi"] .pf-result-name { color: #5e3078; }
body[data-theme="kuromi"] .pf-result-desc { color: #7a5a94; }
body[data-theme="kuromi"] .pf-tag {
  background: rgba(248, 244, 255, 0.94);
  border-color: rgba(170, 140, 200, 0.7);
  color: #5e3078;
}
body[data-theme="kuromi"] .pf-tag-weather { color: #5e3078; }
body[data-theme="kuromi"] .pf-badge-ok {
  background: #ece4f5;
  color: #5e3078;
  border-color: rgba(170, 140, 210, 0.75);
}
body[data-theme="kuromi"] .pf-sub-head,
body[data-theme="kuromi"] .pf-nav { color: #4a2b5e; }
body[data-theme="kuromi"] .pf-line,
body[data-theme="kuromi"] .pf-meter { background: rgba(210, 180, 232, 0.75); }
body[data-theme="kuromi"] .pf-bar { background: rgba(225, 205, 242, 0.9); }
body[data-theme="kuromi"] .pf-bar-safe { background: linear-gradient(90deg, #c8a2f0, #8a5cc4); }
body[data-theme="kuromi"] .pf-bar-marker { background: #7b4fb0; }
body[data-theme="kuromi"] .pf-buy,
body[data-theme="kuromi"] .pf-ms-btn {
  background: rgba(248, 244, 255, 0.94);
  border-color: rgba(170, 140, 200, 0.75);
  color: #4a2b5e;
}
body[data-theme="kuromi"] .pf-water,
body[data-theme="kuromi"] .pf-water {
  background: linear-gradient(180deg, rgba(140, 100, 190, 0.08) 0%, rgba(60, 30, 90, 0.10) 100%);
  border-color: rgba(180, 140, 210, 0.7);
}

/* ---------- 主题选择弹层（所有主题通用） ---------- */
#hub-view .hub-theme-card { max-height: 62vh; }
#hub-view .hub-theme-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
#hub-view .hub-theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid rgba(210, 188, 150, 0.55);
  color: #5a4a38;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
#hub-view .hub-theme-item .hub-theme-item-ico { font-size: 22px; line-height: 1; }
#hub-view .hub-theme-item .hub-theme-item-name { flex: 1; }
#hub-view .hub-theme-item .hub-theme-item-tag {
  font-size: 11px;
  font-weight: 700;
  color: #8a63c8;
  background: rgba(155, 111, 212, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}
#hub-view .hub-theme-item.is-on {
  border-color: rgba(155, 111, 212, 0.75);
  box-shadow: 0 4px 14px rgba(123, 79, 176, 0.16);
}
body[data-theme="kuromi"] #hub-view .hub-theme-item,
#hub-view[data-theme="kuromi"] .hub-theme-item {
  background: rgba(250, 246, 255, 0.94);
  border-color: rgba(180, 140, 210, 0.5);
  color: #4a2b5e;
}
body[data-theme="qinghuan"] #hub-view .hub-theme-item,
#hub-view[data-theme="qinghuan"] .hub-theme-item {
  background: rgba(250, 255, 248, 0.94);
  border-color: rgba(176, 208, 178, 0.6);
  color: #2c5b4e;
}
body[data-theme="fengqiu"] #hub-view .hub-theme-item,
#hub-view[data-theme="fengqiu"] .hub-theme-item {
  background: rgba(250, 252, 255, 0.94);
  border-color: rgba(180, 200, 220, 0.6);
  color: #3a4a5e;
}

/* ---------- 小屋 · 仙途（修仙放置）弹层 ----------
   原「陪我聊聊天」位替换为独立 iframe 游戏页 xiuxian.html，样式全部自带，
   这里只负责弹层容器，不影响小屋其余元素。 */
.hub-xiuxian-layer {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(18, 14, 10, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.hub-xiuxian-layer[hidden] { display: none !important; }
.hub-xiuxian-card {
  width: 100%;
  max-width: 1000px;
  height: min(92vh, 920px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFCF4;
  border: 1.5px solid #F3E0C2;
  box-shadow: 0 14px 40px rgba(180, 140, 80, 0.28);
}
.hub-xiuxian-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(120deg, #FFF4DE, #FFEACB);
  border-bottom: 1px solid #F6E4C8;
}
.hub-xiuxian-title { font-size: 14px; font-weight: 800; color: #7A5334; letter-spacing: 0.08em; }
.hub-xiuxian-close {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #A8834E;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.hub-xiuxian-close:active { transform: scale(0.92); }
.hub-xiuxian-frame { flex: 1; width: 100%; border: 0; background: #FFF6E6; }

@media (max-width: 560px) {
  .hub-xiuxian-layer { padding: 0; align-items: stretch; }
  .hub-xiuxian-card {
    max-width: none;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
}

/* 打开仙途时冻结小屋：粒子画布 / 三只宠物仍在父页 60fps 跑，是手机发烫主因 */
.hub-xiuxian-layer { z-index: 20000; }
html.hub-xiuxian-on .pet-container,
html.hub-xiuxian-on .pet2-container,
html.hub-xiuxian-on .pet3-container,
html.hub-xiuxian-on canvas,
html.hub-xiuxian-on .wings-bg,
html.hub-xiuxian-on .music-widget {
  display: none !important;
  animation: none !important;
  will-change: auto !important;
}
html.hub-xiuxian-on body { overflow: hidden; }
html.hub-xiuxian-on #hub-view .hub-wrap {
  visibility: hidden;
  pointer-events: none;
}
