/* ===== AI面试系统基础样式 ===== */
:root {
  --interview-primary: #6366f1;
  --interview-primary-light: #a5b4fc;
  --interview-primary-dark: #4338ca;
  --interview-bg: #f8fafc;
  --interview-card-bg: #ffffff;
  --interview-border: #e2e8f0;
  --interview-text: #1e293b;
  --interview-text-secondary: #64748b;
  --interview-success: #22c55e;
  --interview-warning: #f59e0b;
  --interview-danger: #ef4444;
  --interview-info: #3b82f6;
  --interview-radius: 12px;
  --interview-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --interview-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

.ai-interview-header {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  color: white;
  padding: 40px 0;
  border-radius: 0 0 20px 20px;
  margin-bottom: 30px;
  text-align: center;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.ai-feature-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.ai-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.ai-icon { font-size: 3em; margin-bottom: 15px; color: #6366f1; }

.interview-schedule { background: #eef2ff; border-radius: 15px; padding: 30px; margin: 40px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 25px 0; }
.schedule-item { background: white; border-radius: 10px; padding: 20px; border-left: 5px solid #6366f1; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.interview-time { font-weight: bold; color: #6366f1; font-size: 1.2em; }

.candidate-status { display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 0.8em; font-weight: bold; margin-left: 10px; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-scheduled { background: #dbeafe; color: #2563eb; }
.status-confirmed { background: #d1fae5; color: #059669; }
.status-progress { background: #ede9fe; color: #7c3aed; }
.status-completed { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

.ai-analysis { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); color: white; border-radius: 15px; padding: 35px; margin: 40px 0; }
.analysis-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 25px 0; }
.metric-box { background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 20px; text-align: center; backdrop-filter: blur(10px); }
.metric-value { font-size: 2.5em; font-weight: bold; margin: 10px 0; }

.interview-controls { display: flex; gap: 15px; margin: 30px 0; flex-wrap: wrap; justify-content: center; }
.control-btn { padding: 12px 25px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 1em; transition: all 0.3s; display: flex; align-items: center; gap: 10px; }
.control-btn.primary { background: #6366f1; color: white; }
.control-btn.secondary { background: white; color: #6366f1; border: 2px solid #6366f1; }
.control-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3); }

.video-container { background: #1a1a1a; border-radius: 15px; padding: 20px; margin: 30px 0; text-align: center; min-height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.video-placeholder { color: #999; font-size: 1.2em; }

.ai-feedback { background: white; border-radius: 15px; padding: 30px; margin: 40px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.feedback-item { padding: 15px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-start; gap: 15px; }
.feedback-item:last-child { border-bottom: none; }
.feedback-icon { font-size: 1.5em; color: #6366f1; min-width: 30px; }
.feedback-content h4 { margin: 0 0 5px 0; color: var(--text); }
.feedback-content p { margin: 0; color: #666; line-height: 1.5; }
.confidence-bar { height: 8px; background: #f0f0f0; border-radius: 4px; margin: 10px 0; overflow: hidden; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, #6366f1, var(--primary)); border-radius: 4px; transition: width 1s ease-in-out; }

/* ===== 1. 面试列表 - 卡片视图 ===== */
.interview-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin: 25px 0; }
.interview-card {
  background: var(--interview-card-bg);
  border-radius: var(--interview-radius);
  border: 1px solid var(--interview-border);
  box-shadow: var(--interview-shadow);
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.interview-card:hover { box-shadow: var(--interview-shadow-lg); transform: translateY(-2px); }
.interview-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 4px 0 0 4px; }
.interview-card.type-ai::before { background: var(--interview-primary); }
.interview-card.type-video::before { background: var(--interview-info); }
.interview-card.type-field::before { background: var(--interview-success); }
.interview-card .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.interview-card .card-name { font-weight: 700; font-size: 1.05em; color: var(--interview-text); }
.interview-card .card-position { font-size: 0.85em; color: var(--interview-text-secondary); margin-top: 2px; }
.interview-card .card-body { margin: 12px 0; }
.interview-card .card-time { display: flex; align-items: center; gap: 6px; font-size: 0.88em; color: var(--interview-text-secondary); margin-bottom: 8px; }
.interview-card .card-type-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78em; font-weight: 600; }
.interview-card .type-badge-ai { background: #ede9fe; color: #7c3aed; }
.interview-card .type-badge-video { background: #dbeafe; color: #2563eb; }
.interview-card .type-badge-field { background: #d1fae5; color: #059669; }
.interview-card .card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.interview-card .card-action-btn {
  padding: 6px 14px; border-radius: 6px; border: none; cursor: pointer;
  font-size: 0.82em; font-weight: 600; transition: all 0.2s;
}
.card-action-btn.start { background: #6366f1; color: white; }
.card-action-btn.start:hover { background: #4f46e5; }
.card-action-btn.detail { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.card-action-btn.detail:hover { background: #e2e8f0; }
.card-action-btn.cancel { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.card-action-btn.cancel:hover { background: #fee2e2; }

/* ===== 2. 面试评分看板 ===== */
.scoring-dashboard { background: white; border-radius: 15px; padding: 30px; margin: 40px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.scoring-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 768px) { .scoring-layout { grid-template-columns: 1fr; } }

.ring-container { display: flex; justify-content: center; align-items: center; flex-direction: column; }
.ring-chart { position: relative; width: 200px; height: 200px; }
.ring-chart svg { transform: rotate(-90deg); }
.ring-bg-circle { fill: none; stroke: #e2e8f0; stroke-width: 10; }
.ring-fg-circle { fill: none; stroke: #6366f1; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 502.65; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s ease; }
.ring-score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.ring-score-number { font-size: 2.5em; font-weight: 800; color: var(--interview-text); }
.ring-score-label { font-size: 0.85em; color: var(--interview-text-secondary); }
.ring-score-sub { font-size: 0.85em; color: var(--interview-text-secondary); margin-top: 10px; }

.dimension-list { display: flex; flex-direction: column; gap: 16px; }
.dimension-item { }
.dimension-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dimension-name { font-weight: 600; font-size: 0.92em; color: var(--interview-text); }
.dimension-weight { font-size: 0.78em; color: var(--interview-text-secondary); background: #f1f5f9; padding: 2px 8px; border-radius: 10px; }
.dimension-score { font-weight: 700; font-size: 0.95em; }
.dimension-bar { height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; margin-top: 4px; }
.dimension-bar-fill { height: 100%; border-radius: 5px; transition: width 1.2s ease; }

/* ===== 3. AI面试官模拟 ===== */
.ai-interviewer { background: #f8fafc; border-radius: 15px; padding: 30px; margin: 40px 0; border: 1px solid #e2e8f0; }
.ai-interviewer-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ai-interviewer-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #4338ca); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6em; flex-shrink: 0; }
.ai-interviewer-title { flex: 1; }
.ai-interviewer-title h3 { margin: 0; font-size: 1.15em; }
.ai-interviewer-title p { margin: 2px 0 0; font-size: 0.85em; color: var(--interview-text-secondary); }
.ai-interviewer-progress { display: flex; gap: 6px; align-items: center; font-size: 0.85em; color: var(--interview-text-secondary); }

.question-display { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin-bottom: 20px; min-height: 160px; transition: all 0.3s; }
.question-number { font-size: 0.85em; color: var(--interview-primary); font-weight: 600; margin-bottom: 8px; }
.question-text { font-size: 1.1em; font-weight: 600; color: var(--interview-text); line-height: 1.6; }
.question-type-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 600; margin-bottom: 10px; }
.qtype-intro { background: #ede9fe; color: #7c3aed; }
.qtype-project { background: #dbeafe; color: #2563eb; }
.qtype-tech { background: #d1fae5; color: #059669; }
.qtype-behavior { background: #fef3c7; color: #d97706; }

.question-hint { background: #f8fafc; border-radius: 8px; padding: 16px; margin-top: 16px; border-left: 3px solid #6366f1; }
.question-hint h5 { margin: 0 0 6px; font-size: 0.88em; color: var(--interview-primary); }
.question-hint p { margin: 0; font-size: 0.85em; color: var(--interview-text-secondary); line-height: 1.5; }

.question-scoring { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.score-btn { padding: 5px 14px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; font-size: 0.8em; font-weight: 600; background: white; transition: all 0.2s; color: var(--interview-text-secondary); }
.score-btn:hover, .score-btn.active { border-color: #6366f1; color: #6366f1; background: #ede9fe; }
.score-btn.score-1:hover, .score-btn.score-1.active { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.score-btn.score-2:hover, .score-btn.score-2.active { border-color: #f59e0b; color: #f59e0b; background: #fef3c7; }
.score-btn.score-3:hover, .score-btn.score-3.active { border-color: #22c55e; color: #22c55e; background: #f0fdf4; }

.interviewer-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

/* ===== 4. 面试日程 - 时间轴 ===== */
.interview-timeline { background: white; border-radius: 15px; padding: 30px; margin: 40px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.timeline-nav { display: flex; gap: 8px; }
.timeline-nav-btn { padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; background: white; font-size: 0.85em; font-weight: 500; transition: all 0.2s; }
.timeline-nav-btn:hover, .timeline-nav-btn.active { border-color: #6366f1; color: #6366f1; background: #ede9fe; }

.timeline-container { position: relative; }
.timeline-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; position: relative; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: #6366f1; flex-shrink: 0; margin-top: 18px; margin-left: 19px; z-index: 1; border: 2px solid white; }
.timeline-dot.pending { background: #f59e0b; }
.timeline-dot.confirmed { background: #22c55e; }
.timeline-dot.progress { background: #6366f1; animation: pulse-dot 2s infinite; }
.timeline-dot.completed { background: #64748b; }
.timeline-dot.cancelled { background: #ef4444; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); } 70% { box-shadow: 0 0 0 8px rgba(99,102,241,0); } 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); } }

.timeline-content { flex: 1; background: #f8fafc; border-radius: 10px; padding: 14px 18px; border: 1px solid #f1f5f9; }
.timeline-content h4 { margin: 0 0 4px; font-size: 0.95em; }
.timeline-content p { margin: 0; font-size: 0.82em; color: var(--interview-text-secondary); }
.timeline-countdown { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.78em; font-weight: 600; margin-top: 6px; }
.countdown-urgent { background: #fef2f2; color: #dc2626; }
.countdown-soon { background: #fef3c7; color: #d97706; }
.countdown-normal { background: #f0fdf4; color: #16a34a; }

/* ===== 5. 面试统计看板 ===== */
.interview-stats { background: white; border-radius: 15px; padding: 30px; margin: 40px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: #f8fafc; border-radius: 10px; padding: 20px; text-align: center; border: 1px solid #f1f5f9; }
.stat-card .stat-icon { font-size: 1.8em; margin-bottom: 8px; }
.stat-card .stat-number { font-size: 2em; font-weight: 800; color: var(--interview-text); }
.stat-card .stat-label { font-size: 0.85em; color: var(--interview-text-secondary); margin-top: 4px; }

.trend-chart { margin: 20px 0; }
.trend-title { font-weight: 600; margin-bottom: 16px; font-size: 0.95em; }
.chart-bars { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; height: 120px; padding: 0 10px; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; min-height: 4px; transition: height 1.2s ease; position: relative; }
.chart-bar-label { font-size: 0.72em; color: var(--interview-text-secondary); text-align: center; margin-top: 4px; }
.chart-bar-value { font-size: 0.7em; font-weight: 600; color: var(--interview-text-secondary); }

/* ===== 过滤器 ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.filter-btn { padding: 6px 16px; border: 1px solid #e2e8f0; border-radius: 20px; cursor: pointer; background: white; font-size: 0.85em; font-weight: 500; transition: all 0.2s; color: var(--interview-text-secondary); }
.filter-btn:hover, .filter-btn.active { border-color: #6366f1; color: #6366f1; background: #ede9fe; }
.filter-search { padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.88em; outline: none; min-width: 200px; flex: 1; max-width: 300px; }
.filter-search:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

.section-title { font-size: 1.3em; font-weight: 700; margin: 30px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-subtitle { font-size: 0.9em; color: var(--interview-text-secondary); margin-bottom: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .ai-features { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .analysis-metrics { grid-template-columns: 1fr; }
  .interview-controls { flex-direction: column; }
  .control-btn { width: 100%; justify-content: center; }
  .interview-card-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-bars { height: 90px; }
}
