/* 珊瑚橘与黄色主题变量 */
:root {
  --ion-color-coral: #FF7F50;  // 珊瑚橘
  --ion-color-coral-rgb: 255,127,80;
  --ion-color-coral-contrast: #ffffff;
  --ion-color-coral-contrast-rgb: 255,255,255;
  --ion-color-coral-shade: #e07046;
  --ion-color-coral-tint: #ff8c62;
  
  --ion-color-sunshine: #FFD700;  // 金黄色
  --ion-color-sunshine-rgb: 255,215,0;
  --ion-color-sunshine-contrast: #000000;
  --ion-color-sunshine-contrast-rgb: 0,0,0;
  --ion-color-sunshine-shade: #e0bd00;
  --ion-color-sunshine-tint: #ffdb1a;
  
  --ion-color-light-yellow: #FFF8E1;  // 浅黄色背景
  --ion-color-light-yellow-rgb: 255,248,225;
}

/* 标题栏样式 */
.coral-header {
  --background: #ff8c62;
  --color: white;
  --border-color: transparent;
  
  ion-title {
    font-weight: 600;
    letter-spacing: 1px;
  }
}

.header-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
  text-align: center;
}

.coral-back-button {
  --color: white;
  --icon-font-size: 1.4rem;
}

.coral-add-button {
  --color: white;
  --background-activated: var(--ion-color-coral-shade);
  
  .add-icon {
    font-size: 1.6rem;
  }
}

/* 背景设置 */
.light-yellow-bg {
  --background: var(--ion-color-light-yellow);
  background: var(--ion-color-light-yellow);
}

/* 卡片样式 */
.gratitude-card {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.15);
  border: 1px solid rgba(255, 127, 80, 0.1);
  transition: all 0.2s ease;
  background: var(--ion-color-light-yellow);  // 添加浅黄色背景
  
  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.2);
  }
}

.card-header {
  background: var(--ion-color-coral);
  color: white;
  padding: 14px 16px;
  border-top-left-radius: 10px;  // 保持与卡片相同的圆角
  border-top-right-radius: 10px;
  
  /* 日期时间天气区域布局 */
.date-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.date-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ff8c62;
}

.date-weekday {
  font-size: 0.9rem;
  color: #ff8c62;
  font-weight: 500;
}

.time-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time {
  font-size: 0.85rem;
  color: #ff8c62;
  font-weight: 400;
}

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

.weather {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

.mood {
  font-size: 1rem;
  color: var(--ion-color-sunshine);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
}

.card-content {
  background: white;
  border-bottom-left-radius: 10px;  // 保持与卡片相同的圆角
  border-bottom-right-radius: 10px;
  
  .content-text {
    color: #5D4037;  // 深棕色文字
    border-bottom: 1px solid #FFE0B2;
  }
}
/* 标签样式 */
.tags-section {
  ion-chip {
    --color: var(--ion-color-coral);
    --border-color: var(--ion-color-coral-tint);
    --background: rgba(255, 127, 80, 0.1);
    font-weight: 500;
  }
}

/* 折叠面板样式 */
ion-accordion {
  ion-item {
    --background: #FFF3E0;
    --color: #5D4037;
    
    ion-label {
      font-weight: 500;
    }
  }
  
  .accordion-content {
    background: #FFF8F0;
    color: #5D4037;
    border-left: 3px solid var(--ion-color-coral);
  }
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.6s ease-out;
  
  .empty-icon {
    font-size: 4rem;
    color: var(--ion-color-coral);
    margin-bottom: 20px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(255, 127, 80, 0.2));
  }

  h2 {
    color: var(--ion-color-coral-shade);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  p {
    color: var(--ion-color-coral);
    font-size: 1rem;
    max-width: 280px;
    line-height: 1.5;
    
    ion-icon {
      color: var(--ion-color-coral);
      vertical-align: middle;
      margin: 0 4px;
      font-size: 1.2rem;
    }
  }

  @media (max-width: 576px) {
    height: 50vh;
    
    .empty-icon {
      font-size: 3.2rem;
    }
    
    h2 {
      font-size: 1.3rem;
    }
    
    p {
      font-size: 0.9rem;
    }
  }
}

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

/* 响应式调整 */
@media (max-width: 576px) {
  .header-title {
    font-size: 1.1rem;
  }
  
  .coral-back-button,
  .coral-add-button .add-icon {
    font-size: 1.2rem;
  }
  
  .card-header {
    padding: 12px;
  }
}