/* ============================================
   猫猫任务管理 - 温馨可爱风格 CSS (优化版)
   ============================================ */

/* ---------- CSS 变量 (升级版) ---------- */
:root {
  /* 主色调 */
  --pink-light: #FFB6C1;
  --pink: #FF9EBB;
  --pink-primary: #FF9EBB;
  --pink-deep: #FF7A9D;
  --pink-gradient: linear-gradient(135deg, #FFB6C1 0%, #FF9EBB 50%, #FF7A9D 100%);
  
  /* 辅助色 */
  --cream: #FFF5F7;
  --lavender: #E8D5F5;
  --mint: #B8F0E0;
  
  /* 优先级色 */
  --priority-high: #FF6B6B;
  --priority-medium: #FFB347;
  --priority-low: #7DD87D;
  
  /* 文字系统 */
  --text-primary: #5D4E60;
  --text-secondary: #8B7D8F;
  --text-light: #B8A8BD;
  
  /* 边框和背景 */
  --border-color: #F5E6EB;
  --bg-white: #FFFFFF;
  --bg-overlay: rgba(255, 182, 193, 0.12);
  --bg-glass: rgba(255, 255, 255, 0.72);
  
  /* 阴影系统 - 三层深度 */
  --shadow-sm: 0 2px 8px rgba(255, 158, 187, 0.15);
  --shadow-md: 0 4px 20px rgba(255, 158, 187, 0.2);
  --shadow-lg: 0 8px 40px rgba(255, 158, 187, 0.25);
  --shadow-card: 0 4px 24px rgba(200, 160, 180, 0.12);
  --shadow-hover: 0 8px 32px rgba(255, 158, 187, 0.3);
  
  /* 圆角系统 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 50px;
  
  /* 动效系统 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* 字体和布局 */
  --font-body: ''PingFang SC'', ''Hiragino Sans GB'', ''Microsoft YaHei'', sans-serif;
  --font-heading: ''Comic Sans MS'', cursive;
  --navbar-height: 64px;
}

/* ---------- 全局重置 ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--cream) 0%, #FFE4E1 40%, #FDE8EF 70%, #FFF0F5 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(255, 182, 193, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(232, 213, 245, 0.25), transparent);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--pink-light);
  color: white;
}

::-webkit-scrollbar { 
  width: 10px; 
  height: 10px; 
}
::-webkit-scrollbar-track { 
  background: var(--cream); 
  border-radius: 5px; 
}
::-webkit-scrollbar-thumb {
  background: var(--pink-gradient);
  border-radius: 5px;
  border: 2px solid var(--cream);
}

/* ---------- 1. 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 182, 193, 0.2);
  transition: var(--transition-normal);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-normal);
}

.logo:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* 导航栏顶部行（桌面端隐藏） */
.navbar-top {
  display: none;
}

/* Tab 导航栏 */
.navbar-tabs {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-btn {
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--pink-deep);
  background: var(--bg-overlay);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: var(--pink-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 158, 187, 0.4);
  font-weight: 600;
  transform: translateY(-1px);
}

.nav-btn.active:hover {
  box-shadow: 0 6px 20px rgba(255, 158, 187, 0.5);
  transform: translateY(-2px);
}

/* 导出按钮样式 */
.btn-export {
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FFB347, #FF9F43);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

/* 登录按钮 */
.btn-login {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-deep) 100%);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 150, 180, 0.4);
}

/* 用户信息区域 */
#user-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 59, 48, 0.1);
  border-color: #ff3b30;
  color: #ff3b30;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  padding: 8px 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.dropdown-item:hover {
  background: var(--bg-overlay);
  color: var(--pink-deep);
}

/* ---------- 2. 文案栏 ---------- */
.quote-bar {
  margin-top: var(--navbar-height);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 182, 193, 0.15);
}

.quote-icon {
  margin-right: 6px;
  display: inline-block;
  animation: gentleBounce 2s ease-in-out infinite;
}

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

/* ---------- 3. 主内容区 ---------- */
.main-content {
  display: flex;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  position: relative;
  z-index: 1;
}

/* ---------- 4. 侧边栏 ---------- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 182, 193, 0.2);
  box-shadow: var(--shadow-card);
  height: fit-content;
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
  max-height: calc(100vh - var(--navbar-height) - 48px);
  overflow-y: auto;
  transition: var(--transition-normal);
}

.sidebar:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 182, 193, 0.3);
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--pink-gradient);
  border-radius: 2px;
}

.filter-title:first-child {
  margin-top: 0;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  border-color: var(--pink-light);
  color: var(--pink-deep);
  background: var(--bg-overlay);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  background: var(--pink-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 158, 187, 0.35);
  font-weight: 600;
  transform: translateY(-1px);
}

.filter-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-normal);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=''http://www.w3.org/2000/svg'' width=''14'' height=''14'' viewBox=''0 0 12 12''%3E%3Cpath fill=''%239B8EA0'' d=''M6 8L1 3h10z''/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select:hover {
  border-color: var(--pink-light);
}

.filter-select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: white;
  transition: var(--transition-normal);
}

.search-input:hover {
  border-color: var(--pink-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.search-input::placeholder {
  color: var(--text-light);
}

/* ---------- 5. 快捷操作 ---------- */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn-add-task {
  width: 100%;
  padding: 14px 20px;
  background: var(--pink-gradient);
  color: white;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(255, 158, 187, 0.35);
}

.btn-add-task:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 158, 187, 0.45);
}

/* ---------- 6. 内容区 ---------- */
.content-area {
  flex: 1;
  min-width: 0;
}

.view-panel {
  display: none;
  animation: fadeInUp 0.4s var(--bounce);
}

.view-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(16px) scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* ---------- 7. 任务列表 ---------- */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  border: 1.5px solid rgba(255, 182, 193, 0.15);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.task-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 0 4px 4px 0;
  transition: var(--transition-normal);
}

.task-card.priority-high::before { background: var(--priority-high); }
.task-card.priority-medium::before { background: var(--priority-medium); }
.task-card.priority-low::before { background: var(--priority-low); }

/* ---------- 21. 手机横滑删除功能 ---------- */
.task-card-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.task-card-wrapper .task-card {
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
  margin-bottom: 0;
}

.task-card-wrapper .task-card.swipe-active {
  transform: translateX(-80px);
}

.task-delete-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: white;
  border: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: -4px 0 15px rgba(255, 107, 107, 0.3);
}

.task-delete-btn:active {
  background: linear-gradient(135deg, #EE5A24, #D63031);
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .task-card-wrapper .task-card {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
}

.task-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 182, 193, 0.35);
  background: rgba(255, 255, 255, 0.92);
}

.task-card.completed {
  opacity: 0.65;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-light);
}

.task-card.selected {
  border-color: var(--pink) !important;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.18), rgba(255, 122, 157, 0.1)) !important;
  box-shadow: 0 8px 32px rgba(255, 158, 187, 0.3) !important;
  transform: translateY(-3px) scale(1.01);
}

.task-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.task-title-wrapper {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.task-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 10px 0 15px 0;
  line-height: 1.6;
  padding-left: 8px;
  border-left: 3px solid rgba(255, 182, 193, 0.3);
}

.task-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin: 8px 0;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 182, 193, 0.2);
}

.task-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 任务详情区域 */
.task-detail {
  background: rgba(255, 245, 247, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border: 1px solid rgba(255, 182, 193, 0.15);
}

.task-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.task-detail-item:last-child {
  margin-bottom: 0;
}

.task-detail-label {
  font-weight: 500;
  color: var(--pink-deep);
  min-width: 45px;
}

.task-detail-value {
  flex: 1;
  color: var(--text-primary);
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 任务复选框优化 */
.task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  margin-top: 2px;
  background: white;
}

.task-checkbox:hover {
  border-color: var(--pink);
  background: rgba(255, 182, 193, 0.1);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.task-checkbox:checked {
  background: var(--pink-gradient);
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(255, 158, 187, 0.4);
}

.task-checkbox:checked::after {
  content: ''✓'';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  animation: checkPop 0.3s var(--bounce);
}

@keyframes checkPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* 任务操作按钮 */
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all var(--transition-normal);
  transform: translateX(-8px);
}

.task-card:hover .task-actions {
  opacity: 1;
  transform: translateX(0);
}

.task-action-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 182, 193, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.task-action-btn:hover {
  background: var(--pink-light);
  color: white;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.task-action-btn.delete:hover {
  background: rgba(255, 107, 107, 0.2);
  color: var(--priority-high);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border-color);
  animation: float 4s ease-in-out infinite;
}

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

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

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

.empty-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 任务标签和状态 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.tag:hover { 
  transform: scale(1.08); 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  background: rgba(255, 182, 193, 0.2);
  color: var(--pink-deep);
  margin-right: 6px;
  font-weight: 600;
  transition: var(--transition-normal);
}

.task-tag:hover {
  transform: scale(1.1);
  background: rgba(255, 182, 193, 0.3);
}

.task-tags {
  margin-top: 12px;
}

.task-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  background: rgba(232, 213, 245, 0.35);
  color: #7B52BF;
  font-weight: 600;
}

.task-priority {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  transition: var(--transition-normal);
}

.task-priority.priority-high {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  color: var(--priority-high);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.task-priority.priority-medium {
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.2), rgba(255, 179, 71, 0.1));
  color: #CC7520;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.task-priority.priority-low {
  background: linear-gradient(135deg, rgba(125, 216, 125, 0.2), rgba(125, 216, 125, 0.1));
  color: #3DA85A;
  border: 1px solid rgba(125, 216, 125, 0.3);
}

.task-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.task-status.status-pending {
  background: rgba(155, 142, 160, 0.15);
  color: var(--text-secondary);
}

.task-status.status-in-progress {
  background: rgba(30, 144, 255, 0.15);
  color: #1E70FF;
}

.task-status.status-completed {
  background: rgba(125, 216, 125, 0.2);
  color: #3DA85A;
}

/* 任务日期 */
.task-due-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.02);
}

.task-due-date.overdue {
  color: #DC2626;
  font-weight: 700;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.task-due-date.due-soon {
  color: #CC7520;
  font-weight: 600;
  background: rgba(255, 179, 71, 0.15);
}

/* 逾期任务 */
.task-overdue {
  border-left: 5px solid #DC2626 !important;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.08), transparent) !important;
  animation: overduePulse 3s ease-in-out infinite;
}

@keyframes overduePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
}

/* ---------- 8. 日历视图 ---------- */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 0;
  background: var(--bg-overlay);
  border-radius: var(--radius-md);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 4px;
}

.calendar-day {
  aspect-ratio: auto;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
}

.calendar-day:hover {
  background: var(--bg-overlay);
  transform: scale(1.08);
  border-color: var(--pink-light);
  z-index: 1;
}

.calendar-day.has-tasks {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.35), rgba(255, 122, 157, 0.25));
  border-color: rgba(255, 158, 187, 0.4);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 158, 187, 0.2);
}

.calendar-day.has-tasks:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 158, 187, 0.35);
}

.calendar-day.today {
  background: var(--pink-gradient);
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 158, 187, 0.4);
  transform: scale(1.05);
}

.calendar-day.today:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(255, 158, 187, 0.5);
}

.calendar-day.other-month {
  color: var(--text-light);
  opacity: 0.4;
}

.calendar-day-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}

.calendar-day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  transition: var(--transition-normal);
}

.calendar-day-dot:hover {
  transform: scale(1.3);
}

.calendar-day-dot.high { background: var(--priority-high); color: var(--priority-high); }
.calendar-day-dot.medium { background: var(--priority-medium); color: var(--priority-medium); }
.calendar-day-dot.low { background: var(--priority-low); color: var(--priority-low); }

/* ---------- 日历今日信息栏 ---------- */
.calendar-today-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.18), rgba(255, 122, 157, 0.12));
    border-radius: var(--radius-lg);
    border: 1.5px solid rgba(255, 182, 193, 0.3);
}

.today-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-info-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.today-info-weekday {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-overlay);
    padding: 3px 10px;
    border-radius: 20px;
}

.today-info-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.today-info-count,
.today-info-pending,
.today-info-done {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.today-info-count strong,
.today-info-pending strong {
    color: var(--text-primary);
    font-weight: 700;
}

.today-info-done {
    color: #4CAF50;
    font-weight: 500;
}

/* ---------- 日历头部（导航 + 视图切换） ---------- */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-month-year {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- 视图切换按钮 ---------- */
.calendar-view-switcher {
    display: flex;
    background: var(--bg-overlay);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.btn-view {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-view:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.btn-view.active {
    background: var(--pink-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 158, 187, 0.35);
}

/* ---------- 日历添加任务按钮 ---------- */
.btn-add-calendar-task {
    padding: 8px 16px;
    background: var(--pink-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px rgba(255, 158, 187, 0.3);
    white-space: nowrap;
}

.btn-add-calendar-task:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 158, 187, 0.45);
}

/* ---------- 日历日期格内的任务项 ---------- */
.calendar-task-item {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.4;
}

.calendar-task-item.priority-high {
    background: rgba(255, 107, 107, 0.15);
    color: var(--priority-high);
}

.calendar-task-item.priority-medium {
    background: rgba(255, 179, 71, 0.15);
    color: #e69500;
}

.calendar-task-item.priority-low {
    background: rgba(125, 216, 125, 0.15);
    color: #4caf50;
}

.calendar-task-more {
    font-size: 0.6rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1px;
}

/* ---------- 日历选中状态 ---------- */
.calendar-day.selected {
    border-color: var(--priority-high) !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25), 0 4px 12px rgba(255, 107, 107, 0.15) !important;
}

/* ---------- 日历详情面板 ---------- */
.calendar-detail {
    margin-top: 16px;
    padding: 18px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1.5px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

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

.calendar-detail-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.no-tasks-hint {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 0.9rem;
    list-style: none;
}

/* ---------- 年视图样式 ---------- */
.calendar-year-month {
    background: white;
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.calendar-year-month:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 158, 187, 0.15);
    border-color: var(--pink-light);
}

.year-month-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.year-month-count {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--pink-gradient);
    color: white;
    padding: 1px 8px;
    border-radius: 10px;
}

.year-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
}

.mini-weekday {
    font-size: 0.55rem;
    color: var(--text-light);
    font-weight: 600;
    padding: 2px 0;
}

.mini-day {
    font-size: 0.6rem;
    color: var(--text-secondary);
    padding: 2px 0;
    border-radius: 3px;
    transition: var(--transition-normal);
}

.mini-day.empty {
    color: transparent;
}

.mini-day.today {
    background: var(--pink-gradient);
    color: white;
    font-weight: 700;
    border-radius: 50%;
}

.mini-day.has-tasks {
    color: var(--text-primary);
    font-weight: 600;
}

/* 年视图任务圆点提示 */
.mini-task-dot {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--pink-gradient);
    border-radius: 50%;
    margin: 2px auto 0;
}

.mini-day.today .mini-task-dot {
    background: white;
}

/* ---------- 日历详情任务项样式 ---------- */
.calendar-detail-task {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border-left: 4px solid var(--border-color);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calendar-detail-task:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.calendar-detail-task.completed {
    opacity: 0.7;
    background: #f5fff5;
}

.calendar-detail-task.completed .detail-task-title strong {
    text-decoration: line-through;
    color: var(--text-light);
}

.calendar-detail-task.priority-high {
    border-left-color: var(--priority-high);
}

.calendar-detail-task.priority-medium {
    border-left-color: var(--priority-medium);
}

.calendar-detail-task.priority-low {
    border-left-color: var(--priority-low);
}

.detail-task-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-task-title {
    flex: 1;
    min-width: 0;
}

.detail-task-title strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.detail-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.detail-task-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.detail-task-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-task-description .task-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.detail-task-description .task-image:hover {
    transform: scale(1.02);
}

.detail-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ---------- 9. 统计视图 ---------- */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(255, 182, 193, 0.15);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 182, 193, 0.3);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: iconBob 3s ease-in-out infinite;
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-2deg); }
  75% { transform: translateY(-2px) rotate(2deg); }
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 进度条 */
.progress-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 182, 193, 0.15);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--pink-gradient);
  border-radius: 2px;
}

.progress-bar-container {
  width: 100%;
  height: 24px;
  background: rgba(255, 182, 193, 0.1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 182, 193, 0.2);
  margin-bottom: 12px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--pink-gradient);
  border-radius: 12px;
  transition: width 1s var(--bounce);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(255, 158, 187, 0.4);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--pink-deep);
}

/* ---------- 10. 总结视图 ---------- */
.summary-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.summary-tab {
  padding: 12px 24px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.summary-tab:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
  background: var(--bg-overlay);
  transform: translateY(-1px);
}

.summary-tab.active {
  background: var(--pink-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 158, 187, 0.35);
  font-weight: 600;
  transform: translateY(-2px);
}

.summary-content {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.summary-content.active {
  display: block;
}

.summary-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(255, 182, 193, 0.15);
  transition: all var(--transition-normal);
}

/* ---------- 11. 模态框 ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 78, 96, 0.5);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  padding: 36px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.4s var(--bounce);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #ffebee;
  color: #f44336;
}

@keyframes modalIn {
  0% { 
    opacity: 0; 
    transform: scale(0.9) translateY(30px) rotate(-2deg); 
  }
  60% {
    transform: scale(1.02) translateY(-5px);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

.modal-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 表单 */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: all var(--transition-normal);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: var(--pink-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

.btn-cancel {
  padding: 12px 24px;
  background: white;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-cancel:hover {
  border-color: var(--text-light);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-save {
  padding: 12px 28px;
  background: var(--pink-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 14px rgba(255, 158, 187, 0.35);
}

.btn-save:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 158, 187, 0.45);
}

/* ---------- 12. 下拉菜单 ---------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all var(--transition-normal);
  z-index: 100;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-overlay);
  color: var(--pink-deep);
  transform: translateX(4px);
}

/* ---------- 13. 粉色萌系猫猫（SVG） ---------- */
.cat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-normal);
  user-select: none;
  width: 90px;
  height: 90px;
  animation: catFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 25px rgba(255,158,187,0.3));
}

.cat-svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 悬浮动画 */
@keyframes catFloat {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* 眨眼 */
.eye-blink-group {
  animation: blink 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes blink {
  0%, 42%, 48%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.05); }
}

/* 瞳孔跟随 */
.eye-pupil { transition: transform 0.3s ease; }

/* 胡须 */
.whisker { transition: transform 0.3s ease; }
.whisker-right { animation-delay: 0.1s; }

/* 尾巴 */
.tail-path {
  animation: tailWag 3s ease-in-out infinite alternate;
  transform-origin: 85% 95%;
}

@keyframes tailWag {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(5deg); }
}

/* 耳朵微动 */
.ear-left-group {
  animation: earTwitchL 5s ease-in-out infinite;
  transform-origin: 35% 100%;
}
.ear-right-group {
  animation: earTwitchR 5s ease-in-out infinite 0.5s;
  transform-origin: 65% 100%;
}

@keyframes earTwitchL {
  0%, 90%, 100% { transform: rotate(0deg); }
  93% { transform: rotate(-3deg); }
  96% { transform: rotate(0deg); }
}
@keyframes earTwitchR {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(3deg); }
  91% { transform: rotate(0deg); }
}

/* 腮红呼吸 */
.blush {
  animation: blushPulse 3s ease-in-out infinite;
}

@keyframes blushPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* hover效果 */
.cat-widget:hover {
  filter: drop-shadow(0 15px 40px rgba(255,158,187,0.45));
  animation-play-state: paused;
}

.cat-widget:hover .cat-svg {
  transform: scale(1.08) rotate(-3deg);
}

.cat-widget:hover .eye-pupil {
  transform: translate(2px, 1px);
}

.cat-widget:hover .whisker {
  animation: whiskerTwitch 0.6s ease-in-out infinite alternate;
}

.cat-widget:hover .tail-path {
  animation: tailWag 0.8s ease-in-out infinite alternate;
}

@keyframes whiskerTwitch {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(2deg); }
}

/* ---------- 15. Toast 提示 ---------- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--pink);
  font-size: 0.9rem;
  color: var(--text-primary);
  animation: toastIn 0.3s var(--bounce), toastOut 0.3s ease 2.7s forwards;
  max-width: 340px;
  font-weight: 500;
}

.toast.success { 
  border-left-color: var(--priority-low); 
  background: linear-gradient(135deg, white, rgba(125, 216, 125, 0.05));
}
.toast.warning { 
  border-left-color: var(--priority-medium); 
  background: linear-gradient(135deg, white, rgba(255, 179, 71, 0.05));
}
.toast.error { 
  border-left-color: var(--priority-high); 
  background: linear-gradient(135deg, white, rgba(255, 107, 107, 0.05));
}

@keyframes toastIn {
  from { 
    opacity: 0; 
    transform: translateX(100%) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
}

@keyframes toastOut {
  from { 
    opacity: 1; 
    transform: translateX(0) scale(1); 
  }
  to { 
    opacity: 0; 
    transform: translateX(100%) scale(0.9); 
  }
}

/* ---------- 16. 页脚 ---------- */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- 17. 通用按钮变体 ---------- */
.btn-primary {
  background: var(--pink-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 158, 187, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 158, 187, 0.45);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--pink);
  background: var(--bg-overlay);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B, #FF4757);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.btn-danger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.45);
}

/* ---------- 20. 响应式 ---------- */
/* ============================================
   手机端 H5 适配优化
   ============================================ */

/* 平板端适配 (768px - 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    padding: 24px 20px 40px;
  }
}

/* 手机端适配 (< 768px) */
@media (max-width: 768px) {
  /* 导航栏优化 - 双层布局 */
  .navbar {
    padding: 10px 12px !important;
    height: auto !important;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* 第一层：Logo + 右侧按钮 */
  .navbar-top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .navbar-left {
    flex: 0 0 auto !important;
  }
  
  .logo {
    font-size: 1.1rem !important;
  }
  
  .logo-icon {
    font-size: 1.4rem !important;
  }

  /* 导航中心 - 横向滚动 */
  .navbar-tabs {
    width: 100%;
    display: flex;
    justify-content: flex-start !important;
    gap: 4px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .navbar-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .nav-btn .nav-icon {
    font-size: 1rem !important;
    margin-right: 2px !important;
  }

  /* 导航栏右侧 - 手机端优化 */
  .navbar-right {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* 导出按钮 - 手机端 */
  .btn-export {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    line-height: 1;
  }
  
  /* 用户区域 - 手机端紧凑布局 */
  #user-area {
    gap: 8px !important;
    flex-shrink: 0;
  }
  
  .user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0;
  }
  
  .user-name {
    font-size: 0.85rem !important;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
  }
  
  .btn-logout {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
  }

  /* 侧边栏 - 手机端隐藏，改为抽屉式 */
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin: 0;
    border-radius: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  
  .sidebar.mobile-open {
    display: block;
    transform: translateX(0);
  }
  
  /* 侧边栏遮罩 */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
  }
  
  .sidebar-overlay.active {
    display: block;
  }

  /* 汉堡菜单按钮 */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--pink-deep);
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* 主内容区域 */
  .main-content {
    flex-direction: column;
    padding: 105px 12px 80px;
    margin: 0 !important;
    min-height: 100vh;
  }

  /* 视图面板 */
  .view-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* 统计卡片 */
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px 12px;
  }
  
  .stat-number {
    font-size: 1.5rem !important;
  }

  /* 统计页面移动端 - 缩小数值 */
  .stat-value {
    font-size: 1.3rem !important;
  }

  /* 工作总结页面 - 刷新与导出按钮大小统一 */
  .summary-actions {
    gap: 10px !important;
  }

  .summary-actions .btn-refresh,
  .summary-actions .btn-export {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    height: auto;
    min-height: 40px !important;
    line-height: 1;
  }

  /* 日历看板移动端优化 */
  .calendar-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .calendar-nav {
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .calendar-month-year {
    font-size: 1rem !important;
    min-width: auto !important;
    flex: 1 !important;
  }

  .btn-nav {
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
  }

  .calendar-actions {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .calendar-view-switcher {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between !important;
    flex: 1 !important;
  }

  .btn-view {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    flex: 1 !important;
    text-align: center !important;
  }

  .btn-add-calendar-task {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  /* 任务卡片 */
  .task-card {
    padding: 14px 12px;
  }
  
  .task-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
  }
  
  .task-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* 每日信息栏 - 手机端优化 */
  .daily-info-bar {
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .daily-date {
    margin-bottom: 0 !important;
    flex: 1 1 100%;
  }
  
  .daily-right {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  
  .info-item {
    flex: 1;
    padding: 8px 10px;
  }
  
  .info-icon {
    font-size: 1rem !important;
  }
  
  .info-count {
    font-size: 1.2rem !important;
  }
  
  .info-label {
    font-size: 0.75rem !important;
  }

  /* 模态框 */
  .modal-content {
    padding: 20px 16px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    margin: 20px auto;
  }
  
  .modal-title {
    font-size: 1.1rem;
    line-height: 1.4;
    word-break: break-word;
  }

  /* 表单 */
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-group label {
    font-size: 0.85rem;
  }
  
  .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* 按钮 */
  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  .btn-primary, .btn-success {
    width: 100%;
    justify-content: center;
  }

  /* 下拉菜单 */
  .dropdown-menu {
    right: 0;
    left: auto;
    transform: translateY(-10px);
    min-width: 140px;
  }

  /* 猫猫组件 - 手机端缩小 */
  .cat-widget {
    width: 60px;
    height: 60px;
    bottom: 16px;
    right: 16px;
  }

  /* 任务操作按钮 */
  .task-actions {
    opacity: 1;
    gap: 4px;
  }
  
  .task-actions button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  /* Toast 通知 */
  .toast-container {
    right: 12px;
    left: 12px;
    top: auto;
    bottom: 80px;
  }
  
  .toast {
    max-width: none;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  /* 日历视图优化 */
  .calendar-grid {
    gap: 2px;
  }
  
  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }
  
  .calendar-day-number {
    font-size: 0.8rem;
  }
  
  .calendar-task-dot {
    width: 6px;
    height: 6px;
  }

  /* 智能输入按钮 */
  .smart-input-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* 小屏手机适配 (< 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 8px 10px !important;
    gap: 8px;
  }
  
  .logo {
    font-size: 1rem !important;
  }
  
  .nav-btn {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
  
  .nav-btn .nav-icon {
    font-size: 0.9rem !important;
    margin-right: 1px !important;
  }

  /* 小屏导航栏右侧更紧凑 */
  .navbar-right {
    gap: 6px !important;
  }
  
  .btn-export {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
  
  .user-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
  }
  
  .user-name {
    font-size: 0.75rem !important;
    max-width: 60px;
  }
  
  .btn-logout {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
  }

  .main-content {
    padding: 95px 10px 70px;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .task-card {
    padding: 12px 10px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* 猫猫组件 - 更小 */
  .cat-widget {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
  }
  
  /* 模态框 */
  .modal-content {
    padding: 16px 14px;
    width: 94%;
  }
  
  .modal-header h2 {
    font-size: 1rem;
  }

  /* 任务列表 */
  .task-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .task-filters {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .task-filters::-webkit-scrollbar {
    display: none;
  }
  
  /* 每日信息栏 - 小屏优化 */
  .daily-info-bar {
    padding: 10px 14px !important;
  }
  
  .info-item {
    padding: 6px 8px;
  }
  
  .info-count {
    font-size: 1.1rem !important;
  }
  
  .info-label {
    font-size: 0.7rem !important;
  }
}

/* ---------- 日历详情任务样式 ---------- */
.calendar-detail-tasks {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.calendar-detail-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.calendar-detail-tasks li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-detail-tasks li.completed {
    opacity: 0.7;
    background: #f5fff5;
}

.calendar-detail-tasks li.completed .task-info strong {
    text-decoration: line-through;
    color: #999;
}

.calendar-detail-tasks .task-info {
    flex: 1;
    line-height: 1.5;
}

.calendar-detail-tasks .task-info strong {
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
}

.calendar-detail-tasks .task-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.calendar-detail-tasks .task-actions {
    display: flex;
    gap: 8px;
}

/* ---------- 甘特图样式 ---------- */
.gantt-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gantt-timeline {
    display: flex;
    justify-content: space-between;
    padding: 0 10px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.gantt-time-label {
    font-size: 0.75rem;
    color: #999;
}

.gantt-item {
    position: relative;
    height: 50px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gantt-item:hover {
    transform: scale(1.01);
}

.gantt-bar {
    position: absolute;
    top: 0;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: all 0.3s ease;
}

.gantt-bar:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gantt-bar-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-bar-priority {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
}

.gantt-completed .gantt-bar {
    opacity: 0.6;
}

.gantt-completed .gantt-bar-title {
    text-decoration: line-through;
}

/* ---------- 分类统计样式 ---------- */
.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* 空数据时居中显示 */
.category-stats:has(> .no-data-hint:only-child) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.category-stats .no-data-hint {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
}

.category-stat-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--pink);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,105,135,0.15);
}

.category-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.category-completion {
    background: linear-gradient(135deg, var(--pink), #ff85a2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.category-progress-bar {
    width: 100%;
    height: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.category-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), #ff85a2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.category-stat-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-stat-numbers span {
    text-align: center;
}

/* ---------- 每日趋势图样式 ---------- */
.trend-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.bar-chart.trend-bars {
    display: inline-flex;
    align-items: flex-end;
    min-width: 100%;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.bar-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    min-width: 50px;
    position: relative;
}

.bar-fill {
    background: linear-gradient(180deg, #ff85a2, #ff69b4);
    border-radius: 6px 6px 0 0;
    width: 40px;
    min-width: 40px;
    transition: height 0.3s ease;
}

.bar-item:hover .bar-fill {
    background: linear-gradient(180deg, #ff69b4, #ff1493);
    box-shadow: 0 4px 12px rgba(255,105,180,0.3);
}

.bar-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
    font-size: 0.9rem;
}

.bar-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.trend-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.trend-chart-container {
    position: relative;
}

/* ---------- 统计详情任务列表 ---------- */
.stats-detail-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,182,193,0.3);
}

.stats-detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-detail-title span {
    background: var(--pink);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-task-list {
    display: grid;
    gap: 12px;
}

.stats-task-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stats-task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-task-item.high { border-left: 4px solid var(--priority-high); }
.stats-task-item.medium { border-left: 4px solid var(--priority-medium); }
.stats-task-item.low { border-left: 4px solid var(--priority-low); }

.stats-task-content {
    flex: 1;
}

.stats-task-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stats-task-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stats-task-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-task-meta span {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 768px) {
    .calendar-detail-tasks li {
        padding: 12px;
    }
    
    .gantt-chart {
        padding: 15px;
        overflow-x: auto;
    }
    
    .gantt-bar {
        padding: 0 8px;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-task-item {
        padding: 12px;
    }
}


/* ---------- 总结更新按钮样式 ---------- */
.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-update {
    background: linear-gradient(135deg, var(--pink-light), var(--pink));
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.5);
}

.btn-update:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}


/* ---------- 22. 布局优化 - 侧边栏隐藏时内容区域扩展 ---------- */
.main-content .sidebar[style*="display: none"] + .view-panel,
.main-content .sidebar[style*="display: none"] + .view-panel + .view-panel,
.main-content .sidebar[style*="display: none"] ~ .view-panel {
  width: 100%;
  max-width: 100%;
}

.view-panel {
  flex: 1;
  min-width: 0;
}


/* ---------- 23. 侧边栏隐藏时内容区域全宽 ---------- */
.view-panel.full-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}



.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 182, 193, 0.2);
}

.summary-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-actions {
    display: flex;
    gap: 8px;
}

.summary-date {
    font-size: 0.95rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.15), rgba(255, 107, 135, 0.1));
    border-radius: var(--radius