/* ============================================
   Case Detail Page Styles
   ============================================ */

/* Breadcrumb Section */
.breadcrumb-section {
  padding: 1.5rem 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

/* Student Profile */
.student-profile {
  padding: 3rem 0;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-photo svg {
  width: 40px;
  height: 40px;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.profile-meta svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Score Ring */
.profile-right {
  flex-shrink: 0;
}

.profile-total-score {
  text-align: center;
}

.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
}

.score-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.score-label {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Score Section */
.score-section {
  padding: 3rem 0;
}

.score-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.score-table th,
.score-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.score-table th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-table td {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.score-badge.level-3 {
  background: rgba(83, 140, 191, 0.1);
  color: var(--secondary);
}

.score-badge.level-4 {
  background: rgba(42, 112, 72, 0.1);
  color: var(--primary);
}

.score-badge.level-5 {
  background: rgba(42, 112, 72, 0.15);
  color: var(--primary);
}

.score-badge.level-5s {
  background: var(--primary);
  color: #fff;
}

/* Result Section */
.result-section {
  padding: 3rem 0;
}

.result-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-xl);
}

/* 多条录取结果之间的间距 */
.result-card + .result-card {
  margin-top: 1.25rem;
}

.result-empty .result-info > p {
  margin-bottom: 0;
}

.result-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.result-badge svg {
  width: 28px;
  height: 28px;
}

.result-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.result-info > p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.result-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.result-detail svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Story Section */
.story-section {
  padding: 3rem 0;
}

.story-section .article-content {
  max-width: 720px;
}

/* Timeline Section */
.timeline-section {
  padding: 3rem 0;
}

.timeline-section .timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-section .timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-section .timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-section .timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-bg);
  z-index: 1;
}

.timeline-section .timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-section .timeline-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.timeline-section .timeline-content p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Related Section */
.related-section {
  padding: 3rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.related-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.related-card-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.15rem;
}

.related-card-header p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.related-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.related-result svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-left {
    flex-direction: column;
  }

  .profile-meta {
    justify-content: center;
  }

  .result-card {
    flex-direction: column;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .score-table th,
  .score-table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .profile-info h1 {
    font-size: 1.25rem;
  }

  .score-ring {
    width: 100px;
    height: 100px;
  }

  .score-number {
    font-size: 1.5rem;
  }
}
