body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);

  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Arial", sans-serif;
}

/* ===== 弹框容器（白底 + 背景图） ===== */
.modal {
  position: relative;
  width: 92%;
  max-width: 480px;

  padding: 40px 40px 16px 40px;

  /* 最底层白色背景 */
  background-color: #ffffff;

  /* 背景图在白色背景之上（第一步显示） */
  background-image: url("./images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 第二步开始移除背景图 */
.modal.no-bg {
  background-image: none;
}

/* 打分页减小上内边距 */
.modal.review-form-active {
  padding-top: 16px;
}

/* 标题 + Logo */
.logo-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
}

.logo-title img {
  width: 62px;
  height: auto;
  margin-right: 10px;
}

/* 文案内容 */
.main-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* YES / NO 按钮 */
.option-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  width: 120px;
  padding: 6px 0;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.btn-no {
  background: white;
  border: 1.5px solid #b8b8b8;
  color: #333;
}

.btn-yes {
  background: linear-gradient(90deg, #509aff, #336dff);
  color: white;
}

/* 隐藏区域（两个选项框） */
.hidden-area {
  display: none;
  margin-top: 28px;
}

/* 选项框容器 */
.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单个选项框 */
.feedback-option {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.feedback-option:hover {
  border-color: #509aff;
  background: #f5f8ff;
}

.feedback-option.selected {
  border-color: #509aff;
  background: #f5f8ff;
}

/* 图标 */
.feedback-option-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feedback-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 选项内容 */
.feedback-option-content {
  flex: 1;
}

.feedback-option-text {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 12px;
}

.feedback-option-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #509aff, #336dff);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-option-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-text {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
  text-align: right;
}

/* 反馈表单区域 */
.review-form {
  display: none;
}

/* 当显示反馈表单时，减小modal的上内边距 */
.modal:has(.review-form[style*="block"]) {
  padding-top: 16px;
}

.review-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.review-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.review-section {
  margin-bottom: 24px;
}

.review-section-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: block;
}

/* 星星评分 */
.stars-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.star-icon {
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.star-icon.active {
  color: #ffb400;
}

.star-icon:hover {
  color: #ffb400;
}

/* 文本输入框 */
.review-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Arial", sans-serif;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.review-textarea:focus {
  border-color: #509aff;
}

/* 复选框组 - 一排展示 */
.checkbox-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  position: relative;
  transition: all 0.2s;
}

.checkbox-item input[type="checkbox"]:checked {
  background-color: #e6ecff;
  border-color: #3c69ff;
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #3c69ff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.checkbox-item label {
  font-size: 14px;
  color: #444;
  cursor: pointer;
  user-select: none;
}

/* 提交按钮 */
.review-submit-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #509aff, #336dff);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
}

.review-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.review-submit-btn:active {
  transform: translateY(0);
}

.review-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 错误提示 */
.error-message {
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  color: #c33;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 禁用状态的样式 */
.star-icon.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.review-textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #666;
}

.checkbox-item input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 私密反馈表单 */
.private-feedback-form {
  display: none;
}

.private-feedback-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

.private-feedback-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.private-feedback-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.private-feedback-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.private-feedback-header .close-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.private-feedback-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.private-feedback-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Arial", sans-serif;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.private-feedback-textarea:focus {
  border-color: #509aff;
}

.private-feedback-textarea:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #666;
}

.private-feedback-submit-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #509aff, #336dff);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: center;
}

.private-feedback-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.private-feedback-submit-btn:active {
  transform: translateY(0);
}

.private-feedback-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 感谢页面 */
.thank-you-page {
  display: none;
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.thank-you-page .close-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.thank-you-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.thank-you-icon {
  width: 120px;
  height: 120px;
  position: relative;
  display: inline-block;
}

.thank-you-icon-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thank-you-icon-check {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.thank-you-message {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  max-width: 400px;
  margin: 0 auto;
}

