/* ========================================
   AI社交平台 "友圈" - 设计系统变量
   ======================================== */
:root {
  /* 主色系 */
  --color-orange: #FF6B35;
  --color-orange-light: #FFE4D9;
  --color-green: #3D9970;
  --color-green-light: #E0F0E6;
  --color-yellow: #FFCB47;
  --color-yellow-light: #FFF6D9;
  --color-yellow-dark: #E6A800;

  /* 背景色 */
  --bg-warm: #F5F0E8;
  --bg-white: #FFFFFF;
  --bg-banner: #FFE4D9;

  /* 文字色 */
  --text-primary: #0A0A0A;
  --text-secondary: #3D3D3D;
  --text-tertiary: #666666;
  --text-muted: #999999;

  /* 边框 */
  --border-light: #E6E6E6;
  --border-gray: #E5E5E5;

  /* 圆角 */
  --radius-card: 16px;
  --radius-button: 16px;
  --radius-pill: 18px;
  --radius-tag: 4px;
  --radius-avatar-sm: 20px;
  --radius-avatar-md: 28px;
  --radius-avatar-lg: 40px;
  --radius-circle: 50%;

  /* 字体 */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* 尺寸 */
  --status-bar-height: 62px;
  --tab-bar-height: 83px;
  --header-height: 56px;
  --page-width: 375px;
  --page-height: 812px;

  /* 阴影 */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-tab: 0 -1px 0 var(--border-light);
  --shadow-header: 0 1px 0 var(--border-light);
}

/* ========================================
   基础重置
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  font-family: var(--font-family);
  background: var(--bg-warm);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  touch-action: manipulation;
  margin: 0;
  padding: 0;
}

/* 大屏幕(平板/桌面)居中限制最大宽度 */
@media (min-width: 481px) {
  html, body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #app-shell {
    max-width: 480px !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
  }
  #auth-page, .auth-page {
    max-width: 480px !important;
    width: 100% !important;
    margin: 0 auto;
  }
  .permission-page {
    max-width: 480px !important;
    width: 100% !important;
    margin: 0 auto;
  }
}

/* 手机屏幕: 100%填充 */
@media (max-width: 480px) {
  #app-shell {
    width: 100% !important;
    height: 100dvh !important;
  }
}

/* 允许输入框选择文字 */
input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

/* ========================================
   移动端外壳 - 等比缩放适配
   ======================================== */
#app-shell {
  width: 100%;
  height: 100dvh;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* 移除 transform-origin (不再需要缩放) */

/* ========================================
   页面容器 - 5个页面叠加切换
   ======================================== */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition: opacity 0s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* 隐藏滚动条 */
.page::-webkit-scrollbar {
  display: none;
}
.page {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========================================
   状态栏 (62px)
   ======================================== */
.status-bar { display: none !important; } /* 隐藏模拟状态栏 */

.status-bar-hidden {
  height: var(--status-bar-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.status-bar .time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-bar .status-icons img {
  height: 12px;
}

/* ========================================
   通用头部
   ======================================== */
.app-header {
  height: 61px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.app-header .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-orange);
}

.app-header .header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-header .header-icons img {
  width: 22px;
  height: 22px;
}

/* 详情/发布/好友/个人页面头部 */
.nav-header {
  height: var(--header-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.nav-header .nav-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.nav-header .nav-title.left {
  text-align: left;
}

.nav-header .nav-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-orange);
  background: var(--color-orange);
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
}

.nav-header .nav-close {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.nav-header .nav-back {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.nav-header .nav-more {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* ========================================
   AI好友动态条 (Stories)
   ======================================== */
.stories-row {
  height: 107px;
  background: var(--bg-white);
  display: flex;
  align-items: flex-start;
  padding: 16px 0 16px 16px;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
}

.stories-row::-webkit-scrollbar { display: none; }

.story-item {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  position: relative;
  border: 2.5px solid transparent;
  background-clip: padding-box;
}

.story-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
  z-index: -1;
}

.story-avatar.ai-1 { background: var(--color-orange); }
.story-avatar.ai-2 { background: var(--color-green); }
.story-avatar.ai-3 { background: var(--color-yellow); color: var(--text-primary); }
.story-avatar.user {
  background: var(--bg-warm);
  border: 2px dashed var(--border-light);
  color: var(--text-muted);
}

.story-avatar .ai-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: var(--color-orange);
  border: 1.5px solid var(--bg-white);
}

.story-name {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   帖子卡片
   ======================================== */
.post-card {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.post-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.post-more {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.post-content {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}

.post-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.post-image.gradient-sunrise {
  background: linear-gradient(135deg, #FF6B35 0%, #FFCB47 100%);
}

.post-image.gradient-ocean {
  background: linear-gradient(135deg, #3D9970 0%, #2196F3 100%);
}

.post-image .image-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}

/* ========================================
   AI评价区
   ======================================== */
.ai-eval-section {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-eval-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

.ai-eval-title .expand-all {
  color: var(--color-orange);
  cursor: pointer;
}

.ai-eval-item {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-eval-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-eval-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.ai-eval-avatar.orange { background: var(--color-orange); }
.ai-eval-avatar.green { background: var(--color-green); }
.ai-eval-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }

.ai-eval-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-eval-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-tag);
  font-weight: 400;
}

.ai-eval-tag.orange { background: var(--color-orange-light); color: var(--color-orange); }
.ai-eval-tag.green { background: var(--color-green-light); color: var(--color-green); }
.ai-eval-tag.yellow { background: var(--color-yellow-light); color: var(--color-yellow-dark); }

.ai-eval-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   互动栏 (点赞/评论/转发/收藏)
   ======================================== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 0;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.action-item:active {
  background: var(--bg-warm);
}

.action-item img {
  width: 20px;
  height: 20px;
}

.action-item .count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.action-item.liked .count {
  color: var(--color-orange);
}

/* ========================================
   底部Tab栏
   ======================================== */
.tab-bar {
  height: var(--tab-bar-height);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  padding-top: 12px;
  flex-shrink: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  position: relative;
  color: var(--text-muted);
}

.tab-item .tab-active-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-orange);
  border-radius: 25px;
  z-index: 0;
}

.tab-item .tab-icon {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.tab-item .tab-icon svg {
  width: 100%;
  height: 100%;
}

.tab-item .tab-label {
  font-size: 10px;
  position: relative;
  z-index: 1;
}

.tab-item.active {
  color: white;
}

.tab-item.active .tab-label {
  color: white;
  font-weight: 600;
}

/* ========================================
   详情页 - 统计栏
   ======================================== */
.detail-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.detail-stats .stats-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.detail-stats .stat-item img {
  width: 18px;
  height: 18px;
}

.detail-stats .stat-item .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-stats .share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.detail-stats .share-btn img {
  width: 18px;
  height: 18px;
}

.detail-stats .share-btn .label {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========================================
   详情页 - 用户评论
   ======================================== */
.comments-section {
  background: var(--bg-white);
  padding: 0 16px;
}

.comments-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0 12px;
}

.comments-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.comments-count {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.comment-like {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.comment-like img {
  width: 14px;
  height: 14px;
}

/* ========================================
   评论输入栏
   ======================================== */
.comment-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.comment-input {
  flex: 1;
  height: 40px;
  background: var(--bg-warm);
  border-radius: 20px;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.comment-input::placeholder {
  color: var(--text-muted);
}

.emoji-btn {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.send-btn {
  width: 40px;
  height: 40px;
  background: var(--color-orange);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.send-btn img {
  width: 18px;
  height: 18px;
}

/* ========================================
   发布动态页
   ======================================== */
.publish-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  overflow-y: auto;
}

.text-input-area {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 14px;
  min-height: 100px;
}

.text-input-area textarea {
  width: 100%;
  min-height: 72px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  font-family: var(--font-family);
  line-height: 1.5;
}

.text-input-area textarea::placeholder {
  color: var(--text-muted);
}

.text-input-area .char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.image-picker-row {
  display: flex;
  gap: 8px;
}

.image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B35 0%, #FFCB47 100%);
  flex-shrink: 0;
}

.image-add-btn {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.image-add-btn img {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.ai-selector-row {
  display: flex;
  gap: 8px;
}

.ai-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.ai-option-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  position: relative;
}

.ai-option-avatar.orange { background: var(--color-orange); }
.ai-option-avatar.green { background: var(--color-green); }
.ai-option-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }
.ai-option-avatar.gray { background: var(--border-light); color: var(--text-muted); }

.ai-option-avatar .check-mark {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--color-green);
  border-radius: var(--radius-circle);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-option-avatar .check-mark img {
  width: 10px;
  height: 10px;
}

.ai-option-name {
  font-size: 10px;
  color: var(--text-secondary);
}

.topic-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-tag {
  padding: 6px 12px;
  background: var(--color-orange-light);
  color: var(--color-orange);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

.topic-tag.add {
  background: var(--bg-warm);
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
}

.settings-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

.settings-section {
  display: flex;
  flex-direction: column;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item img.settings-icon {
  width: 20px;
  height: 20px;
}

.settings-item .settings-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.settings-item .settings-value {
  font-size: 13px;
  color: var(--text-muted);
}

.settings-item img.settings-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.3;
}

/* ========================================
   AI好友列表页
   ======================================== */
.ai-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-orange-light);
  flex-shrink: 0;
}

.ai-banner-icon {
  width: 24px;
  height: 24px;
  background: var(--color-orange);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.ai-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-banner-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.ai-list-container {
  flex: 1;
  background: var(--bg-warm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.ai-list-container::-webkit-scrollbar { display: none; }

.ai-friend-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-avatar-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.ai-card-avatar.orange { background: var(--color-orange); }
.ai-card-avatar.green { background: var(--color-green); }
.ai-card-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }

.ai-card-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--color-green);
  border-radius: var(--radius-circle);
  border: 2px solid white;
}

.ai-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-card-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-tag);
}

.ai-card-tag.orange { background: var(--color-orange-light); color: var(--color-orange); }
.ai-card-tag.green { background: var(--color-green-light); color: var(--color-green); }
.ai-card-tag.yellow { background: var(--color-yellow-light); color: var(--color-yellow-dark); }

.ai-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 18px;
}

.ai-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-card-stats {
  display: flex;
  gap: 16px;
}

.ai-card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-card-stat .num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-card-stat .label {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-card-chat-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ai-card-chat-btn.orange { background: var(--color-orange); color: white; }
.ai-card-chat-btn.green { background: var(--color-green); color: white; }
.ai-card-chat-btn.yellow { background: var(--color-yellow); color: var(--text-primary); }

/* ========================================
   个人主页
   ======================================== */
.profile-hero {
  background: var(--bg-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-avatar-lg);
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255, 107, 53, 0.3);
}

.profile-stats-col {
  flex: 1;
  display: flex;
  justify-content: space-around;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.profile-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-verify {
  width: 16px;
  height: 16px;
  background: var(--color-orange);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-verify img {
  width: 10px;
  height: 6px;
}

.profile-bio {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 20px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.profile-btn {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn.primary {
  background: var(--color-orange);
  color: white;
}

.profile-btn.secondary {
  background: var(--bg-warm);
  color: var(--text-primary);
}

.profile-tabs {
  display: flex;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.profile-tab {
  flex: 1;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-tab .tab-text {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-tab.active .tab-text {
  color: var(--color-orange);
  font-weight: 600;
}

.profile-tab .tab-indicator {
  width: 24px;
  height: 3px;
  background: transparent;
  border-radius: 2px;
}

.profile-tab.active .tab-indicator {
  background: var(--color-orange);
}

.profile-content {
  flex: 1;
  background: var(--bg-warm);
  padding: 2px;
  overflow-y: auto;
}

.profile-content::-webkit-scrollbar { display: none; }

.post-grid {
  display: flex;
  gap: 2px;
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grid-item {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item.gradient-1 {
  background: linear-gradient(135deg, #FF6B35 0%, #FFCC47 100%);
}

.grid-item.gradient-2 {
  background: linear-gradient(135deg, #FFCC47 0%, #3D9970 100%);
}

.grid-item.gradient-3 {
  background: linear-gradient(135deg, #3D9970 0%, #2196F3 100%);
}

.grid-item.solid-orange {
  background: var(--color-orange);
}

.grid-item.solid-white {
  background: white;
  border: 1px solid var(--border-light);
}

.grid-item .grid-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 12px;
}

.grid-item .grid-icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.page.active .post-card,
.page.active .ai-friend-card {
  animation: slideUp 0.3s ease forwards;
}

/* ========================================
   Toast 提示
   ======================================== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

/* ========================================
   分割线
   ======================================== */
.divider {
  height: 8px;
  background: var(--bg-warm);
  flex-shrink: 0;
}

/* 内容区留出底部Tab栏空间 */
.has-tab-bar {
  padding-bottom: var(--tab-bar-height);
}

/* ========================================
   Tab栏 - 内联SVG版本更新
   ======================================== */
.tab-item {
  position: relative;
}

.tab-item .tab-active-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 32px;
  background: var(--color-orange-light);
  border-radius: 16px;
  z-index: 0;
}

.tab-item .tab-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.tab-item .tab-icon svg {
  width: 22px;
  height: 22px;
}

.tab-item.active .tab-icon {
  color: var(--color-orange);
}

/* ========================================
   通用：nav-back / header-icon (div + 内联SVG)
   ======================================== */
.nav-back {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-back svg {
  width: 24px;
  height: 24px;
}

.app-header .header-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

.app-header .header-icon svg {
  width: 22px;
  height: 22px;
}

.app-header .page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========================================
   深色状态栏（通话页面用）
   ======================================== */
.status-bar.dark {
  background: transparent;
}

.status-bar.dark .time {
  color: #FFFFFF;
}

/* 通话页面背景 */
#page-voice-call {
  background: #1A1A2E;
}

#page-video-call {
  background: #0D0D1A;
}

/* ========================================
   Section Card 通用容器
   ======================================== */
.section-card {
  background: var(--bg-white);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-card + .section-card {
  margin-top: 8px;
}

.section-card .section-label {
  margin-bottom: 0;
}

/* ========================================
   好友列表页
   ======================================== */
.ai-friends-mini-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.ai-friends-mini-row::-webkit-scrollbar { display: none; }

.ai-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}

.ai-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.ai-mini-avatar.orange { background: var(--color-orange); }
.ai-mini-avatar.green { background: var(--color-green); }
.ai-mini-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }
.ai-mini-avatar.gray {
  background: var(--bg-warm);
  color: var(--text-muted);
}

.ai-mini-avatar.gray svg {
  width: 20px;
  height: 20px;
}

.ai-mini-name {
  font-size: 11px;
  color: var(--text-secondary);
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.friend-item:last-child {
  border-bottom: none;
}

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.friend-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.friend-status {
  font-size: 12px;
  color: var(--text-muted);
}

.friend-status.online {
  color: var(--color-green);
}

.friend-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ========================================
   添加好友页
   ======================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
}

.search-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-icon svg {
  width: 16px;
  height: 16px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  height: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.quick-actions {
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.quick-action-icon.orange { background: var(--color-orange); }
.quick-action-icon.green { background: var(--color-green); }

.quick-action-icon svg {
  width: 24px;
  height: 24px;
}

.quick-action-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.request-item:last-child {
  border-bottom: none;
}

.request-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.request-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.request-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.request-source {
  font-size: 12px;
  color: var(--text-muted);
}

.request-btns {
  display: flex;
  gap: 8px;
}

.request-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.request-btn.accept {
  background: var(--color-orange);
  color: white;
}

.request-btn.reject {
  background: var(--bg-warm);
  color: var(--text-secondary);
}

/* ========================================
   聊天列表页
   ======================================== */
.chat-list {
  display: flex;
  flex-direction: column;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.chat-item:active {
  background: var(--bg-warm);
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}

.chat-avatar.orange { background: var(--color-orange); color: white; }
.chat-avatar.green { background: var(--color-green); color: white; }
.chat-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }

.chat-avatar.ai-badge-wrap .mini-ai-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: white;
  color: var(--color-orange);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1.5px solid var(--bg-white);
}

.chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-preview {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-badge {
  min-width: 20px;
  height: 20px;
  background: var(--color-orange);
  color: white;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  flex-shrink: 0;
}

/* ========================================
   聊天详情页
   ======================================== */
.chat-detail-header {
  height: var(--header-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-detail-header .nav-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-call-btns {
  display: flex;
  gap: 16px;
}

.call-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

.call-btn svg {
  width: 22px;
  height: 22px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-warm);
}

.chat-messages::-webkit-scrollbar { display: none; }

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.msg-row.me {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-bubble.me {
  background: var(--color-orange);
  color: white;
  border-bottom-right-radius: 4px;
}

.msg-bubble.other {
  background: var(--bg-white);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.msg-text {
  word-break: break-word;
}

.msg-image {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #FF6B35 0%, #FFCB47 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-image-placeholder {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-image-placeholder svg {
  width: 48px;
  height: 48px;
}

.msg-video {
  width: 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #3D9970 0%, #2196F3 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-video-placeholder {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-video-placeholder svg {
  width: 48px;
  height: 48px;
}

.msg-video-play {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-video-play svg {
  width: 40px;
  height: 40px;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.input-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
}

.input-icon svg {
  width: 24px;
  height: 24px;
}

.chat-input-wrap {
  flex: 1;
  height: 36px;
  background: var(--bg-warm);
  border-radius: 18px;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.chat-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  padding: 6px 16px;
  background: var(--color-orange);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========================================
   通话页面 - 语音 & 视频
   ======================================== */
.call-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.call-page.voice {
  background: #1A1A2E;
}

.call-page.video {
  background: #0D0D1A;
}

.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 8px;
}

.call-name {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

.call-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.call-controls {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.call-btn-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background 0.2s;
}

.call-btn-icon svg {
  width: 28px;
  height: 28px;
}

.call-control.active .call-btn-icon {
  background: #FFFFFF;
  color: #1A1A2E;
}

.call-control.end .call-btn-icon {
  background: #FF3B30;
  color: #FFFFFF;
}

.call-control span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   视频通话页面
   ======================================== */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A2E 0%, #0D0D1A 100%);
}

.video-silhouette {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 600;
  opacity: 0.4;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-info {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.video-self-view {
  position: absolute;
  top: 80px;
  right: 16px;
  width: 90px;
  height: 130px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.self-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.video-controls {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  z-index: 2;
}

/* ========================================
   动画补充
   ======================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.call-status {
  animation: pulse 2s ease-in-out infinite;
}

.page.active .chat-item,
.page.active .friend-item,
.page.active .request-item {
  animation: slideUp 0.3s ease forwards;
}

/* 通话页面无滚动 */
#page-voice-call,
#page-video-call {
  overflow: hidden;
}

/* ========================================
   新增：好友/聊天/通话页面样式
   ======================================== */

/* 深色状态栏 */
.status-bar.dark {
  background: #1A1A2E;
  color: white;
}
.status-bar.dark .time {
  color: white;
}

/* 页面标题 & 头部 SVG 图标 */
.app-header .page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

.header-icon svg {
  width: 100%;
  height: 100%;
}

/* 通用卡片 */
.section-card {
  background: var(--bg-white);
  padding: 16px 20px;
  margin-bottom: 8px;
}

.section-card .section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* AI 好友横向条 */
.ai-friends-mini-row {
  display: flex;
  gap: 16px;
}

.ai-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ai-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.ai-mini-avatar.orange { background: var(--color-orange); }
.ai-mini-avatar.green { background: var(--color-green); }
.ai-mini-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }
.ai-mini-avatar.gray {
  background: var(--bg-warm);
  color: var(--text-muted);
}
.ai-mini-avatar.gray svg {
  width: 24px;
  height: 24px;
}

.ai-mini-name {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 好友列表 */
.friends-list {
  padding-top: 12px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 0 -20px;
  cursor: pointer;
}

.friend-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.friend-status {
  font-size: 12px;
}

.friend-status.online { color: var(--color-green); }
.friend-status.away { color: var(--text-muted); }
.friend-status.offline { color: var(--text-muted); }

.friend-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* 添加好友页 */
.search-card {
  padding: 12px 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-warm);
  border-radius: 20px;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-icon svg {
  width: 100%;
  height: 100%;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.quick-actions {
  display: flex;
  padding: 16px 0;
}

.quick-action-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-icon.orange { background: var(--color-orange-light); color: var(--color-orange); }
.quick-action-icon.green { background: var(--color-green-light); color: var(--color-green); }

.quick-action-icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.requests-list {
  padding-top: 12px;
}

.request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 0 -20px;
}

.request-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.request-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.request-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.request-source {
  font-size: 11px;
  color: var(--text-muted);
}

.request-btns {
  display: flex;
  gap: 8px;
}

.request-btn {
  width: 56px;
  height: 32px;
  border-radius: 16px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.request-btn.accept {
  background: var(--color-orange);
  color: white;
}

.request-btn.reject {
  background: var(--bg-warm);
  color: var(--text-muted);
}

/* 聊天列表 */
.chat-list {
  background: var(--bg-white);
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.chat-avatar.orange { background: var(--color-orange); color: white; }
.chat-avatar.green { background: var(--color-green); color: white; }
.chat-avatar.yellow { background: var(--color-yellow); color: var(--text-primary); }

.chat-avatar.ai-badge-wrap {
  position: relative;
}

.mini-ai-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--color-orange);
  border-radius: var(--radius-circle);
  font-size: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-preview {
  font-size: 13px;
  color: var(--text-secondary);
}

.chat-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-orange);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 聊天详情页 */
.chat-detail-header {
  height: var(--header-height);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-detail-header .nav-back {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-detail-header .nav-back svg {
  width: 100%;
  height: 100%;
}

.chat-call-btns {
  display: flex;
  gap: 20px;
}

.call-btn {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

.call-btn svg {
  width: 100%;
  height: 100%;
}

.chat-messages {
  flex: 1;
  background: #E8E8E8;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.msg-row.me {
  justify-content: flex-end;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 240px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.msg-bubble.other {
  background: var(--bg-white);
  color: var(--text-primary);
}

.msg-bubble.me {
  background: var(--color-orange);
  color: white;
}

.msg-bubble.image,
.msg-bubble.video {
  padding: 4px;
  overflow: hidden;
}

.msg-image,
.msg-video {
  width: 160px;
  height: 120px;
  border-radius: 8px;
  background: #D4C4B5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.msg-image-placeholder,
.msg-video-placeholder {
  width: 40px;
  height: 40px;
  color: white;
}

.msg-image-placeholder svg,
.msg-video-placeholder svg {
  width: 100%;
  height: 100%;
}

.msg-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
}

.chat-input-bar {
  height: 60px;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  flex-shrink: 0;
}

.input-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text-primary);
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.chat-input-wrap {
  flex: 1;
  height: 36px;
  background: var(--bg-warm);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  height: 32px;
  padding: 0 14px;
  background: var(--color-orange);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 通话页面 */
#page-voice-call,
#page-video-call {
  background: #1A1A2E;
  color: white;
}

.call-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 100px;
}

.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

.call-name {
  font-size: 24px;
  font-weight: 600;
  color: white;
}

.call-status {
  font-size: 14px;
  color: #9090A0;
}

.call-controls,
.video-controls {
  display: flex;
  gap: 50px;
  margin-top: 60px;
}

.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.call-control span {
  font-size: 10px;
  color: #9090A0;
}

.call-btn-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  background: #3A3A4E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.call-btn-icon svg {
  width: 28px;
  height: 28px;
}

.call-control.active .call-btn-icon {
  background: #5A5A6E;
}

.call-control.end .call-btn-icon {
  background: #D9363E;
}

/* 视频通话页面 */
.call-page.video {
  position: relative;
  padding: 0;
  justify-content: flex-end;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1A1A2E;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-silhouette {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
}

.video-overlay {
  position: absolute;
  top: 62px;
  left: 0;
  width: 100%;
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.video-info {
  text-align: center;
  flex: 1;
}

.video-self-view {
  width: 72px;
  height: 100px;
  background: #3A3A4E;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.self-avatar {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-orange);
}

.video-controls {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

/* 导航返回按钮 SVG 样式 */
.nav-back {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-back svg {
  width: 100%;
  height: 100%;
}

/* ========================================
   AI 生活模块样式
   ======================================== */

/* AI生活首页 */
.ai-life-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 16px 24px;
  position: relative;
  overflow: hidden;
}
.ai-life-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.ai-life-header::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.ai-life-title {
  font-size: 24px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.ai-life-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.8);
  margin-top: 6px; position: relative; z-index: 1;
}
.ai-life-membership-btn {
  position: absolute; top: 60px; right: 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; z-index: 2;
}

/* AI工具宫格 */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  flex: 1; overflow-y: auto;
}
.ai-tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ai-tool-card:active { transform: scale(0.97); }
.ai-tool-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ai-tool-icon svg { width: 28px; height: 28px; }
.ai-tool-name {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
}
.ai-tool-desc {
  font-size: 11px; color: var(--text-muted);
}
.ai-tool-badge {
  position: absolute; top: 8px; right: 8px;
  background: #FF3B30; color: #fff;
  font-size: 9px; font-weight: 600;
  padding: 2px 6px; border-radius: 8px;
}
.ai-tool-badge.trial {
  background: var(--color-green);
}

/* AI工具通用页面样式 */
.ai-tool-page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 60px 16px 16px;
  position: relative;
}
.ai-tool-header-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ai-tool-header-icon svg { width: 22px; height: 22px; }
.ai-tool-header-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
}
.ai-tool-header-sub {
  font-size: 11px; color: var(--text-muted);
}

/* AI分析卡片通用 */
.ai-insight-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #d0deff;
}
.ai-insight-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.ai-insight-badge {
  background: #667eea; color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 8px;
}
.ai-insight-title {
  font-size: 13px; font-weight: 600;
  color: #333;
}
.ai-insight-text {
  font-size: 12px; color: #555;
  line-height: 1.6;
}

/* 会员提示条 */
.membership-banner {
  margin: 12px 16px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.membership-banner-text {
  color: #fff; font-size: 12px; font-weight: 500;
}
.membership-banner-btn {
  background: #fff; color: #FF6B35;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 12px;
}

/* === AI规划 === */
.planning-view-tabs {
  display: flex; padding: 0 16px; gap: 8px;
  margin-bottom: 12px;
}
.planning-tab {
  padding: 6px 16px; border-radius: 16px;
  font-size: 13px; font-weight: 500;
  background: var(--bg-white); color: var(--text-tertiary);
  border: 1px solid var(--border-light);
  cursor: pointer;
}
.planning-tab.active {
  background: #667eea; color: #fff; border-color: #667eea;
}
.planning-calendar {
  margin: 0 16px 12px;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 12px;
}
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}
.calendar-weekday {
  text-align: center; font-size: 11px;
  color: var(--text-muted); font-weight: 500;
}
.calendar-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; border-radius: 8px;
  cursor: pointer; position: relative;
  color: var(--text-primary);
}
.calendar-day.other { color: var(--text-muted); opacity: 0.4; }
.calendar-day.today { background: #667eea; color: #fff; font-weight: 700; }
.calendar-day.has-event::after {
  content: ''; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-orange);
}
.calendar-day.today.has-event::after { background: #fff; }

.planning-list { margin: 0 16px; }
.planning-item {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.planning-item-time {
  font-size: 12px; font-weight: 600;
  color: var(--text-tertiary);
  min-width: 42px;
}
.planning-item-content { flex: 1; }
.planning-item-title {
  font-size: 14px; font-weight: 500;
  color: var(--text-primary);
}
.planning-item.done .planning-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}
.planning-item-priority {
  width: 4px; height: 32px; border-radius: 2px;
}
.priority-high { background: #FF3B30; }
.priority-medium { background: #FF9500; }
.priority-low { background: #34C759; }
.planning-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.planning-checkbox.checked {
  background: #34C759; border-color: #34C759;
}
.planning-checkbox.checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
}

/* === AI记账 === */
.accounting-summary {
  margin: 16px;
  background: linear-gradient(135deg, #4ECDC4, #44A08D);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
}
.accounting-balance {
  font-size: 32px; font-weight: 700;
  margin-bottom: 4px;
}
.accounting-balance-label {
  font-size: 12px; opacity: 0.8;
}
.accounting-stats {
  display: flex; gap: 24px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2);
}
.accounting-stat-item { flex: 1; }
.accounting-stat-label { font-size: 11px; opacity: 0.8; }
.accounting-stat-value { font-size: 18px; font-weight: 600; margin-top: 2px; }

.accounting-list { margin: 0 16px; }
.accounting-item {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.accounting-item-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--bg-warm);
}
.accounting-item-info { flex: 1; }
.accounting-item-category { font-size: 14px; font-weight: 500; }
.accounting-item-note { font-size: 11px; color: var(--text-muted); }
.accounting-item-amount {
  font-size: 16px; font-weight: 600;
}
.amount-expense { color: #FF3B30; }
.amount-income { color: #34C759; }

.add-record-btn {
  position: fixed; bottom: 80px; right: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ECDC4, #44A08D);
  color: #fff; border: none;
  font-size: 24px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(78,205,196,0.4);
  z-index: 100;
}

/* === AI读书 === */
.reading-progress-card {
  margin: 16px;
  background: linear-gradient(135deg, #45B7D1, #2980B9);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}
.reading-progress-title { font-size: 13px; opacity: 0.9; }
.reading-progress-num { font-size: 28px; font-weight: 700; margin: 4px 0; }
.reading-progress-bar {
  height: 6px; background: rgba(255,255,255,0.3);
  border-radius: 3px; overflow: hidden;
}
.reading-progress-fill {
  height: 100%; background: #fff;
  border-radius: 3px; transition: width 0.3s;
}

.book-list { margin: 0 16px; }
.book-card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex; gap: 12px;
}
.book-cover {
  width: 60px; height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #45B7D1, #2980B9);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.book-info { flex: 1; }
.book-title { font-size: 14px; font-weight: 600; }
.book-author { font-size: 12px; color: var(--text-muted); margin: 2px 0 6px; }
.book-progress-text { font-size: 11px; color: var(--text-tertiary); }
.book-progress-bar {
  height: 4px; background: var(--bg-warm);
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.book-progress-fill {
  height: 100%; background: #45B7D1; border-radius: 2px;
}
.book-rating { font-size: 12px; color: #FF9500; margin-top: 4px; }

/* === AI笔记 === */
.note-list { padding: 12px 16px; }
.note-card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid;
  cursor: pointer;
}
.note-title {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.note-content {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-time {
  font-size: 11px; color: var(--text-muted);
  margin-top: 8px;
}

/* === AI自己 === */
.self-radar-container {
  margin: 16px;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 20px;
}
.self-dimension { margin-bottom: 14px; }
.self-dim-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 6px;
}
.self-dim-name { font-size: 13px; font-weight: 500; }
.self-dim-score { font-size: 13px; font-weight: 600; }
.self-dim-bar {
  height: 8px; background: var(--bg-warm);
  border-radius: 4px; overflow: hidden;
}
.self-dim-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.5s;
}
.self-personality {
  margin: 16px;
  background: linear-gradient(135deg, #A29BFE, #6C5CE7);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}
.self-personality-title {
  font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.self-personality-text {
  font-size: 13px; line-height: 1.6; opacity: 0.95;
}

/* === AI分析 === */
.analysis-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}
.analysis-stat-card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 14px;
}
.analysis-stat-label { font-size: 11px; color: var(--text-muted); }
.analysis-stat-value {
  font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin: 4px 0;
}
.analysis-stat-unit { font-size: 12px; color: var(--text-tertiary); }
.analysis-stat-change {
  font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
}
.change-up { color: #34C759; }
.change-down { color: #FF3B30; }

.analysis-chart {
  margin: 0 16px 16px;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 16px;
}
.analysis-chart-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 12px;
}
.bar-chart {
  display: flex; align-items: flex-end;
  gap: 8px; height: 120px;
}
.bar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.bar-fill {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #667eea, #764ba2);
  min-height: 4px; transition: height 0.5s;
}
.bar-label { font-size: 10px; color: var(--text-muted); }

/* === AI学习 === */
.learning-overview {
  margin: 16px;
  background: linear-gradient(135deg, #98D8C8, #26C281);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  display: flex; align-items: center; gap: 16px;
}
.learning-streak { text-align: center; }
.learning-streak-num { font-size: 36px; font-weight: 700; }
.learning-streak-label { font-size: 11px; opacity: 0.9; }
.learning-today { flex: 1; }
.learning-today-label { font-size: 12px; opacity: 0.9; }
.learning-today-bar {
  height: 6px; background: rgba(255,255,255,0.3);
  border-radius: 3px; margin-top: 6px; overflow: hidden;
}
.learning-today-fill {
  height: 100%; background: #fff; border-radius: 3px;
}

.course-list { margin: 0 16px; }
.course-card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.course-title { font-size: 14px; font-weight: 600; }
.course-progress-text { font-size: 11px; color: var(--text-muted); margin: 4px 0 6px; }
.course-progress-bar {
  height: 6px; background: var(--bg-warm);
  border-radius: 3px; overflow: hidden;
}
.course-progress-fill {
  height: 100%; background: #26C281; border-radius: 3px;
}
.course-lessons { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

/* === AI旅行 === */
.travel-plan-card {
  margin: 16px;
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
}
.travel-plan-header {
  background: linear-gradient(135deg, #F7DC6F, #F39C12);
  padding: 16px;
  color: #fff;
}
.travel-destination { font-size: 20px; font-weight: 700; }
.travel-date { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.travel-meta {
  display: flex; gap: 16px; margin-top: 8px;
}
.travel-meta-item { font-size: 12px; opacity: 0.9; }
.travel-itinerary { padding: 12px 16px; }
.travel-day { margin-bottom: 12px; }
.travel-day-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.travel-day-items {
  padding-left: 12px;
  border-left: 2px solid #F7DC6F;
}
.travel-day-item {
  font-size: 13px; color: var(--text-secondary);
  padding: 4px 0; position: relative;
}
.travel-day-item::before {
  content: ''; position: absolute;
  left: -15px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%; background: #F7DC6F;
}

/* === AI天气 === */
.weather-current {
  margin: 16px;
  background: linear-gradient(135deg, #85C1E9, #3498DB);
  border-radius: 20px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
}
.weather-city { font-size: 16px; opacity: 0.9; }
.weather-temp { font-size: 56px; font-weight: 200; margin: 4px 0; }
.weather-condition { font-size: 16px; }
.weather-details {
  display: flex; justify-content: space-around;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.weather-detail-item { text-align: center; }
.weather-detail-label { font-size: 10px; opacity: 0.8; }
.weather-detail-value { font-size: 14px; font-weight: 500; margin-top: 2px; }

.weather-forecast {
  margin: 0 16px;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 12px;
  display: flex; gap: 8px;
  overflow-x: auto;
}
.forecast-item {
  flex: 1; min-width: 56px;
  text-align: center; padding: 8px 4px;
  border-radius: 10px;
}
.forecast-item.today { background: var(--bg-warm); }
.forecast-day { font-size: 11px; color: var(--text-tertiary); }
.forecast-icon { font-size: 24px; margin: 4px 0; }
.forecast-temp { font-size: 12px; font-weight: 500; }

/* === AI特长 === */
.talent-list { padding: 12px 16px; }
.talent-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.talent-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.talent-name { font-size: 16px; font-weight: 600; }
.talent-level {
  background: linear-gradient(135deg, #F8B88B, #E67E22);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 8px;
}
.talent-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.talent-progress-bar {
  height: 6px; background: var(--bg-warm);
  border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.talent-progress-fill {
  height: 100%; background: linear-gradient(90deg, #F8B88B, #E67E22);
  border-radius: 3px;
}
.talent-achievements {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.talent-achievement {
  background: #FFF5EB; color: #E67E22;
  font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 8px;
}

/* === AI会员页 === */
.membership-page {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100%;
}
.membership-hero {
  padding: 80px 24px 32px;
  text-align: center;
  color: #fff;
}
.membership-hero-icon { font-size: 48px; margin-bottom: 12px; }
.membership-hero-title {
  font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.membership-hero-sub {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.membership-benefits { padding: 0 24px 24px; }
.membership-benefit-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 12px;
}
.membership-benefit-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #1a1a2e; font-weight: 700;
  flex-shrink: 0;
}
.membership-plans { padding: 0 16px 32px; }
.membership-plan-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.membership-plan-card.popular {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.3);
}
.membership-plan-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #FF6B35, #FF3B30);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 10px;
}
.membership-plan-name {
  font-size: 16px; font-weight: 600; color: #fff;
}
.membership-plan-desc {
  font-size: 12px; color: rgba(255,255,255,0.6);
  margin: 2px 0 12px;
}
.membership-plan-price {
  display: flex; align-items: baseline; gap: 4px;
}
.membership-plan-current {
  font-size: 32px; font-weight: 700; color: #FFD700;
}
.membership-plan-original {
  font-size: 14px; color: rgba(255,255,255,0.4);
  text-decoration: line-through;
}
.membership-plan-period {
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.membership-plan-btn {
  width: 100%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a2e;
  border: none; border-radius: 24px;
  padding: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}
.membership-plan-btn:active { opacity: 0.85; }
.membership-footer {
  text-align: center; padding: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
}

/* 添加按钮通用 */
.fab-btn {
  position: fixed; bottom: 80px; right: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff; border: none;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
}

/* 模态弹窗 */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  width: 100%; max-width: 320px;
  max-height: 80vh; overflow-y: auto;
}
.modal-title {
  font-size: 18px; font-weight: 700;
  text-align: center; margin-bottom: 16px;
}
.modal-input {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
.modal-textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 80px;
  margin-bottom: 10px;
  resize: none;
  font-family: inherit;
}
.modal-btn-row {
  display: flex; gap: 10px; margin-top: 8px;
}
.modal-btn {
  flex: 1; border: none;
  border-radius: 12px; padding: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.modal-btn-cancel {
  background: var(--bg-warm); color: var(--text-tertiary);
}
.modal-btn-confirm {
  background: #667eea; color: #fff;
}

/* Tab栏6个tab适配 */
.tab-bar.six-tabs .tab-item {
  flex: 1;
}

/* ========================================
   AI 音乐模块样式
   ======================================== */

/* 音乐播放器 */
.music-player {
  margin: 16px;
  background: linear-gradient(135deg, #FC5C7D 0%, #6A82FB 100%);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.music-player::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.music-player-cover {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.music-player-title {
  font-size: 16px; font-weight: 700;
  position: relative; z-index: 1;
}
.music-player-artist {
  font-size: 12px; opacity: 0.8;
  margin-top: 2px;
  position: relative; z-index: 1;
}
.music-player-progress {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 14px 0 6px;
  position: relative;
  z-index: 1;
}
.music-player-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 35%;
}
.music-player-time {
  display: flex; justify-content: space-between;
  font-size: 10px; opacity: 0.7;
  position: relative; z-index: 1;
}
.music-player-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-top: 14px;
  position: relative; z-index: 1;
}
.music-control-btn {
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.music-control-btn svg {
  width: 28px; height: 28px;
  color: #fff;
}
.music-control-btn.play svg {
  width: 40px; height: 40px;
}
.music-control-btn.play {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* 音乐子Tab */
.music-tabs {
  display: flex;
  padding: 0 16px;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}
.music-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}
.music-tab.active {
  color: #6A82FB;
  font-weight: 600;
}
.music-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: #6A82FB;
  border-radius: 2px;
}

/* 排行榜列表 */
.music-rank-list {
  padding: 12px 16px;
}
.music-rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.music-rank-item:last-child { border-bottom: none; }
.music-rank-num {
  width: 28px; text-align: center;
  font-size: 18px; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.music-rank-item:nth-child(1) .music-rank-num { color: #FF3B30; }
.music-rank-item:nth-child(2) .music-rank-num { color: #FF9500; }
.music-rank-item:nth-child(3) .music-rank-num { color: #FFCC00; }
.music-rank-cover {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FC5C7D, #6A82FB);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.music-rank-info { flex: 1; min-width: 0; }
.music-rank-title { font-size: 14px; font-weight: 600; }
.music-rank-artist { font-size: 12px; color: var(--text-muted); }
.music-rank-plays { font-size: 11px; color: var(--text-muted); }
.music-rank-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.music-rank-play svg { width: 16px; height: 16px; color: #6A82FB; }

/* AI音乐生成 */
.music-gen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.music-gen-card {
  background: var(--bg-white);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}
.music-gen-card:active { transform: scale(0.96); }
.music-gen-card.selected {
  box-shadow: 0 0 0 2px #6A82FB;
}
.music-gen-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 8px;
}
.music-gen-name { font-size: 14px; font-weight: 600; }
.music-gen-desc { font-size: 10px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.music-gen-duration { font-size: 10px; color: var(--text-tertiary); margin-top: 4px; }

/* AI生成输入区 */
.music-gen-input {
  margin: 0 16px 16px;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 14px;
}
.music-gen-input-label {
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.music-gen-input textarea {
  width: 100%;
  min-height: 60px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  resize: none;
  outline: none;
  font-family: inherit;
}
.music-gen-input textarea:focus {
  border-color: #6A82FB;
}
.music-gen-mood-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.music-gen-mood {
  padding: 5px 12px;
  background: var(--bg-warm);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
}
.music-gen-mood.active {
  background: #6A82FB;
  color: #fff;
}
.music-gen-btn {
  width: 100%;
  background: linear-gradient(135deg, #FC5C7D, #6A82FB);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}
.music-gen-btn:active { opacity: 0.85; }
.music-gen-btn:disabled { opacity: 0.5; }

/* 生成的音乐列表 */
.music-gen-list {
  padding: 0 16px 80px;
}
.music-gen-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.music-gen-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.music-gen-item-info { flex: 1; }
.music-gen-item-title { font-size: 14px; font-weight: 600; }
.music-gen-item-meta { font-size: 11px; color: var(--text-muted); }

/* 本地音乐列表 */
.local-music-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.local-music-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.local-music-upload-btn {
  background: linear-gradient(135deg, #FC5C7D, #6A82FB);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}
.local-music-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.local-music-item:last-child { border-bottom: none; }
.local-music-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FC5C7D, #6A82FB);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.local-music-item-info { flex: 1; min-width: 0; }
.local-music-item-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-music-item-meta { font-size: 11px; color: var(--text-muted); }

/* ========================================
   AI 助手对话框样式
   ======================================== */

.assistant-header {
  background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
  padding: 60px 16px 20px;
  position: relative;
  overflow: hidden;
}
.assistant-header::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.assistant-title {
  font-size: 20px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.assistant-subtitle {
  font-size: 12px; color: rgba(255,255,255,0.8);
  margin-top: 4px;
  position: relative; z-index: 1;
}
.assistant-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  position: relative; z-index: 1;
}
.assistant-status-dot {
  width: 8px; height: 8px;
  background: #34C759;
  border-radius: 50%;
}
.assistant-status-text {
  font-size: 12px; color: rgba(255,255,255,0.9);
}

/* 助手消息区 */
.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-warm);
}
.assistant-messages::-webkit-scrollbar { display: none; }

.assistant-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 90%;
}
.assistant-msg.ai {
  align-self: flex-start;
}
.assistant-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.assistant-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.assistant-msg.ai .assistant-msg-avatar {
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  color: #fff;
}
.assistant-msg.user .assistant-msg-avatar {
  background: var(--color-orange);
  color: #fff;
}
.assistant-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.assistant-msg.ai .assistant-msg-bubble {
  background: var(--bg-white);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.assistant-msg.user .assistant-msg-bubble {
  background: var(--color-orange);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.assistant-msg-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 助手快捷操作 */
.assistant-quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.assistant-quick-actions::-webkit-scrollbar { display: none; }
.assistant-quick-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--bg-warm);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 助手输入栏 */
.assistant-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.assistant-input-wrap {
  flex: 1;
  background: var(--bg-warm);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
}
.assistant-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}
.assistant-input::placeholder { color: var(--text-muted); }

/* 语音输入按钮 */
.assistant-voice-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  transition: all 0.3s;
}
.assistant-voice-btn svg {
  width: 22px; height: 22px;
  color: #fff;
}
.assistant-voice-btn.listening {
  background: #FF3B30;
  animation: voicePulse 1s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255,59,48,0); }
}

.assistant-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}
.assistant-send-btn svg { width: 18px; height: 18px; color: #fff; }

/* 助手数据卡片（回复中展示） */
.assistant-data-card {
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #d0deff;
}
.assistant-data-card-title {
  font-size: 12px; font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.assistant-data-card-content {
  font-size: 12px; color: #555;
  line-height: 1.6;
}
.assistant-data-card-action {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: #0072FF;
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================
   用户头像（首页）
   ======================================== */
.feed-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========================================
   评论区展开样式（首页帖子内）
   ======================================== */
.post-comments-inline {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}
.post-comments-inline-title {
  font-size: 12px; font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.post-comments-inline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-comment-inline {
  display: flex; gap: 8px; align-items: flex-start;
}
.post-comment-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.post-comment-body { flex: 1; }
.post-comment-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.post-comment-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.post-comment-input-inline {
  display: flex; gap: 8px; margin-top: 8px;
}
.post-comment-input-inline input {
  flex: 1;
  border: none;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  outline: none;
}
.post-comment-input-inline button {
  background: var(--color-orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================
   导航改进 - 页面过渡动画
   ======================================== */
.page {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.page.active {
  animation: pageSlideIn 0.25s ease forwards;
}
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* AI生活首页增加AI助手入口 */
.ai-life-assistant-entry {
  margin: 16px;
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-life-assistant-entry::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.ai-life-assistant-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.ai-life-assistant-info { flex: 1; position: relative; z-index: 1; }
.ai-life-assistant-title { font-size: 15px; font-weight: 600; }
.ai-life-assistant-desc { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* AI生活首页底部增加快捷AI助手浮动按钮 */
.ai-assistant-fab {
  position: fixed;
  bottom: 100px; right: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C6FF, #0072FF);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,114,255,0.4);
  border: none;
}
.ai-assistant-fab svg { width: 26px; height: 26px; color: #fff; }

/* ========================================
   V2.1 双核驱动版 样式
   ======================================== */

/* V2.1 全局变量 */
:root {
  --v21-primary: #6C5CE7;
  --v21-primary-light: #A29BFE;
  --v21-gold: #F9A825;
  --v21-bg-page: #F8F9FA;
  --v21-bg-card: #FFFFFF;
  --v21-text-dark: #1A1A1A;
  --v21-text-gray: #666666;
  --v21-text-light: #999999;
  --v21-radius-card: 16px;
  --v21-radius-sheet: 20px;
  --v21-green: #4CAF50;
  --v21-orange: #FF9800;
  --v21-gray-tag: #BDBDBD;
}

/* 5-Tab栏 */
.tab-bar.five-tabs {
  justify-content: space-around;
  position: relative;
}
.tab-bar.five-tabs .tab-item {
  flex: 1;
}
/* 中心Tab (AI生活) 放大效果 */
.tab-bar.five-tabs .tab-item:nth-child(3) {
  position: relative;
}
.tab-bar.five-tabs .tab-item:nth-child(3) .tab-icon {
  width: 30px;
  height: 30px;
  margin-top: -4px;
}
.tab-bar.five-tabs .tab-item:nth-child(3) .tab-icon svg {
  width: 30px;
  height: 30px;
}
.tab-bar.five-tabs .tab-item:nth-child(3) .tab-label {
  font-size: 9px;
  color: #6C5CE7;
  font-weight: 600;
}
/* 页面淡入动画 */
.page.active {
  animation: pageFadeIn 0.25s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
/* 消息列表项hover过渡 */
.tab-bar.five-tabs .tab-item:nth-child(3) .tab-active-bg {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE) !important;
}

/* ===== Tab3 生活管家 ===== */
.steward-page {
  min-height: 100%;
  background: var(--v21-bg-page);
  padding-bottom: 80px;
}
.steward-header {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  padding: 60px 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.steward-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 2px solid rgba(255,255,255,0.4);
}
.steward-greeting {
  flex: 1;
}
.steward-greeting .hello {
  font-size: 17px; font-weight: 600; color: #fff;
}
.steward-greeting .sub {
  font-size: 13px; color: rgba(255,255,255,0.8);
  margin-top: 2px;
}
.steward-greeting .saved {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px; color: #fff;
}
.steward-cards-scroll {
  padding: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 14px;
  scroll-snap-type: x mandatory;
}
.steward-cards-scroll::-webkit-scrollbar { display: none; }
.steward-card {
  flex: 0 0 300px;
  background: var(--v21-bg-card);
  border-radius: var(--v21-radius-card);
  padding: 20px;
  scroll-snap-align: start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.steward-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--card-gradient);
  opacity: 0.08;
}
.steward-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--card-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.steward-card-title {
  font-size: 16px; font-weight: 600;
  color: var(--v21-text-dark);
  margin-bottom: 8px;
}
.steward-card-content {
  font-size: 13px; line-height: 1.6;
  color: var(--v21-text-gray);
  margin-bottom: 14px;
}
.steward-card-sources {
  display: flex; gap: 6px;
  margin-bottom: 14px;
}
.steward-source-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #F0F0F0;
  color: #888;
}
.steward-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.steward-action-btn {
  background: var(--v21-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.steward-card-badge {
  font-size: 11px;
  color: var(--v21-green);
  font-weight: 500;
}
.steward-unlock-bar {
  position: fixed;
  bottom: 70px;
  left: 0; right: 0;
  padding: 12px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.steward-unlock-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,92,231,0.3);
}

/* ===== Tab4 AI工具台 ===== */
.tool-platform-page {
  min-height: 100%;
  background: var(--v21-bg-page);
}
.tp-header {
  background: var(--v21-bg-card);
  padding: 56px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #F0F0F0;
}
.tp-title {
  font-size: 20px; font-weight: 700;
  color: var(--v21-text-dark);
  padding-bottom: 14px;
}
.tp-subscribe-btn {
  font-size: 13px;
  color: var(--v21-gold);
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid var(--v21-gold);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  margin-bottom: 8px;
  white-space: nowrap;
}
.tp-categories {
  background: var(--v21-bg-card);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #F0F0F0;
}
.tp-categories::-webkit-scrollbar { display: none; }
.tp-category {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: #F5F5F5;
  color: var(--v21-text-gray);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tp-category.active {
  background: var(--v21-primary);
  color: #fff;
}
.tp-grid {
  padding: 12px 16px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tp-card {
  background: var(--v21-bg-card);
  border-radius: var(--v21-radius-card);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s;
}
.tp-card:active {
  transform: scale(0.97);
}
.tp-card-icon-area {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.tp-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--tool-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.tp-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--v21-text-dark);
  margin-top: 4px;
  text-align: center;
}
.tp-card-subtitle {
  font-size: 11px;
  color: var(--v21-text-light);
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tp-card-status {
  margin-top: auto;
  padding-top: 8px;
}
.tp-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.tp-status-free { background: #E8F5E9; color: var(--v21-green); }
.tp-status-limited { background: #FFF3E0; color: var(--v21-orange); }
.tp-status-pro { background: #F5F5F5; color: var(--v21-gray-tag); }
.tp-status-unlocked { background: #EDE7F6; color: var(--v21-primary); }

/* ===== 半屏弹窗 Bottom Sheet ===== */
.bottom-sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 70vh;
  background: #fff;
  border-radius: var(--v21-radius-sheet) var(--v21-radius-sheet) 0 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
.bottom-sheet.active {
  transform: translateY(0);
}
.bottom-sheet-handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: #E0E0E0;
  margin: 10px auto 6px;
  cursor: pointer;
}
.bottom-sheet-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.bs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 16px;
  border-bottom: 1px solid #F0F0F0;
}
.bs-close {
  font-size: 20px;
  color: var(--v21-text-light);
  cursor: pointer;
  background: none; border: none;
  padding: 4px 8px;
}
.bs-title {
  font-size: 16px; font-weight: 600;
  color: var(--v21-text-dark);
}
.bs-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bs-input-label {
  font-size: 14px; font-weight: 500;
  color: var(--v21-text-dark);
  margin-bottom: 6px;
}
.bs-text-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bs-text-input:focus {
  border-color: var(--v21-primary);
}
.bs-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
}
.bs-textarea:focus {
  border-color: var(--v21-primary);
}
.bs-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bs-tag {
  padding: 6px 14px;
  border-radius: 16px;
  background: #F5F5F5;
  font-size: 13px;
  color: var(--v21-text-gray);
  cursor: pointer;
  transition: all 0.2s;
}
.bs-tag.selected {
  background: var(--v21-primary);
  color: #fff;
}
.bs-main-btn {
  width: calc(100% - 40px);
  height: 52px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.bs-main-btn:active { opacity: 0.85; }
.bs-main-btn.primary {
  background: var(--v21-primary);
  color: #fff;
}
.bs-main-btn.locked {
  background: var(--v21-gray-tag);
  color: #fff;
}
.bs-result {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}
.bs-result-title {
  font-size: 14px; font-weight: 600;
  color: var(--v21-text-dark);
  margin-bottom: 8px;
}
.bs-result-content {
  font-size: 13px; line-height: 1.6;
  color: var(--v21-text-gray);
}

/* ========================================
   V2.1 增强AI分析模块
   ======================================== */
.ai-analysis-block {
  margin: 12px 16px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.1);
}
.ai-analysis-header {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.ai-analysis-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.ai-analysis-icon {
  font-size: 18px;
}
.ai-analysis-expand {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.ai-analysis-metrics {
  display: flex;
  padding: 14px 8px;
  gap: 4px;
  background: #FAFAFF;
}
.ai-metric-item {
  flex: 1;
  text-align: center;
  padding: 4px;
}
.ai-metric-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}
.ai-metric-value {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ai-metric-trend {
  font-size: 10px;
  font-weight: 500;
}
.trend-up { color: #4CAF50; }
.trend-down { color: #FF6B6B; }
.trend-flat { color: #999; }
.ai-analysis-text {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  border-top: 1px solid #F5F5FA;
}
.ai-analysis-detail {
  padding: 0 16px 16px;
}
.ai-detail-section {
  margin-top: 12px;
  padding: 12px;
  background: #F8F9FA;
  border-radius: 10px;
}
.ai-detail-title {
  font-size: 13px;
  font-weight: 600;
  color: #6C5CE7;
  margin-bottom: 6px;
}
.ai-detail-content {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  white-space: pre-line;
}

/* AI生活首页V2.1入口卡片 */
.ai-life-v21-entries {
  display: flex;
  gap: 10px;
  padding: 12px 16px 8px;
}
.ai-life-v21-card {
  flex: 1;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ai-life-v21-card:active {
  transform: scale(0.97);
}
.ai-life-v21-card-icon {
  font-size: 28px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-life-v21-card-body {
  flex: 1;
  min-width: 0;
}
.ai-life-v21-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-life-v21-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-life-v21-card-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* 返回按钮（生活管家/AI工具台页面） */
.steward-back, .tp-back {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.steward-back svg, .tp-back svg {
  width: 22px; height: 22px;
  color: #fff;
}
.tp-back svg {
  color: #1A1A1A;
}

/* V2.1 Tab栏活跃色更新 */
.tab-bar .tab-item.active .tab-icon svg,
.tab-bar .tab-item.active .tab-label {
  color: #6C5CE7;
}
.tab-bar .tab-item.active .tab-active-bg {
  background: rgba(108,92,231,0.1);
}

/* ============ 登录/注册页面 ============ */
.auth-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 30%, #6C5CE7 70%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,92,231,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(108,92,231,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.auth-bg { position: absolute; inset: 0; overflow: hidden; }
.auth-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,206,201,0.06);
  border: 1px solid rgba(0,206,201,0.15);
  animation: authFloat 8s ease-in-out infinite;
}
.auth-bg-circle-1 { width: 300px; height: 300px; top: -100px; left: -80px; }
.auth-bg-circle-2 { width: 200px; height: 200px; bottom: -60px; right: -40px; animation-delay: 2s; border-color: rgba(108,92,231,0.2); }
.auth-bg-circle-3 { width: 150px; height: 150px; top: 40%; right: 10%; animation-delay: 4s; border-color: rgba(255,255,255,0.1); }
@keyframes authFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.auth-container {
  position: relative;
  z-index: 1;
  width: 85%;
  max-width: 380px;
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(108,92,231,0.15);
  backdrop-filter: blur(20px);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { display: flex; justify-content: center; margin-bottom: 4px; filter: drop-shadow(0 0 12px rgba(108,92,231,0.5)); }
.auth-logo-title {
  font-size: 28px; font-weight: 700; color: #6C5CE7; margin-top: 8px;
  background: linear-gradient(135deg, #6C5CE7, #00CEC9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo-subtitle { font-size: 14px; color: #555; margin-top: 4px; letter-spacing: 1px; }
.auth-logo-tagline {
  font-size: 11px; color: #aaa; margin-top: 6px; letter-spacing: 2px;
  text-transform: uppercase;
}
.auth-form { display: none; animation: authFadeIn 0.3s ease; }
.auth-form.active { display: block; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-form-title {
  font-size: 22px; font-weight: 600; color: #333; margin-bottom: 24px; text-align: center;
}
.auth-input-group {
  display: flex; align-items: center; background: #F5F5F7; border-radius: 12px;
  padding: 0 16px; margin-bottom: 16px; height: 52px; border: 2px solid transparent;
  transition: border-color 0.2s;
}
.auth-input-group:focus-within { border-color: #6C5CE7; background: #fff; }
.auth-input-icon { font-size: 20px; margin-right: 12px; opacity: 0.6; }
.auth-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 16px; color: #333; height: 100%;
}
.auth-input::placeholder { color: #999; }
.auth-btn {
  width: 100%; height: 52px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #6C5CE7, #00CEC9);
  color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s; margin-top: 8px;
  box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}
.auth-btn:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(108,92,231,0.3); }

.auth-switch {
  text-align: center; margin-top: 20px; font-size: 14px; color: #888;
}
.auth-switch span { color: #6C5CE7; font-weight: 500; cursor: pointer; }

/* ============ 权限请求页面 ============ */
.permission-page {
  position: fixed; inset: 0; z-index: 9998;
  background: #F8F9FA;
  display: none; align-items: center; justify-content: center;
  overflow-y: auto; padding: 20px;
}
.permission-page.active { display: flex; }
.perm-container {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: 24px; padding: 36px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.perm-icon { font-size: 56px; text-align: center; }
.perm-title { font-size: 24px; font-weight: 700; color: #333; text-align: center; margin-top: 8px; }
.perm-subtitle { font-size: 14px; color: #888; text-align: center; margin-top: 4px; margin-bottom: 28px; }
.perm-list { margin-bottom: 24px; }
.perm-item {
  display: flex; align-items: center; padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
}
.perm-item:last-child { border-bottom: none; }
.perm-item-icon { font-size: 24px; margin-right: 14px; width: 40px; text-align: center; }
.perm-item-body { flex: 1; }
.perm-item-name { font-size: 15px; font-weight: 500; color: #333; }
.perm-item-desc { font-size: 12px; color: #999; margin-top: 2px; }
.perm-item-status {
  font-size: 12px; color: #999; background: #F5F5F7;
  padding: 4px 12px; border-radius: 20px;
}
.perm-item-status.perm-granted { color: #00B894; background: rgba(0,184,148,0.1); }
.perm-item-status.perm-denied { color: #FF6B6B; background: rgba(255,107,107,0.1); }
.perm-note {
  background: #F0F0FF; border-radius: 12px; padding: 16px; margin-bottom: 20px;
}
.perm-note-title { font-size: 13px; font-weight: 600; color: #6C5CE7; margin-bottom: 4px; }
.perm-note-text { font-size: 12px; color: #666; line-height: 1.5; }
.perm-btn { margin-top: 4px; }
.perm-skip { margin-top: 16px; }

/* ============ 图书阅读页 ============ */
.book-reader-header {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  padding: 44px 16px 16px; display: flex; align-items: center; gap: 12px;
}
.book-reader-back { color: #fff; cursor: pointer; padding: 4px; }
.book-reader-title { color: #fff; font-size: 17px; font-weight: 600; flex: 1; }
.book-reader-body { flex: 1; overflow-y: auto; background: #FFF8F0; padding: 24px 20px; }
.book-reader-chapter-title {
  font-size: 18px; font-weight: 700; color: #333; margin-bottom: 20px;
  text-align: center; border-bottom: 1px solid #E0E0E0; padding-bottom: 16px;
}
.book-reader-content {
  font-size: 16px; line-height: 2; color: #444; text-indent: 2em;
}
.book-reader-nav {
  display: flex; justify-content: space-between; padding: 16px 20px;
  background: #fff; border-top: 1px solid #EEE;
}
.book-reader-nav-btn {
  padding: 8px 20px; border-radius: 20px; font-size: 14px; cursor: pointer;
  background: #F5F5F7; color: #6C5CE7; border: none;
}
.book-reader-nav-btn:disabled { opacity: 0.4; }

/* ============ 景区详情页 ============ */
.travel-detail-header {
  height: 260px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 20px 24px;
}
.travel-detail-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 120px; opacity: 0.3;
}
.travel-detail-back {
  position: absolute; top: 44px; left: 16px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}
.travel-detail-name { position: relative; z-index: 1; color: #fff; font-size: 24px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.travel-detail-body { flex: 1; overflow-y: auto; background: #fff; padding: 20px; }
.travel-detail-section { margin-bottom: 24px; }
.travel-detail-section-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 10px; }
.travel-detail-desc { font-size: 14px; line-height: 1.8; color: #555; }
.travel-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.travel-detail-tag {
  font-size: 12px; padding: 4px 12px; border-radius: 16px;
  background: rgba(108,92,231,0.1); color: #6C5CE7;
}
.travel-detail-info { display: flex; gap: 16px; margin-bottom: 16px; }
.travel-detail-info-item { flex: 1; text-align: center; background: #F8F9FA; border-radius: 12px; padding: 12px; }
.travel-detail-info-label { font-size: 11px; color: #999; }
.travel-detail-info-value { font-size: 15px; font-weight: 600; color: #333; margin-top: 4px; }

/* ============ 天气详情页 ============ */
.weather-detail-header { background: linear-gradient(135deg, #74B9FF, #0984E3); padding: 44px 20px 24px; }
.weather-detail-back { color: #fff; cursor: pointer; margin-bottom: 16px; }
.weather-detail-city { color: #fff; font-size: 24px; font-weight: 600; }
.weather-detail-temp { color: #fff; font-size: 56px; font-weight: 300; }
.weather-detail-desc { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 4px; }
.weather-detail-body { flex: 1; overflow-y: auto; background: #F8F9FA; padding: 16px; }
.weather-detail-day-list { display: flex; flex-direction: column; gap: 12px; }
.weather-detail-day-item {
  background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 16px;
}
.weather-detail-day-date { font-size: 14px; font-weight: 600; color: #333; width: 80px; }
.weather-detail-day-icon { font-size: 32px; }
.weather-detail-day-temps { flex: 1; display: flex; align-items: center; gap: 8px; }
.weather-detail-day-high { font-size: 16px; font-weight: 600; color: #FF6B6B; }
.weather-detail-day-low { font-size: 16px; color: #74B9FF; }
.weather-detail-day-extra { font-size: 11px; color: #999; text-align: right; }

/* ============ 消息类型样式 ============ */
.msg-image { max-width: 200px; max-height: 200px; border-radius: 8px; cursor: pointer; }
.msg-voice {
  display: flex; align-items: center; gap: 8px; min-width: 100px; cursor: pointer;
  padding: 8px 16px; border-radius: 8px;
}
.msg-voice-icon { font-size: 20px; }
.msg-voice-duration { font-size: 13px; }
.msg-video { max-width: 200px; max-height: 200px; border-radius: 8px; cursor: pointer; }
.msg-file {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #F5F5F7; border-radius: 12px; cursor: pointer; min-width: 180px;
}
.msg-file-icon { font-size: 28px; }
.msg-file-name { font-size: 13px; color: #333; word-break: break-all; }

/* ============ 输入工具栏 ============ */
.chat-toolbar { display: flex; gap: 8px; padding: 8px; }
.chat-toolbar-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #F5F5F7; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-toolbar-btn:active { background: #E8E8E8; }
.chat-voice-recording {
  position: fixed; bottom: 200px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.7); color: #fff; padding: 20px 40px; border-radius: 16px;
  z-index: 100; display: none; text-align: center;
}
.chat-voice-recording.active { display: block; }
.chat-voice-recording-icon { font-size: 40px; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============ 通话界面 ============ */
.call-page {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2D3436, #1A1A2E);
}
.call-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff; margin-bottom: 24px;
}
.call-name { color: #fff; font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.call-status { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 48px; }
.call-controls { display: flex; gap: 24px; }
.call-btn {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.call-btn-end { background: #FF4757; color: #fff; }
.call-btn-mute { background: rgba(255,255,255,0.2); color: #fff; }
.call-btn-video { background: rgba(255,255,255,0.2); color: #fff; }

/* ============ 账单筛选 ============ */
.filter-bar {
  display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto;
  background: #fff; border-bottom: 1px solid #EEE;
}
.filter-chip {
  padding: 6px 14px; border-radius: 16px; font-size: 13px; white-space: nowrap;
  background: #F5F5F7; color: #666; cursor: pointer; border: 1px solid transparent;
}
.filter-chip.active { background: #6C5CE7; color: #fff; }

/* ============ 笔记高亮 ============ */
.note-highlight {
  background: linear-gradient(180deg, transparent 50%, #FFE066 50%);
  padding: 0 2px; border-radius: 2px;
}
.note-toolbar {
  display: flex; gap: 8px; padding: 8px; background: #F5F5F7; border-radius: 8px; margin-bottom: 8px;
}
.note-toolbar-btn {
  padding: 6px 12px; border-radius: 8px; border: none; font-size: 13px; cursor: pointer;
  background: #fff; color: #333;
}
.note-toolbar-btn.active { background: #6C5CE7; color: #fff; }

/* ============ 设置中心 ============ */
.settings-group {
  background: #fff;
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: #F5F5F5; }
.settings-row-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-right: 12px; flex-shrink: 0;
}
.settings-row-label {
  flex: 1; font-size: 15px; color: #333;
}
.settings-row-value {
  font-size: 13px; color: #999; margin-right: 8px;
}
.settings-row-arrow {
  color: #C8C8C0; font-size: 18px;
}
.settings-toggle {
  width: 48px; height: 28px; border-radius: 14px;
  background: #E5E5EA; position: relative;
  cursor: pointer; transition: background 0.25s;
  flex-shrink: 0;
}
.settings-toggle.active { background: #34C759; }
.settings-toggle-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; position: absolute;
  top: 2px; left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.25s;
}
.settings-toggle.active .settings-toggle-dot {
  transform: translateX(20px);
}

/* ============ 收款码弹窗 ============ */
.payment-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.payment-modal-content {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  width: 85%; max-width: 320px; text-align: center;
  animation: slideUp 0.3s ease;
}
.payment-modal-title {
  font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px;
}
.payment-modal-price {
  font-size: 36px; font-weight: 700; color: #FF6B35; margin: 12px 0;
}
.payment-modal-price::before { content: '¥'; font-size: 20px; }
.payment-modal-desc {
  font-size: 13px; color: #999; margin-bottom: 20px;
}
.payment-modal-qr {
  width: 200px; height: 200px; margin: 0 auto 16px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid #F5F5F5;
}
.payment-modal-qr img {
  width: 100%; height: 100%; object-fit: cover;
}
.payment-modal-tip {
  font-size: 12px; color: #999; margin-bottom: 20px;
}
.payment-modal-btn {
  width: 100%; padding: 14px; border: none;
  border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-bottom: 8px;
  background: #07C160; color: #fff;
  transition: opacity 0.15s;
}
.payment-modal-btn:active { opacity: 0.8; }
.payment-modal-btn.secondary {
  background: #F5F5F7; color: #666;
}

/* ============ 城市选择器 ============ */
.city-selector-bar {
  background: #fff; padding: 12px 16px; border-bottom: 1px solid #EEE;
}
.city-selector-label {
  font-size: 13px; font-weight: 600; color: #333; margin-bottom: 10px;
}
.city-selector-list {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.city-chip {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  white-space: nowrap; cursor: pointer;
  background: #F0F0F5; color: #666;
  transition: all 0.2s;
}
.city-chip.active {
  background: #0984E3; color: #fff; font-weight: 600;
}

/* ============ 聊天工具栏按钮 ============ */
.chat-toolbar-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.chat-toolbar-btn:active { background: #E5E5EA; }

/* ============ 深色模式 ============ */
body.dark-mode {
  --bg-warm: #1A1A1A;
  --bg-white: #2C2C2E;
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-tertiary: #AAAAAA;
  --text-muted: #888888;
  --border-light: #3A3A3C;
  --border-gray: #48484A;
}
body.dark-mode .page { background: #1A1A1A; }
body.dark-mode .app-header { background: #2C2C2E; }
body.dark-mode .section-card { background: #2C2C2E; }
body.dark-mode .settings-group { background: #2C2C2E; }
body.dark-mode .settings-row { border-bottom-color: #3A3A3C; }
body.dark-mode .settings-row:active { background: #3A3A3C; }
body.dark-mode .settings-row-label { color: #E0E0E0; }

/* ============ 动画 ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === 全屏沉浸式适配 === */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

#app-shell {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

/* 页面容器全屏 */
.page {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 防止iOS橡皮筋滚动 */


/* 全局浮动按钮适配全屏 */
#global-float-back {
    top: env(safe-area-inset-top, 12px) !important;
}

/* TabBar 适配底部安全区 */
.app-tabbar, .tab-bar, .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}


/* === 隐藏模拟状态栏（系统状态栏保留，显示实时时间/信号/电量） === */
.status-bar {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}


/* === AI生活舱模块拖拽排列 === */
.ai-life-edit-btn {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(108,92,231,0.1);
  color: #6C5CE7;
  cursor: pointer;
  white-space: nowrap;
}
.ai-life-edit-btn.active {
  background: #6C5CE7;
  color: #fff;
}
.ai-tools-grid.edit-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}
.ai-tool-card.edit-mode {
  cursor: grab;
  opacity: 0.9;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.ai-tool-card.edit-mode:active {
  cursor: grabbing;
}
.ai-tool-card.edit-mode.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.2s;
}
.ai-tool-card.drag-over {
  border: 2px dashed #6C5CE7 !important;
  background: rgba(108,92,231,0.08) !important;
  transform: scale(1.05);
  transition: all 0.2s;
}
.ai-tool-drag-handle {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 14px;
  color: #6C5CE7;
  opacity: 0.5;
  cursor: grab;
}

/* ========================================
   宇宙飞船科技风音乐播放器
   ======================================== */

/* --- 星空背景 --- */
.music-space-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: #050816; overflow: hidden;
}
.music-space-overlay .stars1, .music-space-overlay .stars2, .music-space-overlay .stars3 {
  position: absolute; width: 100%; height: 100%;
  background-repeat: repeat;
}
.music-space-overlay .stars1 {
  background-image: radial-gradient(1px 1px at 25% 15%, #fff, transparent), radial-gradient(1px 1px at 50% 60%, #fff, transparent), radial-gradient(1px 1px at 75% 35%, rgba(0,206,202,.7), transparent), radial-gradient(1px 1px at 15% 80%, rgba(108,92,231,.6), transparent), radial-gradient(1px 1px at 90% 90%, #fff, transparent);
  background-size: 250px 250px; animation: stMove1 80s linear infinite;
}
.music-space-overlay .stars2 {
  background-image: radial-gradient(1.5px 1.5px at 30% 40%, rgba(255,255,255,.8), transparent), radial-gradient(1.5px 1.5px at 70% 70%, rgba(0,206,202,.5), transparent), radial-gradient(2px 2px at 10% 50%, #fff, transparent);
  background-size: 350px 350px; animation: stMove2 120s linear infinite;
}
.music-space-overlay .stars3 {
  background-image: radial-gradient(0.5px 0.5px at 20% 20%, rgba(255,255,255,.5), transparent), radial-gradient(0.5px 0.5px at 60% 80%, rgba(108,92,231,.4), transparent), radial-gradient(0.5px 0.5px at 85% 25%, rgba(255,255,255,.3), transparent);
  background-size: 180px 180px; animation: stMove3 60s linear infinite;
}
@keyframes stMove1 { from{transform:translateY(0)} to{transform:translateY(-250px)} }
@keyframes stMove2 { from{transform:translateY(0)} to{transform:translateY(-350px)} }
@keyframes stMove3 { from{transform:translateY(0)} to{transform:translateY(-180px)} }

/* --- 全屏播放器 --- */
.music-full-player {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(5,8,22,.95) 0%, rgba(10,14,39,.95) 30%, rgba(26,16,64,.92) 60%, rgba(10,14,39,.95) 100%);
  animation: mfpSlideUp .35s cubic-bezier(.22,.68,0,1);
}
@keyframes mfpSlideUp { from{transform:translateY(100%);opacity:.5} to{transform:translateY(0);opacity:1} }

.mfp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  flex-shrink: 0;
}
.mfp-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; color: rgba(255,255,255,.7);
}
.mfp-close:active { transform: scale(.88); background: rgba(255,255,255,.18); }
.mfp-source-label {
  font-size: 11px; color: rgba(0,206,202,.8);
  text-transform: uppercase; letter-spacing: 3px; font-weight: 600;
}
.mfp-queue-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.7); transition: all .2s;
}
.mfp-queue-btn:active { transform: scale(.88); }

/* --- 唱片 + 全息光环 --- */
.mfp-disc-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 10px 20px; min-height: 200px;
}
.mfp-disc-wrap {
  width: 240px; height: 240px; position: relative;
}
.mfp-disc {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e, #16213e, #1a1040, #0d1b2a, #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px rgba(108,92,231,.35), 0 0 100px rgba(0,206,202,.15), inset 0 0 30px rgba(0,0,0,.6);
  position: relative;
}
.mfp-disc.spinning { animation: discSpin 20s linear infinite; }
@keyframes discSpin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.mfp-disc-ring1 {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(0,206,202,.5); border-right-color: rgba(108,92,231,.3);
  animation: ringRot 6s linear infinite;
}
.mfp-disc-ring2 {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(0,206,202,.3); border-left-color: rgba(108,92,231,.2);
  animation: ringRot 10s linear infinite reverse;
}
@keyframes ringRot { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.mfp-disc-cover {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #6C5CE7, #00CEC9);
  display: flex; align-items: center; justify-content: center;
  font-size: 50px; box-shadow: inset 0 0 20px rgba(0,0,0,.4);
}
.mfp-disc-cover img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.mfp-disc-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #050816; border: 2px solid rgba(0,206,202,.6);
  z-index: 2;
}

/* --- 音频可视化 --- */
.mfp-visualizer {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2px; height: 36px; padding: 0 24px; margin-bottom: 6px;
}
.mfp-vis-bar {
  width: 3px; min-height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #00CEC9, #6C5CE7);
  opacity: .7;
}
.mfp-visualizer.active .mfp-vis-bar { animation: visBar .6s ease-in-out infinite alternate; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(1) { animation-delay: 0s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(2) { animation-delay: .1s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(3) { animation-delay: .2s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(4) { animation-delay: .15s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(5) { animation-delay: .3s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(6) { animation-delay: .05s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(7) { animation-delay: .25s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(8) { animation-delay: .35s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(9) { animation-delay: .12s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(10) { animation-delay: .28s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(11) { animation-delay: .08s; }
.mfp-visualizer.active .mfp-vis-bar:nth-child(12) { animation-delay: .32s; }
@keyframes visBar { from{height:4px;opacity:.4} to{height:28px;opacity:1} }

/* --- 歌曲信息 --- */
.mfp-song-info { text-align: center; padding: 0 30px; margin-bottom: 8px; }
.mfp-title {
  font-size: 19px; font-weight: 700; color: #fff;
  margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mfp-artist { font-size: 13px; color: rgba(255,255,255,.55); }

/* --- 进度条 --- */
.mfp-progress-area { padding: 0 24px; margin-bottom: 14px; }
.mfp-progress-bar {
  height: 4px; background: rgba(255,255,255,.1); border-radius: 2px;
  position: relative; cursor: pointer; touch-action: none;
}
.mfp-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #00CEC9, #6C5CE7);
  box-shadow: 0 0 6px rgba(0,206,202,.5);
  position: relative;
}
.mfp-progress-thumb {
  position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px rgba(0,206,202,.8); opacity: 0; transition: opacity .2s;
}
.mfp-progress-bar:active .mfp-progress-thumb { opacity: 1; }
.mfp-time-row {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11px; color: rgba(255,255,255,.45);
  font-family: 'SF Mono', 'Menlo', monospace; letter-spacing: .5px;
}

/* --- 控制按钮 --- */
.mfp-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; margin-bottom: 14px;
}
.mfp-ctrl {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.65);
  background: none; border: none; transition: all .2s;
}
.mfp-ctrl:active { transform: scale(.85); }
.mfp-ctrl.active { color: #00CEC9; filter: drop-shadow(0 0 6px rgba(0,206,202,.6)); }
.mfp-ctrl-play {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #00CEC9, #6C5CE7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; border: none;
  box-shadow: 0 0 25px rgba(0,206,202,.4), 0 4px 15px rgba(0,0,0,.3);
  transition: all .2s;
}
.mfp-ctrl-play:active { transform: scale(.92); box-shadow: 0 0 15px rgba(0,206,202,.3); }

/* --- 底部操作 --- */
.mfp-bottom-bar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.mfp-action {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255,255,255,.45); font-size: 10px; cursor: pointer;
  background: none; border: none; transition: color .2s;
}
.mfp-action.liked { color: #FF4757; }
.mfp-action:active { transform: scale(.9); }

/* --- 歌词面板 --- */
.mfp-lyrics-panel {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(5,8,22,.92); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  animation: lyricsFade .3s ease;
}
@keyframes lyricsFade { from{opacity:0} to{opacity:1} }
.mfp-lyrics-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
}
.mfp-lyrics-body {
  flex: 1; overflow-y: auto; padding: 20px 30px;
  -webkit-overflow-scrolling: touch;
}
.mfp-lyrics-body::-webkit-scrollbar { display: none; }
.mfp-lyric-line {
  text-align: center; font-size: 15px; color: rgba(255,255,255,.35);
  margin-bottom: 18px; transition: all .3s; line-height: 1.6;
}
.mfp-lyric-line.active { color: #00CEC9; font-size: 17px; font-weight: 600; text-shadow: 0 0 10px rgba(0,206,202,.4); }

/* --- 播放队列 --- */
.mfp-queue-panel {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  max-height: 60%; background: rgba(10,14,39,.97); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,206,202,.2); border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  animation: queueSlide .3s ease;
}
@keyframes queueSlide { from{transform:translateY(100%)} to{transform:translateY(0)} }
.mfp-queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mfp-queue-title { font-size: 15px; font-weight: 600; color: #fff; }
.mfp-queue-count { font-size: 12px; color: rgba(255,255,255,.4); }
.mfp-queue-close { color: rgba(255,255,255,.5); cursor: pointer; font-size: 18px; }
.mfp-queue-list { overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.mfp-queue-list::-webkit-scrollbar { display: none; }
.mfp-queue-item {
  display: flex; align-items: center; padding: 10px 20px; cursor: pointer;
  transition: background .15s;
}
.mfp-queue-item:active { background: rgba(255,255,255,.05); }
.mfp-queue-item.current { background: rgba(0,206,202,.08); }
.mfp-queue-item-info { flex: 1; min-width: 0; margin-left: 12px; }
.mfp-queue-item-title {
  font-size: 14px; color: rgba(255,255,255,.8); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.mfp-queue-item.current .mfp-queue-item-title { color: #00CEC9; }
.mfp-queue-item-artist { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 2px; }
.mfp-queue-item-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: rgba(255,255,255,.05); }
.mfp-queue-playing-icon { color: #00CEC9; font-size: 14px; margin-right: 8px; }

/* --- 迷你播放条 --- */
.music-mini-bar {
  position: fixed; bottom: var(--tab-bar-height); left: 0; right: 0;
  height: 54px; background: rgba(10,14,39,.96); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,206,202,.15);
  display: flex; align-items: center; padding: 0 12px; z-index: 9000;
  animation: miniUp .3s ease;
}
@keyframes miniUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.mini-cover {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #6C5CE7, #00CEC9);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  overflow: hidden; box-shadow: 0 0 8px rgba(108,92,231,.3);
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { flex: 1; min-width: 0; margin: 0 10px; }
.mini-title { font-size: 13px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 1px; }
.mini-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mini-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.7); background: none; border: none;
}
.mini-btn:active { transform: scale(.85); }
.mini-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #00CEC9, #6C5CE7);
  box-shadow: 0 0 4px rgba(0,206,202,.5);
}

/* 迷你播放条 - 主区域（可点击） */
.mini-bar-main {
  display: flex; align-items: center; flex: 1; min-width: 0;
  cursor: pointer; height: 100%;
}

/* 迷你播放条 - 关闭/隐藏按钮 */
.mini-close-btn {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); margin-left: 4px; cursor: pointer;
  background: rgba(255,255,255,.06); border: none;
  transition: all .2s;
}
.mini-close-btn:active {
  transform: scale(.85);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.15);
}

/* 浮动音乐按钮（迷你播放条隐藏时显示） */
.floating-music-btn {
  position: fixed; bottom: calc(var(--tab-bar-height) + 16px); right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #00CEC9);
  box-shadow: 0 4px 20px rgba(108,92,231,.4), 0 0 0 2px rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; cursor: pointer;
  animation: fmbPop .3s ease;
}
@keyframes fmbPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.fmb-cover {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.fmb-cover img { width: 100%; height: 100%; object-fit: cover; }
.fmb-icon {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #00CEC9; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(10,14,39,.96);
}
.fmb-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #00CEC9; animation: fmbPulse 1.5s ease-in-out infinite;
}
@keyframes fmbPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* --- 三Tab样式（科技风） --- */
.music-tabs-sci {
  display: flex; padding: 8px 16px; gap: 8px;
  background: rgba(10,14,39,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,206,202,.1);
}
.music-tab-sci {
  flex: 1; text-align: center; padding: 8px 0;
  font-size: 13px; color: rgba(255,255,255,.5); cursor: pointer;
  border-radius: 10px; transition: all .2s; font-weight: 500;
  background: rgba(255,255,255,.03);
}
.music-tab-sci.active {
  color: #00CEC9; background: rgba(0,206,202,.1);
  box-shadow: 0 0 12px rgba(0,206,202,.15); border: 1px solid rgba(0,206,202,.2);
}

/* --- 音乐列表（科技风） --- */
.music-list-sci { padding: 12px 16px; }
.music-item-sci {
  display: flex; align-items: center; padding: 10px 12px;
  background: rgba(255,255,255,.03); border-radius: 12px; margin-bottom: 8px;
  cursor: pointer; transition: all .2s; border: 1px solid rgba(255,255,255,.04);
}
.music-item-sci:active { background: rgba(0,206,202,.06); border-color: rgba(0,206,202,.15); }
.music-item-sci.playing { background: rgba(0,206,202,.08); border-color: rgba(0,206,202,.2); }
.music-item-cover-sci {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  overflow: hidden; margin-right: 12px;
}
.music-item-cover-sci img { width: 100%; height: 100%; object-fit: cover; }
.music-item-info-sci { flex: 1; min-width: 0; }
.music-item-title-sci {
  font-size: 14px; color: #fff; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.music-item-sci.playing .music-item-title-sci { color: #00CEC9; }
.music-item-meta-sci { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 2px; }
.music-item-rank-sci {
  width: 28px; text-align: center; font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,.3); margin-right: 10px;
}
.music-item-rank-sci.top1 { color: #FF4757; }
.music-item-rank-sci.top2 { color: #FFA502; }
.music-item-rank-sci.top3 { color: #FFD32A; }
.music-item-play-sci {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,206,202,.6); cursor: pointer;
}

/* --- AI创作Tab --- */
.music-gen-area { padding: 16px; }
.music-gen-card {
  background: linear-gradient(135deg, rgba(108,92,231,.15), rgba(0,206,202,.08));
  border: 1px solid rgba(0,206,202,.15); border-radius: 16px; padding: 20px;
  margin-bottom: 16px;
}
.music-gen-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.music-gen-desc { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; line-height: 1.5; }
.music-gen-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.music-gen-type {
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: all .2s;
}
.music-gen-type.selected { background: rgba(0,206,202,.15); color: #00CEC9; border-color: rgba(0,206,202,.3); }
.music-gen-btn {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #00CEC9, #6C5CE7); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 20px rgba(0,206,202,.25); transition: all .2s;
}
.music-gen-btn:active { transform: scale(.97); }
.music-gen-btn:disabled { opacity: .5; }


/* === AI笔记详情全屏页 === */
.note-detail-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: #FAFAFA;
  display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.note-detail-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fff;
  border-bottom: 1px solid #EEE;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.note-detail-back {
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  color: #6C5CE7; cursor: pointer; border-radius: 50%;
  transition: background 0.2s;
}
.note-detail-back:active { background: rgba(108,92,231,0.1); }
.note-detail-title-display {
  flex: 1; font-size: 16px; font-weight: 600;
  color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.note-diary-badge {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: rgba(249,168,37,0.1); color: #F9A825;
}
.note-detail-share {
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  color: #6C5CE7; cursor: pointer; border-radius: 50%;
  transition: background 0.2s;
}
.note-detail-share:active { background: rgba(108,92,231,0.1); }
.note-detail-body {
  flex: 1; overflow-y: auto; padding: 20px 16px;
}
.note-detail-title-input {
  width: 100%; border: none; font-size: 24px; font-weight: 700;
  color: #333; background: transparent; outline: none;
  margin-bottom: 6px;
}
.note-detail-subtitle-input {
  width: 100%; border: none; font-size: 15px; font-weight: 400;
  color: #666; background: transparent; outline: none;
  margin-bottom: 12px;
}
.note-detail-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #999; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid #EEE;
}
.note-detail-color-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.note-detail-content {
  width: 100%; border: none; font-size: 16px; line-height: 1.8;
  color: #333; background: transparent; outline: none;
  resize: none; min-height: 300px;
  font-family: -apple-system, "Microsoft YaHei", sans-serif;
}
.note-detail-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff;
  border-top: 1px solid #EEE;
  flex-shrink: 0;
}
.note-toolbar-colors {
  display: flex; gap: 8px;
}
.note-color-opt {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.note-color-opt:active { transform: scale(0.9); }
.note-toolbar-actions {
  display: flex; gap: 8px;
}
.note-toolbar-btn {
  width: 40px; height: 40px; border: none;
  border-radius: 12px; background: #F5F5F5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #666;
  transition: background 0.2s;
}
.note-toolbar-btn:active { background: #E0E0E0; }
.note-toolbar-btn.save {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE); color: #fff;
}
.note-toolbar-btn.save:active { opacity: 0.85; }

/* Note subtitle in card list */
.note-subtitle {
  font-size: 13px; color: #888; font-weight: 400;
  margin-bottom: 4px; margin-top: -2px;
}

/* === 笔记分享弹窗 === */
.note-share-modal {
  background: #fff; border-radius: 20px;
  padding: 24px 20px; width: 100%; max-width: 340px;
}
.note-share-title {
  font-size: 18px; font-weight: 700; text-align: center;
  margin-bottom: 20px; color: #333;
}
.note-share-options {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
}
.note-share-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 14px; background: #F8F8F8;
  cursor: pointer; transition: background 0.2s;
}
.note-share-option:active { background: #F0F0F0; }
.share-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.share-label {
  font-size: 15px; font-weight: 600; color: #333;
}
.share-desc {
  font-size: 12px; color: #999; margin-top: 2px;
}
.note-share-cancel {
  width: 100%; border: none; border-radius: 14px;
  padding: 12px; font-size: 15px; font-weight: 600;
  background: #F5F5F5; color: #666; cursor: pointer;
}

/* === AI对话历史页面 === */
.ai-history-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: #F5F5F7;
  display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
.ai-history-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: #fff;
  border-bottom: 1px solid #EEE;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.ai-history-back {
  width: 36px; height: 36px; display: flex;
  align-items: center; justify-content: center;
  color: #6C5CE7; cursor: pointer; border-radius: 50%;
}
.ai-history-title {
  flex: 1; font-size: 17px; font-weight: 600; color: #333;
}
.ai-history-clear {
  font-size: 14px; color: #FF6B6B; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
}
.ai-history-clear:active { background: rgba(255,107,107,0.1); }
.ai-history-body {
  flex: 1; overflow-y: auto; padding: 12px;
}
.ai-history-loading {
  text-align: center; padding: 40px; color: #999; font-size: 14px;
}
.ai-history-empty {
  text-align: center; padding: 60px 20px; color: #999;
  font-size: 15px;
}

/* AI洞察面板 */
.ai-insights-panel {
  background: #fff; border-radius: 16px; padding: 16px;
  margin-bottom: 16px;
}
.insights-title {
  font-size: 16px; font-weight: 700; color: #333; margin-bottom: 14px;
}
.insights-summary {
  display: flex; gap: 12px; margin-bottom: 16px;
}
.insight-stat {
  flex: 1; text-align: center; padding: 12px;
  background: #F8F8F8; border-radius: 12px;
}
.insight-stat-num {
  font-size: 20px; font-weight: 700; color: #6C5CE7;
}
.insight-stat-label {
  font-size: 11px; color: #999; margin-top: 4px;
}
.insights-section-title {
  font-size: 13px; font-weight: 600; color: #666;
  margin: 14px 0 8px 0;
}

/* 心情分布条 */
.mood-bars { display: flex; flex-direction: column; gap: 6px; }
.mood-bar-row {
  display: flex; align-items: center; gap: 8px;
}
.mood-bar-label {
  font-size: 12px; color: #666; width: 50px; text-align: right;
}
.mood-bar-track {
  flex: 1; height: 8px; background: #F0F0F0; border-radius: 4px; overflow: hidden;
}
.mood-bar-fill {
  height: 100%; border-radius: 4px; transition: width 0.5s;
}
.mood-bar-count {
  font-size: 12px; color: #999; width: 20px;
}

/* 心情轨迹 */
.mood-timeline {
  display: flex; gap: 6px; justify-content: space-between;
}
.timeline-day {
  flex: 1; text-align: center;
}
.timeline-label {
  font-size: 10px; color: #999; margin-bottom: 4px;
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 11px; font-weight: 600; color: #fff;
}
.timeline-mood {
  font-size: 9px; color: #999; margin-top: 4px;
}

/* AI建议 */
.insight-suggestions {
  display: flex; flex-direction: column; gap: 8px;
}
.insight-suggestion {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; background: #FFF8E1; border-radius: 10px;
  font-size: 13px; color: #5D4037; line-height: 1.5;
}
.insight-suggestion-icon { flex-shrink: 0; }

/* 对话记录条目 */
.conv-item {
  background: #fff; border-radius: 14px; padding: 14px;
  margin-bottom: 10px;
}
.conv-item-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.conv-time {
  font-size: 12px; color: #999; flex: 1;
}
.conv-mood-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  font-weight: 500;
}
.conv-delete {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: #CCC; cursor: pointer; border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.conv-delete:active { color: #FF6B6B; background: rgba(255,107,107,0.1); }
.conv-user-msg {
  font-size: 14px; color: #333; font-weight: 500;
  padding: 8px 12px; background: #F0F0F5; border-radius: 10px;
  margin-bottom: 6px; line-height: 1.5;
}
.conv-ai-msg {
  font-size: 14px; color: #444; line-height: 1.6;
  padding: 8px 12px; background: #F3E5F5; border-radius: 10px;
  margin-bottom: 6px; white-space: pre-wrap;
}
.conv-key-points {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.conv-key-point {
  font-size: 11px; padding: 3px 8px; border-radius: 8px;
  background: #E3F2FD; color: #1976D2;
}
.conv-suggestion {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; color: #5D4037; line-height: 1.5;
  padding: 8px 12px; background: #FFF8E1; border-radius: 10px;
  margin-top: 6px;
}
.conv-suggestion-icon { flex-shrink: 0; }
.conv-action {
  display: inline-block; font-size: 12px; color: #6C5CE7;
  padding: 4px 12px; border: 1px solid #6C5CE7; border-radius: 12px;
  margin-top: 6px; cursor: pointer;
}

/* AI助手历史按钮 */
.assistant-history-btn {
  position: absolute; top: 14px; right: 12px;
  font-size: 13px; color: #fff; cursor: pointer;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  z-index: 10;
}
.assistant-history-btn:active { background: rgba(255,255,255,0.35); }

/* AI消息中的心情标签和建议 */
.msg-mood-tag {
  display: inline-block; font-size: 11px;
  padding: 2px 8px; border-radius: 10px;
  font-weight: 500; margin-top: 4px;
}
.msg-suggestion {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; padding: 8px 12px;
  background: rgba(255,248,225,0.9); border-radius: 10px;
  margin-top: 6px; line-height: 1.5;
  border: 1px solid rgba(255,193,7,0.2);
}
.msg-suggestion-icon { flex-shrink: 0; }
