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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  display: flex;
  height: 100vh;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
}

/* 侧边栏 */
.sidebar {
  width: 200px;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.95) 0%, rgba(44, 44, 46, 0.95) 100%);
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  max-height: 100vh;
  flex-shrink: 0;
}

.sidebar .sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
}

.logo h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0071e3 0%, #42a5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: #f5f5f7;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.2px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4);
}

.nav-item .icon {
  font-size: 18px;
}

/* 主内容区 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 筛选容器 */
.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
}

.project-select {
  padding: 8px 16px;
  border: none;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}

.project-select:hover {
  background-color: #f5f5f7;
}

.project-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #1d1d1f 0%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-back {
  background: rgba(255, 255, 255, 0.6);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 20px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 1);
}

/* 视图容器 */
.view {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* 项目网格 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.project-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.project-card-header {
  margin-bottom: 16px;
}

.project-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.avatar-preview {
  margin-top: 12px;
  text-align: center;
}

.avatar-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card p {
  font-size: 15px;
  color: #6e6e73;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #86868b;
}

.status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.status.active {
  background: linear-gradient(135deg, #34c759 0%, #30b356 100%);
  color: #fff;
}

.status.completed {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #fff;
}

.status.pending {
  background: linear-gradient(135deg, #ff9500 0%, #ff8800 100%);
  color: #fff;
}

.project-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
}

.btn-edit-project {
  padding: 6px 12px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 8px;
}

.btn-edit-project:hover {
  background: rgba(0, 113, 227, 0.15);
  border-color: rgba(0, 113, 227, 0.3);
}

.btn-delete-project {
  padding: 6px 12px;
  background: rgba(255, 149, 0, 0.1);
  color: #ff9500;
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-delete-project:hover {
  background: rgba(255, 149, 0, 0.15);
  border-color: rgba(255, 149, 0, 0.3);
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 17px;
  color: #86868b;
}

/* 项目详情 */
.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-header h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.detail-content {
  max-width: 1400px;
}

/* 两列布局 */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.detail-left,
.detail-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.project-info {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.project-info p {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #86868b;
}

/* 板块 */
.section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

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

.section-header h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

/* Tab切换 */
.detail-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
}

.tab-item {
  padding: 10px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-item:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #1d1d1f;
}

.tab-item.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-content {
  display: none;
}

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

/* 项目相关信息 */
.info-content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
}

.info-content div {
  color: #333;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.info-content a {
  color: #0071e3;
  text-decoration: none;
  word-break: break-all;
}

.info-content a:hover {
  text-decoration: underline;
}

.btn-edit-info {
  padding: 8px 16px;
  font-size: 14px;
}

/* 富文本编辑器 */
.rich-editor-toolbar {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f5f5f7;
  border-radius: 8px 8px 0 0;
  border: 1px solid #e8ecf1;
  border-bottom: none;
}

.toolbar-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: #e8ecf1;
}

.toolbar-btn:active {
  background: #d1d5db;
}

.rich-editor {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  outline: none;
}

.rich-editor:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.rich-editor:empty:before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
}

.rich-editor a {
  color: #0071e3;
  text-decoration: none;
  word-break: break-all;
}

.rich-editor a:hover {
  text-decoration: underline;
}

.rich-editor ul,
.rich-editor ol {
  margin: 8px 0;
  padding-left: 24px;
}

.rich-editor li {
  margin: 4px 0;
}

/* 看板列表 */
.board-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.board-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #e8ecf1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.board-item:hover {
  transform: translateY(-2px);
  border-color: #0071e3;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.15);
}

.board-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: #1d1d1f;
}

.board-item p {
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
}

.board-item .board-url {
  display: none;
}

/* 需求列表 */
.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.requirement-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.requirement-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.requirement-priority {
  width: 4px;
  min-height: 60px;
  border-radius: 2px;
}

.requirement-priority.high {
  background: linear-gradient(180deg, #ff3b30 0%, #ff2d20 100%);
}

.requirement-priority.medium {
  background: linear-gradient(180deg, #ff9500 0%, #ff8800 100%);
}

.requirement-priority.low {
  background: linear-gradient(180deg, #34c759 0%, #30b356 100%);
}

.requirement-content {
  flex: 1;
}

.requirement-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.requirement-content p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 12px;
}

.prototype-link {
  display: inline-block;
  font-size: 13px;
  color: #0071e3;
  text-decoration: none;
  margin-top: 8px;
  font-weight: 500;
}

.prototype-link:hover {
  text-decoration: underline;
}

.requirement-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

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

.requirement-status.pending {
  background: linear-gradient(135deg, #ff9500 0%, #ff8800 100%);
  color: #fff;
}

.requirement-status.in-progress {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #fff;
}

.requirement-status.abandoned {
  background: linear-gradient(135deg, #ff3b30 0%, #ff2d20 100%);
  color: #fff;
}

.requirement-status.done {
  background: linear-gradient(135deg, #34c759 0%, #30b356 100%);
  color: #fff;
}

.requirement-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #86868b;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0071e3 0%, #00c7be 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

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

.requirement-actions .btn {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-edit {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #fff;
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

.btn-delete {
  background: linear-gradient(135deg, #ff3b30 0%, #ff2d20 100%);
  color: #fff;
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
}

/* 看板视图 */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  height: 100%;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.column-header {
  padding: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-header.pending {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 136, 0, 0.1) 100%);
  color: #ff9500;
}

.column-header.in-progress {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 91, 181, 0.1) 100%);
  color: #0071e3;
}

.column-header.finalized {
  background: linear-gradient(135deg, rgba(142, 102, 255, 0.1) 0%, rgba(125, 89, 234, 0.1) 100%);
  color: #8e66ff;
}

.column-header.abandoned {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 45, 32, 0.1) 100%);
  color: #ff3b30;
}

.column-header.done {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(48, 179, 86, 0.1) 100%);
  color: #34c759;
}

.column-title {
  font-size: 15px;
  font-weight: 600;
}

.column-count {
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.column-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.kanban-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-priority {
  width: 3px;
  min-height: 20px;
  border-radius: 2px;
}

.card-priority.high {
  background: linear-gradient(180deg, #ff3b30 0%, #ff2d20 100%);
}

.card-priority.medium {
  background: linear-gradient(180deg, #ff9500 0%, #ff8800 100%);
}

.card-priority.low {
  background: linear-gradient(180deg, #34c759 0%, #30b356 100%);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #86868b;
}

.card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #86868b;
}

.mini-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0071e3 0%, #00c7be 100%);
  border-radius: 2px;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

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

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
  margin-bottom: 28px;
  position: relative;
  padding-right: 40px;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #86868b;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
}

.modal-header h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.modal-body {
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

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

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer .btn {
  padding: 12px 28px;
}

/* 登录页面 */
.login-page {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  font-size: 15px;
  color: #86868b;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.error-message {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 45, 32, 0.1) 100%);
  color: #ff3b30;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

/* 退出按钮 */
.btn-logout {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 20px;
    padding: 28px;
  }
  
  .view {
    padding: 20px;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}