/* 仪表盘样式 */

/* 头部 */
.header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  margin-bottom: 30px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  color: white;
}

.header h1 {
  font-size: 32px;
  color: white;
  margin-bottom: 10px;
  font-weight: 700;
}

.header .date {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

/* 营养总览卡片 */
.nutrition-overview {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  color: white;
  padding: 35px;
  border-radius: var(--card-radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.nutrition-overview h2 {
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 600;
}

.calories-display {
  text-align: center;
  margin: 20px 0;
}

.calories-number {
  font-size: 48px;
  font-weight: bold;
  display: block;
}

.calories-label {
  font-size: 18px;
  opacity: 0.9;
}

.calories-target {
  text-align: center;
  opacity: 0.8;
  margin-top: 10px;
}

/* 营养进度条 */
.nutrition-bars {
  margin-top: 20px;
}

.nutrition-item {
  margin-bottom: 15px;
}

.nutrition-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  overflow: hidden;
}

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

/* 三餐网格 */
.meals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.meal-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.meal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.meal-header {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meal-type {
  font-size: 18px;
  font-weight: 600;
}

.meal-calories-header {
  font-size: 14px;
  opacity: 0.95;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.meal-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
}

.meal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.meal-card:hover .meal-image {
  transform: scale(1.05);
}

.meal-info {
  padding: 20px;
}

.meal-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.meal-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.meal-actions {
  display: flex;
  gap: 10px;
}

.meal-actions .btn {
  flex: 1;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
}

/* 数据来源说明 */
.data-sources {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  padding: 30px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.data-sources h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 600;
}

.data-sources ul {
  list-style: none;
  margin-bottom: 20px;
}

.data-sources li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-dark);
  font-size: 15px;
}

.data-sources li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ECDC4;
  font-weight: bold;
  font-size: 18px;
}

.disclaimer {
  background: linear-gradient(135deg, #FFE66D 0%, #FFD93D 100%);
  border-left: 4px solid #FF6B6B;
  padding: 18px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.disclaimer p {
  margin: 5px 0;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.disclaimer a {
  color: #FF6B6B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.disclaimer a:hover {
  color: #FF8E53;
  text-decoration: underline;
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meal-card {
  animation: fadeInUp 0.6s ease-out;
}

.meal-card:nth-child(1) {
  animation-delay: 0.1s;
}

.meal-card:nth-child(2) {
  animation-delay: 0.2s;
}

.meal-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* 营养进度条动画 */
@keyframes progressFill {
  from {
    width: 0;
  }
}

.progress-fill {
  animation: progressFill 1s ease-out;
}
