/* ═══════════════════════════════════════════════════════════════
   站会页面样式
   包含统计卡片、成员列表、详情面板、趋势图等组件样式
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   顶部统计卡片网格
───────────────────────────────────────────────────────────────── */
.standup-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.standup-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.standup-stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.standup-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.standup-stat-info {
  flex: 1;
  min-width: 0;
}

.standup-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.standup-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.standup-stat-warning {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.standup-stat-help {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.standup-stat-rate .standup-stat-num {
  color: #a855f7;
}

/* ─────────────────────────────────────────────────────────────────
   主内容区：双栏布局
───────────────────────────────────────────────────────────────── */
.standup-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  min-height: 400px;
}

/* ─────────────────────────────────────────────────────────────────
   成员列表面板
───────────────────────────────────────────────────────────────── */
.standup-members-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  max-height: 480px;
}

.standup-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.standup-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.standup-panel-badge {
  padding: 0.2rem 0.6rem;
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.standup-members-list {
  flex: 1;
  overflow-y: auto;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
}

.standup-members-list::-webkit-scrollbar {
  width: 4px;
}

.standup-members-list::-webkit-scrollbar-track {
  background: transparent;
}

.standup-members-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   成员分组标题
───────────────────────────────────────────────────────────────── */
.standup-group-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.standup-group-blocker {
  color: #f87171;
}

.standup-group-help {
  color: #fbbf24;
}

.standup-group-submitted {
  color: #4ade80;
}

.standup-group-pending {
  color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────
   成员列表项
───────────────────────────────────────────────────────────────── */
.standup-member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
}

.standup-member-item:hover {
  background: var(--surface2);
}

.standup-member-item.selected {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.standup-member-item.item-blocker {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #f87171;
}

.standup-member-item.item-help {
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid #fbbf24;
}

.standup-member-item.item-submitted {
  border-left: 3px solid #4ade80;
}

.standup-member-item.item-pending {
  opacity: 0.6;
}

.standup-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.standup-member-info {
  flex: 1;
  min-width: 0;
}

.standup-member-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standup-member-role {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.standup-member-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.standup-status-icon {
  font-size: 1rem;
}

.standup-submit-time {
  font-size: 0.68rem;
  color: var(--muted);
}

.standup-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.standup-loading {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────
   详情面板
───────────────────────────────────────────────────────────────── */
.standup-detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.standup-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.standup-detail-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.standup-detail-empty-text {
  font-size: 0.9rem;
}

.standup-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.standup-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.standup-detail-info {
  flex: 1;
}

.standup-detail-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.standup-detail-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.standup-detail-sections {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   站会内容区块
───────────────────────────────────────────────────────────────── */
.standup-section {
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.standup-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.standup-section-icon {
  font-size: 1rem;
}

.standup-section-tag {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.standup-section-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.standup-section-done {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.standup-section-done .standup-section-header {
  color: #4ade80;
}

.standup-section-plan {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.standup-section-plan .standup-section-header {
  color: #60a5fa;
}

.standup-section-blocker {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulse-blocker 2s ease-in-out infinite;
}

.standup-section-blocker .standup-section-header {
  color: #f87171;
}

@keyframes pulse-blocker {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  }
}

.standup-section-help {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.standup-section-help .standup-section-header {
  color: #fbbf24;
}

/* ─────────────────────────────────────────────────────────────────
   趋势图区域
───────────────────────────────────────────────────────────────── */
.standup-trend-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}

.standup-trend-chart {
  margin-top: 1rem;
}

.standup-trend-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  padding: 0 0.5rem;
  border-bottom: 2px solid var(--border);
}

.standup-trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.standup-trend-bar:hover {
  background: rgba(96, 165, 250, 0.05);
}

.standup-trend-bar.today {
  background: rgba(96, 165, 250, 0.08);
  border-radius: 8px 8px 0 0;
}

.standup-trend-bar-main {
  width: 28px;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 6px 6px 0 0;
  position: absolute;
  bottom: 40px;
  transition: height 0.3s ease;
  min-height: 4px;
}

.standup-trend-bar-blocker {
  width: 14px;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  border-radius: 4px 4px 0 0;
  position: absolute;
  bottom: 40px;
  transition: height 0.3s ease;
  min-height: 2px;
  right: calc(50% - 14px);
}

.standup-trend-bar-label {
  position: absolute;
  bottom: 0;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.standup-trend-bar-count {
  position: absolute;
  bottom: 18px;
  font-size: 0.7rem;
  color: #60a5fa;
  font-weight: 500;
}

.standup-trend-bar-blocker-count {
  position: absolute;
  bottom: 18px;
  right: 4px;
  font-size: 0.65rem;
  color: #f87171;
  font-weight: 500;
}

.standup-trend-bar.today .standup-trend-bar-main {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}

.standup-trend-bar.today .standup-trend-bar-label {
  color: #818cf8;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   响应式适配
───────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .standup-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .standup-main-grid {
    grid-template-columns: 1fr;
  }

  .standup-members-panel {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .standup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standup-stat-card {
    padding: 1rem;
  }

  .standup-stat-num {
    font-size: 1.3rem;
  }

  .standup-trend-bars {
    height: 120px;
  }

  .standup-trend-bar-main {
    width: 20px;
  }
}
