/**
 * phone.css — 手机系统UI样式
 * 真实手机外观 · 全屏覆盖 · App导航
 * 版本: v1
 */

/* ===== 手机覆盖层 ===== */
.phone-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.phone-overlay.open {
  display: flex;
  animation: phoneFadeIn 0.3s ease;
}
@keyframes phoneFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== 手机外框 ===== */
.phone-device {
  width: 375px;
  height: 760px;
  max-height: 95vh;
  background: #1a1a2e;
  border-radius: 44px;
  border: 3px solid #2a2a3e;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05),
              0 20px 60px rgba(0,0,0,0.5),
              0 0 80px rgba(123, 104, 238, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: phoneSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes phoneSlideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 刘海/灵动岛 */
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0a0a12;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}
.phone-notch::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a2e;
  border: 1px solid #333;
}

/* ===== 状态栏 ===== */
.phone-statusbar {
  height: 44px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e8e4f0;
  background: transparent;
  z-index: 50;
}
.phone-statusbar .sb-time {
  font-variant-numeric: tabular-nums;
}
.phone-statusbar .sb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.phone-statusbar .sb-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
}
.phone-statusbar .sb-signal span {
  width: 3px;
  background: #e8e4f0;
  border-radius: 1px;
}
.phone-statusbar .sb-signal span:nth-child(1) { height: 4px; }
.phone-statusbar .sb-signal span:nth-child(2) { height: 6px; }
.phone-statusbar .sb-signal span:nth-child(3) { height: 8px; }
.phone-statusbar .sb-signal span:nth-child(4) { height: 10px; opacity: 0.4; }
.phone-statusbar .sb-battery {
  display: flex;
  align-items: center;
  gap: 2px;
}
.phone-statusbar .sb-battery-icon {
  width: 22px;
  height: 11px;
  border: 1.5px solid #e8e4f0;
  border-radius: 3px;
  padding: 1px;
  position: relative;
}
.phone-statusbar .sb-battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: #e8e4f0;
  border-radius: 0 1px 1px 0;
}
.phone-statusbar .sb-battery-fill {
  height: 100%;
  background: #4ecdc4;
  border-radius: 1px;
  transition: width 0.5s ease;
}
.phone-statusbar .sb-battery-fill.low { background: #ff6b6b; }

/* ===== 屏幕内容区 ===== */
.phone-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.phone-screen::-webkit-scrollbar {
  width: 0;
}

/* ===== 主屏幕（桌面） ===== */
.phone-home {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 80px;
}

/* 桌面时间大字 */
.phone-home-clock {
  text-align: center;
  padding: 20px 0 16px;
}
.phone-home-clock .clock-time {
  font-size: 56px;
  font-weight: 200;
  color: #e8e4f0;
  line-height: 1.1;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.phone-home-clock .clock-date {
  font-size: 13px;
  color: #9a98aa;
  margin-top: 2px;
}

/* App 图标网格 */
.phone-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  padding: 8px 4px;
}
.phone-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
}
.phone-app-icon:active {
  transform: scale(0.88);
}
.phone-app-icon .app-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}
.phone-app-icon .app-icon-label {
  font-size: 11px;
  color: #c0bdd0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.phone-app-icon .app-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(255,59,48,0.4);
}

/* App 颜色 */
.app-color-messages { background: linear-gradient(135deg, #4fc3f7, #29b6f6); }
.app-color-social   { background: linear-gradient(135deg, #7b68ee, #9370db); }
.app-color-wallet   { background: linear-gradient(135deg, #4ecdc4, #26a69a); }
.app-color-shop     { background: linear-gradient(135deg, #ffb74d, #ff9800); }
.app-color-gallery  { background: linear-gradient(135deg, #f06292, #ec407a); }
.app-color-settings { background: linear-gradient(135deg, #78909c, #607d8b); }

/* Dock 栏 */
.phone-dock {
  margin: auto 0 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-around;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  margin-bottom: 8px;
}
.phone-dock .phone-app-icon .app-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

/* Home 指示条 */
.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

/* ===== App 页面通用 ===== */
.phone-app-page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0f0f1a;
  display: none;
  flex-direction: column;
  animation: appOpen 0.25s ease;
}
.phone-app-page.open {
  display: flex;
}
@keyframes appOpen {
  from { transform: scale(1.08); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* App 导航栏 */
.phone-app-navbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(26,26,46,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  padding-top: 44px;
  height: 88px;
}
.phone-app-navbar .nav-back {
  font-size: 20px;
  color: #4fc3f7;
  cursor: pointer;
  width: 40px;
  display: flex;
  align-items: center;
}
.phone-app-navbar .nav-back:active { opacity: 0.5; }
.phone-app-navbar .nav-title {
  font-size: 17px;
  font-weight: 600;
  color: #e8e4f0;
}
.phone-app-navbar .nav-action {
  font-size: 15px;
  color: #4fc3f7;
  cursor: pointer;
  width: 40px;
  text-align: right;
}
.phone-app-navbar .nav-action:active { opacity: 0.5; }

/* App 内容区 */
.phone-app-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.phone-app-body::-webkit-scrollbar { width: 0; }

/* ===== 消息App ===== */
.msg-conversation-list {
  padding: 0;
}
.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.msg-conv-item:active { background: rgba(255,255,255,0.04); }
.msg-conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b68ee, #4fc3f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.msg-conv-info {
  flex: 1;
  min-width: 0;
}
.msg-conv-name {
  font-size: 15px;
  font-weight: 600;
  color: #e8e4f0;
  margin-bottom: 2px;
}
.msg-conv-preview {
  font-size: 13px;
  color: #7a7a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.msg-conv-time {
  font-size: 11px;
  color: #5a5a6a;
}
.msg-conv-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #4fc3f7;
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* 聊天页面 */
.msg-chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.msg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  animation: msgBubbleIn 0.3s ease;
}
@keyframes msgBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bubble.in {
  align-self: flex-start;
  background: #2a2a3e;
  color: #e8e4f0;
  border-bottom-left-radius: 4px;
}
.msg-bubble.out {
  align-self: flex-end;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg-bubble.system {
  align-self: center;
  background: transparent;
  color: #5a5a6a;
  font-size: 12px;
  font-style: italic;
  padding: 6px 10px;
  max-width: 90%;
  text-align: center;
}
.msg-bubble.ephemeral {
  align-self: center;
  background: rgba(255,167,38,0.1);
  border: 1px solid rgba(255,167,38,0.2);
  color: #ffa726;
  font-size: 13px;
  padding: 8px 14px;
  max-width: 90%;
  text-align: center;
  border-radius: 10px;
  animation: ephemeralFadeIn 0.3s ease;
}
@keyframes ephemeralFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bubble-time {
  font-size: 10px;
  color: #5a5a6a;
  margin-top: 2px;
  text-align: center;
}
.msg-chat-input {
  display: flex;
  gap: 8px;
  padding: 8px 12px 20px;
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(255,255,255,0.06);
}
.msg-chat-input input {
  flex: 1;
  height: 36px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1a2e;
  color: #e8e4f0;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
}
.msg-chat-input input:focus {
  border-color: #4fc3f7;
}
.msg-chat-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-chat-input button:active { transform: scale(0.92); }
.msg-chat-input button:disabled { opacity: 0.4; }

.msg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5a5a6a;
  gap: 8px;
  padding: 40px;
}
.msg-empty .empty-icon { font-size: 48px; opacity: 0.3; }
.msg-empty .empty-text { font-size: 14px; text-align: center; }

/* ===== 钱包App ===== */
.wallet-header {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #1a2a3a, #0f1f2a);
}
.wallet-balance-label {
  font-size: 13px;
  color: #7a9a9a;
  margin-bottom: 6px;
}
.wallet-balance-amount {
  font-size: 36px;
  font-weight: 300;
  color: #4ecdc4;
  font-variant-numeric: tabular-nums;
}
.wallet-currency {
  font-size: 14px;
  color: #4ecdc4;
  margin-left: 4px;
}
.wallet-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  justify-content: center;
}
.wallet-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(78,205,196,0.2);
  background: rgba(78,205,196,0.05);
  color: #4ecdc4;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.wallet-action-btn:active {
  background: rgba(78,205,196,0.15);
  transform: scale(0.96);
}
.wallet-action-btn .action-icon { font-size: 20px; margin-bottom: 4px; }
.wallet-action-btn .action-label { font-size: 12px; }
.wallet-section-title {
  padding: 16px 20px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #9a98aa;
}
.wallet-tx-list { padding: 0 12px 20px; }
.wallet-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
.wallet-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wallet-tx-icon.income { background: rgba(78,205,196,0.12); color: #4ecdc4; }
.wallet-tx-icon.expense { background: rgba(255,107,107,0.12); color: #ff6b6b; }
.wallet-tx-info { flex: 1; }
.wallet-tx-desc { font-size: 14px; color: #e8e4f0; margin-bottom: 2px; }
.wallet-tx-time { font-size: 11px; color: #5a5a6a; }
.wallet-tx-amount { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet-tx-amount.income { color: #4ecdc4; }
.wallet-tx-amount.expense { color: #ff6b6b; }

/* ===== 商城App ===== */
.shop-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px 20px;
}
.shop-product-card {
  background: #1a1a2e;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
  border: 1px solid rgba(255,255,255,0.04);
}
.shop-product-card:active { transform: scale(0.96); }
.shop-product-img {
  height: 100px;
  background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.shop-product-info { padding: 10px 12px; }
.shop-product-name { font-size: 14px; color: #e8e4f0; margin-bottom: 4px; }
.shop-product-desc { font-size: 11px; color: #7a7a8a; margin-bottom: 6px; line-height: 1.4; }
.shop-product-price { font-size: 16px; font-weight: 700; color: #ffb74d; }
.shop-product-price .currency { font-size: 11px; color: #9a8a5a; }

.shop-category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
.shop-category-bar::-webkit-scrollbar { display: none; }
.shop-cat-btn {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #9a98aa;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.shop-cat-btn.active {
  background: rgba(255,183,77,0.15);
  border-color: rgba(255,183,77,0.3);
  color: #ffb74d;
}

/* ===== 相册App ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
.gallery-item {
  aspect-ratio: 1;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.15s;
}
.gallery-item:active { transform: scale(0.92); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 9px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-empty {
  padding: 60px 20px;
  text-align: center;
  color: #5a5a6a;
  font-size: 14px;
}
.gallery-empty .empty-icon { font-size: 48px; opacity: 0.3; margin-bottom: 8px; }

/* 相册详情弹窗 */
.gallery-detail-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: phoneFadeIn 0.2s ease;
}
.gallery-detail-card {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.gallery-detail-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #9a98aa;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-detail-close:active { background: rgba(255,255,255,0.15); }
.gallery-detail-emoji {
  font-size: 48px;
  text-align: center;
  padding: 12px 0 8px;
}
.gallery-detail-caption {
  font-size: 16px;
  font-weight: 700;
  color: #e8e4f0;
  text-align: center;
  margin-bottom: 8px;
}
.gallery-detail-meta {
  font-size: 11px;
  color: #5a5a6a;
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gallery-detail-desc {
  font-size: 14px;
  color: #c0bdd0;
  line-height: 1.7;
}
.gallery-detail-fail-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #ff6b6b;
  text-align: center;
  font-style: italic;
}

/* ===== 社媒App ===== */
.social-feed { padding: 0 0 20px; }
.social-post {
  background: #1a1a2e;
  margin-bottom: 8px;
  padding: 16px;
}
.social-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.social-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7b68ee, #9370db);
}
.social-post-author { font-size: 14px; font-weight: 600; color: #e8e4f0; }
.social-post-meta { font-size: 11px; color: #5a5a6a; }
.social-post-platform {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(123,104,238,0.15);
  color: #9370db;
  margin-left: 6px;
}
.social-post-content { font-size: 14px; color: #c0bdd0; line-height: 1.5; margin-bottom: 10px; }
.social-post-actions {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #5a5a6a;
}
.social-post-actions span { display: flex; align-items: center; gap: 4px; }

/* ===== 设置App ===== */
.settings-list { padding: 8px 0; }
.settings-group-title {
  padding: 16px 20px 6px;
  font-size: 12px;
  color: #5a5a6a;
  text-transform: uppercase;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
  cursor: pointer;
}
.settings-item:active { background: rgba(255,255,255,0.03); }
.settings-item-label { font-size: 15px; color: #e8e4f0; }
.settings-item-value { font-size: 13px; color: #5a5a6a; }
.settings-item-arrow { color: #3a3a4a; font-size: 14px; }

/* ===== 加载/空状态 ===== */
.phone-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  color: #5a5a6a;
  font-size: 14px;
}
.phone-loading .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(123,104,238,0.2);
  border-top-color: #7b68ee;
  border-radius: 50%;
  animation: phoneSpin 0.8s linear infinite;
}
@keyframes phoneSpin {
  to { transform: rotate(360deg); }
}

/* ===== Toast 提示 ===== */
.phone-toast {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #e8e4f0;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 200;
  animation: phoneToastIn 0.3s ease, phoneToastOut 0.3s ease 1.7s forwards;
  white-space: nowrap;
}
@keyframes phoneToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes phoneToastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ===== 手机关闭按钮 ===== */
.phone-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #e8e4f0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: background 0.2s;
}
.phone-close-btn:hover { background: rgba(255,255,255,0.2); }

/* ===== 响应式 ===== */
@media (max-width: 420px) {
  .phone-device {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .phone-overlay { background: #000; }
  .phone-close-btn { top: 8px; right: 8px; z-index: 200; }
  .phone-notch { display: none; }
}

/* ===== 未开放App样式 ===== */
.phone-app-disabled {
  opacity: 0.5;
}
.app-lock {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 12px;
  background: #1a1a2e;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-future {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #5a5a6a;
  gap: 12px;
}
.phone-future .future-icon {
  font-size: 56px;
  opacity: 0.3;
}
.phone-future .future-title {
  font-size: 18px;
  font-weight: 600;
  color: #9a98aa;
}
.phone-future .future-desc {
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  color: #5a5a6a;
}

/* ===== 拍照App样式 ===== */
.app-color-camera { background: linear-gradient(135deg, #ffa726, #ff7043); }

.camera-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 20px;
}
.camera-intent-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.camera-intent-input {
  width: 100%;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e8e4f0;
  font-size: 14px;
  padding: 12px;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}
.camera-intent-input:focus {
  border-color: #ffa726;
}
.camera-intent-input::placeholder {
  color: #4a4a5a;
}
.camera-mode-row {
  display: flex;
  gap: 8px;
}
.camera-mode-btn {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #7a7a8a;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.camera-mode-btn.active {
  background: rgba(255,167,38,0.15);
  border-color: rgba(255,167,38,0.3);
  color: #ffa726;
}
.camera-preview {
  width: 100%;
  flex: 1;
  background: linear-gradient(135deg, #0a0a12, #1a1a2e);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 200px;
}
.camera-preview::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 20px; height: 20px;
  border-top: 2px solid rgba(255,255,255,0.2);
  border-left: 2px solid rgba(255,255,255,0.2);
  border-radius: 4px 0 0 0;
}
.camera-preview::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 20px; height: 20px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  border-right: 2px solid rgba(255,255,255,0.2);
  border-radius: 0 0 4px 0;
}
.camera-scene {
  font-size: 13px;
  color: #5a5a6a;
  text-align: center;
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.camera-info {
  text-align: center;
  margin-bottom: 20px;
}
.camera-stat {
  font-size: 14px;
  font-weight: 600;
  color: #e8e4f0;
  margin-bottom: 4px;
}
.camera-hint {
  font-size: 12px;
  color: #5a5a6a;
  line-height: 1.5;
}
.camera-shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin-bottom: 20px;
  transition: transform 0.15s;
}
.camera-shutter-btn:active { transform: scale(0.9); }
.camera-shutter-btn:disabled { opacity: 0.4; }
.shutter-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shutter-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa726, #ff7043);
  transition: background 0.2s;
}
.camera-shutter-btn:active .shutter-inner {
  background: linear-gradient(135deg, #ff7043, #e64a19);
}

/* 快门闪光动画 */
.camera-flash {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 500;
  animation: cameraFlash 0.4s ease forwards;
  pointer-events: none;
}
@keyframes cameraFlash {
  0% { opacity: 0; }
  20% { opacity: 0.9; }
  100% { opacity: 0; }
}
