:root {
  --bg: #fff5f7;
  --bg-2: #f8f0ff;
  --pink: #ffb6c1;
  --pink-light: #ffe4e9;
  --pink-dark: #ff8fa3;
  --purple: #d8b4fe;
  --purple-light: #f3e8ff;
  --purple-dark: #c084fc;
  --blue: #a5d8ff;
  --blue-light: #e0f2fe;
  --blue-dark: #7dd3fc;
  --yellow: #fde68a;
  --yellow-light: #fef3c7;
  --yellow-dark: #fcd34d;
  --green: #bbf7d0;
  --green-light: #dcfce7;
  --text: #4a4a6a;
  --text-light: #8b8ba7;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(147, 112, 219, 0.12);
  --shadow-hover: 0 8px 30px rgba(147, 112, 219, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部栏 */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.menu-toggle {
  display: none;
  background: var(--pink-light);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--pink-dark);
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emoji {
  font-size: 2rem;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'ZCOOL KuaiLe', cursive;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

.date-card {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-icon {
  font-size: 1.1rem;
}

/* 布局 */
.layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}

/* 侧边栏 */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #ffe4e9 0%, #f3e8ff 100%);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 90px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  font-family: 'ZCOOL KuaiLe', cursive;
}

.eyes {
  font-size: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.5);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

.nav-item.active {
  background: var(--white);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink-dark);
}

.nav-icon {
  font-size: 1.5rem;
  width: 32px;
  text-align: center;
}

.nav-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
}

/* 主内容区 */
.main-content {
  flex: 1;
  min-width: 0;
}

.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

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

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
  font-family: 'ZCOOL KuaiLe', cursive;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.card-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* 概览 */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.stat-card.pink { background: linear-gradient(135deg, var(--pink-dark), var(--pink)); }
.stat-card.purple { background: linear-gradient(135deg, var(--purple-dark), var(--purple)); }
.stat-card.yellow { background: linear-gradient(135deg, var(--yellow-dark), var(--yellow)); color: var(--text); }
.stat-card.blue { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--text); }

.stat-icon {
  font-size: 2rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.motivation-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, var(--yellow-light), var(--pink-light));
  border: 2px dashed var(--yellow-dark);
}

.motivation-emoji {
  font-size: 2.5rem;
}

#motivationText {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.quick-links h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.quick-btn {
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  background: var(--pink-light);
  transform: translateY(-2px);
}

/* 任务列表 */
.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.task-item:hover {
  background: var(--pink-light);
}

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

.cute-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--pink-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--white);
  transition: all 0.2s ease;
}

.cute-checkbox.checked {
  background: var(--pink-dark);
  color: var(--white);
}

.task-text {
  flex: 1;
  font-size: 0.95rem;
}

.task-category {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
}

.task-category.sport { background: var(--pink-light); color: var(--pink-dark); }
.task-category.study { background: var(--blue-light); color: var(--blue-dark); }
.task-category.craft { background: var(--green-light); color: #22c55e; }
.task-category.other { background: var(--yellow-light); color: var(--yellow-dark); }

.delete-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.delete-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.add-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.add-form input,
.add-form select,
.add-form textarea {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.add-form input:focus,
.add-form select:focus,
.add-form textarea:focus {
  border-color: var(--pink-dark);
}

.add-form textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

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

/* 舞蹈 */
.user-profile {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.profile-grid div {
  background: rgba(255, 255, 255, 0.8);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.profile-grid span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
}

.profile-grid b {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-top: 4px;
}

.dance-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dance-day {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--pink);
  transition: all 0.2s;
}

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

.dance-day.phase1 { border-left-color: var(--green); }
.dance-day.phase2 { border-left-color: var(--blue-dark); }
.dance-day.phase3 { border-left-color: var(--purple-dark); }

/* 置顶（打卡的那天）高亮 */
.dance-day.pinned {
  border: 2px solid var(--pink-dark);
  box-shadow: 0 6px 22px rgba(231,84,128,0.28);
  position: relative;
}
.day-card.pinned {
  border: 2px solid var(--pink-dark);
  box-shadow: 0 6px 22px rgba(231,84,128,0.28);
}

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

.dance-day h4 {
  font-size: 1rem;
  font-weight: 800;
}

.dance-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 700;
}

.dance-content p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.dance-content ul {
  margin-left: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.dance-media {
  margin-top: 12px;
  border-top: 1px dashed var(--pink-light);
  padding-top: 10px;
}
.media-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 6px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(192,132,252,0.18);
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn-media {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--pink-light);
  color: var(--pink-dark);
}
.btn-media.music {
  background: #e6f6ec;
  color: #2e9d5b;
}

/* 英语学习 */
.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-list li {
  padding: 10px 14px;
  background: var(--purple-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.english-days,
.study-days,
.photo-lessons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-card,
.lesson-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.day-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.day-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--yellow-light);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.day-status.done {
  background: var(--green);
  color: var(--text);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.word-card {
  background: var(--blue-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.word-card b {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.passage-box {
  background: var(--pink-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.passage-box .en {
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

.passage-box .cn {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.passage-box .grammar {
  font-size: 0.8rem;
  background: var(--white);
  padding: 8px;
  border-radius: 8px;
  color: var(--purple-dark);
}

/* 剪辑/P图学习通用 */
.study-quote {
  background: linear-gradient(90deg, var(--yellow-light), var(--pink-light));
  border-left: 4px solid var(--yellow-dark);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.8;
}

.lesson-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.lesson-card ol,
.lesson-card ul {
  margin-left: 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.lesson-card li {
  margin-bottom: 6px;
}

/* 披肩制作 */
.upload-area {
  border: 3px dashed var(--pink);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  background: var(--pink-light);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--pink-dark);
  background: #fff0f3;
}

.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.upload-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.upload-meta input {
  flex: 1;
  min-width: 150px;
  padding: 12px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  outline: none;
}

.shawl-preview {
  margin-top: 16px;
}

.shawl-preview img,
.shawl-preview video {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
}

.shawl-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shawl-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.shawl-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.shawl-info {
  flex: 1;
  min-width: 200px;
}

.shawl-info h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.shawl-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.shawl-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.shawl-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.shawl-actions .btn-edit {
  background: var(--blue-light);
  color: var(--text);
}

.shawl-actions .btn-del {
  background: var(--pink-light);
  color: var(--pink-dark);
}

/* AI学习 */
.ai-roadmap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-phase {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  align-items: flex-start;
}

.ai-phase-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.ai-phase h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.ai-phase p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.ai-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.ai-tool {
  background: var(--purple-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

.ai-tool b {
  display: block;
  margin-bottom: 4px;
}

/* AI学习·每日渐进计划 */
.ai-days {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.ai-day {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--purple-dark);
  transition: all 0.2s;
}
.ai-day:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.ai-day.pinned {
  border: 2px solid var(--pink-dark);
  box-shadow: 0 6px 22px rgba(231,84,128,0.28);
  position: relative;
}

.ai-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-day-header h4 {
  font-size: 1.02rem;
  font-weight: 800;
}

.ai-stage {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  color: var(--white);
  vertical-align: middle;
  background: var(--purple-dark);
}
.stage-认知启蒙 { background: #f5a623; }
.stage-核心技能 { background: #e7548c; }
.stage-AI绘画入门 { background: #7c5cff; }
.stage-AI绘画进阶 { background: #5b8def; }
.stage-AI视频入门 { background: #2e9d5b; }
.stage-大模型实战 { background: #d96b2b; }
.stage-智能体 { background: #c44ce0; }
.stage-综合实战 { background: #d6453f; }

.ai-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 700;
}
.ai-badge.done {
  background: #e6f6ec;
  color: #2e9d5b;
}

.ai-topic {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.ai-media {
  border-top: 1px dashed var(--pink-light);
  padding-top: 10px;
}

.ai-goal,
.ai-note {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.ai-goal {
  background: #fff6ef;
  color: #c2521a;
}
.ai-goal span { color: var(--text); }
.ai-note {
  background: var(--purple-light);
  color: var(--purple-dark);
}
.ai-note span { color: var(--text); }

/* AI进度条 */
.ai-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
}
.ai-progress-bar {
  flex: 1;
  height: 12px;
  background: var(--pink-light);
  border-radius: 20px;
  overflow: hidden;
}
.ai-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark));
  border-radius: 20px;
  transition: width 0.4s ease;
}
.ai-progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}
.ai-progress-text b { color: var(--pink-dark); }
.ai-updated {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.ai-ref {
  margin-top: 6px;
}
.ai-ref summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--purple-dark);
  padding: 8px 0;
  font-size: 0.9rem;
}
.ai-ref .card { margin-top: 10px; }

/* 纪念日 */
.anniversary-form {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anniversary-form #anniName {
  width: 100%;
}

.anniversary-form #anniSolarWrap,
.anniversary-form #anniLunarWrap {
  display: flex;
  gap: 10px;
}

.anniversary-form #anniLunarWrap .anni-lunar-sel {
  flex: 1;
}

.anni-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anni-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--pink-light);
  border-radius: var(--radius-sm);
}

.anni-info {
  flex: 1;
}

.anni-info h4 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.anni-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.anni-soon {
  font-size: 0.7rem;
  background: var(--pink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.anni-meta {
  color: var(--text-light);
}

.anni-countdown {
  color: var(--pink-dark) !important;
  font-weight: 600;
}

.anni-countdown b {
  font-size: 1rem;
}

/* 添加表单：阳历/阴历 + 提醒方式 */
.anni-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.anni-label {
  font-size: 0.8rem;
  color: var(--text-light);
  min-width: 52px;
}

.seg {
  display: inline-flex;
  background: var(--pink-light);
  border-radius: 999px;
  padding: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

.seg-btn.active {
  background: var(--pink);
  color: #fff;
  font-weight: 600;
}

.anni-sel,
.anni-lunar-sel {
  flex: 1;
  min-width: 110px;
  padding: 9px 10px;
  border: 1px solid var(--pink-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--text);
}

#anniSolarWrap input[type="date"] {
  flex: 1;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* 近期提醒横幅 */
.anni-near {
  margin: 14px 0 6px;
}

.anni-near-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 8px;
}

.anni-near-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anni-near-chip {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* 灵感 */
.insp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.insp-card {
  background: linear-gradient(135deg, var(--yellow-light), var(--pink-light));
  border-radius: var(--radius-sm);
  padding: 14px;
  position: relative;
}

.insp-card p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  word-break: break-word;
}

.insp-time {
  font-size: 0.7rem;
  color: var(--text-light);
}

.insp-card .delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* 新闻 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.news-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--pink-dark);
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.news-title {
  flex: 1;
  font-size: 0.95rem;
}

/* 自动抓取的每日热点 */
.auto-news { display: flex; flex-direction: column; gap: 12px; }
.auto-news-loading { color: var(--text-light); font-size: 0.9rem; padding: 6px 0; }
.auto-news-date {
  font-size: 0.82rem; font-weight: 800; color: var(--pink-dark);
  background: var(--pink-light); padding: 5px 10px; border-radius: 20px; align-self: flex-start;
}
.auto-news-overview {
  font-size: 0.88rem; line-height: 1.6; color: var(--text);
  background: linear-gradient(135deg, #fff0f4, #f3ecff);
  border-left: 3px solid var(--pink-dark);
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.auto-news-list { display: flex; flex-direction: column; gap: 10px; }
.auto-news-item {
  background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px;
  border: 1px solid rgba(255,143,163,0.18);
}
.ani-title { font-size: 0.95rem; font-weight: 700; line-height: 1.45; color: var(--text); }
.ani-meta { margin: 6px 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-src { font-size: 0.72rem; color: var(--text-light); background: var(--white); padding: 2px 8px; border-radius: 20px; }
.news-link { font-size: 0.74rem; color: var(--purple-dark); font-weight: 700; text-decoration: none; }
.news-link:hover { text-decoration: underline; }
.ani-benefits { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.benefit-chip {
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: #e6f7ec; color: #1a8a4a; border: 1px solid #b6e6c8;
}
.benefit-chip.muted { background: var(--white); color: var(--text-light); border-color: #eee; }
.ani-analysis { margin: 2px 0 0; padding-left: 18px; font-size: 0.8rem; line-height: 1.55; color: var(--text-light); }
.ani-analysis li { margin-bottom: 2px; }
.news-sep {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 10px;
  color: var(--text-light); font-size: 0.8rem; font-weight: 700;
}
.news-sep::before, .news-sep::after { content: ''; flex: 1; height: 1px; background: #eee; }

/* 响应式 */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 200;
    border-radius: 0;
    transform: translateX(-100%);
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
  }

  .overlay.show {
    display: block;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 10px 14px;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .date-card {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .add-form {
    flex-direction: column;
  }

  .add-form input,
  .add-form select,
  .btn-primary {
    width: 100%;
  }
}

/* 安装到桌面引导横幅 */
.install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(255, 143, 163, 0.3);
  position: relative;
}
.install-emoji { font-size: 1.6rem; }
.install-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.install-text b { font-size: 0.95rem; }
.install-text small { font-size: 0.72rem; opacity: 0.85; }
.btn-install {
  background: var(--white);
  color: var(--pink-dark);
  border: none;
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-install:active { transform: scale(0.96); }
.install-close {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  flex-shrink: 0;
  line-height: 1;
}
/* 桌面端不需要装手机，隐藏 */
@media (min-width: 901px) {
  .install-banner { display: none; }
}
@media (max-width: 480px) {
  .install-banner { margin: 10px 12px 0; }
  .btn-install { padding: 9px 13px; font-size: 0.8rem; }
}
.install-guide {
  margin: 0 16px 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px dashed var(--pink);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
}
.install-guide p { margin: 0 0 8px; }
.install-guide p:last-child { margin-bottom: 0; }
.install-guide b { color: var(--pink-dark); }
.install-guide-tip { font-size: 0.76rem; color: var(--text-light); }
@media (max-width: 480px) {
  .install-guide { margin: 0 12px 10px; }
}
