* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f0f5fa; color: #333; min-height: 100vh; }

/* 登录页 */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #e8f0fe 0%, #f0f5fa 100%); }
.login-box { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 4px 24px rgba(26,115,232,0.12); width: 360px; }

.header { background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%); color: white; padding: 0 24px; box-shadow: 0 2px 8px rgba(26,115,232,0.3); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; height: 60px; gap: 24px; }
.header-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; }
.logo { font-size: 18px; font-weight: 600; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav-item { color: rgba(255,255,255,0.8); text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; transition: all 0.2s; }
.nav-item:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-item.active { background: rgba(255,255,255,0.2); color: white; font-weight: 500; }

.main { max-width: 1400px; margin: 24px auto; padding: 0 24px; }

.card { background: white; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.card-title { font-size: 16px; font-weight: 600; color: #1a73e8; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e8eef5; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: linear-gradient(135deg, #e8f0fe, #f8fbff); border-radius: 10px; padding: 20px; text-align: center; border: 1px solid #d2e3fc; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a73e8; }
.stat-label { font-size: 13px; color: #5f6368; margin-top: 4px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: #5f6368; margin-bottom: 6px; }
.form-input, .form-select { width: 100%; padding: 10px 14px; border: 1px solid #dde3ea; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; outline: none; }
.form-input:focus, .form-select:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* 按钮 */
.btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: #1a73e8; color: white; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #0d904f; color: white; }
.btn-success:hover { background: #0a7340; }
.btn-danger { background: #d93025; color: white; }
.btn-danger:hover { background: #b3261e; }
.btn-outline { background: white; color: #1a73e8; border: 1px solid #1a73e8; }
.btn-outline:hover { background: #e8f0fe; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e8eef5; }
th { background: #f8fbff; color: #5f6368; font-weight: 500; font-size: 13px; white-space: nowrap; }
tr:hover td { background: #f8fbff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-blue { background: #e8f0fe; color: #1a73e8; }
.tag-green { background: #e6f4ea; color: #0d904f; }
.tag-gray { background: #f1f3f4; color: #5f6368; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.pagination button { padding: 6px 12px; border: 1px solid #dde3ea; border-radius: 6px; background: white; cursor: pointer; font-size: 13px; }
.pagination button:hover { border-color: #1a73e8; color: #1a73e8; }
.pagination button.active { background: #1a73e8; color: white; border-color: #1a73e8; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 进度 */
.progress-box { background: #f8fbff; border: 1px solid #d2e3fc; border-radius: 8px; padding: 16px; max-height: 300px; overflow-y: auto; font-size: 13px; line-height: 1.8; }
.progress-item { color: #5f6368; }
.progress-item.done { color: #0d904f; }
.progress-item.error { color: #d93025; }

/* 模态框 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal { background: white; border-radius: 12px; padding: 24px; width: 90%; max-width: 700px; max-height: 80vh; overflow-y: auto; }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; font-size: 20px; cursor: pointer; color: #5f6368; }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: #9aa0a6; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 响应式 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
  .nav { overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 视图切换标签 */
.view-tabs { display: flex; gap: 4px; }
.view-tab { padding: 8px 16px; border: 1px solid #dde3ea; background: white; border-radius: 8px; cursor: pointer; font-size: 13px; color: #5f6368; transition: all 0.2s; }
.view-tab:hover { border-color: #1a73e8; color: #1a73e8; }
.view-tab.active { background: #1a73e8; color: white; border-color: #1a73e8; }

/* 项目组卡片 */
.group-card { transition: box-shadow 0.2s; }
.group-card:hover { box-shadow: 0 2px 12px rgba(26,115,232,0.15); }

/* 看板 */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col { flex: 1; min-width: 220px; background: #f4f7fb; border-radius: 10px; }
.kanban-col-header { padding: 12px; font-weight: 600; font-size: 14px; background: white; border-radius: 10px 10px 0 0; }
.kanban-col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }
.kanban-card { background: white; border-radius: 8px; padding: 12px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.2s; }
.kanban-card:hover { box-shadow: 0 2px 10px rgba(26,115,232,0.18); transform: translateY(-1px); }
.kanban-more { width: 100%; padding: 8px; border: 1px dashed #c0d3f0; background: #f8fbff; color: #1a73e8; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.kanban-more:hover { background: #e8f0fe; border-style: solid; }
