/* 一念抉择页面样式 */
body {
  background: #E8EDE5;
  padding: 0;
  font-family: PingFang SC, Microsoft YaHei;
}

/* 封面页 */
.cover-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 20px 20px;
  position: relative;
}

/* 背景装饰 */
.bg-circle-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: 256px;
  background: #7A9E7E;
  border-radius: 50%;
  animation: pulse-bg 3s ease-in-out infinite;
}

.bg-circle-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: #3D5A4C;
  border-radius: 50%;
  opacity: 0.5;
}

.bg-circle-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 224px;
  height: 224px;
  background: #5F8A6A;
  border-radius: 50%;
  border: 1px dashed #7A9E7E;
  animation: spin-bg 20s linear infinite;
}

/* 图标容器 */
.icon-wrapper {
  position: relative;
  width: 256px;
  height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* 主图标 */
.main-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 16px rgba(45, 55, 45, 0.15));
}

/* 标题区域 */
.title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  animation: fade-in 1s ease-out;
}

.main-title {
  font-size: 28px;
  font-weight: 300;
  color: #3D5A4C;
  margin-bottom: 8px;
}

.sub-title {
  font-size: 14px;
  color: #8A9A8A;
  font-weight: 300;
  margin-bottom: 12px;
}

.divider {
  width: 48px;
  height: 2px;
  background: #7A9E7E;
  border-radius: 2px;
  margin: 12px 0;
  opacity: 0.3;
}

.tip-text {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 8px;
}

/* 按钮区域 */
.btn-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  animation: fade-in 1s ease-out 0.3s;
}

.start-btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #3D5A4C 0%, #2A4034 100%);
  border-radius: 35px;
  box-shadow: 0 8px 24px rgba(45, 55, 45, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  border: none;
}

.start-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(45, 55, 45, 0.15);
}

.btn-text {
  font-size: 18px;
  color: #F1F4EE;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.btn-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.play-icon {
  font-size: 16px;
  color: #7A9E7E;
}

/* 底部提示 */
.footer-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  opacity: 0.3;
  animation: fade-in 1s ease-out 0.6s;
}

.footer-line {
  width: 32px;
  height: 1px;
  background: #9CA3AF;
  border-radius: 1px;
}

.footer-text {
  font-size: 10px;
  color: #8A9A8A;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 题目页 */
.quiz-page {
  padding: 20px;
  padding-top: 186.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.progress {
  font-size: 12px;
  color: #7A9E7E;
  font-weight: 300;
  text-align: center;
  margin-bottom: 16px;
}

.question {
  font-size: 16px;
  color: #3D5A4C;
  font-weight: 300;
  text-align: left;
  margin-bottom: 24px;
  line-height: 1.6;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.option-btn {
  width: 100%;
  height: 48px;
  background: #F1F4EE;
  border: 1px solid #7A9E7E;
  border-radius: 24px;
  font-size: 16px;
  color: #3D5A4C;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.option-btn:active {
  background: #7A9E7E;
  color: white;
  transform: scale(0.98);
}

.quiz-tip {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 12px;
}

.count-down {
  font-size: 16px;
  color: #EF4444;
  font-weight: 300;
  text-align: center;
  margin-top: 8px;
}

/* 结果页 */
.result-page {
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-icon-wrapper {
  width: 256px;
  height: 256px;
  margin-bottom: 24px;
}

.result-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 16px rgba(45, 55, 45, 0.15));
}

.result-title {
  font-size: 24px;
  font-weight: 300;
  color: #3D5A4C;
  text-align: center;
  margin-bottom: 12px;
  margin-top: -66.5px;
}

.result-desc {
  font-size: 14px;
  color: #8A9A8A;
  text-align: justify;
  margin-bottom: 32px;
  line-height: 1.6;
  padding: 0 20px;
}

.book-section {
  background: #F1F4EE;
  border: 1px solid #7A9E7E;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.book-text {
  font-size: 12px;
  color: #8A9A8A;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.6;
  display: block;
}

.book-author-wrapper {
  width: 100%;
  margin-top: 8px;
}

.book-author {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  font-weight: 300;
  margin-top: 0;
  display: block;
}

/* 邀请分享区（锁粉二维码 + 召唤文案） */
.invite-area {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 8px;
}

.invite-qrcode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #F1F4EE, #E8EDE5);
  border: 0.5px solid #D8E4D4;
  border-radius: 10px;
}

.invite-qrcode-wrap {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 7px;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(45, 55, 45, 0.05);
  flex-shrink: 0;
}

.invite-qrcode-wrap.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #C8D5C2;
  background: #F1F4EE;
  box-shadow: none;
}

.invite-qrcode-img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.invite-placeholder-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.invite-placeholder-text {
  font-size: 10px;
  color: #5F8A6A;
  text-align: center;
  line-height: 1.4;
}

.invite-callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.invite-callout-line {
  font-size: 13px;
  color: #8A9A8A;
  font-weight: 300;
}

.invite-callout-highlight {
  font-size: 18px;
  color: #5F8A6A;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.invite-callout-sub {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 3px;
}

.invite-tip {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 7px;
}

.restart-tip {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 12px;
}

.restart-tip:active {
  opacity: 0.6;
}

/* CSS 动画定义 */
@keyframes pulse-bg {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin-bg {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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