/* ============================================================
   零辞OS - 澎湃OS4 拟态视觉系统 v2.0
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== 澎湃OS4 色彩系统 ===== */
:root {
  --bg: #f5f5f7;
  --bg-gradient: linear-gradient(165deg, #f5f5f7 0%, #eef0f5 40%, #e8eaf0 100%);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --text: #1c1c1e;
  --text2: rgba(28, 28, 30, 0.45);
  --text3: rgba(28, 28, 30, 0.25);
  --primary: #6366f1;
  --primary-l: rgba(99, 102, 241, 0.08);
  --primary-g: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent: #ec4899;
  --accent-g: linear-gradient(135deg, #ec4899, #d946ef);
  --mint: #10b981;
  --mint-g: linear-gradient(135deg, #10b981, #06b6d4);
  --amber: #f59e0b;
  --amber-g: linear-gradient(135deg, #f59e0b, #f97316);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --font: 'Noto Sans SC', 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --blur: blur(40px);
  --blur-heavy: blur(60px);
  --safe-top: 50px;
  --dock-h: 0px;
}

/* ===== 暗色模式 ===== */
body.dark-mode {
  --bg: #1c1c1e;
  --bg-gradient: linear-gradient(165deg, #1c1c1e 0%, #2c2c2e 40%, #1c1c1e 100%);
  --card-bg: rgba(44, 44, 46, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --text: #f5f5f7;
  --text2: rgba(245, 245, 247, 0.5);
  --text3: rgba(245, 245, 247, 0.3);
  --primary-l: rgba(99, 102, 241, 0.15);
}

html, body { width: 100%; height: 100%; background: #e8e0f0; display: flex; justify-content: center; align-items: center; overflow: hidden; font-family: var(--font); }
body { background: radial-gradient(ellipse at 30% 20%, #ede7f6, #e8eaf6 40%, #e0f2f1); }

/* ===== 手机机身 ===== */
.phone-frame {
  width: 390px; height: 844px; background: var(--bg);
  border-radius: 48px; padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(124, 77, 255, 0.05),
    0 20px 60px rgba(124, 77, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative; overflow: hidden;
  animation: phoneIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes phoneIn {
  0% { transform: scale(0.88) translateY(50px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: var(--bg-gradient); }

/* ===== 动态岛 ===== */
.dynamic-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 5px 14px 5px 18px; border-radius: 22px; min-width: 108px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-duration, 0.3s) ease ease;
}
.dynamic-island .time { font-size: 12px; font-weight: 600; color: #fff; letter-spacing: 0.5px; }
.dynamic-island .d-icons { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.dynamic-island .d-icons span { font-size: 10px; color: rgba(255, 255, 255, 0.75); }
.dynamic-island .camera-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a237e, #0d1b4a);
  border: 1px solid rgba(255, 255, 255, 0.12); margin-left: 2px;
}

/* ===== 桌面容器 ===== */
.desktop-wrapper { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.desktop-scroll { display: flex; height: 100%; will-change: transform; }
.desktop-page { flex: 0 0 100%; height: 100%; overflow: hidden; padding: 4px 16px 20px; display: flex; flex-direction: column; }
.desktop-page { overflow-y: auto !important; }

/* ===== 页面指示点 ===== */
.page-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 20; }
.page-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(28, 28, 30, 0.15); transition: all var(--transition-duration, 0.3s) ease; }
.page-dot.active { width: 20px; border-radius: 3px; background: var(--primary-g); box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); }

/* ===== 搜索栏 ===== */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-bg); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 10px 16px; margin: 6px 0 14px;
  box-shadow: var(--card-shadow); cursor: pointer; transition: all 0.25s ease;
}
.search-bar:active { transform: scale(0.97); }
.search-bar .search-icon { font-size: 15px; color: var(--text2); }
.search-bar .search-text { font-size: 13px; color: var(--text2); font-weight: 400; }

/* ===== 桌面小组件行 ===== */
.widget-row { display: flex; gap: 10px; margin-bottom: 14px; }
.widget-card {
  flex: 1; background: var(--card-bg); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--card-shadow); cursor: pointer;
  transition: all 0.25s ease;
}
.widget-card:active { transform: scale(0.96); }
.widget-card .w-icon { font-size: 22px; margin-bottom: 6px; }
.widget-card .w-label { font-size: 11px; color: var(--text2); font-weight: 500; letter-spacing: 0.3px; }
.widget-card .w-value { font-size: 20px; font-weight: 700; color: var(--text); margin-top: 2px; }
.widget-card .w-sub { font-size: 11px; color: var(--text2); margin-top: 1px; }

/* ===== 天气大组件 ===== */
.widget-large {
  flex: 1.8;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--card-shadow);
  cursor: pointer; transition: all 0.25s ease;
}
.widget-large:active { transform: scale(0.96); }
.weather-widget-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ww-left { display: flex; flex-direction: column; gap: 2px; }
.ww-temp { font-size: 36px; font-weight: 900; color: var(--text); line-height: 1; }
.ww-city { font-size: 12px; color: var(--text2); font-weight: 500; }
.ww-right { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ww-icon { font-size: 40px; line-height: 1; }
.ww-desc { font-size: 11px; color: var(--text2); font-weight: 500; }

/* ===== 应用网格 ===== */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0 12px; }
.app-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 8px 4px; border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.app-item:active { transform: scale(0.85); }
.app-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex;
  align-items: center; justify-content: center; font-size: 26px;
  position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-duration, 0.3s) ease ease;
}
.app-icon .badge {
  position: absolute; top: -4px; right: -4px; background: #ff5252; color: #fff;
  font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  padding: 0 3px; border: 2px solid var(--bg);
}
.app-name { font-size: var(--app-label-size, 10px); color: var(--app-label-color, var(--text)); font-weight: 500; text-align: center; opacity: 0.85; }

/* ===== 第二页工具卡片 ===== */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.tool-card {
  background: var(--card-bg); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--card-shadow); cursor: pointer;
  transition: all 0.25s ease; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.tool-card:active { transform: scale(0.94); }
.tool-card .t-icon { font-size: 28px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tool-card .t-name { font-size: 12px; font-weight: 600; color: var(--text); }
.tool-card .t-desc { font-size: 10px; color: var(--text2); line-height: 1.4; }
.tool-card-full { grid-column: span 2; flex-direction: row; justify-content: space-between; text-align: left; padding: 14px 18px; }
.tool-card-full .t-left { display: flex; align-items: center; gap: 12px; }
.tool-card-full .t-info { display: flex; flex-direction: column; }
.tool-card-full .t-name { font-size: 14px; }
.tool-card-full .t-desc { font-size: 11px; }
.tool-card-full .t-action { font-size: 20px; color: var(--primary); }

/* ===== 应用容器 - 澎湃OS4 毛玻璃 ===== */
.app-container {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: var(--blur-heavy); -webkit-backdrop-filter: var(--blur-heavy);
  border-radius: 36px; z-index: 50; display: none; flex-direction: column;
  animation: appSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); min-height: 0;
}
body.dark-mode .app-container { background: rgba(28, 28, 30, 0.85); }
.app-container.active { display: flex; }
@keyframes appSlideIn {
  0% { transform: scale(0.96) translateY(24px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== 应用头部 ===== */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; padding-top: 50px; position: relative; flex-shrink: 0;
}
.app-header .back-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--card-bg);
  border: 1px solid var(--card-border); color: var(--text); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); transition: all 0.2s ease;
}
.app-header .back-btn:active { transform: scale(0.88); }
.app-header .title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.header-right { display: flex; gap: 8px; align-items: center; }
.app-content { flex: 1; overflow-y: auto; padding: 12px 20px 20px; }
.app-content::-webkit-scrollbar { width: 0; }

/* ===== AI对话界面 ===== */
.chat-container { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; background: linear-gradient(165deg, #eef0f5, #f5f5f7 40%, #e8eaf0); }
body.dark-mode .chat-container { background: linear-gradient(165deg, #1c1c1e, #2c2c2e 40%, #1c1c1e); }
.chat-messages {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 14px;
  display: flex; flex-direction: column; gap: 8px; min-height: 0;
}
.chat-messages::-webkit-scrollbar { width: 0; }
.chat-input-area { flex-shrink: 0; position: relative; z-index: 20; background: rgba(255, 255, 255, 0.85); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top: 1px solid rgba(99, 102, 241, 0.06); }
.msg { display: flex; gap: 8px; max-width: 90%; animation: msgIn 0.35s ease; }
@keyframes msgIn { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
.msg.ai { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.msg.ai .msg-avatar { background: var(--primary-g); color: #fff; }
.msg.user .msg-avatar { background: var(--mint-g); color: #fff; }
.msg-bubble { padding: 10px 14px; border-radius: 18px; font-size: 13px; line-height: 1.6; word-break: break-word; }
.msg.ai .msg-bubble { background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); border: 1px solid rgba(99, 102, 241, 0.08); color: var(--text); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--primary-g); color: #fff; border: none; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2); border-bottom-right-radius: 4px; }
.msg.user .msg-bubble .msg-time { color: rgba(255, 255, 255, 0.7); }
.msg-time { font-size: 9px; color: var(--text2); margin-top: 4px; text-align: right; }
.chat-input-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 16px; background: transparent; border-top: none; }
.chat-input-bar input { flex: 1; padding: 10px 16px; border-radius: 22px; border: 1px solid transparent; background: rgba(99, 102, 241, 0.06); color: var(--text); font-size: 13px; outline: none; transition: all 0.2s; }
.chat-input-bar input::placeholder { color: var(--text2); }
.chat-input-bar input:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.9); }
.chat-input-bar .send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-g); border: none; color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); flex-shrink: 0; }
.chat-input-bar .send-btn:active { transform: scale(0.88); }
.chat-input-bar .plus-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-l); border: 1px solid rgba(99, 102, 241, 0.15); color: var(--primary); font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.chat-input-bar .plus-btn:active { transform: scale(0.85); }
.chat-input-bar .plus-btn.active { background: var(--primary-g); color: #fff; transform: rotate(45deg); }
.chat-menu {
  position: absolute; bottom: 62px; right: 16px; background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 6px; box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
  z-index: 30; display: none; flex-direction: column; gap: 2px; min-width: 120px;
  animation: menuIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-menu.show { display: flex; }
@keyframes menuIn { 0% { opacity: 0; transform: translateY(8px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.chat-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; color: var(--text); }
.chat-menu-item:active { background: var(--primary-l); }
.chat-menu-item .cmi-icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.chat-menu-item .cmi-label { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ===== 日历 ===== */
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.calendar-header h2 { font-size: 18px; color: var(--text); font-weight: 700; }
.calendar-header .nav-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.calendar-header .nav-btn:active { background: var(--primary-l); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--text2); padding: 8px 0; border-bottom: 1px solid rgba(99, 102, 241, 0.06); }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 8px 0; }
.calendar-days span { text-align: center; padding: 7px 0; font-size: 13px; color: var(--text); border-radius: 50%; cursor: pointer; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.calendar-days span.today { background: var(--primary-g); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); }
.calendar-days span.other { color: var(--text3); }

/* ===== 设置项 ===== */
.setting-group { margin-bottom: 18px; }
.setting-group-title { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: 0.8px; margin-bottom: 8px; padding-left: 4px; text-transform: uppercase; }
.setting-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin-bottom: 6px; backdrop-filter: blur(10px); }
.setting-item .label { color: var(--text); font-size: 13px; font-weight: 500; }
.setting-item .value { color: var(--text2); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.setting-item input, .setting-item select { background: var(--card-bg); border: 1px solid rgba(99, 102, 241, 0.1); border-radius: 10px; padding: 7px 12px; color: var(--text); font-size: 12px; outline: none; width: 160px; }
.setting-item input:focus, .setting-item select:focus { border-color: var(--primary); }
.setting-item select option { background: var(--bg); color: var(--text); }
.setting-btn { padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(99, 102, 241, 0.15); background: var(--card-bg); color: var(--text2); font-size: 11px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.2s; }
.setting-btn:active { transform: scale(0.92); }
.setting-btn-primary { background: var(--primary-g); border: none; color: #fff; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2); }

/* ===== 开关 ===== */
.toggle { width: 42px; height: 22px; border-radius: 11px; background: rgba(28, 28, 30, 0.12); position: relative; cursor: pointer; flex-shrink: 0; transition: all var(--transition-duration, 0.3s) ease; }
.toggle.active { background: var(--primary-g); box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: all var(--transition-duration, 0.3s) ease cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.toggle.active::after { transform: translateX(20px); }

/* ===== 计算器 ===== */
.calc-display { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; text-align: right; min-height: 90px; display: flex; flex-direction: column; justify-content: flex-end; }
.calc-display .expr { font-size: 14px; color: var(--text2); word-break: break-all; min-height: 22px; }
.calc-display .result { font-size: 34px; font-weight: 800; color: var(--text); word-break: break-all; }
.calc-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calc-btn { height: 56px; border-radius: 14px; border: none; font-size: 19px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.calc-btn:active { transform: scale(0.9); }
.calc-btn.num { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text); }
.calc-btn.op { background: var(--primary-l); border: 1px solid rgba(99, 102, 241, 0.1); color: var(--primary); }
.calc-btn.fn { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text2); }
.calc-btn.eq { background: var(--primary-g); border: none; color: #fff; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); }

/* ===== 备忘录 ===== */
.memo-item { padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin-bottom: 8px; border-left: 3px solid var(--primary); cursor: pointer; }
.memo-item:active { background: var(--primary-l); }
.memo-item .memo-text { color: var(--text); font-size: 13px; line-height: 1.5; }
.memo-item .memo-time { color: var(--text2); font-size: 10px; margin-top: 5px; }
.memo-input { display: flex; gap: 8px; margin-bottom: 14px; }
.memo-input input { flex: 1; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(99, 102, 241, 0.1); background: var(--card-bg); color: var(--text); font-size: 13px; outline: none; }
.memo-input input::placeholder { color: var(--text2); }
.memo-input button { padding: 10px 18px; border-radius: var(--radius-sm); background: var(--primary-g); border: none; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2); }

/* ===== 交易记录 ===== */
.tx-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin-bottom: 6px; transition: all 0.2s; }
.tx-item:active { transform: scale(0.97); }
.tx-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.tx-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tx-desc { font-size: 10px; color: var(--text2); margin-top: 1px; }
.tx-amount { font-size: 15px; font-weight: 700; flex-shrink: 0; margin-left: 8px; }
.wallet-balance { text-align: center; padding: 28px 0; }
.wallet-balance .amount { font-size: 44px; font-weight: 900; color: var(--text); background: var(--primary-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.wallet-balance .label { color: var(--text2); font-size: 13px; margin-top: 4px; }

/* ===== 商城 ===== */
.shop-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(10px); }
.shop-item .shop-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.shop-item .shop-info { flex: 1; }
.shop-item .shop-name { color: var(--text); font-size: 14px; font-weight: 600; }
.shop-item .shop-price { color: var(--primary); font-size: 12px; margin-top: 2px; font-weight: 500; }
.shop-item .shop-btn { padding: 7px 16px; border-radius: 10px; background: var(--primary-g); border: none; color: #fff; font-size: 12px; cursor: pointer; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2); }
.shop-item .shop-btn:active { transform: scale(0.92); }

/* ===== Toast ===== */
.toast { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(44, 44, 46, 0.9); backdrop-filter: var(--blur); color: #fff; padding: 10px 22px; border-radius: 14px; font-size: 12px; z-index: 300; animation: toastIn 0.35s ease; pointer-events: none; }
@keyframes toastIn { 0% { opacity: 0; transform: translateX(-50%) translateY(-16px); } 100% { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== 响应式 ===== */
@media (max-width: 420px) { .phone-frame { width: 100vw; height: 100vh; border-radius: 0; padding: 0; box-shadow: none; } .phone-screen { border-radius: 0; } }

/* ===== 弹窗/遮罩 ===== */
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(28, 28, 30, 0.5); backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: modalFadeIn 0.25s ease; }
@keyframes modalFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.modal-card { background: var(--bg-gradient); border-radius: var(--radius-lg); padding: 28px 22px; width: 320px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(99, 102, 241, 0.12); position: relative; animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-card::-webkit-scrollbar { width: 0; }
@keyframes modalSlideUp { 0% { transform: translateY(40px) scale(0.92); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text2); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-close:active { transform: scale(0.85); background: var(--primary-l); color: var(--primary); }
.modal-icon { text-align: center; font-size: 50px; margin-bottom: 2px; animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bounceIn { 0% { transform: scale(0); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.modal-title { text-align: center; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-balance { text-align: center; font-size: 12px; color: var(--text2); margin-bottom: 16px; padding: 8px 14px; background: var(--card-bg); border-radius: 12px; display: inline-block; width: 100%; border: 1px solid var(--card-border); }
.modal-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.modal-field label { font-size: 12px; color: var(--text2); font-weight: 500; letter-spacing: 0.5px; padding-left: 2px; }
.modal-field input, .modal-field select { padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(99, 102, 241, 0.12); background: var(--card-bg); color: var(--text); font-size: 14px; outline: none; transition: all 0.2s; }
.modal-field input:focus, .modal-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.modal-btn { width: 100%; padding: 13px; border-radius: 14px; background: var(--primary-g); border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25); transition: all 0.2s; }
.modal-btn:active { transform: scale(0.96); }
.modal-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 签到 ===== */
.checkin-card { background: var(--card-bg); backdrop-filter: var(--blur); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 20px; text-align: center; margin-bottom: 16px; box-shadow: var(--card-shadow); }
.checkin-icon { font-size: 48px; margin-bottom: 8px; }
.checkin-title { font-size: 18px; font-weight: 700; color: var(--text); }
.checkin-status { font-size: 14px; color: var(--text2); margin: 8px 0; }
.checkin-days { font-size: 13px; color: var(--primary); font-weight: 600; }
.checkin-btn { margin-top: 14px; padding: 10px 32px; border-radius: var(--radius-sm); border: none; background: var(--primary-g); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); transition: 0.2s; }
.checkin-btn:active { transform: scale(0.94); }
.checkin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.checkin-quota { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 16px; }
.quota-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.quota-progress { width: 100%; height: 6px; background: rgba(99, 102, 241, 0.1); border-radius: 4px; overflow: hidden; margin: 6px 0; }
.quota-progress span { display: block; height: 100%; background: var(--primary-g); border-radius: 4px; transition: all var(--transition-duration, 0.3s) ease; }
.quota-text { font-size: 12px; color: var(--text2); }
.quota-earn { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ===== 下拉状态栏（澎湃OS4控制中心风格） ===== */
.pull-down-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); z-index: 900; display: none; animation: fadeIn 0.25s ease; }
.pull-down-overlay.show { display: block; }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.pull-down-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
  backdrop-filter: var(--blur-heavy); -webkit-backdrop-filter: var(--blur-heavy);
  z-index: 1000; padding: 70px 20px 36px; border-radius: 0 0 30px 30px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pull-down-panel.show { transform: translateY(0); }
.pd-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: 3px solid rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-signature { color: rgba(255, 255, 255, 0.9); font-size: 14px; margin-bottom: 14px; text-align: center; max-width: 80%; }
.pd-time { color: #fff; font-size: 42px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.pd-date { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-top: 6px; letter-spacing: 1px; }

/* ===== 锁屏 ===== */
.lock-screen { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #1c1c1e; }
.lock-screen.hidden { display: none; }
.lock-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #0c0c1d, #1a1a3e, #2d1b69); z-index: -1; }
.lock-time { color: #fff; font-size: 72px; font-weight: 700; margin-top: 100px; letter-spacing: 3px; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.lock-date { color: rgba(255, 255, 255, 0.7); font-size: 16px; margin-top: 8px; letter-spacing: 1px; }
.lock-hint { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-top: auto; margin-bottom: 12px; padding-bottom: 60px; }
.lock-unlock-area { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); width: 120px; height: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lock-unlock-icon { font-size: 28px; animation: bounceUp 2s infinite; opacity: 0.7; }

/* ===== 锁屏音乐播放器（日期下方居中，不挡解锁区） ===== */
.lock-music-player { display: none; }
.lock-music-player .lmp-inner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.lock-music-player .lmp-info { flex: 1; min-width: 0; }
.lock-music-player .lmp-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-music-player .lmp-artist { font-size: 11px; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-music-player .lmp-play { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.lock-music-player .lmp-next { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
@keyframes bounceUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lock-pad { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: var(--blur-heavy); padding: 20px 30px 40px; border-radius: 30px 30px 0 0; animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.lock-pad-title { text-align: center; color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.lock-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.lock-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all 0.2s; }
.lock-dot.active { background: var(--primary); box-shadow: 0 0 12px rgba(99, 102, 241, 0.5); }
.lock-dot.error { background: #ff5252; box-shadow: 0 0 12px rgba(255, 82, 82, 0.5); }
.lock-pad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.lock-pad-grid button { height: 60px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 26px; font-weight: 500; cursor: pointer; transition: all 0.15s; width: 60px; margin: 0 auto; }
.lock-pad-grid button:active { background: rgba(255, 255, 255, 0.25); transform: scale(0.9); }
.lock-pad-error { text-align: center; color: #ff5252; font-size: 13px; margin-top: 12px; min-height: 20px; }

/* ===== 激活/登录界面 ===== */
.activate-screen { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; background: linear-gradient(160deg, #667eea, #764ba2, #f093fb); display: none; align-items: center; justify-content: center; padding: 30px; }
.activate-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: var(--blur); border-radius: 24px; padding: 32px 28px; width: 100%; max-width: 320px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.activate-logo { text-align: center; font-size: 56px; margin-bottom: 8px; }
.activate-title { text-align: center; font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.activate-subtitle { text-align: center; font-size: 13px; color: #999; margin-bottom: 24px; }
.activate-input { width: 100%; padding: 13px 16px; margin-bottom: 12px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; outline: none; box-sizing: border-box; transition: all 0.2s; }
.activate-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); }
.activate-btn { width: 100%; padding: 13px; border: none; border-radius: 12px; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 10px; transition: all 0.2s; }
.activate-btn:active { transform: scale(0.97); }
.activate-btn-secondary { background: #f0f0f0; color: #667eea; }
.activate-error { color: #ff5252; font-size: 12px; text-align: center; min-height: 18px; margin-bottom: 8px; }

/* ===== 天气应用 ===== */
.weather-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.weather-empty-icon { font-size: 64px; margin-bottom: 12px; }
.weather-empty-text { font-size: 15px; color: var(--text2); margin-bottom: 20px; }
.weather-pick-btn { padding: 12px 32px; border-radius: 24px; background: var(--primary-g); border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25); transition: all 0.2s; }
.weather-pick-btn:active { transform: scale(0.94); }
.weather-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; }
.weather-spinner { width: 44px; height: 44px; border: 4px solid rgba(99, 102, 241, 0.15); border-top-color: var(--primary); border-radius: 50%; animation: weatherSpin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes weatherSpin { to { transform: rotate(360deg); } }
.weather-loading-text { font-size: 14px; color: var(--text2); font-weight: 500; }
.weather-now-card { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 20px; padding: 24px 20px; margin-bottom: 16px; color: #fff; box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25); }
.weather-now-top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.weather-now-icon { font-size: 56px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)); }
.weather-now-main { display: flex; flex-direction: column; }
.weather-now-temp { font-size: 48px; font-weight: 900; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.weather-now-unit { font-size: 20px; font-weight: 500; opacity: 0.8; vertical-align: super; }
.weather-now-text { font-size: 16px; font-weight: 500; opacity: 0.9; margin-top: 4px; }
.weather-now-city { text-align: center; font-size: 13px; font-weight: 500; opacity: 0.85; padding: 6px 0; cursor: pointer; border-top: 1px solid rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 12px; transition: opacity 0.2s; }
.weather-now-city:active { opacity: 0.6; }
.weather-now-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weather-detail-item { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(10px); }
.wdi-icon { font-size: 16px; flex-shrink: 0; }
.wdi-label { font-size: 11px; opacity: 0.7; flex-shrink: 0; }
.wdi-value { font-size: 13px; font-weight: 600; margin-left: auto; }
.weather-forecast-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-left: 4px; }
.weather-forecast-row { display: flex; gap: 8px; margin-bottom: 16px; }
.weather-forecast-card { flex: 1; background: var(--card-bg); backdrop-filter: var(--blur); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: var(--card-shadow); transition: transform 0.2s; }
.weather-forecast-card:active { transform: scale(0.95); }
.wfc-day { font-size: 12px; font-weight: 600; color: var(--text); }
.wfc-date { font-size: 10px; color: var(--text2); margin-top: 2px; }
.wfc-icon { font-size: 32px; margin: 8px 0; line-height: 1; }
.wfc-text { font-size: 11px; color: var(--text2); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfc-temp { display: flex; justify-content: center; gap: 6px; font-size: 13px; }
.wfc-high { font-weight: 700; color: var(--accent); }
.wfc-low { font-weight: 500; color: var(--text2); }
.weather-actions { text-align: center; padding: 8px 0 16px; }
.weather-refresh-btn { padding: 10px 28px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: var(--card-shadow); transition: all 0.2s; }
.weather-refresh-btn:active { transform: scale(0.94); background: var(--primary-l); }

/* ===== 生活指数卡片 ===== */
.weather-indices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.weather-index-card { background: var(--card-bg); backdrop-filter: var(--blur); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--card-shadow); }
.wic-name { font-size: 12px; color: var(--text2); font-weight: 600; }
.wic-level { font-size: 16px; font-weight: 700; color: var(--primary); margin: 4px 0; }
.wic-content { font-size: 11px; color: var(--text2); line-height: 1.4; }

/* ===== 城市选择器（澎湃OS4风格三级弹窗） ===== */
.city-picker-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(28, 28, 30, 0.5); backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; animation: modalFadeIn 0.25s ease; }
.city-picker-card { background: var(--bg-gradient); border-radius: 22px; width: 350px; max-height: 78vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15); animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; }
.city-picker-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid rgba(99, 102, 241, 0.08); flex-shrink: 0; }
.city-picker-title { font-size: 16px; font-weight: 700; color: var(--text); }
.city-picker-close { width: 30px; height: 30px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text2); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.city-picker-close:active { transform: scale(0.85); background: var(--primary-l); color: var(--primary); }
.city-picker-path { font-size: 12px; color: var(--primary); font-weight: 600; padding: 10px 18px; background: var(--primary-l); border-bottom: 1px solid rgba(99, 102, 241, 0.08); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-picker-columns { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.city-picker-col { flex: 1; border-right: 1px solid rgba(99, 102, 241, 0.06); overflow: hidden; }
.city-picker-col:last-child { border-right: none; }
.city-picker-list { height: 100%; overflow-y: auto; padding: 4px; -webkit-overflow-scrolling: touch; }
.city-picker-list::-webkit-scrollbar { width: 0; }
.city-picker-item { padding: 10px 8px; font-size: 12px; color: var(--text); cursor: pointer; border-radius: 8px; text-align: center; transition: all 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-picker-item:active { background: var(--primary-l); }
.city-picker-item.selected { background: var(--primary-g); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2); }
.city-picker-footer { padding: 12px 18px; border-top: 1px solid rgba(99, 102, 241, 0.08); flex-shrink: 0; }
.city-picker-confirm { width: 100%; padding: 12px; border-radius: 14px; background: var(--primary-g); border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25); transition: all 0.2s; }
.city-picker-confirm:active { transform: scale(0.96); }
.city-picker-confirm:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ===== 编辑模式 ===== */
.app-grid.edit-mode .app-item { animation: iconShake 0.5s infinite; }
@keyframes iconShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }

/* ===== 朋友圈 ===== */
.moments-header { position: relative; height: 150px; overflow: hidden; border-radius: 0 0 20px 20px; }
.moments-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: 0; }
.moments-havatar { position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 8px; background: var(--primary-g); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); z-index: 2; overflow: hidden; }
.moments-havatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moments-hname { position: absolute; right: 80px; bottom: 26px; color: #fff; font-size: 16px; font-weight: 700; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); z-index: 2; }
.moments-input { display: flex; gap: 8px; padding: 12px 16px; background: var(--card-bg); border-bottom: 1px solid rgba(99, 102, 241, 0.06); }
.moments-input input { flex: 1; padding: 10px 14px; border-radius: 20px; border: 1px solid rgba(99, 102, 241, 0.1); background: var(--primary-l); font-size: 13px; outline: none; }
.moments-input input:focus { border-color: var(--primary); background: var(--card-bg); }
.moments-input button { padding: 10px 18px; border-radius: 20px; background: var(--primary-g); border: none; color: #fff; font-size: 13px; cursor: pointer; font-weight: 600; }
.moment-card { background: var(--card-bg); backdrop-filter: var(--blur); border: 1px solid var(--card-border); border-radius: 12px; margin: 10px 12px; padding: 14px; box-shadow: var(--card-shadow); }
.moment-top { display: flex; gap: 10px; align-items: center; }
.moment-uavatar { width: 40px; height: 40px; border-radius: 6px; background: var(--primary-l); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.moment-info { flex: 1; }
.moment-user { font-size: 14px; font-weight: 600; color: #576b95; }
.moment-time { font-size: 11px; color: var(--text2); margin-top: 2px; }
.moment-text { font-size: 14px; color: var(--text); line-height: 1.6; margin: 10px 0; padding-left: 50px; }
.moment-imgs { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 50px; margin-bottom: 8px; }
.moment-imgs img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; cursor: pointer; }
.moment-imgs img:only-child { width: 160px; height: 160px; }
.moment-actions { display: flex; justify-content: flex-end; gap: 16px; padding-left: 50px; border-top: 1px solid rgba(99, 102, 241, 0.06); padding-top: 8px; margin-top: 4px; }
.moment-like, .moment-cmtbtn { font-size: 12px; color: var(--text2); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.moment-like.liked { color: #e91e63; }
.moment-cmts { background: var(--primary-l); border-radius: 8px; padding: 8px 10px; margin: 8px 0 0 50px; font-size: 12px; color: var(--text); }
.moment-cmt { margin: 2px 0; }
.moment-cinput { display: flex; gap: 6px; padding-left: 50px; margin-top: 8px; }
.moment-cinput input { flex: 1; padding: 8px 12px; border-radius: 16px; border: 1px solid rgba(99, 102, 241, 0.1); background: var(--primary-l); font-size: 12px; outline: none; }
.moment-cinput button { padding: 8px 14px; border-radius: 16px; background: var(--primary-g); border: none; color: #fff; font-size: 12px; cursor: pointer; }

/* ===== 秒表 ===== */
.stopwatch-display { font-size: 60px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; padding: 30px 0; background: var(--card-bg); border-radius: var(--radius); margin-bottom: 16px; }
.stopwatch-btns { display: flex; gap: 12px; justify-content: center; }
.stopwatch-btns button { padding: 12px 28px; border-radius: 40px; border: none; font-size: 16px; font-weight: 600; background: var(--primary-g); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); cursor: pointer; }
.stopwatch-btns button:active { transform: scale(0.92); }

/* ===== 手电筒 ===== */
.flashlight-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.flashlight-toggle { width: 120px; height: 120px; border-radius: 50%; background: var(--card-bg); border: 4px solid var(--card-border); font-size: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }
.flashlight-toggle.on { background: #ffd54f; border-color: #ffb300; box-shadow: 0 0 40px rgba(255, 213, 79, 0.6); }
.flashlight-toggle:active { transform: scale(0.9); }
.flashlight-slider { width: 80%; margin-top: 30px; }

/* ===== 文件管理器 ===== */
.file-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); margin-bottom: 6px; }
.file-item .file-name { font-weight: 500; color: var(--text); }
.file-item .file-actions button { margin-left: 6px; padding: 4px 10px; border-radius: 8px; border: none; background: var(--primary-l); color: var(--primary); cursor: pointer; }

/* ===== 翻译 ===== */
.translate-box { display: flex; flex-direction: column; gap: 12px; }
.translate-box textarea { width: 100%; height: 120px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); resize: vertical; font-size: 14px; }
.translate-box .lang-row { display: flex; gap: 8px; align-items: center; }
.translate-box .lang-row select { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card-bg); }
.translate-box .translate-btn { padding: 10px; border-radius: 12px; background: var(--primary-g); color: #fff; border: none; font-size: 16px; cursor: pointer; }
.translate-box .result { background: var(--card-bg); padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); min-height: 60px; white-space: pre-wrap; }

/* ===== 个人资料 ===== */
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-l); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 12px; overflow: hidden; border: 3px solid var(--primary); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 通知中心 ===== */
.notification-item { padding: 12px 14px; background: var(--card-bg); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); margin-bottom: 8px; }
.notification-item.unread { border-left-color: var(--accent); }
.notification-item .notif-title { font-weight: 600; color: var(--text); }
.notification-item .notif-time { font-size: 11px; color: var(--text2); float: right; }

/* ===== 全局过渡 ===== */
.app-item, .app-icon, .search-bar, .widget-card, .widget-large,
.tool-card, .setting-btn, .calc-btn, .modal-btn, .shop-item,
.chat-menu-item, .setting-item, .tx-item, .weather-forecast-card {
  transition: all 0.2s ease;
}

/* ============================================================
   零辞小说模块样式
   ============================================================ */
.novel-container { padding: 14px; }
.novel-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: none; }
.novel-tabs::-webkit-scrollbar { display: none; }
.novel-tab { padding: 6px 14px; border-radius: 20px; background: var(--card-bg); font-size: 12px; white-space: nowrap; cursor: pointer; border: 1px solid var(--card-border); color: var(--text2); flex-shrink: 0; }
.novel-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.novel-search { display: flex; gap: 8px; margin-bottom: 12px; }
.novel-search input { flex: 1; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 13px; }
.novel-search button { padding: 8px 14px; border-radius: var(--radius-sm); border: none; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; }
.novel-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.novel-btn { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 12px; cursor: pointer; color: var(--text); }
.novel-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.novel-list { display: flex; flex-direction: column; gap: 10px; }
.novel-loading { text-align: center; padding: 40px; color: var(--text2); font-size: 14px; }
.novel-empty { text-align: center; padding: 40px; color: var(--text2); font-size: 14px; }
.novel-book-card { display: flex; gap: 12px; padding: 12px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--card-border); cursor: pointer; }
.novel-cover { width: 70px; height: 96px; border-radius: 6px; object-fit: cover; background: #eee; flex-shrink: 0; }
.novel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.novel-book-title { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novel-book-author { font-size: 12px; color: var(--text2); }
.novel-book-meta { font-size: 11px; color: var(--text3); }
.novel-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px; }
.novel-pagination button { padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 12px; cursor: pointer; }
.novel-pagination span { font-size: 12px; color: var(--text2); }
.novel-detail { padding: 14px; }
.novel-detail-header { display: flex; gap: 14px; margin-bottom: 14px; }
.novel-detail-cover { width: 100px; height: 140px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.novel-detail-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.novel-detail-title { font-size: 17px; font-weight: 700; color: var(--text); }
.novel-detail-author { font-size: 13px; color: var(--text2); }
.novel-detail-meta { font-size: 11px; color: var(--text3); }
.novel-detail-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.novel-tag { padding: 2px 8px; border-radius: 10px; background: var(--primary-l); color: var(--primary); font-size: 10px; }
.novel-detail-actions { display: flex; gap: 8px; margin-top: 8px; }
.novel-summary { margin-bottom: 14px; }
.novel-summary h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.novel-summary p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.novel-chapter-list h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.novel-chapter-item { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--card-bg); border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; font-size: 13px; color: var(--text); border: 1px solid var(--card-border); }
.novel-chapter-item:hover { background: var(--primary-l); }
.novel-back-btn { display: block; width: 100%; padding: 10px; margin-top: 16px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 13px; cursor: pointer; color: var(--text); text-align: center; }
.novel-reader { padding: 16px; min-height: 100vh; }
.novel-reader-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.05); }
.novel-reader-header button { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text2); }
.novel-reader-header span { font-size: 13px; color: var(--text2); flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novel-reader-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-align: center; color: var(--text); }
.novel-reader-content { font-size: inherit; line-height: inherit; color: inherit; padding-bottom: 40px; }
.novel-reader-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin-top: 20px; border-top: 1px solid rgba(0,0,0,.05); }
.novel-reader-nav button { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 12px; cursor: pointer; color: var(--text); }
.novel-reader-nav span { font-size: 12px; color: var(--text2); }
.novel-reader-actions { display: flex; gap: 10px; margin-top: 16px; }
.novel-reader-actions button { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 12px; cursor: pointer; color: var(--text); }
.novel-comment { padding: 10px 12px; background: var(--card-bg); border-radius: var(--radius-sm); margin-bottom: 8px; border: 1px solid var(--card-border); }
.novel-comment-user { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.novel-comment-user span { font-weight: 400; color: var(--text3); float: right; }
.novel-comment-content { font-size: 13px; color: var(--text2); line-height: 1.5; }
.novel-comment-input { display: flex; gap: 8px; padding: 10px 0; }
.novel-comment-input input { flex: 1; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 13px; }
.novel-comment-input button { padding: 8px 16px; border-radius: var(--radius-sm); border: none; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; }

/* ============================================================
   零辞音乐模块样式
   ============================================================ */
.music-container { padding: 14px; }
.music-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--card-border); padding-bottom: 8px; }
.music-tab { padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; color: var(--text2); border: 1px solid transparent; }
.music-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.music-search { display: flex; gap: 8px; margin-bottom: 12px; }
.music-search input { flex: 1; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 13px; }
.music-search button { padding: 8px 14px; border-radius: var(--radius-sm); border: none; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; }
.music-loading { text-align: center; padding: 40px; color: var(--text2); font-size: 14px; }
.music-empty { text-align: center; padding: 40px; color: var(--text2); font-size: 14px; }
.music-section { margin-bottom: 16px; }
.music-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.music-section button { padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); font-size: 12px; cursor: pointer; color: var(--text); margin-bottom: 10px; }
.music-playlist-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.music-playlist-row::-webkit-scrollbar { display: none; }
.music-playlist-card { flex-shrink: 0; width: 120px; cursor: pointer; }
.music-playlist-card img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: #eee; }
.music-playlist-card .music-playlist-name { font-size: 12px; font-weight: 600; color: var(--text); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-song-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card-bg); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; border: 1px solid var(--card-border); }
.music-song-item:active { transform: scale(0.98); }
.music-song-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.music-rank-num { width: 28px; text-align: center; font-size: 14px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.music-song-info { flex: 1; min-width: 0; }
.music-song-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-song-artist { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-collect-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: var(--primary); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* ============================================================
   零辞OS v3.1 - 桌面音乐小组件样式
   ============================================================ */
.music-desktop-widget { display: none; }
.music-desktop-widget .mdw-inner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.music-desktop-widget .mdw-info { flex: 1; min-width: 0; }
.music-desktop-widget .mdw-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-desktop-widget .mdw-artist { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-desktop-widget .mdw-play { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.music-desktop-widget .mdw-next { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: var(--text2); font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }