/* ================================
   Global
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fira Code", monospace;
  background: linear-gradient(-215deg, #5BA8EE, #9DB8E0, #F2CECE, #F2CECE);
  background-size: 400% 400%;
  animation: bgMove 14s ease infinite;
  color: #1c275b;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 让内容居中 */
.eval-container {
  max-width: 680px;
  margin: 70px auto 100px;
  padding: 0 20px;
}


/* ================================
   Header
================================ */
.eval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.back-btn {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  transition: 0.2s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.32);
}

.eval-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.progress-label {
  font-size: 14px;
  color: #ffffff;
  opacity: 0.9;
}


/* ================================
   Progress Bar
================================ */
.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #2f8cff, #3ca9ff);
  border-radius: 999px;
  transition: width 0.35s ease;
}


/* ================================
   Card (glass)
================================ */
.question-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238,243,255,0.97));
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: 0 20px 40px rgba(16, 39, 86, 0.22);
  border: 1px solid rgba(215,228,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Emoji */
.question-emoji {
  font-size: 58px;
  text-align: center;
  margin-bottom: 22px;
}

/* Main Question */
.question-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1c275b;
  margin-bottom: 10px;
}

/* Hint */
.question-hint {
  text-align: center;
  font-size: 14px;
  color: #707aa0;
  margin-bottom: 32px;
}


/* ================================
   Rating (emoji buttons)
================================ */
.rating-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.rating-btn {
  font-size: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff, #eef3ff);
  box-shadow: 0 8px 16px rgba(12, 24, 50, 0.16);
  transition: 0.2s;
}

.rating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(12, 24, 50, 0.25);
}

.rating-btn.selected {
  background: linear-gradient(135deg, #2f8cff, #3ca9ff);
  color: white;
  box-shadow: 0 16px 32px rgba(21,92,205,0.38);
}


/* ================================
   Buttons
================================ */
.next-btn,
.submit-btn {
  width: 100%;
  padding: 18px 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2f8cff, #3ca9ff);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(18,84,196,0.45);
  transition: 0.25s;
}

.next-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(18,84,196,0.58);
}

/* Skip */
.bottom-nav {
  margin-top: 18px;
  text-align: center;
}

.skip-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #ffffff;
  opacity: .55;
  text-decoration: underline;
  cursor: pointer;
  transition: 0.2s;
}

.skip-btn:hover {
  opacity: 1;
}


/* ================================
   High Contrast Mode
================================ */
.high-contrast * {
  color: #000 !important;
}

.high-contrast .question-card {
  background: #fff !important;
  box-shadow: none !important;
}

.high-contrast .rating-btn {
  background: #fff !important;
}

.high-contrast .next-btn,
.high-contrast .submit-btn {
  background: #000 !important;
  color: #fff !important;
}


/* ================================
   Responsive
================================ */
@media (max-width: 480px) {
  .rating-row {
    gap: 10px;
  }

  .rating-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}
