.xiti-page {
  background: linear-gradient(180deg, #fffdf4 0%, #ffffff 38%, #fffdf7 100%);
}

.xiti-main {
  padding-top: 88px;
  padding-bottom: 2rem;
}

.xiti-hero {
  padding: 1.6rem 0 1rem;
}

.xiti-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff2bf;
  color: #5e4700;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.xiti-hero h1 {
  font-size: 1.85rem;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 0.55rem;
}

.xiti-hero p {
  color: #4b5563;
}

.xiti-panel {
  background: #ffffff;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.quiz-intro h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.quiz-intro p {
  color: #4b5563;
  margin-bottom: 0.9rem;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #4b5563;
  margin-bottom: 0.55rem;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #ffd947, #f4bf22);
  transition: width 0.25s ease;
}

.question-title {
  font-size: 1.1rem;
  color: #111827;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.options {
  display: grid;
  gap: 0.65rem;
}

.option-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.55;
}

.option-item.active {
  border-color: #f1c53a;
  background: #fff8db;
}

.quiz-foot {
  margin-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.xiti-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.xiti-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.xiti-btn-primary {
  border-color: #f0c230;
  background: #ffe173;
  color: #3f2f00;
  font-weight: 600;
}

.result-box {
  text-align: center;
  padding: 0.5rem 0.2rem;
}

.result-label {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

#result-code {
  font-size: 2rem;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

#result-name {
  font-size: 1.2rem;
  color: #5e4700;
  margin-bottom: 0.6rem;
}

.result-desc {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.result-metrics {
  display: grid;
  gap: 0.52rem;
  margin-bottom: 1rem;
}

.metric-item {
  text-align: left;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.metric-track {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd947, #f1bb1a);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .xiti-main {
    padding-top: 76px;
  }

  .xiti-hero h1 {
    font-size: 1.45rem;
  }

  .xiti-panel {
    border-radius: 13px;
    padding: 0.85rem;
  }

  .question-title {
    font-size: 1rem;
  }

  .option-item {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .xiti-btn {
    flex: 1;
    text-align: center;
  }
}
