/* 知性格 · DISC×西游 人格小测试 — 样式 */
/* 小工具容器：内联 <style> 或外部样式表均可，无网络字体 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #FFF6F0;
  color: #2D2D2D;
  font-size: 16px;
  line-height: 1.6;
}

.hidden { display: none !important; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

/* ---------- 首页 ---------- */
.home-hero {
  text-align: center;
  padding: 48px 0 24px;
}

.home-logo {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
}

.home-title {
  font-size: 36px;
  font-weight: 800;
  color: #FF6B4A;
  letter-spacing: 4px;
}

.home-subtitle {
  font-size: 14px;
  color: #999;
  margin-top: 6px;
  letter-spacing: 2px;
}

.home-desc {
  text-align: center;
  margin: 24px 0;
  font-size: 15px;
  color: #555;
}

.home-features {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(255, 107, 74, 0.08);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #444;
}

.feature-item span { font-size: 18px; }

.home-note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 16px;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 28px;
  background: linear-gradient(135deg, #FF6B4A, #FF8560);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.35);
}

.btn-primary:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 13px 0;
  border: 1.5px solid #FF6B4A;
  border-radius: 28px;
  background: #fff;
  color: #FF6B4A;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

/* ---------- 答题页 ---------- */
.quiz-header {
  margin-bottom: 24px;
}

.quiz-progress {
  height: 8px;
  background: #F0E4DC;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF6B4A, #FF8560);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #999;
}

.quiz-scenario-tag {
  background: #FFF0EA;
  color: #FF6B4A;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.quiz-body { flex: 1; }

.quiz-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.quiz-tip {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  position: relative;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 16px 14px 48px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.quiz-option:active {
  transform: scale(0.98);
}

.quiz-option .rank-badge {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F0E4DC;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option.ranked {
  border-color: #FF6B4A;
  background: #FFF8F5;
}

.quiz-option.ranked .rank-badge {
  background: linear-gradient(135deg, #FF6B4A, #FF8560);
  color: #fff;
}

.quiz-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.quiz-footer .btn-primary,
.quiz-footer .btn-secondary {
  flex: 1;
  margin-top: 0;
}

/* ---------- 结果页 ---------- */
.result-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(255, 107, 74, 0.1);
}

.result-type-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.result-type-badge {
  background: #FF6B4A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 16px;
}

.result-type-sub {
  font-size: 14px;
  color: #999;
}

.result-title {
  font-size: 26px;
  font-weight: 800;
  color: #2D2D2D;
  margin-bottom: 6px;
}

.result-char-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.dimensions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.dim-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dim-emoji { font-size: 20px; width: 28px; text-align: center; }

.dim-info { flex: 1; }

.dim-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.dim-label { color: #666; font-weight: 500; }

.dim-score { color: #333; font-weight: 700; }

.dim-master {
  background: #FFF0EA;
  color: #FF6B4A;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
  margin-left: 6px;
}

.dim-bar-bg {
  height: 8px;
  background: #F4ECE6;
  border-radius: 4px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.hook-section {
  background: linear-gradient(135deg, #FFF0EA, #FFE9E2);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.hook-text {
  font-size: 17px;
  font-weight: 700;
  color: #E8522E;
  margin-bottom: 4px;
}

.hook-question {
  font-size: 13px;
  color: #C4765E;
}

.insights-section {
  margin-bottom: 20px;
}

.insight-item {
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  border-bottom: 1px dashed #F0E4DC;
  line-height: 1.6;
}

.insight-item:last-child { border-bottom: none; }

.locked-section {
  background: #FAFAFA;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.locked-title {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
}

.locked-item {
  font-size: 13px;
  color: #999;
  padding: 4px 0;
}

.result-actions { text-align: center; }

.cta-guide {
  font-size: 13px;
  color: #FF6B4A;
  margin-top: 16px;
  font-weight: 500;
}
