/* ===== 妈妈陪伴助手 1-5 ===== */
.mom-companion-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mom-companion-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mom-companion-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  pointer-events: none;
}

.mom-companion-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(10, 12, 46, 0.28) 0%, transparent 45%, transparent 100%),
    radial-gradient(ellipse at 85% 35%, transparent 0%, rgba(10, 12, 46, 0.12) 55%, rgba(10, 12, 46, 0.3) 100%);
  pointer-events: none;
}

.mom-companion-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 24px 12px;
  overflow-y: auto;
}

/* 顶部标题区 */
.mc-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.mc-hero-text {
  max-width: 540px;
  position: relative;
}

.mc-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.15;
  margin-bottom: 6px;
  color: transparent;
  background: linear-gradient(180deg, #FFE0F0 0%, #FF8FB8 45%, #F6578A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 18px rgba(248, 106, 154, 0.35);
  position: relative;
  display: inline-block;
}

.mc-title-decoration {
  position: absolute;
  top: -4px;
  right: -36px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(248, 106, 154, 0.55));
  animation: mc-heart-pulse 2s ease-in-out infinite;
}

@keyframes mc-heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.mc-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: #FFF0F7;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(120, 60, 120, 0.45);
}

.mc-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.mc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 220px;
}

.mc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mc-btn-primary {
  background: linear-gradient(180deg, #FFC4E0 0%, #FF8FB8 35%, #F86A9A 65%, #E84A7F 100%);
  color: #FFFFFF;
  box-shadow:
    0 5px 0 #C13A68,
    0 10px 24px rgba(248, 106, 154, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 2px rgba(160, 40, 80, 0.35);
}

.mc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #C13A68,
    0 14px 30px rgba(248, 106, 154, 0.55);
}

.mc-btn-primary .btn-icon {
  font-size: 18px;
  line-height: 1;
  color: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(160, 40, 80, 0.25));
}

.mc-btn-secondary {
  background: linear-gradient(180deg, rgba(110, 140, 245, 0.85) 0%, rgba(75, 105, 220, 0.9) 50%, rgba(55, 85, 195, 0.95) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 5px 0 rgba(35, 60, 150, 0.9),
    0 8px 22px rgba(60, 90, 200, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mc-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 rgba(35, 60, 150, 0.9),
    0 12px 28px rgba(60, 90, 200, 0.5);
}

/* 内容面板网格 */
.mc-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
}

.mc-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 246, 250, 0.82) 0%, rgba(255, 234, 244, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: 0;
}

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

.mc-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: #5C3D7C;
  letter-spacing: 0.5px;
}

.mc-panel-count {
  font-size: 12px;
  color: rgba(92, 61, 124, 0.65);
  font-weight: 600;
  margin-left: 6px;
}

.mc-panel-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #7B6CDB;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mc-panel-more:hover {
  color: #E84A7F;
  transform: translateX(2px);
}

/* 今日亲子任务 */
.mc-task-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mc-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-task-item:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.mc-task-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px;
  flex-shrink: 0;
}

.mc-task-meta {
  flex: 1;
  min-width: 0;
}

.mc-task-name {
  font-size: 12px;
  font-weight: 800;
  color: #4B3869;
  margin-bottom: 1px;
}

.mc-task-status {
  font-size: 10px;
  color: rgba(75, 56, 105, 0.7);
}

.mc-task-state {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}

.mc-task-state.done {
  background: rgba(110, 210, 130, 0.2);
  color: #38A35A;
}

.mc-task-state.todo {
  background: rgba(120, 140, 230, 0.15);
  color: #5B6CD8;
}

.mc-task-footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  color: rgba(75, 56, 105, 0.78);
  font-weight: 600;
}

.mc-task-footer .star {
  color: #FFB84D;
}

/* 精选推荐故事 */
.mc-story-cards {
  display: flex;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.mc-story-card {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mc-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mc-story-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.2;
  overflow: hidden;
}

.mc-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-story-info {
  padding: 6px 4px 8px;
  text-align: center;
}

.mc-story-title {
  font-size: 11px;
  font-weight: 800;
  color: #4B3869;
  margin-bottom: 2px;
}

.mc-story-age {
  font-size: 9px;
  color: rgba(75, 56, 105, 0.72);
  font-weight: 600;
}

/* 成长小贴士 */
.mc-tip-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.mc-tip-title {
  font-size: 14px;
  font-weight: 800;
  color: #4B3869;
}

.mc-tip-desc {
  font-size: 12px;
  color: rgba(75, 56, 105, 0.82);
  line-height: 1.5;
  flex: 1;
}

.mc-tip-btn {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(180deg, #FF9EC8 0%, #F86A9A 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(248, 106, 154, 0.35);
  transition: all 0.2s ease;
}

.mc-tip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(248, 106, 154, 0.45);
}

.mc-tip-star {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
}

/* 情绪沟通小提示 */
.mc-emotion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-emotion-intro {
  font-size: 11px;
  color: rgba(75, 56, 105, 0.85);
  line-height: 1.45;
}

.mc-emotion-questions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-emotion-q {
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 11px;
  color: #4B3869;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-emotion-q:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(3px);
}

.mc-emotion-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  pointer-events: none;
}

/* 陪伴计划 */
.mc-plan {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.mc-plan-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

.mc-plan-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.mc-plan-title {
  font-size: 14px;
  font-weight: 800;
  color: #4B3869;
  margin-bottom: 4px;
}

.mc-plan-sub {
  font-size: 11px;
  color: rgba(75, 56, 105, 0.72);
  margin-bottom: 8px;
}

.mc-plan-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(75, 56, 105, 0.8);
  font-weight: 700;
}

.mc-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(75, 56, 105, 0.12);
  overflow: hidden;
}

.mc-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFD166 0%, #FF8FB8 100%);
}

/* 最近阅读记录 */
.mc-record {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.mc-record-thumb {
  width: 60px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.mc-record-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.mc-record-title {
  font-size: 14px;
  font-weight: 800;
  color: #4B3869;
  margin-bottom: 6px;
}

.mc-record-meta {
  font-size: 11px;
  color: rgba(75, 56, 105, 0.72);
  margin-bottom: 4px;
}

.mc-record-time {
  font-size: 11px;
  color: rgba(75, 56, 105, 0.6);
}

/* 宝贝心情日记 */
.mc-mood-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mc-mood-emoji {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.mc-mood-label {
  font-size: 12px;
  color: rgba(75, 56, 105, 0.85);
}

.mc-mood-value {
  font-size: 13px;
  font-weight: 800;
  color: #4B3869;
  margin-left: 4px;
}

.mc-mood-quote-label {
  font-size: 10px;
  color: rgba(75, 56, 105, 0.72);
  margin-bottom: 3px;
}

.mc-mood-quote {
  position: relative;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 11px;
  color: #4B3869;
  line-height: 1.45;
}

.mc-mood-quote .quote-star {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #FFB84D;
  font-size: 13px;
}

/* 成长提醒 */
.mc-reminder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.mc-reminder {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-reminder-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px;
  flex-shrink: 0;
}

.mc-reminder-info {
  flex: 1;
  min-width: 0;
}

.mc-reminder-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4B3869;
  font-weight: 700;
  margin-bottom: 4px;
}

.mc-reminder-track {
  height: 7px;
  border-radius: 4px;
  background: rgba(75, 56, 105, 0.12);
  overflow: hidden;
}

.mc-reminder-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFD166 0%, #FF8FB8 100%);
}

/* 响应式适配 */
@media (max-width: 1300px) {
  .mc-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .mc-hero {
    flex-direction: column;
    gap: 16px;
  }

  .mc-actions {
    width: 100%;
    max-width: 320px;
  }

  .mc-dashboard {
    grid-template-columns: 1fr;
  }
}
