/* projects.css - 项目跟踪页面样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; }

.header { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; padding: 20px 32px; }
.header h1 { font-size: 22px; font-weight: 600; }
.header p { font-size: 13px; opacity: 0.85; margin-top: 4px; }

.top-nav {
  display: flex;
  gap: 2px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  padding: 0;
  border-bottom: 3px solid #0a3d91;
}
.nav-tab {
  padding: 14px 28px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.5px;
}
.nav-tab:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-tab.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  box-shadow: inset 0 -3px 0 #ffd600;
}

.container { max-width: 1500px; margin: 0 auto; padding: 24px; }

.toolbar { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.btn { padding: 8px 18px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: opacity 0.15s; }
.btn:hover:not(:disabled) { opacity: 0.85; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-success { background: #2e7d32; color: #fff; }
.btn-warning { background: #ed6c02; color: #fff; }
.btn-danger { background: #d32f2f; color: #fff; }
.btn-secondary { background: #eee; color: #333; }

.table-wrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1200px; }
thead { background: #f0f4ff; position: sticky; top: 0; z-index: 5; }
th { padding: 11px 14px; text-align: left; font-weight: 600; color: #444; border-bottom: 2px solid #d0dbf7; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: middle; white-space: nowrap; }
tr:hover { background: #f8faff; }

/* 阶段状态样式 */
.stage-cell { display: inline-flex; align-items: center; gap: 6px; min-width: 160px; }
.stage-days { font-size: 13px; color: #555; }
.stage-days.overdue { color: #c62828; font-weight: 600; }
.stage-days.normal { color: #1565c0; }
.stage-empty { color: #bbb; font-style: italic; font-size: 12px; }
.check-icon { 
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 14px; font-weight: bold; color: #fff;
  flex-shrink: 0;
}
.check-intent   { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.check-exec     { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.check-incubate { background: linear-gradient(135deg, #ed6c02, #ffa726); }

/* 模态框 */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-dialog { background: #fff; border-radius: 12px; width: 90%; max-width: 720px; max-height: 88vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eee; }
.modal-header h3 { font-size: 18px; color: #333; }
.modal-body { padding: 20px 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid #eee; background: #fafafa; border-radius: 0 0 12px 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 10px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.form-group.full { grid-column: span 2; }
.form-group textarea { resize: vertical; min-height: 60px; }

.section-title { font-size: 15px; font-weight: 700; color: #1a73e8; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #e8f0fe; }

.loading { text-align: center; padding: 40px; color: #aaa; }
.empty-state { text-align: center; padding: 50px 30px; color: #999; }

.proj-no { font-weight: 700; color: #1a73e8; font-size: 13px; letter-spacing: 0.3px; }
