/* ============================================================
 *  打工充能站 · 全局样式
 *  治愈系 · 暖色调 · 圆角 · 大emoji · 谐音梗气质
 * ============================================================ */

:root {
  --bg-main: #fef9f4;
  --bg-card: #ffffff;
  --bg-soft: #fff5ed;
  --text-main: #2d2424;
  --text-soft: #6b6562;
  --text-light: #a09894;
  --accent: #ff6b6b;
  --accent-soft: #ffa07a;
  --accent-warm: #ffd93d;
  --border: #f0e6da;
  --shadow: 0 4px 20px rgba(255, 107, 107, 0.08);
  --shadow-hover: 0 8px 30px rgba(255, 107, 107, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 3px; opacity: 0.5; }

/* ===== 布局 ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-main);
  overflow-x: hidden;
}

.page {
  display: none;
  animation: fadeIn 0.4s ease;
  min-height: 100vh;
  padding-bottom: 80px;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== 顶部导航 ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-main);
}

.top-bar .title {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}

.top-bar .logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.top-bar .avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: 2px solid var(--accent-soft);
  object-fit: cover;
}

/* ===== 底部导航栏 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  border-top: 1px solid var(--border);
  z-index: 200;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 12px;
  transition: var(--transition);
  color: var(--text-light);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item .nav-icon {
  font-size: 22px;
  transition: var(--transition);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
}

.nav-item .nav-label {
  font-size: 10px;
  font-weight: 600;
}

/* ===== 引导页 ===== */
.setup-page {
  padding: 40px 24px;
  text-align: center;
}

.setup-hero {
  margin-bottom: 32px;
  animation: slideUp 0.6s ease;
}

.setup-hero .hero-emoji {
  font-size: 64px;
  display: block;
  margin-bottom: 12px;
  animation: bounce 2s ease infinite;
}

.setup-hero h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.setup-hero .subtitle {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
}

.setup-hero .pun-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--bg-soft);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* 头像上传 */
.avatar-upload {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 3px dashed var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.avatar-upload:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-upload .upload-hint {
  font-size: 32px;
}

.avatar-upload .upload-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 107, 107, 0.85);
  color: white;
  font-size: 10px;
  padding: 2px;
  text-align: center;
}

/* 表单 */
.form-section {
  margin-bottom: 24px;
  text-align: left;
  animation: slideUp 0.6s ease;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--bg-card);
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* MBTI 选择网格 */
.mbti-group-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding: 2px;
}

.mbti-group-tab {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  border: 2px solid transparent;
}

.mbti-group-tab.active {
  background: var(--accent);
  color: white;
}

.mbti-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mbti-card {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.mbti-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mbti-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(255,217,61,0.08));
}

.mbti-card .mbti-code {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.mbti-card .mbti-nick {
  font-size: 12px;
  color: var(--text-soft);
}

.mbti-card .mbti-emoji {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 按钮 */
.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 主页 ===== */
.home-page {
  padding: 8px 20px;
}

.greeting-card {
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b6b, #ffa07a);
  color: white;
  animation: slideUp 0.5s ease;
}

.greeting-card .greeting-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.greeting-card .greeting-sub {
  font-size: 13px;
  opacity: 0.9;
}

.greeting-card .greeting-emoji {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.3;
}

/* 用户信息卡 */
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.user-card .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 3px solid var(--accent-soft);
  flex-shrink: 0;
  overflow: hidden;
}

.user-card .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card .user-info {
  flex: 1;
}

.user-card .user-name {
  font-size: 17px;
  font-weight: 700;
}

.user-card .user-mbti {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-card .user-mbti .mbti-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.user-card .energy-bar {
  margin-top: 6px;
  height: 6px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
}

.user-card .energy-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* 功能入口网格 */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.feature-card {
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card .feature-emoji {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.feature-card .feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card .feature-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
}

.feature-card .feature-pun {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.3);
  color: white;
  font-weight: 600;
}

/* 运势速览卡 */
.fortune-preview {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.fortune-preview .fortune-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fortune-preview .fortune-title {
  font-size: 15px;
  font-weight: 700;
}

.fortune-preview .fortune-date {
  font-size: 12px;
  color: var(--text-light);
}

.fortune-preview .fortune-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.fortune-preview .fortune-stars {
  margin-top: 8px;
  font-size: 16px;
}

/* ===== 塔罗占卜页 ===== */
.tarot-page {
  padding: 8px 20px;
}

.page-header {
  text-align: center;
  padding: 20px 0 16px;
  animation: slideUp 0.5s ease;
}

.page-header .page-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-header .page-subtitle {
  font-size: 13px;
  color: var(--text-soft);
}

.page-header .page-pun {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-soft);
  border-radius: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* 塔罗牌区 */
.tarot-stage {
  text-align: center;
  padding: 20px 0;
}

.tarot-question {
  margin-bottom: 20px;
}

.tarot-question .q-label {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.tarot-question .q-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-card);
  font-family: inherit;
}

.tarot-question .q-input:focus {
  outline: none;
  border-color: var(--accent);
}

.tarot-question .q-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

/* 卡背 */
.tarot-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  position: relative;
  margin-bottom: 20px;
}

.tarot-card-back {
  width: 120px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
  position: relative;
}

.tarot-card-back:hover {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: 0 12px 35px rgba(108, 92, 231, 0.4);
}

.tarot-card-back .card-back-pattern {
  font-size: 48px;
  opacity: 0.8;
}

.tarot-card-back .card-back-text {
  position: absolute;
  bottom: 16px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}

/* 翻开的牌 */
.tarot-card-flipped {
  width: 140px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fff5ed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.2);
  margin: 0 auto;
  animation: flipIn 0.6s ease;
}

@keyframes flipIn {
  from { transform: rotateY(90deg); opacity: 0; }
  to { transform: rotateY(0); opacity: 1; }
}

.tarot-card-flipped .card-emoji {
  font-size: 48px;
  margin-bottom: 8px;
}

.tarot-card-flipped .card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.tarot-card-flipped .card-keyword {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

.tarot-card-flipped .card-orientation {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.tarot-card-flipped .card-orientation.upright {
  background: rgba(107, 154, 92, 0.15);
  color: #6b9a5c;
}

.tarot-card-flipped .card-orientation.reversed {
  background: rgba(196, 74, 60, 0.15);
  color: #c44a3c;
}

/* 牌义解读 */
.tarot-reading {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.tarot-reading .reading-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.tarot-reading .reading-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
}

/* 聊天区 */
.tarot-chat {
  margin-top: 16px;
}

.tarot-chat .chat-label {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  animation: slideUp 0.3s ease;
}

.chat-msg.bot {
  background: var(--bg-soft);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: 40px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input-area .chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
}

.chat-input-area .chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-area .chat-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-input-area .chat-send:hover {
  transform: scale(1.05);
}

/* 梗图奖励卡 */
.meme-card {
  background: linear-gradient(135deg, #2d2424, #4a3a3a);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: slideUp 0.5s ease;
  position: relative;
  overflow: hidden;
}

.meme-card .meme-label {
  font-size: 11px;
  color: var(--accent-warm);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.meme-card .meme-text {
  font-size: 15px;
  color: #fff;
  line-height: 2;
  white-space: pre-line;
  font-family: "PingFang SC", monospace;
}

.meme-card .meme-mbti {
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent-warm);
  opacity: 0.7;
}

/* ===== 答案之书页 ===== */
.answer-page {
  padding: 8px 20px;
}

.answer-book {
  perspective: 1000px;
  margin: 30px auto;
  width: 280px;
  height: 360px;
  position: relative;
}

.book-cover {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  color: #ffd700;
}

.book-cover.flipping {
  animation: bookFlip 0.8s ease forwards;
}

@keyframes bookFlip {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(-160deg); }
}

.book-cover .book-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.book-cover .book-sub {
  font-size: 13px;
  opacity: 0.8;
}

.book-cover .book-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #faf5ed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.4s;
}

.book-page.show {
  opacity: 1;
  pointer-events: auto;
}

.book-page .page-answer {
  font-size: 20px;
  font-weight: 700;
  color: #4a3a2a;
  line-height: 1.8;
  font-family: "STKaiti", "KaiTi", serif;
}

.answer-input-area {
  margin-bottom: 16px;
}

.answer-input-area .answer-label {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-align: center;
}

.answer-input-area .answer-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-align: center;
  background: var(--bg-card);
  font-family: inherit;
}

.answer-input-area .answer-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== 今日挑战页 ===== */
.challenge-page {
  padding: 8px 20px;
}

.challenge-hero {
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
  animation: slideUp 0.5s ease;
}

.challenge-hero .ch-emoji {
  font-size: 48px;
  margin-bottom: 8px;
  animation: bounce 2s ease infinite;
}

.challenge-hero .ch-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.challenge-hero .ch-desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 14px;
}

.challenge-hero .ch-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.challenge-hero .ch-btn:hover {
  background: rgba(255,255,255,0.35);
}

/* Todo 列表 */
.todo-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.todo-header .todo-title {
  font-size: 16px;
  font-weight: 700;
}

.todo-add-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item .todo-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.todo-item .todo-check.done {
  background: #6b9a5c;
  border-color: #6b9a5c;
  color: white;
}

.todo-item .todo-content {
  flex: 1;
}

.todo-item .todo-text {
  font-size: 14px;
  color: var(--text-main);
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.todo-item .todo-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 8px;
  margin-top: 2px;
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 600;
}

.todo-item .todo-delete {
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  transition: var(--transition);
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-add-row {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.todo-add-row.show {
  display: flex;
}

.todo-add-row input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
}

.todo-add-row input:focus {
  outline: none;
  border-color: var(--accent);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state .empty-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 14px;
}

/* ===== 每日推荐页 ===== */
.daily-page {
  padding: 8px 20px;
}

.daily-card {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
  background: var(--bg-card);
}

.daily-card .daily-type {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
}

.daily-card .daily-type.movie {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.daily-card .daily-type.song {
  background: linear-gradient(90deg, #e84393, #fd79a8);
}

.daily-card .daily-body {
  padding: 20px;
}

.daily-card .daily-emoji {
  font-size: 40px;
  margin-bottom: 10px;
}

.daily-card .daily-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.daily-card .daily-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.daily-card .daily-quote {
  padding: 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  position: relative;
  font-family: "STKaiti", "KaiTi", serif;
}

.daily-card .daily-quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 8px;
  font-size: 36px;
  color: var(--accent);
  opacity: 0.2;
  font-family: serif;
}

.daily-card .daily-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.daily-card .daily-mood {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* ===== 治愈页 ===== */
.heal-page {
  padding: 8px 20px;
}

.heal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.heal-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideUp 0.5s ease;
}

.heal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-soft);
}

.heal-type-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-soft);
  padding: 4px 12px;
  border-radius: 12px;
}

.heal-refresh-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.heal-refresh-btn:hover {
  transform: rotate(180deg);
}

.heal-card-body {
  padding: 24px 20px;
  text-align: center;
}

.heal-emoji-large {
  font-size: 56px;
  margin-bottom: 12px;
  animation: bounce 2s ease infinite;
}

.heal-pet-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.heal-text {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.9;
  font-family: "PingFang SC", sans-serif;
  margin-bottom: 12px;
}

.heal-mbti-tag {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.heal-pet-author {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* ===== 通用 ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 36, 36, 0.9);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 999;
  animation: slideUp 0.3s ease;
  white-space: nowrap;
}

/* MBTI 主题色辅助类 */
.color-analyst { color: #6c5ce7; }
.color-diplomat { color: #00b894; }
.color-sentinel { color: #d63031; }
.color-explorer { color: #feca57; }

/* 响应式 */
@media (max-width: 360px) {
  .mbti-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
