/* ========================================
   荒野科学 2026 夏令营 — 选营推荐页面样式
   依赖 css/style.css 全局变量与组件
   ======================================== */

/* ---- Page Hero ---- */
.recommend-hero {
  padding: 160px 0 120px;
  background: 
    linear-gradient(135deg, rgba(0,16,33,0.95) 0%, rgba(0,50,150,0.92) 100%),
    url('../images/nature-bg-dark.jpg') center/cover no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.recommend-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(0,50,150,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(253,210,43,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.recommend-hero::after {
  content: 'E=mc\00B2  H\2082O  \2206T  CO\2082  DNA  pH  \03C0r\00B2';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  font-family: var(--font-en); font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.03); letter-spacing: 8px; line-height: 3.5;
  word-spacing: 20px; white-space: normal;
  padding: 80px 40px; overflow: hidden;
  pointer-events: none; z-index: 0;
}
.recommend-hero .breadcrumb {
  display: inline-block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: 20px;
  text-decoration: none;
  position: relative; z-index: 1;
}
.recommend-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.recommend-hero .breadcrumb a:hover {
  color: var(--color-accent);
}
.recommend-hero-title {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
  z-index: 1;
}
.recommend-hero-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary, #003296), #001021);
  border-radius: 2px;
}
.recommend-hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 40px auto 24px;
  line-height: 1.7;
  position: relative; z-index: 1;
}
.recommend-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative; z-index: 1;
}

/* ---- Value Props Bar (Removed - merged into progress bar) ---- */

/* ---- Wizard Container ---- */
.wizard-section {
  padding: 60px 0 80px;
  position: relative;
}
.wizard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0,50,150,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,50,150,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.wizard-container {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  padding: 32px 40px;
  box-shadow: 
    0 8px 32px rgba(0,50,150,0.1),
    0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  position: relative;
}

/* ---- Progress Bar (Simplified & Clickable) ---- */
.wizard-progress {
  margin-bottom: 32px;
}
.wizard-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: visible;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wizard-progress-track:hover {
  height: 10px;
  background: #cbd5e0;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7A00, #FFD200);
  border-radius: 50px;
  width: 33%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.wizard-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Step markers on progress bar */
.wizard-progress-track::before {
  content: '';
  position: absolute;
  left: 33.33%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid #e2e8f0;
  z-index: 2;
  transition: all 0.3s ease;
}
.wizard-progress-track::after {
  content: '';
  position: absolute;
  left: 66.66%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid #e2e8f0;
  z-index: 2;
  transition: all 0.3s ease;
}
.wizard-progress-track.step-2::before,
.wizard-progress-track.step-3::before {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.wizard-progress-track.step-3::after {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

/* Step labels below progress bar */
.wizard-step-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 2px;
}
.wizard-step-label {
  font-size: 13px;
  color: #a0aec0;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
  flex: 1;
  text-align: center;
}
.wizard-step-label:hover {
  color: var(--color-primary);
}
.wizard-step-label.active {
  color: var(--color-primary);
  font-weight: 700;
}
.wizard-step-label.completed {
  color: var(--color-primary);
}

/* ---- Wizard Panels ---- */
.wizard-panels {
  position: relative;
  min-height: 300px;
}
.wizard-panels.result-showing {
  min-height: 0;
}
.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: block;
  animation: wizardSlideIn 0.4s ease forwards;
}
.wizard-panel.slide-out-left {
  animation: wizardSlideOutLeft 0.3s ease forwards;
}
.wizard-panel.slide-out-right {
  animation: wizardSlideOutRight 0.3s ease forwards;
}

@keyframes wizardSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wizardSlideInReverse {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wizardSlideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}
@keyframes wizardSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}
.wizard-panel.reverse {
  animation-name: wizardSlideInReverse;
}

/* ---- Wizard Titles ---- */
.wizard-title {
  font-size: 28px;
  font-weight: 900;
  color: #1a202c;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
}
.wizard-subtitle {
  font-size: 15px;
  color: #4a5568;
  text-align: center;
  margin-bottom: 32px;
}

/* ---- Step 1: Grade Cards ---- */
.grade-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grade-select-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--color-white);
}
.grade-select-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,50,150,0.12);
}
.grade-select-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.grade-select-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,50,150,0.2), 0 8px 24px rgba(0,50,150,0.15);
}

/* Grade Card Color Indicators */
.grade-select-card[data-grade="lower"]::before,
.grade-select-card.grade-lower::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #FF7A00, #FFF500);
  z-index: 2;
}
.grade-select-card[data-grade="middle"]::before,
.grade-select-card.grade-middle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #00A3FF, #00D166);
  z-index: 2;
}
.grade-select-card[data-grade="upper"]::before,
.grade-select-card.grade-upper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #001021, #D4AF37);
  z-index: 2;
}
.grade-card-image {
  height: 140px;
  overflow: hidden;
}
.grade-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.grade-select-card:hover .grade-card-image img {
  transform: scale(1.05);
}
.grade-card-body {
  padding: 16px;
  text-align: center;
}
.grade-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.grade-card-age {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.grade-card-focus {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
}
.grade-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.grade-select-card.selected .grade-card-check {
  opacity: 1;
  transform: scale(1);
}
.grade-card-check svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

/* ---- Step 2: Interest Tags ---- */
.interest-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}
.interest-tag:hover {
  border-color: var(--color-primary-light);
  background: rgba(0,50,150,0.04);
  transform: translateY(-2px);
}
.interest-tag.selected {
  animation: scaleInTag 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  background: var(--color-primary, #003296);
  color: white;
  border-color: var(--color-primary, #003296);
  box-shadow: 0 4px 12px rgba(0,50,150,0.2);
  font-weight: 600;
}
@keyframes scaleInTag {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.interest-tag.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.interest-tag-icon {
  font-size: 20px;
  line-height: 1;
}
.interest-tag-count {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #4a5568;
  margin-top: 16px;
  font-weight: 500;
}

/* ---- Step 3: Preference Cards ---- */
.preference-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.preference-card {
  padding: 28px 16px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-white);
  position: relative;
  font-family: var(--font-main);
  overflow: hidden;
}
.preference-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,50,150,0.12);
}
.preference-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,50,150,0.2), 0 8px 24px rgba(0,50,150,0.15);
  animation: cardSelect 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cardSelect {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.preference-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}
.preference-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.preference-card p {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
}
.preference-card .grade-card-check {
  top: 8px;
  right: 8px;
}
.preference-card.selected .grade-card-check {
  opacity: 1;
  transform: scale(1);
}

/* ---- Wizard Navigation ---- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #edf2f7;
}
.wizard-nav .btn:disabled,
.wizard-nav .btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.wizard-nav-spacer {
  flex: 1;
}

/* ---- Loading State ---- */
.wizard-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}
.wizard-loading.active {
  display: flex;
}
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-size: 16px;
  color: #4a5568;
  font-weight: 500;
}
.loading-dots::after {
  content: '';
  animation: dots 1.5s steps(3, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

/* ---- Result Section ---- */
.wizard-result {
  display: none;
  position: relative;
}
.wizard-result.active {
  display: block;
}
.wizard-result.visible {
  animation: resultReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes resultReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand decoration elements for result section */
.wizard-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0,50,150,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.wizard-result::after {
  content: '';
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253,210,43,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.result-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-primary, #003296) 0%, #001021 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,50,150,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.result-badge::before {
  content: '🎯';
  font-size: 16px;
}
.result-title {
  font-size: 32px;
  font-weight: 900;
  color: #1a202c;
  line-height: 1.3;
  background: linear-gradient(135deg, #1a202c 0%, var(--color-primary, #003296) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Main Result Card ---- */
.result-main-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 
    0 4px 20px rgba(0,50,150,0.08),
    0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.result-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary, #003296) 0%, #001021 100%);
}
.result-main-card::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(253,210,43,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.result-image {
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
  position: relative;
  box-shadow: 
    0 8px 30px rgba(0,50,150,0.15),
    0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,50,150,0.1);
}
.result-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,16,33,0.4) 100%);
  z-index: 1;
  pointer-events: none;
}
.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-exclusive-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, #FDD22B 0%, #D4A017 100%);
  color: #001021;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(253,210,43,0.4);
  z-index: 2;
}
.result-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-location {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-location::before {
  content: '📍';
  font-size: 14px;
}
.result-match-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,50,150,0.04) 0%, rgba(253,210,43,0.04) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0,50,150,0.08);
}
.result-match-score {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.result-match-label {
  font-size: 15px;
  color: #4a5568;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Match Ring - Visual Progress Circle */
.match-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-primary, #003296) 0%,
    #0056d6 25%,
    var(--color-accent, #FDD22B) 50%,
    #ffed4a 75%,
    var(--color-primary, #003296) 100%
  );
  background: conic-gradient(
    from 0deg,
    var(--color-primary, #003296) calc(var(--match-percent, 0) * 1%),
    rgba(0, 50, 150, 0.12) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 
    0 4px 20px rgba(0, 50, 150, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.match-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-primary, #003296) 0%,
    var(--color-accent, #FDD22B) 50%,
    var(--color-primary, #003296) 100%
  );
  opacity: 0.3;
  z-index: -1;
  filter: blur(8px);
}
.match-ring::after {
  content: '';
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  position: absolute;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.match-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--font-en, 'Nunito'), sans-serif;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--color-primary, #003296) 0%, #0056d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-match-row .match-ring + .result-match-label {
  display: none;
}
.result-match-row:has(.match-ring) .result-match-score {
  display: none;
}
.result-reason {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.8;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,50,150,0.06) 0%, rgba(0,50,150,0.02) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,50,150,0.04);
}
.result-reason strong {
  color: var(--color-primary);
  font-weight: 700;
}
.result-reason strong {
  color: var(--color-primary);
}
.result-topic {
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}
.result-topic-grade {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-topic-grade::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent, #FDD22B);
  border-radius: 50%;
}
.result-topic-title {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.4;
}
.result-topic-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}
.result-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-highlights li {
  font-size: 14px;
  color: var(--color-text);
  padding: 4px 0;
  padding-left: 22px;
  position: relative;
}
.result-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.result-urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(253,210,43,0.1);
  border: 1px solid rgba(253,210,43,0.25);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-dark);
}
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.result-actions .btn {
  font-size: 14px;
}

/* ---- Other Recommendations ---- */
.result-others {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.result-others h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.result-others h3::before,
.result-others h3::after {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary, #003296));
}
.result-others h3::after {
  background: linear-gradient(90deg, var(--color-primary, #003296), transparent);
}
.result-others-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.result-other-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 8px rgba(0,50,150,0.06);
}
.result-other-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,50,150,0.15);
  border-color: var(--color-primary-light, rgba(0,50,150,0.2));
}
.result-other-image {
  height: 100px;
  overflow: hidden;
}
.result-other-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-other-body {
  padding: 14px;
}
.result-other-body h4 {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.4;
}
.result-other-match {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.result-other-match-bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.result-other-match-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.result-other-match-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary, #003296);
  min-width: 36px;
  text-align: right;
}
.result-other-desc {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.4;
}
.result-other-link {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-primary, #003296);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.result-other-link:hover {
  color: #0056d6;
  transform: translateX(4px);
}

/* ---- Retry Section ---- */
.result-retry {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* ---- Button Bounce Effect ---- */
.wizard-nav .btn,
.result-actions .btn,
.result-retry .btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wizard-nav .btn:hover:not(:disabled),
.result-actions .btn:hover,
.result-retry .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,50,150,0.2);
}
.wizard-nav .btn:active:not(:disabled),
.result-actions .btn:active,
.result-retry .btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Card Decorated Effect ---- */
.card-decorated,
.wizard-container,
.grade-select-card,
.preference-card,
.result-other-card {
  position: relative;
}
.card-decorated::after,
.wizard-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(90deg, var(--color-primary, #003296), #001021);
  transition: height 0.3s ease;
  border-radius: 16px 16px 0 0;
  z-index: 10;
}
.card-decorated:hover::after,
.wizard-container:hover::after {
  height: 4px;
}

/* ---- Result Topic Card Enhancement ---- */
.result-topic {
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,50,150,0.04);
  transition: all 0.3s ease;
}
.result-topic:hover {
  box-shadow: 0 4px 16px rgba(0,50,150,0.08);
  border-color: var(--color-primary-light);
}

/* ---- Preference Card Icon Animation ---- */
.preference-card:hover .preference-icon {
  animation: iconBounce 0.5s ease;
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .recommend-hero-title {
    font-size: 36px;
  }
  .wizard-container {
    padding: 36px 28px;
  }
  .result-others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recommend-hero {
    padding: 100px 0 32px;
  }
  .recommend-hero-title {
    font-size: 28px;
  }
  .recommend-hero-desc {
    font-size: 15px;
  }
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .value-prop-item {
    padding: 12px 8px;
  }
  .wizard-section {
    padding: 40px 0 60px;
  }
  .wizard-container {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
  }
  .wizard-title {
    font-size: 22px;
  }
  .grade-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .grade-select-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .grade-card-image {
    width: 120px;
    height: auto;
    flex-shrink: 0;
  }
  .grade-card-body {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .preference-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .preference-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 20px;
  }
  .preference-icon {
    font-size: 32px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .result-main-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .result-image {
    height: 200px;
  }
  .result-others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wizard-step-labels {
    gap: 8px;
  }
  .wizard-step-label {
    font-size: 12px;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .recommend-hero-title {
    font-size: 24px;
  }
  .value-props-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .value-prop-icon {
    font-size: 24px;
  }
  .value-prop-label {
    font-size: 12px;
  }
  .wizard-container {
    padding: 24px 16px;
  }
  .wizard-title {
    font-size: 20px;
  }
  .interest-tags-grid {
    gap: 8px;
  }
  .interest-tag {
    padding: 10px 14px;
    font-size: 13px;
  }
  .result-match-score {
    font-size: 28px;
  }
  .match-ring {
    width: 72px;
    height: 72px;
  }
  .match-ring::after {
    width: 56px;
    height: 56px;
  }
  .match-ring span {
    font-size: 18px;
  }
  .result-title {
    font-size: 22px;
  }
  .result-others-grid {
    grid-template-columns: 1fr;
  }
}
