* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f4ee;
    color: #5a4a42;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部标题栏 */
.header {
    background-color: #fff9f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0e6d6;

    .header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b38a58;
    letter-spacing: 0.5px;
    }

    // ion-buttons {
    //     display: flex;
    //     align-items: center;
    //     gap: 8px;
    // }
    
    ion-button {
        --box-shadow: none;
        margin-left: 8px;
    }

}
 
/* 内容区域 */
.content {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

/* 日记卡片 */
.diary-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    transition: all 0.25s ease;
    border: 1px solid #f0e6d6;
}

.diary-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.diary-time {
    width: 70px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diary-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
    line-height: 1;
}

.diary-week {
    font-size: 0.75rem;
    color: #e67e22;
    margin: 5px 0;
    font-weight: 500;
    opacity: 0.9;
}

.diary-hour {
    font-size: 0.75rem;
    color: #e67e22;
    opacity: 0.8;
    font-weight: 500;
}

.diary-content {
    flex: 1;
    padding-left: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a4a42;
    border-left: 1px dashed #f0e6d6;
    padding-top: 3px;
}

.diary-meta {
      margin-top: 8px;
      display: flex;
      gap: 8px;
      
      .weather, .mood {
        font-size: 14px;
        padding: 2px 8px;
        border-radius: 4px;
        background-color: var(--ion-color-light);
      }
    }

    .empty-state {
    text-align: center;
    margin-top: 50px;
    color: var(--ion-color-medium);
    
    ion-icon {
      font-size: 64px;
      margin-bottom: 16px;
    }
    
    p {
      font-size: 16px;
    }
  }

  /* 菜单栏整体样式 */
ion-menu {
  --width: 280px;
  --ion-background-color: #FFF8F2; /* 暖白色背景 */
  
  ion-header {
    ion-toolbar {
      --background: var(--ion-color-coral); /* 使用珊瑚橘标题栏 */
      --color: #5D4037;
      
      ion-title {
        padding-left:15px;
        font-weight: 500;
        letter-spacing: 1px;
      }
    }
  }

  ion-content {
    --padding-top: 10px;
    --padding-bottom: 20px;
    
    ion-list {
      background: transparent;
      padding: 0;
      
      ion-item {
        --background: transparent;
        --padding-start: 20px;
        --padding-end: 20px;
        --inner-padding-end: 0;
        --min-height: 56px;
        --border-color: rgba(255, 140, 102, 0.15); /* 浅珊瑚色分隔线 */
        --color: #5D4037; /* 深棕色文字 */
        --detail-icon-color: var(--ion-color-coral);
        --detail-icon-opacity: 1;
        transition: all 0.3s ease;
        
        ion-icon {
          color: var(--ion-color-coral); /* 图标使用珊瑚橘 */
          font-size: 1.2rem;
          margin-right: 12px;
        }
        
        ion-label {
          font-weight: 500;
          letter-spacing: 0.3px;
        }
        
        &:hover {
          --background: rgba(255, 140, 102, 0.08); /* 悬停浅珊瑚色背景 */
        }
        
        &.ion-activated {
          --background: rgba(255, 140, 102, 0.15);
        }
      }
    }
  }
}

/* 菜单按钮样式 */
ion-menu-button {
  --color: var(--ion-color-coral);
  --padding-start: 8px;
  --padding-end: 8px;
  
  ion-icon {
    font-size: 1.8rem;
  }
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  text-align: center;
  padding: 20px;
  
  ion-icon {
    font-size: 3.5rem;
    color: var(--ion-color-coral);
    margin-bottom: 16px;
    opacity: 0.8;
  }
  
  p {
    color: var(--ion-color-coral-shade);
    font-size: 1rem;
    max-width: 220px;
    line-height: 1.5;
    
    ion-icon {
      color: var(--ion-color-coral);
      font-size: 1rem;
      vertical-align: middle;
      margin: 0 2px;
    }
  }
}

/* 响应式调整 */
@media (max-width: 576px) {
  ion-menu {
    --width: 260px;
  }
  
  .empty-state {
    height: 50vh;
    
    ion-icon {
      font-size: 2.8rem;
    }
    
    p {
      font-size: 0.9rem;
    }
  }
}