/* ============================================
   登录页面样式 - Google风格
   ============================================ */
.login-page {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
  50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

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

.login-header {
  margin-bottom: 30px;
}

.login-logo {
  font-size: 60px;
  color: #667eea;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-title {
  font-size: 28px;
  color: #2c3e50;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.login-subtitle {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
}

.login-body {
  margin: 30px 0;
}

.login-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 20px;
}

.login-tips {
  font-size: 12px;
  color: #95a5a6;
  margin: 0;
}

/* ============================================
   头像按钮样式（收起时显示）
   ============================================ */
.avatar-toggle {
  position: fixed;
  top: 15px;
  left: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* 不包含所有属性，避免位置变化 */
  z-index: 1001;  /* 确保在侧边栏之上 */
  overflow: hidden;
}

.avatar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mini-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   侧边栏新样式
   ============================================ */
.sidebar {
  position: fixed;
  left: -320px;  /* 默认完全隐藏在左侧 */
  top: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);  /* 平滑的贝塞尔曲线 */
}

/* 显示时的状态 */
.sidebar.show {
  left: 0;  /* 滑出到可见位置 */
}

/* 隐藏动画 - 不需要了 */

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;  /* 改为白色背景，不显示紫色 */
}

.sidebar-toggle {
  background: #f0f0f0;
  border: none;
  color: #667eea;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.sidebar-toggle:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

/* ============================================
   应用容器包装器
   ============================================ */
.app-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ============================================
   主内容区调整
   ============================================ */
.main-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);  /* 平滑过渡 */
}

/* 当侧边栏显示时，主内容区调整左边距 */
.sidebar.show ~ .main-container {
  left: 320px;
}

/* 顶部栏 - 移除背景，只保留标题 */
.top-bar {
  padding: 20px 30px;
  display: flex;
  justify-content: center;  /* 居中 */
  align-items: center;
  position: relative;  /* 相对定位 */
  margin-bottom: 10px;  /* 添加底部间距 */
}

.top-bar-left {
  position: absolute;  /* 绝对定位 */
  left: 50%;
  transform: translateX(-50%);  /* 居中显示 */
}

.page-title {
  font-size: 26px;  /* 稍微增大字号 */
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.page-title i {
  -webkit-text-fill-color: #667eea;
  font-size: 28px;
}

.top-bar-right {
  position: absolute;
  right: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.current-week,
.current-time {
  font-size: 14px;
  color: #666;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 20px;
}

.current-time {
  font-weight: 600;
  color: #667eea;
}

/* 空状态样式调整 */
.empty-state {
  margin: 50px auto;
  max-width: 500px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
  }
  
  .avatar-toggle {
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
}