/* ===== 手机系统 ===== */
.phone-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,16,14,0.72);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}
.phone-device {
  width: min(92vw, 360px);
  height: min(86vh, 680px);
  background: linear-gradient(180deg, #EAF4FB, #D6E6F2);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: phoneIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.phone-statusbar {
  height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  font-size: 11px; color: var(--text-secondary);
  background: rgba(255,255,255,0.4);
}
.phone-screen {
  flex: 1; position: relative; overflow: hidden;
}
.phone-homebar {
  height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 8px;
}
.phone-homebar .home-indicator {
  width: 110px; height: 5px; border-radius: 3px;
  background: rgba(100,120,140,0.5);
}
.phone-home-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(100,120,140,0.4);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* 主屏 */
.phone-home { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10px 14px; }
.phone-home-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-primary); padding: 4px 2px 8px; }
.phone-home-header .ph-nick { font-weight: 600; }
.phone-home-header .ph-battery { font-size: 11px; color: var(--text-secondary); }
.notif-toggle { border: none; background: rgba(0,0,0,0.06); border-radius: 10px; font-size: 10px; cursor: pointer; padding: 2px 6px; color: var(--text-secondary); }

.phone-pages { flex: 1; overflow: hidden; position: relative; }
.phone-page { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: start; padding: 12px 6px; transition: transform 0.35s ease-in-out, opacity 0.3s ease-in-out; }
.phone-app {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; border: none; background: none; padding: 6px 0;
}
.phone-app-ico {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  position: relative;
}
.phone-app-name { font-size: 10px; color: var(--text-primary); max-width: 56px; text-align: center; line-height: 1.2; }
.app-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.phone-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 6px; }
.phone-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(100,120,140,0.3); }
.phone-dot.active { background: var(--accent); }

/* 通知中心 */
.phone-notif-center { position: absolute; left: 0; right: 0; top: 0; background: rgba(30,26,22,0.92); backdrop-filter: blur(10px); display: flex; flex-direction: column; padding: 10px 12px 14px; z-index: 45; transform: translateY(-105%); transition: transform 0.35s ease-in-out; max-height: 70%; overflow-y: auto; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.phone-notif-center.open { transform: translateY(0); }
.notif-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.4); margin: 0 auto 10px; cursor: pointer; }
.notif-title { text-align: center; font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 10px; letter-spacing: 2px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 9px 12px; }
.notif-app { font-size: 11px; color: #F2C9C3; font-weight: 600; }
.notif-text { font-size: 12px; color: #fff; margin-top: 2px; line-height: 1.5; }
.notif-time { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.notif-empty { text-align: center; color: rgba(255,255,255,0.6); font-size: 12px; padding: 24px 0; }
.phone-notif-card { width: 90%; background: rgba(255,255,255,0.92); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); animation: floatUp 0.3s; }

/* Dock 栏 */
.phone-dock { display: flex; justify-content: space-around; align-items: center; padding: 8px 6px 2px; background: rgba(255,255,255,0.45); border-radius: 18px; margin-top: 6px; box-shadow: 0 -2px 12px rgba(0,0,0,0.06); flex-shrink: 0; }
.dock-app .phone-app-ico { width: 48px; height: 48px; font-size: 22px; }
.dock-app .phone-app-name { font-size: 9px; }

/* 长按拖动 */
.phone-app.dragging { opacity: 0.35; transform: scale(0.9); }
.phone-app.dragable { touch-action: pan-y; }
.drag-clone { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; animation: fadeIn 0.12s; }

/* 应用通用 */
.phone-app-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #EAF4FB, #DFEBF5); animation: fadeIn 0.25s; }
.phone-app-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,0.5); flex-shrink: 0; }
.phone-back-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.05); font-size: 14px; cursor: pointer; flex-shrink: 0; }
.phone-app-title { font-size: 15px; font-weight: 600; flex: 1; text-align: center; letter-spacing: 1px; }
.phone-app-body { flex: 1; overflow-y: auto; padding: 10px 12px; }

/* 手机内元素瞬时按压反馈（无驻留高亮） */
.phone-device button:active,
.phone-device .cal-cell:active,
.phone-device .forum-foot span:active,
.phone-device .qq-list-item:active,
.phone-device .contact-item:active,
.phone-device .forum-post:active,
.phone-device .forum-board-cell:active,
.phone-device .mail-item:active,
.phone-device .music-row:active,
.phone-device .wallet-record:active,
.phone-device .wallet-fb:active,
.phone-device .wp-cell:active,
.phone-device .diary-item:active,
.phone-device .opt:active { filter: brightness(0.86); transform: scale(0.985); }

/* 手机内通用组件（此前无定义，补基础样式） */
.phone-app-screen .panel-sec { font-size: 13px; font-weight: 600; color: var(--accent-deep); letter-spacing: 1px; margin: 10px 2px 6px; }
.phone-app-screen .panel-tip { font-size: 12px; color: var(--text-faint); padding: 8px 2px; line-height: 1.6; }
.phone-app-screen .menu-item { padding: 10px 12px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.phone-app-screen .menu-item:hover { background: rgba(127,168,201,0.12); }
.phone-app-screen .menu-item.danger { color: #C0564F; }
.phone-app-screen .menu-item:active { filter: brightness(0.85); }
.phone-app-screen .cal-dots { display: flex; justify-content: center; gap: 3px; }
.phone-app-screen .cal-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.phone-app-screen .cal-dot.bday { background: #D9B26B; }
.phone-app-screen .cal-dot.event { background: #5B9BD5; }
.phone-app-screen .cal-dot.diary-dot { background: #C9A66B; }
.phone-app-screen .cal-toggle-row { display: flex; justify-content: flex-end; padding: 6px 2px; }
.phone-app-screen .diary-editor { display: flex; flex-direction: column; gap: 10px; }
.phone-app-screen .diary-editor .btn.selected,
.phone-app-screen .diary-editor .selected { outline: 2px solid var(--accent); }
.phone-app-screen .tarot-spread { display: flex; gap: 8px; justify-content: center; }
.phone-app-screen .tarot-spread-card { flex: 1; text-align: center; }
.phone-app-screen .tarot-spread-role { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.phone-app-screen .tarot-spread-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-top: 4px; line-height: 1.3; }
.phone-app-screen .tarot-spread-suit { font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.phone-app-screen .tarot-event { font-size: 12px; color: var(--accent-deep); margin-top: 8px; line-height: 1.6; }
.phone-app-screen .stat-extra-cell { font-size: 12px; color: var(--text-secondary); }
.phone-app-screen .wallet-record .income { color: var(--good); }
.phone-app-screen .wallet-record .expense { color: var(--danger); }

/* QQ */
.qq-list-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; margin-bottom: 6px; cursor: pointer; background: rgba(255,255,255,0.6); }
.qq-list-item:hover { background: rgba(255,255,255,0.9); }
.qq-ava-wrap { position: relative; flex-shrink: 0; }
.qq-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}
.qq-ava { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.qq-info { flex: 1; min-width: 0; }
.qq-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.qq-last { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-time { font-size: 10px; color: var(--text-faint); flex-shrink: 0; }

.qq-chat { display: flex; flex-direction: column; height: 100%; }
.qq-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.qq-msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.6; word-break: break-word; }
.qq-msg.me { align-self: flex-end; background: linear-gradient(135deg, #7FA8C9, #5C8AA8); color: #fff; border-bottom-right-radius: 4px; }
.qq-msg.them { align-self: flex-start; background: #fff; border: 1px solid rgba(150,170,190,0.25); border-bottom-left-radius: 4px; }
.qq-input-row { display: flex; gap: 6px; padding: 8px; background: rgba(255,255,255,0.7); flex-shrink: 0; }
.qq-input-row input { flex: 1; min-width: 0; }
.qq-input-row button { flex-shrink: 0; padding: 6px 10px; font-size: 13px; }
.qq-typing { align-self: flex-start; font-size: 12px; color: var(--text-faint); padding: 4px 12px; }
.qq-attach { padding: 10px; background: rgba(255,255,255,0.85); border-top: 1px solid rgba(150,170,190,0.2); flex-shrink: 0; max-height: 150px; overflow-y: auto; }
.qq-img { background-size: cover; background-position: center; border: 1px solid rgba(150,170,190,0.3); }
.qq-card { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.7); border-radius: 10px; padding: 6px 10px; }
.qq-card-ava { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* 通讯录 */
.contact-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; margin-bottom: 6px; background: rgba(255,255,255,0.6); cursor: pointer; }
.contact-item .qq-ava { background: var(--mist); }
.contact-info { flex: 1; }
.contact-name { font-size: 13px; font-weight: 600; }
.contact-rel { font-size: 11px; color: var(--text-faint); }
.contact-call { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--good-soft); font-size: 15px; cursor: pointer; }
.ct-group { margin-bottom: 10px; }
.ct-group-label { font-size: 12px; font-weight: 600; color: var(--accent-deep); padding: 4px 2px 6px; letter-spacing: 1px; }

/* 论坛 */
.forum-post { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.forum-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.forum-author { font-size: 12px; font-weight: 600; color: var(--accent-deep); }
.forum-time { font-size: 10px; color: var(--text-faint); }
.forum-body { font-size: 13px; line-height: 1.7; margin-bottom: 8px; word-break: break-word; }
.forum-foot { display: flex; gap: 14px; font-size: 12px; color: var(--text-secondary); }
.forum-foot span { cursor: pointer; }
.forum-comment { background: rgba(255,255,255,0.55); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.forum-comment-head { display: flex; align-items: center; gap: 6px; }
.forum-input-area { display: flex; gap: 8px; padding: 8px; background: rgba(255,255,255,0.7); flex-shrink: 0; }
.forum-tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.6); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.forum-tab { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 13px; text-align: center; color: var(--text-secondary); cursor: pointer; }
.forum-tab.active { background: #fff; color: var(--accent-deep); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.forum-board-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.forum-board-cell { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 14px 8px; text-align: center; cursor: pointer; }
.forum-board-name { font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.forum-board-count { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.forum-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.forum-post-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

/* 日记 */
.diary-editor textarea { width: 100%; min-height: 160px; font-size: 13px; line-height: 1.7; margin-bottom: 8px; resize: none; }
.diary-item { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.diary-date-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.diary-date { font-size: 20px; font-weight: 700; color: var(--accent-deep); font-family: var(--font-kai, 'Kaiti SC', serif); letter-spacing: 1px; }
.diary-meta { font-size: 11px; color: var(--text-faint); }
.diary-item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.diary-item-body { font-size: 13px; line-height: 1.7; white-space: pre-wrap; }

/* 创作 */
.create-item { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 12px; margin-bottom: 8px; display: flex; gap: 10px; cursor: pointer; }
.create-item-title { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.create-item-type { font-size: 11px; color: var(--text-faint); margin: 2px 0 4px; }
.create-item-meta { font-size: 11px; color: var(--text-secondary); }
.create-item-cover { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.create-item-body { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.create-live { border: 1px solid rgba(127,168,201,0.4); background: rgba(127,168,201,0.08); }
.create-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.cs-item { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 10px 4px; text-align: center; }
.cs-num { font-size: 16px; font-weight: 700; color: var(--accent-deep); }
.cs-lab { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.create-live-btn { width: 100%; margin-bottom: 10px; }
.cr-upload { border: 1px dashed var(--card-border); border-radius: 12px; padding: 18px; text-align: center; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.cr-upload.uploaded { border-style: solid; border-color: var(--good); color: var(--good); background: rgba(62,155,98,0.08); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; display: inline-block; animation: pulse 1.6s infinite; }

/* 塔罗 */
.tarot-card { text-align: center; padding: 24px 16px; }
.tarot-face { width: 120px; height: 190px; margin: 0 auto 14px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.tarot-face.back { background: linear-gradient(135deg, #C9A9C4, #8E86A8); color: #fff; }
.tarot-face.up { background: linear-gradient(135deg, #F5E3B3, #E8C5A0); color: #7A5A4E; }
.tarot-face.down { background: linear-gradient(135deg, #B9B0CF, #8A7A9C); color: #fff; }
.tarot-name { font-size: 16px; font-weight: 600; }
.tarot-keys { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }
.tarot-flip { margin-top: 14px; }

/* 日历 */
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 10px; }
.cal-title { font-size: 15px; font-weight: 600; }
.cal-nav { width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,0.05); cursor: pointer; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; border-radius: 10px; position: relative; }
.cal-cell.today { font-weight: 700; color: var(--accent-deep); }
.cal-cell.today::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.cal-cell.other { color: var(--text-faint); }
.cal-cell.birthday { background: rgba(217,178,107,0.25); }
.cal-bday { position: absolute; bottom: 2px; font-size: 7px; color: var(--butter); }
.cal-events { margin-top: 10px; }

/* 钱包 */
.wallet-balance { text-align: center; padding: 20px; background: linear-gradient(135deg, rgba(217,178,107,0.2), rgba(240,226,196,0.4)); border-radius: 18px; margin-bottom: 12px; }
.wallet-balance .amt { font-size: 28px; font-weight: 700; color: var(--accent-deep); }
.wallet-balance .lab { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.stat-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stat-summary .stat-extra-cell { flex: 1; min-width: 96px; text-align: center; background: rgba(255,255,255,0.55); border-radius: 12px; padding: 10px 6px; }
.wallet-record { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px dashed rgba(150,170,190,0.3); font-size: 13px; }
.wallet-record .income { color: var(--good); }
.wallet-record .expense { color: var(--danger); }
.wallet-record .w-time { font-size: 10px; color: var(--text-faint); }
.wallet-tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.6); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.wallet-tab { flex: 1; padding: 7px 0; border-radius: 9px; font-size: 13px; text-align: center; color: var(--text-secondary); cursor: pointer; }
.wallet-tab.active { background: #fff; color: var(--accent-deep); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.wallet-filter { display: flex; gap: 6px; margin-bottom: 10px; }
.wallet-fb { flex: 1; padding: 6px 0; border-radius: 8px; font-size: 12px; text-align: center; background: rgba(255,255,255,0.6); cursor: pointer; }
.wallet-fb.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.bar-track { height: 8px; border-radius: 4px; background: rgba(150,170,190,0.2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.bar-fill.good-fill { background: var(--good); }

/* 邮箱 */
.mail-item { background: rgba(255,255,255,0.6); border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.mail-from { font-size: 12px; font-weight: 600; color: var(--accent-deep); display: flex; align-items: center; gap: 6px; }
.mail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mail-subject { font-size: 13px; font-weight: 600; margin: 4px 0 2px; }
.mail-preview { font-size: 11px; color: var(--text-faint); }
.mail-time { font-size: 10px; color: var(--text-faint); margin-top: 4px; }

/* 音乐 */
.music-player { text-align: center; padding: 30px 16px 20px; }
.music-disc { width: 130px; height: 130px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, #F5E3B3, #D9B26B); display: flex; align-items: center; justify-content: center; font-size: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); animation: spin 12s linear infinite paused; }
.music-disc.playing { animation-play-state: running; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.music-title { font-size: 15px; font-weight: 600; }
.music-artist { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.music-controls { display: flex; justify-content: center; gap: 26px; padding: 18px 0; }
.music-controls button { width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; }
.music-controls button.play { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; font-size: 20px; }
.music-list { border-top: 1px dashed rgba(150,170,190,0.3); padding-top: 10px; }
.music-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.music-row.active { background: rgba(127,168,201,0.12); }
.music-row-index { width: 22px; text-align: center; color: var(--text-faint); font-size: 12px; }
.music-row-name { flex: 1; font-size: 13px; }

/* 手机设置 */
.pset-sec { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin: 12px 2px 6px; }
.pset-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: rgba(255,255,255,0.6); border-radius: 12px; margin-bottom: 8px; font-size: 13px; }
.pset-row .pset-val { color: var(--text-secondary); font-size: 12px; }

.wp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-top: 8px; }
.wp-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-radius: 10px; padding: 5px; border: 1px solid transparent; }
.wp-cell.selected { border-color: var(--accent); background: rgba(127,168,201,0.1); }
.wp-thumb { width: 56px; height: 88px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.wp-import { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.6); border: 1px dashed rgba(100,120,140,0.4); font-size: 22px; color: var(--text-secondary); }
.wp-name { font-size: 9px; color: var(--text-secondary); text-align: center; line-height: 1.2; }

/* 塔罗历史记录 */
.tarot-hist-item { background: rgba(255,255,255,0.5); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.tarot-hist-date { font-size: 11px; color: var(--text-faint); }
.tarot-hist-cards { font-size: 12px; color: var(--text-primary); margin: 4px 0; font-weight: 600; line-height: 1.5; }
.tarot-hist-key { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* 音乐播放模式按钮 */
.music-mode { margin-top: 4px; border: none; background: rgba(255,255,255,0.6); border-radius: 10px; padding: 6px 14px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }

/* ===== 11 个应用差异化主题 ===== */

/* QQ：经典蓝白 */
.app-qq.phone-app-screen { background: linear-gradient(180deg, #EAF4FB, #DCEBF5); }
.app-qq .phone-app-bar { background: linear-gradient(135deg, #3E92CC, #2F6FB8); }
.app-qq .phone-app-title { color: #fff; }
.app-qq .phone-back-btn { color: #fff; background: rgba(255,255,255,0.18); }
.app-qq .qq-msg.me { background: linear-gradient(135deg, #3E92CC, #2F6FB8); }
.app-qq .qq-input-row input,
.app-qq .qq-input-row button { background: #fff; }

/* 通讯录：iOS 白 */
.app-contacts.phone-app-screen { background: #F2F4F7; }
.app-contacts .phone-app-bar { background: rgba(255,255,255,0.92); border-bottom: 1px solid rgba(150,170,190,0.25); }
.app-contacts .contact-item { background: #fff; box-shadow: 0 1px 4px rgba(96,126,150,0.08); }
.app-contacts .ct-group-label { color: #5C8AA8; }

/* 论坛：暖橙 */
.app-forum.phone-app-screen { background: linear-gradient(180deg, #FFF4E8, #FBEBDA); }
.app-forum .phone-app-bar { background: linear-gradient(135deg, #E8935A, #D97742); }
.app-forum .phone-app-title { color: #fff; }
.app-forum .phone-back-btn { color: #fff; background: rgba(255,255,255,0.18); }
.app-forum .forum-post { background: rgba(255,255,255,0.8); border: 1px solid rgba(217,119,66,0.15); }
.app-forum .forum-author { color: #C05F2E; }
.app-forum .forum-tab.active { color: #C05F2E; }
.app-forum .forum-board-cell { background: rgba(255,255,255,0.8); }
.app-forum .forum-board-name { color: #C05F2E; }

/* 日记：纸张米黄 */
.app-diary.phone-app-screen { background: linear-gradient(180deg, #FBF4E4, #F3E7CE); }
.app-diary .phone-app-bar { background: #EFE3C8; border-bottom: 1px solid rgba(180,150,90,0.3); }
.app-diary .phone-app-title { color: #7A5A2E; }
.app-diary .phone-back-btn { color: #7A5A2E; }
.app-diary .diary-item { background: rgba(255,255,255,0.75); border: 1px solid rgba(200,170,110,0.25); box-shadow: 0 2px 6px rgba(160,130,70,0.1); }
.app-diary .diary-date { color: #A67C2E; }

/* 创作：紫色艺术 */
.app-creations.phone-app-screen { background: linear-gradient(180deg, #F3EFFA, #E7E0F3); }
.app-creations .phone-app-bar { background: linear-gradient(135deg, #8A6DB8, #6C4F9E); }
.app-creations .phone-app-title { color: #fff; }
.app-creations .phone-back-btn { color: #fff; background: rgba(255,255,255,0.18); }
.app-creations .create-item { background: rgba(255,255,255,0.78); border: 1px solid rgba(124,87,160,0.15); }
.app-creations .create-item-title { color: #6C4F9E; }
.app-creations .cs-item { background: rgba(255,255,255,0.78); }
.app-creations .cs-num { color: #6C4F9E; }

/* 塔罗：深紫星空（暗色） */
.app-tarot.phone-app-screen {
  background: radial-gradient(circle at 50% 0%, #3B2E5E, #1E1632);
  --text-primary: #ECE7F7;
  --text-secondary: #C9C0E2;
  --text-faint: #8F85B0;
  --accent: #B79EE8;
  --accent-deep: #D3B8FF;
  --accent-soft: #4A3B6E;
}
.app-tarot .phone-app-bar { background: rgba(20,14,40,0.85); border-bottom: 1px solid rgba(183,158,232,0.25); }
.app-tarot .phone-app-title { color: #E4D9F7; }
.app-tarot .phone-back-btn { color: #D3B8FF; background: rgba(255,255,255,0.1); }
.app-tarot .tarot-face.back { background: linear-gradient(135deg, #6B5A94, #3E2F63); }
.app-tarot .tarot-name { color: #E4D9F7; }
.app-tarot .panel-sec { color: #D3B8FF; }
.app-tarot .tarot-hist-item { background: rgba(255,255,255,0.07); border: 1px solid rgba(183,158,232,0.18); }
.app-tarot .btn { background: rgba(255,255,255,0.12); color: #E4D9F7; border-color: rgba(183,158,232,0.25); }
.app-tarot .btn-primary { background: linear-gradient(135deg, #8A6DB8, #6C4F9E); color: #fff; }
.app-tarot .empty-hint { color: #8F85B0; }

/* 日历：浅蓝 */
.app-calendar.phone-app-screen { background: linear-gradient(180deg, #EAF6FF, #D9ECFA); }
.app-calendar .phone-app-bar { background: #DCEEFA; border-bottom: 1px solid rgba(120,170,210,0.3); }
.app-calendar .phone-app-title { color: #2F6FA6; }
.app-calendar .phone-back-btn { color: #2F6FA6; }
.app-calendar .cal-title { color: #2F6FA6; }
.app-calendar .cal-cell.today::after { border-color: #4A9AC8; }
.app-calendar .cal-cell.today { color: #2F6FA6; }
.app-calendar .cal-list-item { background: rgba(255,255,255,0.75); border-radius: 12px; padding: 10px; margin-bottom: 6px; }

/* 钱包：深绿金 */
.app-wallet.phone-app-screen { background: linear-gradient(180deg, #E9F3EA, #D9E9DB); }
.app-wallet .phone-app-bar { background: linear-gradient(135deg, #2E6B4F, #1F4D38); }
.app-wallet .phone-app-title { color: #EAF5EC; }
.app-wallet .phone-back-btn { color: #EAF5EC; background: rgba(255,255,255,0.15); }
.app-wallet .wallet-balance { background: linear-gradient(135deg, #2E6B4F, #1F4D38); }
.app-wallet .wallet-balance .amt { color: #F0D9A0; }
.app-wallet .wallet-balance .lab { color: rgba(255,255,255,0.75); }
.app-wallet .wallet-tab.active { color: #2E6B4F; }
.app-wallet .wallet-record { background: rgba(255,255,255,0.65); border-radius: 12px; padding: 11px 12px; margin-bottom: 6px; border-bottom: none; }

/* 邮箱：商务蓝 */
.app-mail.phone-app-screen { background: linear-gradient(180deg, #EAF2FA, #DCECF7); }
.app-mail .phone-app-bar { background: linear-gradient(135deg, #2F5C8E, #234A75); }
.app-mail .phone-app-title { color: #fff; }
.app-mail .phone-back-btn { color: #fff; background: rgba(255,255,255,0.18); }
.app-mail .mail-item { background: rgba(255,255,255,0.82); border: 1px solid rgba(47,92,142,0.12); }
.app-mail .mail-from { color: #234A75; }
.app-mail .mail-item.unread { background: rgba(235,242,250,0.95); }
.app-mail .mail-dot { background: #3D78B0; }

/* 音乐：暗夜霓虹（暗色） */
.app-music.phone-app-screen {
  background: radial-gradient(circle at 50% 0%, #262B45, #141727);
  --text-primary: #EDEAF6;
  --text-secondary: #B9B7D6;
  --text-faint: #7C7A9E;
  --accent: #7E8CE0;
  --accent-deep: #A5AEF0;
  --accent-soft: #343A66;
}
.app-music .phone-app-bar { background: rgba(10,12,24,0.85); border-bottom: 1px solid rgba(126,140,224,0.25); }
.app-music .phone-app-title { color: #E4E2F4; }
.app-music .phone-back-btn { color: #A5AEF0; background: rgba(255,255,255,0.1); }
.app-music .music-disc { background: radial-gradient(circle, #4A5290, #2A2F58); box-shadow: 0 8px 30px rgba(80,90,160,0.45); }
.app-music .music-title { color: #EDEAF6; }
.app-music .music-controls button { background: rgba(255,255,255,0.12); color: #EDEAF6; }
.app-music .music-controls button.play { background: linear-gradient(135deg, #7E8CE0, #5A66C9); color: #fff; }
.app-music .music-mode { background: rgba(255,255,255,0.1); color: #B9B7D6; }
.app-music .music-row.active { background: rgba(126,140,224,0.18); }
.app-music .music-row-name { color: #D8D5EC; }
.app-music .btn { background: rgba(255,255,255,0.12); color: #EDEAF6; border-color: rgba(126,140,224,0.25); }
.app-music .btn-primary { background: linear-gradient(135deg, #7E8CE0, #5A66C9); color: #fff; }
.app-music .empty-hint { color: #7C7A9E; }

/* 手机设置：系统灰 */
.app-psettings.phone-app-screen { background: #EFF1F4; }
.app-psettings .phone-app-bar { background: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(150,170,190,0.25); }
.app-psettings .pset-row { background: #fff; box-shadow: 0 1px 4px rgba(96,126,150,0.08); }
.app-psettings .pset-sec { color: #6E8296; }
