/* ============================================
   萌宠工作台 - Cute Pet Workbench
   整体风格：可爱、萌宠、柔和配色
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  --primary: #FFB5C5;
  --primary-dark: #FF9FB5;
  --primary-light: #FFE4ED;
  --secondary: #A8D8F0;
  --secondary-light: #D6F0FF;
  --accent: #B5E8C8;
  --accent-light: #E0F8EE;
  --warning: #FFD89E;
  --danger: #FFA8A8;
  --bg-main: #FFF9F5;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFF0F5;
  --text-main: #5A4A4A;
  --text-light: #8A7A7A;
  --text-muted: #B0A0A0;
  --border: #FFE0EC;
  --shadow: 0 4px 15px rgba(255, 181, 197, 0.2);
  --shadow-hover: 0 6px 25px rgba(255, 181, 197, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --sidebar-width: 220px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== 主布局 ===== */
.app {
  display: flex;
  height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #FFF0F5 0%, #FFE4ED 100%);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.logo {
  padding: 20px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo .pet-icon {
  font-size: 26px;
  animation: bounce 2s ease-in-out infinite;
}

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

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
  text-align: left;
  font-weight: 500;
  position: relative;
}

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

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
}

.nav-btn:hover .nav-icon {
  transform: scale(1.2) rotate(-5deg);
}

.nav-btn.active {
  background: var(--bg-card);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.nav-btn.active .nav-icon {
  transform: scale(1.15);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 16px;
  text-align: center;
  border-top: 2px dashed var(--border);
}

.sidebar-footer .pet-quote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-footer .pet-emoji {
  font-size: 28px;
  margin-bottom: 4px;
  display: block;
}

/* ===== 主内容区 ===== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(255, 181, 197, 0.1);
  z-index: 5;
}

.topbar-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.topbar-greeting .greeting-emoji {
  font-size: 22px;
}

.topbar-date {
  font-size: 13px;
  color: var(--text-light);
}

.module-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ===== 模块通用 ===== */
.module {
  display: none;
  animation: fadeIn 0.4s ease;
}

.module.active {
  display: block;
}

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

.module-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== 卡片通用 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .title-icon {
  font-size: 20px;
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 英语学习模块 ===== */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-item:nth-child(2) .timeline-dot { border-color: var(--secondary); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--accent); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--warning); }

.timeline-phase {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-time {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.phonetic-card {
  background: linear-gradient(135deg, #FFF5F8, #F0F8FF);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.phonetic-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.phonetic-symbol {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.phonetic-example {
  font-size: 12px;
  color: var(--text-light);
}

.phonetic-example strong {
  color: var(--text-main);
}

.word-card {
  background: linear-gradient(135deg, #FFF5F8, #FFFCF5);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.word-card:hover {
  transform: translateX(4px);
  border-left-color: var(--primary-dark);
}

.word-en {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.word-phonetic {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.word-zh {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 4px;
}

.tag-pink { background: var(--primary-light); color: var(--primary-dark); }
.tag-blue { background: var(--secondary-light); color: #5A9FC0; }
.tag-green { background: var(--accent-light); color: #5A9F70; }
.tag-orange { background: #FFF3E0; color: #D4860E; }

/* ===== 理财模块 ===== */
.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--primary);
}

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

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.news-date {
  font-size: 11px;
  color: var(--text-muted);
}

.news-source {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-explain {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.7;
}

.news-explain .explain-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #D4860E;
  margin-bottom: 4px;
}

.fund-lesson {
  background: linear-gradient(135deg, #F0F8FF, #FFF5F8);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.fund-lesson:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.fund-lesson-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fund-lesson-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.fund-lesson-content strong {
  color: var(--text-main);
}

.knowledge-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.path-step {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.path-step:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.path-arrow {
  color: var(--primary);
  font-size: 16px;
}

/* ===== 代码学习模块 ===== */
.roadmap-step {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.roadmap-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.roadmap-step .step-num {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: #5A9F70;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.step-content code {
  background: #F5F0F5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #C06090;
}

.tip-box {
  background: linear-gradient(135deg, #E0F8EE, #F0FFF5);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 2px solid var(--accent);
}

.tip-box .tip-label {
  font-size: 14px;
  font-weight: 600;
  color: #5A9F70;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tip-box .tip-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.tip-box .tip-content strong {
  color: var(--text-main);
}

/* ===== 记账模块 ===== */
.accounting-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-main);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 3px 10px rgba(255, 159, 181, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 159, 181, 0.4);
}

.btn-secondary {
  background: var(--secondary-light);
  color: #5A9FC0;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: white;
}

.btn-danger {
  background: #FFE5E5;
  color: #D05050;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.type-toggle button {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.type-toggle button.active.expense {
  background: linear-gradient(135deg, #FFB5C5, #FF9FB5);
  color: white;
  border-color: var(--primary);
}

.type-toggle button.active.income {
  background: linear-gradient(135deg, #B5E8C8, #98D8B5);
  color: white;
  border-color: var(--accent);
}

.record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition);
}

.record-item:hover {
  background: var(--primary-light);
}

.record-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.record-info {
  flex: 1;
}

.record-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.record-note {
  font-size: 12px;
  color: var(--text-muted);
}

.record-amount {
  font-size: 16px;
  font-weight: 700;
}

.record-amount.expense { color: #E07070; }
.record-amount.income { color: #5A9F70; }

.record-delete {
  opacity: 0;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
}

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

.stat-card {
  background: linear-gradient(135deg, var(--bg-card), #FFF8F5);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-value.expense { color: #E07070; }
.stat-value.income { color: #5A9F70; }
.stat-value.balance { color: var(--primary-dark); }

#categoryChart {
  max-width: 100%;
}

.chart-placeholder {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

/* ===== 游泳模块 ===== */
.swim-session {
  background: linear-gradient(135deg, #E3F2FD, #F0F8FF);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 2px solid #D0E8FF;
  transition: var(--transition);
  position: relative;
}

.swim-session:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.swim-session.completed {
  opacity: 0.6;
}

.swim-session.completed .session-title {
  text-decoration: line-through;
}

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

.session-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--secondary);
  color: white;
}

.session-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.session-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.session-content strong {
  color: var(--text-main);
}

.session-tips {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-light);
}

.session-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.session-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.session-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.video-card:hover {
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.video-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  line-height: 1.5;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.video-link:hover {
  color: var(--primary);
}

/* ===== 减脂模块 ===== */
.fitness-video {
  background: linear-gradient(135deg, #F0FFF5, #FFF5F8);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid var(--accent-light);
  transition: var(--transition);
}

.fitness-video:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fitness-video-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.fitness-video-thumb {
  font-size: 36px;
  flex-shrink: 0;
}

.fitness-video-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.fitness-video-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.fitness-video-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.weekly-plan-day {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.weekly-plan-day:hover {
  border-color: var(--accent);
}

.weekly-plan-day .day-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.weekly-plan-day .day-content {
  font-size: 12px;
  color: var(--text-light);
}

.weekly-plan-day.rest {
  background: #FFF8F0;
}

/* ===== 进度条 ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--primary-light);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ===== 提示弹窗 ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-main);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

/* ===== 分隔标题 ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.section-header:first-child {
  margin-top: 0;
}

.section-header .header-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
  border-radius: 2px;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-hot { background: #FFE5E5; color: #D05050; }
.badge-new { background: #E0F8EE; color: #5A9F70; }
.badge-rec { background: #FFF3E0; color: #D4860E; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .logo { font-size: 0; padding: 16px 8px; }
  .logo .pet-icon { font-size: 24px; }
  .nav-btn { justify-content: center; padding: 12px 8px; }
  .nav-btn span:not(.nav-icon) { display: none; }
  .sidebar-footer { display: none; }
  .module-area { padding: 12px; }
  .accounting-form { grid-template-columns: 1fr; }
}

/* ============================================
   V2 新增样式
   ============================================ */

/* ===== 绝望主妇剧集卡 ===== */
.dh-episode {
  background: linear-gradient(135deg, #FFF5F8, #F5F0FF);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.dh-episode:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.dh-episode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.dh-section {
  margin-bottom: 10px;
}

.dh-section-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dh-quote {
  background: rgba(255,255,255,0.7);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 6px;
}

.dh-quote .translation {
  font-style: normal;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.dh-vocab-item {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 4px 10px;
  margin: 2px;
  font-size: 12px;
}

.dh-vocab-item strong { color: var(--primary-dark); }

.dh-grammar {
  background: rgba(168,216,240,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.dh-grammar strong { color: #5A9FC0; }

/* ===== 发音纠正器 ===== */
.pronun-box {
  text-align: center;
}

.pronun-sentence {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 16px 0 8px;
  padding: 16px;
  background: linear-gradient(135deg, #FFF5F8, #F0F8FF);
  border-radius: var(--radius);
}

.pronun-sentence .phonetic {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.pronun-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.btn-mic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-mic.idle {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 3px 12px rgba(255,159,181,0.4);
}

.btn-mic.recording {
  background: #FF6B6B;
  color: white;
  animation: pulse 1s ease-in-out infinite;
}

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

.pronun-result {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.pronun-result.show { display: block; }

.pronun-result.good {
  background: linear-gradient(135deg, #E0F8EE, #F0FFF5);
  color: #5A9F70;
}

.pronun-result.ok {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  color: #D4860E;
}

.pronun-result.bad {
  background: linear-gradient(135deg, #FFE5E5, #FFF0F0);
  color: #D05050;
}

.pronun-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.pronun-counter {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== AI知识卡 ===== */
.ai-card {
  background: linear-gradient(135deg, #F0F0FF, #F5F0FF);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 2px solid #E0E0F5;
  transition: var(--transition);
}

.ai-card:hover {
  border-color: #C0C0E5;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ai-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-card-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.ai-card-content strong { color: var(--text-main); }

.ai-tool-badge {
  display: inline-block;
  background: #E8E0FF;
  color: #7060C0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px;
}

/* ===== JS每日图文课 ===== */
.js-lesson {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  transition: var(--transition);
}

.js-lesson:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.js-lesson-day {
  display: inline-block;
  background: var(--accent-light);
  color: #5A9F70;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.js-lesson-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.js-lesson-analogy {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 10px;
}

.js-lesson-analogy .analogy-label {
  font-size: 11px;
  font-weight: 700;
  color: #D4860E;
  margin-bottom: 4px;
}

.js-lesson-code {
  background: #2D2D2D;
  color: #F8F8F2;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  overflow-x: auto;
}

.js-lesson-code .comment { color: #6A9955; }
.js-lesson-code .keyword { color: #C586C0; }
.js-lesson-code .string { color: #CE9178; }

.js-lesson-task {
  background: linear-gradient(135deg, #E0F8EE, #F0FFF5);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.js-lesson-task .task-label {
  font-size: 11px;
  font-weight: 700;
  color: #5A9F70;
  margin-bottom: 4px;
}

/* ===== 阶段任务卡 ===== */
.stage-task {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.stage-task:hover {
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.stage-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stage-task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.stage-task-deliverable {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.stage-task-deliverable strong { color: var(--text-main); }

/* ===== 读书模块 ===== */
.book-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--warning);
  transition: var(--transition);
  display: flex;
  gap: 14px;
}

.book-card:hover {
  border-left-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.book-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.book-info { flex: 1; }

.book-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.book-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.book-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.book-reason {
  font-size: 12px;
  color: var(--primary-dark);
  margin-top: 6px;
  font-weight: 600;
}

.awaken-card {
  background: linear-gradient(135deg, #FFF8E1, #FFF5F0);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 2px solid #FFE0B2;
  transition: var(--transition);
}

.awaken-card:hover {
  border-color: var(--warning);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.awaken-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.awaken-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.awaken-content strong { color: var(--text-main); }

.note-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.note-item:hover { box-shadow: var(--shadow-hover); }

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

.note-book {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.note-date {
  font-size: 11px;
  color: var(--text-muted);
}

.note-chapter {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.note-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ===== 穿搭模块 ===== */
.fabric-card {
  background: linear-gradient(135deg, #F0F8FF, #FFF5F8);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.fabric-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fabric-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fabric-icon { font-size: 28px; }

.fabric-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.fabric-props {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.fabric-prop {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.fabric-prop.good { background: #E0F8EE; color: #5A9F70; }
.fabric-prop.bad { background: #FFE5E5; color: #D05050; }
.fabric-prop.neutral { background: #FFF3E0; color: #D4860E; }

.fabric-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.color-scheme {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.color-scheme:hover { box-shadow: var(--shadow-hover); }

.color-demo {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.color-block {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.05);
}

.color-info { flex: 1; }

.color-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.color-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.fashion-rule {
  background: linear-gradient(135deg, #FFF5F8, #FFFCF5);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.fashion-rule:hover { transform: translateX(4px); }

.fashion-rule-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.fashion-rule-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.fashion-rule-content strong { color: var(--text-main); }

.style-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.style-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.style-emoji { font-size: 40px; margin-bottom: 8px; }

.style-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.style-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 赚钱模块 ===== */
.money-card {
  background: linear-gradient(135deg, #F0FFF5, #FFF8F0);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 2px solid #D0F0D8;
  transition: var(--transition);
}

.money-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.money-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.money-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.money-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.money-desc strong { color: var(--text-main); }

.money-steps {
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

.money-steps strong { color: #5A9F70; }

.hotspot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid #FF9876;
  transition: var(--transition);
}

.hotspot-card:hover {
  border-left-color: #FF6B4A;
  transform: translateX(4px);
}

.hotspot-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

/* ===== 写作模块 ===== */
.prose-card {
  background: linear-gradient(135deg, #FDF6F0, #FFF0F5);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 2px solid #F5E0DC;
  transition: var(--transition);
  position: relative;
}

.prose-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.prose-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 8px;
}

.prose-source {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.prose-source strong { color: var(--text-light); }

.writing-method {
  background: linear-gradient(135deg, #F0F8FF, #F5F0FF);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.writing-method:hover { transform: translateX(4px); }

.writing-method-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.writing-method-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

.writing-method-content strong { color: var(--text-main); }

.writing-method-example {
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

.prompt-card {
  background: linear-gradient(135deg, #FFF5F8, #F0F8FF);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.prompt-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.prompt-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.prompt-words {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 通用文本域 ===== */
textarea {
  font-family: inherit;
}
