body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: #f5f6fa;
  margin: 0;
  color: #222;
}

/* 顶部logo区域 */
.main-header {
  background: #227447;
  padding: 0 0 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.group-logo {
  height: 37px;
  margin-right: 0;
  margin-left: 0;
  vertical-align: middle;
  display: inline-block;
}

/* 小组导航条 */
.group-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1.5px solid #e0e0e0;
  padding: 0 32px;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
}

.group-bar .group-btn {
  margin-right: 32px;
}

.group-bar .add-group-btn {
  margin-left: auto;
  margin-right: 0;
}

.group-btn {
  background: none;
  border: none;
  color: #227447;
  font-size: 18px;
  font-weight: 500;
  margin-right: 32px;
  padding: 0 18px;
  height: 48px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  outline: none;
  display: flex;
  align-items: center;
}

.group-btn.active {
  background: #e6f4ea;
  color: #227447;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(34, 116, 71, 0.08);
}

.group-btn:hover:not(.active) {
  background: #f0f7f4;
  color: #1a7c4b;
}

.add-group-btn {
  background: #227447;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  padding: 0 18px;
  height: 44px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.add-group-btn:hover {
  background: #1a7c4b;
}

.group-btn .edit-icon,
.group-btn .delete-icon {
  font-size: 14px;
  margin-left: 6px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.group-btn .edit-icon:hover,
.group-btn .delete-icon:hover {
  color: #d32f2f;
}

#group-content {
  max-width: 1100px;
  margin: 32px auto 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 32px;
  min-height: 500px;
  margin-top: 140px;
}

.main-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 32px;
  background: #f0f2f5;
  border-top: 1px solid #e0e0e0;
  position: sticky;
  bottom: 0;
}

#export-btn,
#import-btn {
  background: #2a6edb;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 16px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#export-btn:hover,
#import-btn:hover {
  background: #174a8c;
}

input[type="file"] {
  display: none;
}

/* 表单、按钮、列表等后续可补充 */

/* 阶段与任务结构样式 */
.stages-section {
  margin-top: 32px;
  background: #f8f9fb;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.stages-section h3 {
  margin-top: 0;
  font-size: 20px;
  color: #1a2233;
  display: flex;
  align-items: center;
}

.stages-section button {
  margin-left: 16px;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 3px;
  border: none;
  background: #2a6edb;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.stages-section button:hover {
  background: #8a8c17;
}

/* 阶段卡片布局 */
.stages-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage-item {
  background: var(--stage-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(34, 116, 71, 0.10), 0 1.5px 8px rgba(58, 122, 254, 0.06);
  padding: 28px 32px 18px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-height: 56px;
  font-size: 20px;
  font-weight: 600;
  color: #227447;
  margin-bottom: 32px;
  border: 2.5px solid #e0e0e0;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.stage-item:hover {
  box-shadow: 0 8px 32px rgba(58, 122, 254, 0.13), 0 2px 12px rgba(34, 116, 71, 0.13);
  border-color: #3a7afe;
  background: var(--stage-bg, #f7fbff);
  z-index: 2;
}

.stage-name {
  flex: none;
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #227447;
  margin-right: 8px;
  margin-bottom: 12px;
}

.stage-name .add-task-btn {
  margin-left: 36px;
}

.stage-edit-icon,
.stage-delete-icon,
.stage-color-btn {
  font-size: 16px;
  margin-left: 4px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  vertical-align: middle;
}

.stage-edit-icon:hover {
  color: #227447;
}

.stage-delete-icon:hover {
  color: #d32f2f;
}

.stage-color-btn {
  border: none;
  background: none;
  padding: 0 2px;
  font-size: 18px;
  margin-left: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.stage-color-btn:hover {
  color: #3a7afe;
}

.stage-divider {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 8px auto;
  border: none;
  border-top: 3px solid #3a7afe;
  border-radius: 2px;
  background: none;
  height: 0;
}

/* 任务标题栏和卡片对齐优化 */
.task-header,
.task-item {
  display: flex;
  align-items: center;
  background: #fff;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(34, 116, 71, 0.04);
  padding: 8px 18px 8px 18px;
  margin-bottom: 0;
}

.task-header {
  color: #3a7afe;
  font-weight: 600;
  font-size: 17px;
  border: none;
  border-radius: 8px 8px 0 0;
  margin-top: 0;
  box-shadow: none;
}

.task-header-title,
.task-detail {
  flex: 2;
  min-width: 0;
  color: #e74c3c;
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  word-break: break-all;
  display: flex;
  align-items: center;
}

.task-detail {
  color: #222;
  font-weight: 400;
}

.task-header-status,
.task-status {
  flex: 1.2;
  min-width: 110px;
  color: #3a7afe;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.task-status {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  justify-content: flex-start;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  background: none;
  box-shadow: none;
  margin-right: 0;
  padding: 0;
}

.task-status .status-icon {
  margin-right: 6px;
  font-size: 18px;
}

.task-status .status-text {
  color: #222;
  font-size: 15px;
  font-weight: 600;
  margin-left: 2px;
}

.task-header-owner,
.task-owner {
  flex: 1.1;
  min-width: 80px;
  color: #3a7afe;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.task-owner {
  color: #227447;
  font-size: 15px;
  font-weight: 400;
}

.task-header-due,
.task-due {
  flex: 1.3;
  min-width: 120px;
  color: #3a7afe;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.task-due {
  color: #888;
  font-size: 15px;
  font-weight: 400;
}

.task-header-actions,
.task-actions {
  flex: 1.2;
  min-width: 120px;
  display: flex;
  align-items: center;
}

.task-item {
  border-radius: 0 0 8px 8px;
  font-weight: 400;
  color: #222;
  background: #fff;
  margin-bottom: 0;
  padding: 10px 18px;
  transition: box-shadow 0.2s, background 0.2s;
  gap: 0;
}

.task-item:hover {
  background: #f0f7f4;
  box-shadow: 0 4px 16px rgba(34, 116, 71, 0.13);
  z-index: 2;
}

.task-btn {
  background: none;
  border: 1.5px solid #227447;
  color: #227447;
  border-radius: 6px;
  font-size: 15px;
  padding: 2px 12px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.task-btn:hover {
  background: #227447;
  color: #fff;
}

/* 编辑弹窗样式预留 */
.edit-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-modal-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(34, 116, 71, 0.18);
  padding: 32px 36px 24px 36px;
  min-width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edit-modal-content label {
  font-size: 15px;
  color: #227447;
  margin-bottom: 4px;
}

.edit-modal-content input {
  font-size: 16px;
  padding: 6px 10px;
  border: 1px solid #bfc4cc;
  border-radius: 5px;
  margin-bottom: 8px;
}

.edit-modal-content .modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 10px;
}

.edit-modal-content button {
  font-size: 15px;
  padding: 6px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #227447;
  color: #fff;
  transition: background 0.2s;
}

.edit-modal-content button.cancel {
  background: #bfc4cc;
  color: #333;
}

.edit-modal-content button:hover {
  background: #1a7c4b;
}

.add-task-btn.add-task-inline {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 12px;
  font-size: 15px;
  height: 28px;
  line-height: 24px;
  border-radius: 6px;
  background: #227447;
  color: #fff;
  border: none;
  font-weight: 500;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.2s;
}

.add-task-btn.add-task-inline:hover {
  background: #1a7c4b;
}