* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-x: hidden;
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 800px;
  min-height: 80vh;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.container.fullscreen {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

.container.fullscreen .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.container.fullscreen .menu-nav {
  justify-content: center;
  gap: 15px;
}

.container.fullscreen .menu-btn {
  min-width: 160px;
}

.container.fullscreen .work-analysis .analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.container.fullscreen .calendar-container {
  max-width: 100%;
}

.container.fullscreen .week-view .week-grid {
  max-width: 100%;
  overflow-x: auto;
}

.container.fullscreen .month-view .month-grid {
  max-width: 100%;
}

/* 为其他页面添加全屏宽度支持 */
.container.fullscreen .quadrant-container {
  max-width: 100%;
}

.container.fullscreen .quadrant-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.container.fullscreen .calendar-container {
  max-width: 100%;
}

.container.fullscreen .day-view {
  max-width: 100%;
}

.container.fullscreen .week-view {
  max-width: 100%;
}

.container.fullscreen .month-view {
  max-width: 100%;
}

.container.fullscreen .data-management {
  max-width: 100%;
}

.container.fullscreen .work-analysis {
  max-width: 100%;
}

.container.fullscreen .analysis-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.container.fullscreen .charts-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.container.fullscreen .overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* 统一所有页面容器的宽度设置 */
.menu-content {
  width: 100%;
  max-width: 100%;
}

.quadrant-container {
  width: 100%;
  max-width: 100%;
}

.calendar-container {
  width: 100%;
  max-width: 100%;
}

.data-management {
  width: 100%;
  max-width: 100%;
}

.work-analysis {
  width: 100%;
  max-width: 100%;
}

/* 确保所有页面在非全屏模式下也有一致的宽度 */
.container:not(.fullscreen) .menu-content {
  max-width: 100%;
}

.container:not(.fullscreen) .quadrant-container {
  max-width: 100%;
}

.container:not(.fullscreen) .calendar-container {
  max-width: 100%;
}

.container:not(.fullscreen) .data-management {
  max-width: 100%;
}

.container:not(.fullscreen) .work-analysis {
  max-width: 100%;
}

/* 通知组件样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

.notification.success {
  border-left-color: #4caf50;
}

.notification.error {
  border-left-color: #f44336;
}

.notification.info {
  border-left-color: #2196f3;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-icon {
  font-size: 16px;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  color: #333;
}

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

.header {
  margin-bottom: 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  text-align: left;
}

.header-right {
  display: flex;
  align-items: center;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header h1 {
  color: #4a5568;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header p {
  color: #718096;
  font-size: 1.1rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.input-group input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group select {
  min-width: 120px;
  white-space: nowrap;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  flex-wrap: wrap;
}

.todo-item:hover {
  border-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.todo-item.completed {
  background: #f0fff4;
  border-color: #9ae6b4;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: #718096;
}

.todo-checkbox {
  width: 24px;
  height: 24px;
  border: 3px solid #cbd5e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.todo-checkbox.checked {
  background: #48bb78;
  border-color: #48bb78;
}

.todo-checkbox.checked::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.todo-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.todo-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d3748;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.todo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #718096;
  flex-wrap: wrap;
}

.todo-priority {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-high {
  background: #fed7d7;
  color: #c53030;
}

.priority-medium {
  background: #fef5e7;
  color: #d69e2e;
}

.priority-low {
  background: #e6fffa;
  color: #319795;
}

.todo-type {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-requirement {
  background: #e6f3ff;
  color: #1e40af;
}

.type-documentation {
  background: #f0f9ff;
  color: #0369a1;
}

.type-development {
  background: #f0fdf4;
  color: #166534;
}

.type-testing {
  background: #fef3c7;
  color: #d97706;
}

.type-operation {
  background: #fdf2f8;
  color: #be185d;
}

.type-other {
  background: #f3f4f6;
  color: #374151;
}

.project-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 15px;
  border: 2px solid #e2e8f0;
}

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

.project-header h3 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.project-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.project-item {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-item:hover {
  border-color: #667eea;
  color: #667eea;
}

.project-item.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.project-name {
  font-weight: 600;
}

.project-count {
  font-size: 0.8rem;
  opacity: 0.8;
}

.todo-project {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e6f3ff;
  color: #1e40af;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: 400px;
  max-width: 90vw;
}

.modal h3 {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.modal-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.todo-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.todo-item:hover .todo-actions {
  opacity: 1;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-edit {
  background: #ebf8ff;
  color: #3182ce;
}

.btn-edit:hover {
  background: #bee3f8;
}

.btn-delete {
  background: #fed7d7;
  color: #e53e3e;
}

.btn-delete:hover {
  background: #feb2b2;
}

.btn-start {
  background: #f0fdf4;
  color: #166534;
}

.btn-start:hover {
  background: #dcfce7;
}

.btn-stop {
  background: #fef2f2;
  color: #dc2626;
}

.btn-stop:hover {
  background: #fee2e2;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-btn.active:hover {
  color: white;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f7fafc;
  border-radius: 15px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.stat-label {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 5px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #4a5568;
}

.empty-state p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 20px;
    min-height: auto;
    max-width: 100%;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group input,
  .input-group select {
    min-width: auto;
    width: 100%;
  }
  
  .todo-item {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .todo-actions {
    opacity: 1;
    align-self: flex-end;
  }
  
  .filters {
    justify-content: center;
  }
  
  .project-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .project-list {
    justify-content: flex-start;
  }
  
  .todo-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .work-analysis {
    padding: 15px;
  }
  
  .data-management {
    padding: 15px;
  }
  
  .data-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .data-actions .btn {
    min-width: auto;
  }
  
  .menu-nav {
    flex-direction: column;
    align-items: stretch;
  }
  
  .menu-btn {
    min-width: auto;
    width: 100%;
  }
  
  .calendar-nav {
    flex-direction: column;
    gap: 15px;
  }

  .calendar-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .calendar-title {
    font-size: 1.2rem;
  }
  
  .calendar-views {
    flex-wrap: wrap;
  }
  
  .view-btn {
    flex: 1;
    min-width: 80px;
  }
  
  .day-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .time-label {
    width: 60px;
    font-size: 0.8rem;
  }
  
  .week-header {
    flex-direction: column;
  }
  
  .time-column {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .day-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .time-row {
    flex-direction: column;
  }
  
  .day-cell {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .month-day {
    min-height: 80px;
    padding: 8px;
  }
  
  .month-task {
    font-size: 0.7rem;
    padding: 3px 4px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header-left {
    text-align: center;
  }
  
  .fullscreen-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .container.fullscreen {
    padding: 15px;
  }
  
  .container.fullscreen .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container.fullscreen .work-analysis .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .sync-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sync-actions {
    flex-direction: column;
  }
  
  .sync-actions .btn {
    width: 100%;
  }

  /* 工作分析响应式 */
  .analysis-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .time-dimension-selector {
    flex-wrap: wrap;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coordination-grid {
    grid-template-columns: 1fr;
  }

  .coordination-card {
    padding: 15px;
  }

  .coordination-value {
    font-size: 2rem;
  }

  .coordination-summary {
    flex-direction: column;
    gap: 20px;
    padding: 12px;
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .summary-status {
    font-size: 1rem;
    padding: 4px 10px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  /* 移动端第一行布局调整 */
  .charts-row:first-child .charts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 平板端布局调整 */
  @media (min-width: 768px) and (max-width: 1024px) {
    .charts-row:first-child .charts-grid {
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }
    
    .trend-chart-card {
      grid-column: 1 / -1;
    }
  }

  .pie-chart-card {
    width: 100%;
  }

  .trend-chart-card {
    min-width: auto;
  }

  .charts-row {
    margin-bottom: 20px;
  }

  .pie-chart-card {
    max-width: 100%;
  }

  .chart-card {
    padding: 15px;
  }

  .time-blocks {
    grid-template-columns: repeat(12, 1fr);
    height: 80px;
  }

  .time-block {
    min-width: 30px;
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
    padding: 15px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .project-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .todo-item {
    padding: 12px;
  }
  
  .todo-text {
    font-size: 1rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .btn-icon {
    width: 32px;
    height: 32px;
  }
}

.todo-time {
  font-size: 0.85rem;
  color: #6b7280;
}

.todo-duration {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.todo-timer {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.timer-running {
  background: #fef3c7;
  color: #d97706;
  animation: pulse 2s infinite;
}

.timer-stopped {
  background: #e6fffa;
  color: #319795;
}

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

.work-analysis {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 15px;
  border: 2px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
}

.work-analysis h3 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.analysis-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.analysis-card:hover {
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.analysis-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.analysis-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.analysis-label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

.analysis-value {
  font-size: 0.9rem;
  color: #2d3748;
  font-weight: 600;
  background: #e6f3ff;
  padding: 4px 8px;
  border-radius: 6px;
}

.data-management {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 15px;
  border: 2px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
}

.data-management h3 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.data-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.data-actions .btn {
  min-width: 120px;
  justify-content: center;
}

/* 服务器同步样式 */
.sync-status {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sync-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.sync-indicator {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.sync-indicator.online {
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #9ae6b4;
}

.sync-indicator.offline {
  background: #fed7d7;
  color: #e53e3e;
  border: 1px solid #feb2b2;
}

.last-update {
  font-size: 0.9rem;
  color: #4a5568;
}

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

.sync-actions .btn {
  min-width: 140px;
  justify-content: center;
}

.sync-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.menu-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-btn {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #4a5568;
  min-width: 140px;
}

.menu-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.menu-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.menu-content {
  animation: fadeIn 0.3s ease;
}

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

/* 日历看板样式 */
.calendar-container {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.current-time-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%) !important;
  color: white !important;
  border-color: #ff4757 !important;
  font-weight: 600;
}

.current-time-btn:hover {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.calendar-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}

.calendar-views {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.view-btn {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #4a5568;
}

.view-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.view-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

/* 日视图样式 */
.day-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.day-header {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.day-header h4 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.day-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.day-stats .stat {
  font-size: 0.9rem;
  opacity: 0.9;
}

.day-timeline {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  max-width: 100%;
}

.day-timeline::-webkit-scrollbar {
  height: 8px;
}

.day-timeline::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.day-timeline::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.day-timeline::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.time-slot {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  min-height: 100px; /* 增加高度以容纳多个任务 */
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.time-slot.current-time {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  border-bottom: 2px solid #ff4757;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.time-slot.current-time .time-label {
  background: #ff4757;
  color: white;
  font-weight: 600;
}

.time-label {
  width: 80px;
  padding: 10px;
  background: #f7fafc;
  border-right: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.time-content {
  flex: 1;
  padding: 5px;
  position: relative;
  min-height: 90px; /* 增加高度以容纳多个任务 */
  overflow: visible;
  background-image: 
    linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 16.67% 20px; /* 每10分钟一格，每20px一行 */
  box-sizing: border-box;
}

.timeline-task {
  background: #ebf8ff;
  border-left: 4px solid #3182ce;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(49, 130, 206, 0.2);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-task:hover {
  background: #bee3f8;
  transform: translateX(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: rgba(49, 130, 206, 0.4);
  z-index: 20;
}

.timeline-task.completed {
  background: #f0fff4;
  border-left-color: #38a169;
  border-color: rgba(56, 161, 105, 0.2);
  opacity: 0.8;
}

.timeline-task.completed:hover {
  background: #c6f6d5;
  border-color: rgba(56, 161, 105, 0.4);
  opacity: 1;
}

.task-time {
  font-size: 0.8rem;
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 4px;
}

.task-text {
  font-weight: 500;
  color: #2d3748;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.task-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.task-meta span {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: #4a5568;
  font-weight: 500;
}

.task-duration {
  font-size: 0.75rem;
  color: #718096;
  font-weight: 500;
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  display: inline-block;
}

.long-task-indicator {
  margin-left: 4px;
  color: #3182ce;
  font-weight: 600;
}

/* 周视图样式 */
.week-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
}

.week-grid {
  display: flex;
  flex-direction: column;
  min-width: 800px; /* 确保最小宽度 */
}

.day-cell {
  flex: 1;
  border-right: 1px solid #e2e8f0;
  padding: 2px;
  position: relative;
  min-height: 50px;
  background-image: 
    linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 16.67% 20px; /* 每10分钟一格，每20px一行 */
  overflow: visible;
}

.week-header {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.time-column {
  width: 80px;
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.day-column {
  flex: 1;
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.day-column.today {
  background: rgba(255, 255, 255, 0.1);
}

.day-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.day-date {
  font-size: 0.9rem;
  opacity: 0.9;
}

.day-task-count {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 5px;
}

.week-body {
  max-height: 600px;
  overflow-y: auto;
}

.time-row {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.time-row.current-time {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  border-bottom: 2px solid #ff4757;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.time-row.current-time .time-label {
  background: #ff4757;
  color: white;
  font-weight: 600;
}

.time-row .time-label {
  width: 80px;
  padding: 10px;
  background: #f7fafc;
  border-right: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.day-cell {
  border-right: 1px solid #e2e8f0;
  padding: 2px;
  min-height: 50px;
  position: relative;
  overflow: visible;
  width: 60px; /* 固定1小时宽度为60px */
  background-image: 
    linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
    linear-gradient(rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 10px 20px; /* 每10分钟一格，每20px一行 */
}

.week-task {
  background: #ebf8ff;
  border-left: 3px solid #3182ce;
  padding: 6px 8px;
  margin: 1px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(49, 130, 206, 0.2);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 移除min-height，让JavaScript控制高度 */
}

.week-task:hover {
  background: #bee3f8;
  transform: translateX(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: rgba(49, 130, 206, 0.4);
}

.week-task.completed {
  background: #f0fff4;
  border-left-color: #38a169;
  border-color: rgba(56, 161, 105, 0.2);
  opacity: 0.8;
}

.week-task.completed:hover {
  background: #c6f6d5;
  border-color: rgba(56, 161, 105, 0.4);
}

.week-task .task-time {
  font-size: 0.7rem;
  color: #4a5568;
  font-weight: 500;
  margin-bottom: 2px;
}

.week-task .task-text {
  font-weight: 500;
  color: #2d3748;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.week-task .task-duration {
  font-size: 0.65rem;
  color: #718096;
  font-weight: 500;
  margin-top: 2px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  display: inline-block;
}

/* 月视图样式 */
.month-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.month-grid {
  display: flex;
  flex-direction: column;
}

.month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.month-header .day-name {
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.month-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.month-day {
  min-height: 100px;
  padding: 10px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.month-day:hover {
  background: #f7fafc;
}

.month-day.other-month {
  background: #f7fafc;
  color: #a0aec0;
}

.month-day.today {
  background: #ebf8ff;
  border: 2px solid #3182ce;
}

.month-day.has-tasks {
  background: #f0fff4;
}

.day-number {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.day-tasks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.month-task {
  background: #ebf8ff;
  border-left: 2px solid #3182ce;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.month-task:hover {
  background: #bee3f8;
}

.month-task.completed {
  background: #f0fff4;
  border-left-color: #38a169;
  opacity: 0.8;
}

.more-tasks {
  font-size: 0.7rem;
  color: #4a5568;
  text-align: center;
  padding: 2px;
  background: #e2e8f0;
  border-radius: 3px;
}

/* 任务详情弹窗 */
.task-modal {
  max-width: 500px;
  width: 90%;
}

.task-details {
  margin: 20px 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item label {
  font-weight: 600;
  color: #4a5568;
  min-width: 100px;
}

.detail-item span {
  color: #2d3748;
  text-align: right;
}

.detail-item span.completed {
  color: #38a169;
  font-weight: 500;
}

/* 工作分析样式 */
.work-analysis {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.analysis-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-title h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #2d3748;
}

.date-range-display {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
  padding: 6px 12px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.analysis-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-selector label {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
  white-space: nowrap;
}

.date-input {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #2d3748;
  transition: all 0.3s ease;
  min-width: 140px;
}

.date-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-dimension-selector {
  display: flex;
  gap: 10px;
}

.dimension-btn {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #4a5568;
}

.dimension-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.dimension-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

/* 概览卡片 */
.overview-section {
  margin-bottom: 30px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}

/* 协调点区域 */
.coordination-section {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 15px;
  border: 2px solid #e2e8f0;
}

.coordination-header {
  text-align: center;
  margin-bottom: 25px;
}

.coordination-header h4 {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  color: #2d3748;
  font-weight: 600;
}

.coordination-header p {
  margin: 0;
  color: #718096;
  font-size: 0.95rem;
}

.coordination-summary {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.summary-label {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #667eea;
}

.summary-status {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
}

.summary-status.status-excellent {
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #9ae6b4;
}

.summary-status.status-good {
  background: #fef5e7;
  color: #d69e2e;
  border: 1px solid #f6ad55;
}

.summary-status.status-average {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #f59e0b;
}

.summary-status.status-needs-improvement {
  background: #fed7d7;
  color: #e53e3e;
  border: 1px solid #feb2b2;
}

.coordination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.coordination-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.coordination-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.coordination-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.coordination-card:nth-child(1) { animation-delay: 0.1s; }
.coordination-card:nth-child(2) { animation-delay: 0.2s; }
.coordination-card:nth-child(3) { animation-delay: 0.3s; }

.coordination-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.coordination-content {
  text-align: center;
}

.coordination-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
}

.coordination-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.coordination-description {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.4;
  opacity: 0.8;
}

/* 协调点卡片状态样式 */
.coordination-card.efficiency-high .coordination-value {
  color: #38a169;
}

.coordination-card.efficiency-high::before {
  background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}

.coordination-card.efficiency-medium .coordination-value {
  color: #d69e2e;
}

.coordination-card.efficiency-medium::before {
  background: linear-gradient(135deg, #d69e2e 0%, #ed8936 100%);
}

.coordination-card.efficiency-low .coordination-value {
  color: #e53e3e;
}

.coordination-card.efficiency-low::before {
  background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
}

/* 协调点卡片脉冲效果 */
.coordination-card.efficiency-high {
  box-shadow: 0 2px 10px rgba(56, 161, 105, 0.2);
}

.coordination-card.efficiency-high:hover {
  box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

.coordination-card.efficiency-medium {
  box-shadow: 0 2px 10px rgba(214, 158, 46, 0.2);
}

.coordination-card.efficiency-medium:hover {
  box-shadow: 0 8px 25px rgba(214, 158, 46, 0.3);
}

.coordination-card.efficiency-low {
  box-shadow: 0 2px 10px rgba(229, 62, 62, 0.2);
}

.coordination-card.efficiency-low:hover {
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.overview-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.overview-content {
  flex: 1;
}

.overview-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 5px;
}

.overview-label {
  color: #4a5568;
  font-size: 0.9rem;
}

/* 图表区域 */
.charts-section {
  margin-bottom: 30px;
}

.charts-row {
  margin-bottom: 30px;
}

.charts-row:last-child {
  margin-bottom: 0;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

/* 第一行的特殊布局 */
.charts-row:first-child .charts-grid {
  grid-template-columns: 1fr 1fr 2fr;
  gap: 15px;
}

/* 饼图卡片特殊样式 */
.pie-chart-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pie-chart-card .chart-header {
  text-align: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.pie-chart-card .chart-header h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.pie-chart-card .pie-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  flex: 1;
}

.pie-chart-card .pie-chart svg {
  width: 150px;
  height: 150px;
}

/* 确保两个饼图卡片高度一致 */
.charts-row:first-child .charts-grid {
  align-items: stretch;
}

/* 趋势图卡片样式 */
.trend-chart-card {
  min-width: 400px;
}

.trend-chart-card .line-chart {
  height: 250px;
}

/* 时间块卡片样式 */
.time-blocks-card {
  grid-column: 1 / -1;
}

.chart-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-header {
  margin-bottom: 15px;
}

.chart-header h4 {
  margin: 0 0 15px 0;
  color: #2d3748;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  min-height: 60px;
  align-items: flex-start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  height: 28px;
  box-sizing: border-box;
}

.legend-item:hover {
  background: #edf2f7;
  transform: translateX(2px);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-label {
  font-size: 0.85rem;
  color: #4a5568;
  font-weight: 500;
  min-width: 60px;
}

.legend-value {
  font-size: 0.85rem;
  color: #2d3748;
  font-weight: 600;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
}

/* 饼图 */
.pie-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  position: relative;
}

.pie-segment {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pie-segment:hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transform: scale(1.02);
}

.pie-center-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: none;
}

/* 折线图 */
.line-chart {
  height: 200px;
  overflow: hidden;
}

.trend-point {
  transition: all 0.3s ease;
  cursor: pointer;
}

.trend-point:hover {
  r: 7;
  fill: #4c51bf;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.trend-curve {
  transition: all 0.3s ease;
}

.trend-curve:hover {
  stroke-width: 4;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
}

/* 柱状图 */
.bar-chart {
  height: 200px;
  overflow: hidden;
}

.bar-item {
  transition: all 0.3s ease;
}

.bar-item:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

/* 时间块 */
.time-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.time-period {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.period-label {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  padding: 8px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.period-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.time-block {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.time-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-block.has-task {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.time-block.has-task:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.time-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 4px;
}

.task-count {
  font-size: 0.8rem;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* 四象限样式 */
.quadrant-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.quadrant-header {
  text-align: center;
  margin-bottom: 30px;
}

.quadrant-header h3 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  color: #2d3748;
}

.quadrant-header p {
  margin: 0;
  color: #4a5568;
  font-size: 1rem;
}

.quadrant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.container.fullscreen .quadrant-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.quadrant {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid;
  overflow: hidden;
  transition: all 0.3s ease;
}

.quadrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.quadrant .quadrant-header {
  padding: 15px 20px;
  color: white;
  text-align: left;
  margin: 0;
}

.quadrant .quadrant-header h4 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.quadrant-count {
  font-size: 0.9rem;
  opacity: 0.9;
}

.quadrant-description {
  padding: 10px 20px;
  background: #f7fafc;
  color: #4a5568;
  font-size: 0.9rem;
  font-style: italic;
  border-bottom: 1px solid #e2e8f0;
}

.quadrant-tasks {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.quadrant-task {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: #f7fafc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.quadrant-task:hover {
  background: #edf2f7;
  transform: translateX(2px);
}

.quadrant-task.completed {
  background: #f0fff4;
  border-left-color: #38a169;
  opacity: 0.8;
}

.quadrant-task.completed .task-text {
  text-decoration: line-through;
  color: #38a169;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.task-checkbox:hover {
  border-color: #667eea;
}

.task-checkbox .checkmark {
  color: #667eea;
  font-weight: bold;
  font-size: 14px;
}

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

.task-text {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 4px;
  word-break: break-word;
}

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

.task-meta span {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #4a5568;
}

.task-actions {
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quadrant-task:hover .task-actions {
  opacity: 1;
}

.empty-quadrant {
  text-align: center;
  padding: 40px 20px;
  color: #a0aec0;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .quadrant-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .quadrant-container {
    padding: 15px;
  }
  
  .quadrant-header h3 {
    font-size: 1.5rem;
  }
  
  .quadrant-tasks {
    max-height: 300px;
  }
  
  .quadrant-task {
    padding: 10px;
  }
  
  .task-meta {
    flex-direction: column;
    gap: 4px;
  }
  
  /* 确保所有页面在移动端都有一致的宽度 */
  .menu-content,
  .quadrant-container,
  .calendar-container,
  .data-management,
  .work-analysis {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 15px;
  }
  
  .container {
    padding: 15px;
  }
  
  .container.fullscreen {
    padding: 10px;
  }
} 

.date-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-nav-btn {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #4a5568;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-nav-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #2d3748;
}

.date-nav-btn.today-btn {
  background: #667eea;
  color: white;
  border-color: #667eea;
  min-width: 60px;
}

.date-nav-btn.today-btn:hover {
  background: #5a67d8;
  border-color: #5a67d8;
} 

/* 密码验证界面样式 */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

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

.auth-header h2 {
  margin: 0 0 10px 0;
  color: #2d3748;
  font-size: 1.8rem;
  font-weight: 700;
}

.auth-header p {
  margin: 0;
  color: #718096;
  font-size: 1rem;
}

.pin-input-container {
  margin-top: 20px;
}

.pin-input {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pin-digit {
  width: 50px;
  height: 50px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  background: #f7fafc;
  transition: all 0.3s ease;
  outline: none;
}

.pin-digit:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: scale(1.05);
}

.pin-digit:not(:placeholder-shown) {
  border-color: #667eea;
  background: white;
}

.pin-error {
  color: #e53e3e;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.pin-hint {
  color: #718096;
  font-size: 0.85rem;
  opacity: 0.8;
}

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 主应用容器样式调整 */
.app-container {
  min-height: 100vh;
  background: #f7fafc;
  width: 100%;
}

/* 确保所有页面内容区域的一致性 */
.menu-content > * {
  width: 100%;
  max-width: 100%;
}

/* 统一所有页面的内容区域样式 */
.menu-content .quadrant-container,
.menu-content .calendar-container,
.menu-content .data-management,
.menu-content .work-analysis {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
} 

.calendar-container {
  margin-top: 20px;
}

.container.fullscreen .calendar-container {
  margin-top: 20px;
  max-width: 100%;
}

.container.fullscreen .calendar-nav {
  flex-wrap: wrap;
  gap: 15px;
}

.container.fullscreen .calendar-views {
  flex-wrap: wrap;
  gap: 10px;
} 

.data-management {
  margin-top: 20px;
}

.container.fullscreen .data-management {
  margin-top: 20px;
  max-width: 100%;
}

.container.fullscreen .data-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
} 

.work-analysis {
  margin-top: 20px;
}

.container.fullscreen .work-analysis {
  margin-top: 20px;
  max-width: 100%;
}

.container.fullscreen .analysis-header {
  flex-wrap: wrap;
  gap: 15px;
}

.container.fullscreen .analysis-controls {
  flex-wrap: wrap;
  gap: 10px;
} 