/* ============================================
   陪伴计划 V5 — Mobile-First Design System
   ============================================ */

/* ===== 1. CSS Variables ===== */
:root {
  --preg-primary: #6C5CE7; --preg-light: #A29BFE; --preg-lighter: #DDD6FE; --preg-bg: #F8F7FF;
  --preg-gradient: linear-gradient(135deg, #6C5CE7, #A29BFE);
  --baby-primary: #00CEC9; --baby-light: #55EFC4; --baby-lighter: #B2F5EA; --baby-bg: #F0FFFE;
  --baby-gradient: linear-gradient(135deg, #00CEC9, #55EFC4);
  --white: #FFFFFF; --gray-50: #FAFAFA; --gray-100: #F5F5F5; --gray-200: #EEEEEE;
  --gray-300: #E0E0E0; --gray-400: #9E9E9E; --gray-500: #757575; --gray-600: #616161;
  --gray-700: #525252; --gray-800: #424242; --gray-900: #212121;
  --danger: #FF6B6B; --warning: #FECA57; --success: #00B894;
  --shadow: 0 2px 12px rgba(0,0,0,0.08); --shadow-md: 0 4px 6px rgba(0,0,0,0.1); --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition-fast: 150ms ease; --transition-normal: 300ms ease;
  --radius-sm: 8px; --radius: 12px; --radius-md: 16px; --radius-lg: 20px; --radius-xl: 24px; --radius-pill: 999px;
  --font-display: 'Sora', sans-serif; --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
}

/* ===== 2. Base Styles ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

*:focus-visible {
  outline: 2px solid var(--preg-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

[data-mode="baby"] *:focus-visible {
  outline-color: var(--baby-primary);
}

/* Clickable elements */
button, .btn, .mode-card, .tab-item, .nav-back, .nav-right, .grid-item, .quick-item,
.dad-task-item, .list-item, .tag, .assess-opt, .scroll-card, .tip-card, .task-card,
.record-btn, .color-dot, .checkbox-item, .course-card, .dev-link, .dev-card,
.checkup-card, .checkup-btn, a[onclick], div[onclick], span[onclick] {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* Icon helpers */
.icon { display: inline-flex; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-2xl { width: 48px; height: 48px; }

/* ===== 3. Phone Frame ===== */
.phone-frame {
  width: 375px;
  height: 812px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 0 0 8px #2d2d44, 0 0 0 10px #444, 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== 4. Status Bar ===== */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 0;
  z-index: 1000;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
}

.status-bar.light {
  color: var(--white);
}

.status-bar-time {
  font-size: 14px;
  font-weight: 600;
}

.status-bar-icons {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: 12px;
}

/* ===== 5. Page System ===== */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page.active {
  display: flex;
  animation: slideIn 0.3s ease forwards;
}

.page.active-no-anim {
  display: flex;
}

.page-content {
  flex: 1;
  padding: 0 16px 100px;
  overflow-y: auto;
}

/* ===== 6. Navigation Bar ===== */
.nav-bar {
  position: sticky;
  top: 0;
  height: 88px;
  display: flex;
  align-items: flex-end;
  padding: 0 16px 12px;
  z-index: 100;
  background: var(--white);
}

.nav-bar.gradient-preg {
  background: var(--preg-gradient);
}

.nav-bar.gradient-baby {
  background: var(--baby-gradient);
}

.nav-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-back:active {
  background: rgba(0,0,0,0.1);
}

.nav-back.light {
  color: var(--white);
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 8px;
}

.nav-title.light {
  color: var(--white);
}

.nav-right {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== 7. Tab Bar ===== */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  display: none;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  z-index: 900;
}

.tab-bar.visible {
  display: flex;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-item .tab-icon {
  font-size: 22px;
}

.tab-item .tab-label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 400;
}

.tab-item.active .tab-label {
  font-weight: 600;
}

.tab-bar.preg .tab-item.active .tab-icon,
.tab-bar.preg .tab-item.active .tab-label {
  color: var(--preg-primary);
}

.tab-bar.baby .tab-item.active .tab-icon,
.tab-bar.baby .tab-item.active .tab-label {
  color: var(--baby-primary);
}

/* ===== 8. Buttons ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.btn-preg {
  background: var(--preg-gradient);
  color: var(--white);
}

.btn-baby {
  background: var(--baby-gradient);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline.preg {
  border-color: var(--preg-primary);
  color: var(--preg-primary);
}

.btn-outline.baby {
  border-color: var(--baby-primary);
  color: var(--baby-primary);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

/* ===== 9. Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 20px 0 12px;
  font-family: var(--font-display);
}

.big-number {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ===== 10. Tags & Badges ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  margin: 4px;
}

.tag:active {
  transform: scale(0.95);
}

.tag.selected-preg {
  background: var(--preg-lighter);
  border-color: var(--preg-primary);
  color: var(--preg-primary);
}

.tag.selected-baby {
  background: var(--baby-lighter);
  border-color: var(--baby-primary);
  color: var(--baby-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-preg {
  background: var(--preg-lighter);
  color: var(--preg-primary);
}

.badge-baby {
  background: var(--baby-lighter);
  color: var(--baby-primary);
}

/* ===== 11. Progress ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-fill.preg {
  background: var(--preg-gradient);
}

.progress-fill.baby {
  background: var(--baby-gradient);
}

/* ===== 12. List Items ===== */
.list-item {
  display: flex;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}

.list-item:active {
  background: var(--gray-50);
}

.list-item-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

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

.list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.list-item-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.list-item-arrow {
  color: var(--gray-400);
  font-size: 14px;
}

/* ===== 13. Timeline ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

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

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.timeline-dot.done {
  background: var(--success);
  color: var(--white);
}

.timeline-dot.current-preg {
  background: var(--preg-primary);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--preg-lighter);
}

.timeline-dot.current-baby {
  background: var(--baby-primary);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--baby-lighter);
}

.timeline-dot.pending {
  background: var(--gray-300);
}

/* ===== 14. Input Fields ===== */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.input-field:focus {
  border-color: var(--preg-primary);
}

.input-field.baby:focus {
  border-color: var(--baby-primary);
}

/* ===== 15. Counter Circle ===== */
.counter-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}

.counter-circle:active {
  transform: scale(0.95);
}

.counter-circle.preg {
  background: var(--preg-gradient);
  box-shadow: 0 8px 30px rgba(108,92,231,0.3);
}

.counter-number {
  font-size: 64px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  font-family: var(--font-display);
}

.counter-label {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* ===== 16. Chart ===== */
.chart-container {
  width: 100%;
  height: 180px;
  position: relative;
  margin: 16px 0;
  border-left: 2px solid var(--gray-300);
  border-bottom: 2px solid var(--gray-300);
}

.chart-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--gray-200);
}

.chart-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.chart-point.preg {
  background: var(--preg-primary);
}

.chart-point.baby {
  background: var(--baby-primary);
}

/* ===== 17. Checkbox ===== */
.checkbox-item {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-400);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 12px;
}

.checkbox-box.checked-preg {
  background: var(--preg-primary);
  border-color: var(--preg-primary);
  color: var(--white);
}

.checkbox-box.checked-baby {
  background: var(--baby-primary);
  border-color: var(--baby-primary);
  color: var(--white);
}

.checkbox-text {
  font-size: 14px;
  color: var(--gray-800);
  flex: 1;
}

.checkbox-count {
  font-size: 12px;
  color: var(--gray-500);
  margin-left: 8px;
}

/* ===== 18. Slider ===== */
.slider-container {
  margin: 16px 0;
}

.slider-track {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  position: relative;
}

.slider-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--baby-gradient);
}

.slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--baby-primary);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-value {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--baby-primary);
  margin: 8px 0;
}

/* ===== 19. Color Options ===== */
.color-options {
  display: flex;
  gap: var(--space-3);
  margin: 12px 0;
}

.color-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  border: 3px solid transparent;
}

.color-dot:active {
  transform: scale(0.9);
}

.color-dot.selected {
  border-color: var(--gray-900);
  transform: scale(1.1);
}

/* ===== 20. Scroll Horizontal ===== */
.scroll-h {
  display: flex;
  overflow-x: auto;
  gap: var(--space-3);
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-h::-webkit-scrollbar {
  display: none;
}

.scroll-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-cards::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  min-width: 200px;
  height: 110px;
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--white);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s;
}

.scroll-card:active {
  transform: scale(0.97);
}

.scroll-card.card1 {
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
}

.scroll-card.card2 {
  background: linear-gradient(135deg, #FD79A8, #E84393);
}

.scroll-card.card3 {
  background: linear-gradient(135deg, #00B894, #55EFC4);
}

.scroll-card-title {
  font-size: 15px;
  font-weight: 600;
}

.scroll-card-sub {
  font-size: 12px;
  opacity: 0.85;
}

/* ===== 21. Toast ===== */
.toast-v4 {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: var(--font-body);
  z-index: 9998;
  pointer-events: none;
  animation: toastSlideUp 0.3s ease;
  max-width: 280px;
  text-align: center;
}

.toast-v4.preg-toast {
  border-left: 3px solid var(--preg-primary);
}

.toast-v4.baby-toast {
  border-left: 3px solid var(--baby-primary);
}

/* ===== 22. Mode Cards ===== */
.mode-card {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
  text-align: center;
}

.mode-card:active {
  transform: scale(0.97);
}

.mode-card .mode-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.mode-card .mode-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.mode-card .mode-desc {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.6;
}

.mode-card.selected-preg {
  border-color: var(--preg-primary);
  background: var(--preg-bg);
}

.mode-card.selected-baby {
  border-color: var(--baby-primary);
  background: var(--baby-bg);
}

/* ===== 23. Grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s;
}

.grid-item:active {
  transform: scale(0.95);
  background: var(--gray-100);
}

.grid-item .grid-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.grid-item .grid-label {
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 400;
}

/* ===== 24. Record Buttons ===== */
.record-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 100px;
}

.record-btn:active {
  transform: scale(0.97);
}

.record-btn .record-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.record-btn .record-label {
  font-size: 15px;
  font-weight: 600;
}

.record-btn .record-sub {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.7;
}

/* ===== 25. Week Selector ===== */
.week-selector {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.week-selector::-webkit-scrollbar {
  display: none;
}

.week-item {
  min-width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-600);
  border-radius: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.week-item.active-preg {
  background: var(--preg-primary);
  color: var(--white);
  font-weight: 600;
}

.week-item.active-baby {
  background: var(--baby-primary);
  color: var(--white);
  font-weight: 600;
}

/* ===== 26. Assessment ===== */
.assess-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-100);
}

.assess-question {
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.assess-options {
  display: flex;
  gap: 8px;
}

.assess-opt {
  padding: 6px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  border: 1.5px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.2s;
}

.assess-opt:active {
  transform: scale(0.95);
}

.assess-opt.selected-preg {
  background: var(--preg-lighter);
  border-color: var(--preg-primary);
  color: var(--preg-primary);
}

.assess-opt.selected-baby {
  background: var(--baby-lighter);
  border-color: var(--baby-primary);
  color: var(--baby-primary);
}

/* ===== 27. Course Cards ===== */
.course-card {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-50);
}

.course-card:active {
  background: var(--gray-100);
}

.course-status {
  font-size: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.course-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.course-arrow {
  color: var(--gray-400);
}

/* ===== 28. Hero Sections ===== */
.hero-section {
  padding: 44px 20px 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-section.preg {
  background: var(--preg-gradient);
}

.hero-section.baby {
  background: var(--baby-gradient);
}

.hero-week {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  font-family: var(--font-display);
}

.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.hero-info {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ===== 29. Overview Card ===== */
.overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: -20px 16px 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

/* ===== 30. Task Cards ===== */
.task-card {
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.task-card:active {
  transform: scale(0.98);
}

.task-card.preg {
  background: var(--preg-lighter);
}

.task-card.baby {
  background: var(--baby-lighter);
}

.task-emoji {
  font-size: 24px;
  margin-right: 10px;
}

.task-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.task-check {
  font-size: 18px;
}

/* ===== 31. Tip Cards ===== */
.tip-card {
  min-width: 240px;
  border-radius: var(--radius);
  padding: 14px;
  background: var(--gray-50);
  flex-shrink: 0;
  cursor: pointer;
}

.tip-card:active {
  background: var(--gray-100);
}

.tip-tag {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-tag.preg {
  color: var(--preg-primary);
}

.tip-tag.baby {
  color: var(--baby-primary);
}

.tip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.tip-preview {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== 32. Pregnancy Hero v2 ===== */
.preg-hero {
  background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #FD79A8 100%);
  padding: 54px 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.preg-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.preg-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.preg-week-big {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-family: var(--font-display);
}

.preg-week-sub {
  font-size: 15px;
  margin-top: 4px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

.progress-ring-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.progress-ring {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring .bg-circle {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 6;
}

.progress-ring .fg-circle {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring .center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.progress-info {
  flex: 1;
}

.progress-stage {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.stage-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.2);
  font-weight: 400;
}

.stage-tag.active {
  background: rgba(255,255,255,0.5);
  font-weight: 600;
}

.progress-days {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.preg-section {
  padding: 0 16px;
  margin-top: 16px;
}

.preg-section-title {
  font-size: 17px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ===== 33. Dad Task Card ===== */
.dad-task-card {
  background: linear-gradient(135deg, #6C5CE7, #FD79A8);
  border-radius: var(--radius-md);
  padding: 18px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(108,92,231,0.25);
}

.dad-task-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.dad-task-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dad-task-item:active {
  opacity: 0.7;
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 13px;
}

.task-checkbox.checked {
  background: #fff;
  border-color: #fff;
  color: #6C5CE7;
}

.task-text {
  font-size: 14px;
  flex: 1;
  transition: all 0.3s;
}

.task-text.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.dad-task-progress {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
}

/* ===== 34. Checkup Card ===== */
.checkup-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #FDCB6E;
}

.checkup-card.urgent {
  border-left-color: #E17055;
}

.checkup-card.normal {
  border-left-color: #00B894;
}

.checkup-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3436;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.checkup-time {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.checkup-tags {
  display: flex;
  gap: var(--space-2);
  margin-top: 10px;
  flex-wrap: wrap;
}

.checkup-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #F8F7FF;
  color: #6C5CE7;
  font-weight: 400;
}

.checkup-tip {
  font-size: 12px;
  color: #E17055;
  margin-top: 10px;
  font-weight: 600;
}

.checkup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.checkup-btn {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.checkup-btn:active {
  transform: scale(0.95);
}

/* ===== 35. Dev Card ===== */
.dev-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dev-line {
  font-size: 14px;
  color: #2d3436;
  line-height: 1.6;
  margin-bottom: 8px;
}

.dev-line .emoji {
  font-size: 18px;
}

.dev-tip {
  font-size: 13px;
  color: #6C5CE7;
  background: #F8F7FF;
  padding: 10px 12px;
  border-radius: var(--radius);
  line-height: 1.5;
}

.dev-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #6C5CE7;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.dev-link:active {
  background: #F8F7FF;
}

/* ===== 36. Quick Grid ===== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.quick-item:active {
  transform: scale(0.95);
}

.quick-item .icon {
  font-size: 26px;
}

.quick-item .text {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 400;
}

/* ===== 37. Sentence Items ===== */
.sentence-item {
  transition: all 0.3s ease;
}

.sentence-active {
  box-shadow: 0 0 0 2px var(--preg-primary);
}

.sentence-done {
  opacity: 0.5;
}

/* ===== 38. Skeleton Loading ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== 39. Animations ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,107,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ripple effect */
.ripple-effect {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--preg-primary);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* ===== 40. Page Navigation Panel (Desktop Only) ===== */
.page-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100vh;
  background: #1a1a2e;
  color: #fff;
  overflow-y: auto;
  z-index: 9999;
  padding: 16px 0;
  font-size: 13px;
}

.page-nav h3 {
  font-size: 14px;
  padding: 8px 16px;
  color: #A29BFE;
  margin: 0;
}

.page-nav a {
  display: block;
  padding: 8px 16px;
  color: #ccc;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.page-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.page-nav a.active-nav {
  color: #A29BFE;
  background: rgba(108,92,231,0.2);
}

.page-nav .nav-sep {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0;
}

/* ===== 41. Floating Voice Clone Button ===== */
.voice-clone-fab {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--preg-gradient);
  color: var(--white);
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,92,231,0.4);
  z-index: 800;
  transition: transform 0.2s;
}

.voice-clone-fab:active {
  transform: scale(0.9);
}

.voice-clone-fab .fab-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--preg-primary);
  animation: pulse 2s infinite;
  z-index: -1;
}

/* ===== 42. Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-header {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
  text-align: center;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* ===== 43. Login Page ===== */
.login-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  z-index: 9990;
}

.login-page.show {
  display: flex;
}

.login-bg {
  min-height: 100%;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.login-form-container {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.login-logo-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--preg-primary);
}

.login-logo-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

.login-mode-selector {
  display: flex;
  gap: var(--space-3);
  margin-bottom: 12px;
}

.login-mode-option {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s;
}

.login-mode-option.mode-preg {
  border-color: var(--preg-lighter);
  background: var(--preg-bg);
}

.login-mode-option.mode-baby {
  border-color: var(--baby-lighter);
  background: var(--baby-bg);
}

.login-mode-option .mode-emoji {
  font-size: 24px;
}

.login-mode-option .mode-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.login-role-selector {
  display: flex;
  gap: var(--space-3);
  margin-bottom: 20px;
}

.login-role-option {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  cursor: pointer;
  transition: all 0.2s;
}

.login-role-option .role-emoji {
  font-size: 24px;
}

.login-role-option .role-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.login-divider-text {
  font-size: 12px;
  color: var(--gray-400);
}

.login-wechat-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: #07C160;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* ===== 44. Mobile Responsive ===== */
@media (max-width: 420px) {
  body {
    background: var(--white);
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    display: none;
  }

  .page {
    padding-top: env(safe-area-inset-top);
  }

  .tab-bar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(80px + env(safe-area-inset-bottom));
  }

  .page-nav {
    display: none;
  }

  .voice-clone-fab {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* ===== 45. Scrollbar Hiding ===== */
.page::-webkit-scrollbar {
  display: none;
}

.page-content::-webkit-scrollbar {
  display: none;
}

/* ===== 46. PWA / Loading Screen ===== */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6C5CE7, #A29BFE);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.pwa-splash.hide {
  opacity: 0;
  pointer-events: none;
}

.pwa-splash-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.pwa-splash-title {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
}

.pwa-splash-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

.pwa-splash-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 32px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Additional Utility Styles ===== */

/* Baby hero section */
.baby-hero {
  background: #fff;
  padding: 48px 16px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.baby-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.baby-avatar {
  font-size: 40px;
}

.baby-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.baby-age {
  font-size: 13px;
  color: var(--gray-600);
}

.baby-stats {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.baby-stat {
  flex: 1;
  text-align: center;
  padding: 8px 0;
}

.baby-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--baby-primary);
}

.baby-stat-label {
  font-size: 11px;
  color: var(--gray-500);
}

.next-feed-bar {
  background: var(--baby-lighter);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--baby-primary);
  text-align: center;
}

/* Record section */
.record-section {
  padding: 16px;
}

.record-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.record-btns {
  display: flex;
  gap: 12px;
}

.record-btn.feed {
  background: var(--baby-lighter);
  color: var(--baby-primary);
}

.record-btn.sleep {
  background: #E8F5E9;
  color: #2E7D32;
}

.record-btn.diaper {
  background: #FFF3E0;
  color: #E65100;
}

/* Kick counter */
.kick-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background: var(--preg-gradient);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(108,92,231,0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.kick-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(108,92,231,0.5);
}

.kick-btn:active {
  transform: scale(0.95);
}

.kick-btn .kick-count {
  font-size: 48px;
  display: block;
  line-height: 1;
}

.kick-btn .kick-label {
  font-size: 13px;
  opacity: 0.8;
  display: block;
  margin-top: 4px;
}

@keyframes kickPulse {
  0% { box-shadow: 0 0 0 0 rgba(108,92,231,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(108,92,231,0); }
  100% { box-shadow: 0 0 0 0 rgba(108,92,231,0); }
}

.kick-btn.pulse {
  animation: kickPulse 0.6s ease-out;
}

/* Contraction timer */
.contraction-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #E84393, #FD79A8);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(253,121,168,0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.contraction-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(253,121,168,0.5);
}

.contraction-btn:active {
  transform: scale(0.95);
}

.contraction-btn.timing {
  background: linear-gradient(135deg, #E84393, #C0392B);
}

@keyframes contractionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,67,147,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(232,67,147,0); }
}

.contraction-btn.timing {
  animation: contractionPulse 1.5s ease-in-out infinite;
}

/* Food safety */
.food-safe {
  border-left: 4px solid #27AE60;
  background: rgba(39,174,96,0.06);
}

.food-caution {
  border-left: 4px solid #F39C12;
  background: rgba(243,156,18,0.06);
}

.food-danger {
  border-left: 4px solid #E74C3C;
  background: rgba(231,76,60,0.06);
}

/* Daily check-in */
.checkin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--gray-100);
}

.checkin-item:hover {
  border-color: var(--preg-primary);
  background: var(--preg-bg);
}

.checkin-item.done {
  border-color: var(--success);
  background: rgba(0,184,148,0.06);
}

.checkin-item.done .checkin-text {
  text-decoration: line-through;
  color: var(--gray-500);
}

.checkin-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkin-item.done .checkin-check {
  background: var(--baby-gradient);
  border-color: var(--baby-primary);
  color: #fff;
}

/* Vaccine item */
.vaccine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s;
}

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

.vaccine-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.vaccine-status.done {
  background: var(--baby-gradient);
  border-color: var(--baby-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,206,201,0.3);
}

.vaccine-info {
  flex: 1;
}

.vaccine-name {
  font-size: 14px;
  font-weight: 600;
}

.vaccine-time {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 1px;
}

/* Milestone card */
.milestone-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--gray-200);
  text-align: center;
}

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

.milestone-card.done {
  border-color: var(--success);
  background: rgba(0,184,148,0.06);
}

.milestone-card .m-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.milestone-card .m-title {
  font-size: 13px;
  font-weight: 600;
}

.milestone-card .m-age {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 3px;
}

/* Growth chart */
.growth-bar-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  width: 100%;
}

.growth-bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  min-width: 30px;
}

.growth-bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--gray-500);
  white-space: nowrap;
}

.growth-bar-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
}

/* Photo upload */
.photo-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(108,92,231,0.02);
  position: relative;
  overflow: hidden;
}

.photo-upload-area:hover {
  border-color: var(--preg-primary);
  background: var(--preg-bg);
}

.photo-upload-area.has-image {
  padding: 0;
  border-style: solid;
  border-color: var(--baby-primary);
}

.photo-upload-area .upload-hint {
  color: var(--gray-500);
  font-size: 13px;
}

.photo-upload-area .upload-hint .upload-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.photo-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 2px);
  display: block;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
}

.empty-state .icon {
  font-size: 56px;
  margin-bottom: 14px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
}

/* Reminder toggle switch */
.reminder-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.reminder-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.reminder-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  border-radius: 26px;
  transition: all 0.3s;
}

.reminder-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.reminder-switch input:checked + .reminder-slider {
  background: var(--preg-primary);
}

.reminder-switch input:checked + .reminder-slider::before {
  transform: translateX(22px);
}

/* Sleep timeline */
.sleep-timeline {
  position: relative;
  height: 40px;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.sleep-bar {
  position: absolute;
  top: 4px;
  height: 32px;
  border-radius: 6px;
  opacity: 0.85;
  transition: all 0.2s;
  min-width: 4px;
}

.sleep-bar:hover {
  opacity: 1;
  transform: scaleY(1.1);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 24px 0;
}

/* Dad section */
.dad-section {
  background: linear-gradient(135deg, rgba(253,121,168,0.08), rgba(167,139,250,0.08));
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(253,121,168,0.1);
}

.dad-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Form group */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-600);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
  background: rgba(255,255,255,0.8);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--preg-primary);
  box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
}

/* Textarea focus */
textarea:focus {
  border-color: var(--preg-primary) !important;
  box-shadow: 0 0 0 4px rgba(108,92,231,0.1) !important;
}

/* Born toggle */
.born-toggle {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  font-weight: 500;
}

.born-toggle:hover {
  border-color: var(--preg-primary);
}

.born-toggle.active {
  border-color: var(--preg-primary);
  background: var(--preg-bg);
  color: var(--preg-primary);
}

/* ===== V5 Additional Component Styles ===== */

/* Notification item */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
}
.notification-item:active {
  transform: scale(0.98);
}
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notification-icon.preg { background: var(--preg-lighter); }
.notification-icon.baby { background: var(--baby-lighter); }
.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.notification-desc {
  font-size: 12px;
  color: var(--gray-500);
}
.notification-time {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}
.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Voice use card */
.voice-use-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.voice-use-card:active {
  transform: scale(0.98);
}
.voice-use-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.voice-use-info {
  flex: 1;
}
.voice-use-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.voice-use-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Course item */
.course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.course-item:active {
  transform: scale(0.98);
}
.course-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.course-item-icon.preg { background: var(--preg-lighter); }
.course-item-icon.baby { background: var(--baby-lighter); }
.course-item-info {
  flex: 1;
  min-width: 0;
}
.course-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.course-item-status {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.course-item-arrow {
  color: var(--gray-400);
  font-size: 14px;
}

/* Profile menu item */
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.profile-menu-item:active {
  background: var(--gray-50);
}
.profile-menu-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.profile-menu-text {
  flex: 1;
  font-size: 14px;
  color: var(--gray-800);
}
.profile-menu-arrow {
  color: var(--gray-400);
  font-size: 14px;
}

/* Food tip card */
.food-tip-card {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.food-tip-title {
  font-size: 14px;
  font-weight: 600;
  color: #E65100;
  margin-bottom: 4px;
}
.food-tip-desc {
  font-size: 12px;
  color: #BF360C;
  line-height: 1.5;
}

/* Assess category */
.assess-category {
  margin-bottom: 20px;
}
.assess-category-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  padding-left: 4px;
}
.assess-category-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Page content padding for V5 subpages */
.page-content {
  padding: var(--space-4);
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Subpage header */
.subpage-header {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
}
.stat-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Tag row for selections */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Record list item */
.record-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.record-list-time {
  font-size: 12px;
  color: var(--gray-500);
  width: 50px;
  flex-shrink: 0;
}
.record-list-detail {
  flex: 1;
  font-size: 13px;
  color: var(--gray-700);
}

/* Voice recording button */
.voice-record-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-record-btn:active {
  transform: scale(0.95);
}
.voice-record-btn.recording {
  animation: pulse 1.5s infinite;
}

/* Progress dots */
.progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s;
}
.progress-dot.active {
  background: var(--preg-primary);
  width: 24px;
  border-radius: 5px;
}
.progress-dot.done {
  background: var(--success);
}

/* Story list item */
.story-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.story-item:active {
  transform: scale(0.98);
}
.story-emoji {
  font-size: 28px;
}
.story-info {
  flex: 1;
}
.story-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.story-duration {
  font-size: 12px;
  color: var(--gray-500);
}

/* Baby timeline entry */
.baby-timeline-entry {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.baby-timeline-time {
  font-size: 12px;
  color: var(--gray-500);
  width: 40px;
  flex-shrink: 0;
  padding-top: 2px;
}
.baby-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.baby-timeline-dot.feeding { background: var(--baby-primary); }
.baby-timeline-dot.sleep { background: #43A047; }
.baby-timeline-dot.diaper { background: #EF6C00; }
.baby-timeline-content {
  flex: 1;
  font-size: 13px;
  color: var(--gray-700);
}
.baby-timeline-detail {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Growth metric selector */
.metric-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.metric-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}
.metric-tab.active {
  border-color: var(--baby-primary);
  background: var(--baby-lighter);
  color: var(--baby-primary);
}

/* Vaccine timeline */
.vaccine-timeline {
  position: relative;
  padding-left: 24px;
}
.vaccine-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.vaccine-entry {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.vaccine-entry::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
}
.vaccine-entry.done::before {
  background: var(--success);
}
.vaccine-entry.next::before {
  background: var(--baby-primary);
  animation: pulse 2s infinite;
}
.vaccine-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.vaccine-time {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.vaccine-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.vaccine-status.done { color: var(--success); }
.vaccine-status.next { color: var(--baby-primary); }
.vaccine-status.pending { color: var(--gray-400); }
