.quiz-section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.quiz-app {
  max-width: 1120px;
}

.quiz-view.d-none {
  display: none;
}

.quiz-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.quiz-content {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.bg-coral {
  background: #ff4013;
}

.bg-beige {
  background: #fafaf7;
}

.text-white {
  color: #fff;
}

.quiz-main-title {
  color: inherit;
  text-align: left !important;
  margin: 0;
  line-height: 1.35;
}

.quiz-subtitle {
  margin: 0;
  font-size: 1rem;
}

.quiz-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.quiz-progress {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.quiz-question-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.55;
}

.quiz-options {
  display: grid;
}

.quiz-option {
  border: 0;
  border-bottom: 2px dotted #ccc;
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 13px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:last-child {
  border-bottom: 0;
}

.quiz-option:hover {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
}

.quiz-option.is-active {
  color: #ff4013;
  font-weight: 700;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 10px 22px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.quiz-btn--start {
  background: #fff;
  color: #111;
}

.quiz-btn--back {
  background: #7a7a7a;
  color: #fff;
}

.quiz-btn--improve {
  background: #ff4013;
  color: #fff;
}

/* Block 2 開始頁（左珊瑚紅、右滿版圖、外部專家文字） */
#quiz-start {
  grid-template-columns: 45% 55%;
  min-height: 420px;
}

.quiz-start-left.bg-coral {
  background: #ff4013;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8%;
  gap: 12px;
  text-align: center;
}

.quiz-title-main {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.24;
  font-weight: 800;
}

#quiz-start .quiz-subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
}

.quiz-start-right {
  min-height: 420px;
}

.quiz-start-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.btn-circle-white {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  font-size: 1.7rem;
  line-height: 1;
}

.btn-circle-white:hover {
  transform: scale(1.05);
}

.expert-citation-external {
  display: block;
  margin-top: 12px;
  text-align: left;
  font-size: 0.9rem;
  color: #555;
}

#quiz-start.d-none + .expert-citation-external {
  display: none;
}

.quiz-result-range {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.quiz-result-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
}

.quiz-result-desc {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

.quiz-result-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-share,
.quiz-share-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-share-group {
  gap: 12px;
  position: relative;
  z-index: 2;
}

.quiz-share__btn,
.quiz-share-btn,
.custom-social-fb,
.custom-social-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.quiz-share__btn svg,
.quiz-share__btn path,
.quiz-share-btn svg,
.quiz-share-btn path,
.custom-social-fb svg,
.custom-social-fb path,
.custom-social-line svg,
.custom-social-line path {
  pointer-events: none;
}

.quiz-share__btn:hover,
.quiz-share-btn:hover,
.custom-social-fb:hover,
.custom-social-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quiz-share__btn img,
.quiz-share__btn svg,
.quiz-share-btn img,
.quiz-share-btn svg,
.custom-social-fb img,
.custom-social-fb svg,
.custom-social-line img,
.custom-social-line svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .quiz-panel {
    grid-template-columns: 1fr;
  }

  .quiz-image {
    order: 1;
  }

  .quiz-content {
    order: 2;
  }

  .quiz-image img {
    min-height: 230px;
  }

  .quiz-result-actions {
    align-items: stretch;
  }

  .quiz-share,
  .quiz-share-group {
    margin-left: 0;
  }

  #quiz-start {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .quiz-start-right {
    order: 1;
    min-height: 220px;
  }

  .quiz-start-right img {
    min-height: 220px;
    object-position: center top;
  }

  .quiz-start-left.bg-coral {
    order: 2;
    padding: 22px 20px 18px;
  }

  .quiz-title-main {
    font-size: clamp(1.5rem, 6.2vw, 2rem);
  }

  .btn-circle-white {
    width: auto;
    min-width: 132px;
    height: 48px;
    border-radius: 999px;
    flex-direction: row;
    gap: 4px;
    padding: 0 26px;
    font-size: 1.2rem;
    margin: 12px auto 0;
  }

  .expert-citation-external {
    margin-top: 10px;
    font-size: 0.82rem;
  }
}
