:root {
  --ink-bg-1: #050d18;
  --ink-bg-2: #0e1e35;
  --ink-bg-3: #081222;
  --card: #ffffff;
  --line: #e2e8f0;
  --ink: #1e293b;
  --sub: #64748b;
  --green: #10b981;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;
  --gold: #f59e0b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: #fff9f0;
  color: #1e293b;
  font-family: "Noto Serif SC", serif;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 235, 205, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(224, 242, 254, 0.6) 0%, transparent 40%);
  background-attachment: fixed;
}
#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.panel {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #ffedd5;
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.08);
  flex: 1;
}

/* Home */
.home-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
}
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 1px;
  color: #ea580c;
  background: #ffedd5;
  border: 2px solid #fed7aa;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}
.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.25;
  margin: 0 0 20px;
  color: #1e293b;
  font-weight: 900;
  text-shadow: 2px 2px 0px #fde047;
}
.subline { 
  color: #475569; 
  line-height: 1.8; 
  font-size: 17px; 
  margin: 0 auto 36px; 
  max-width: 640px;
  font-weight: 500;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 16px;
  padding: 16px 28px;
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #cbd5e1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #cbd5e1; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 #cbd5e1; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 #e2e8f0; border-color: #e2e8f0; color: #94a3b8; }
.btn.primary { background: #10b981; border-color: #047857; color: #fff; box-shadow: 0 4px 0 #047857; }
.btn.primary:hover { background: #34d399; box-shadow: 0 6px 0 #047857; }
.btn.primary:active { box-shadow: 0 0 0 #047857; }
.btn.light { background: #f1f5f9; border-color: #94a3b8; color: #475569; }

.progress-meta { display: flex; justify-content: space-between; color: #94a3b8; font-size: 14px; font-weight: 500; }
.progress-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: #0f172a; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }
.progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #a7f3d0); border-radius: 999px; }

.question {
  margin-top: 28px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.question-title { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; color: #0f172a; margin: 0 0 24px 0; font-weight: 900; }
.options { display: grid; gap: 16px; }
.option {
  text-align: left;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}
.option:hover { background: #f1f5f9; border-color: #94a3b8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.option.active { border-color: #10b981; background: #ecfdf5; color: #065f46; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); }
.opt-tag {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  transition: all 0.2s ease;
}
.option.active .opt-tag { background: #10b981; border-color: #059669; color: #fff; }

/* Result */
.result-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
.result-head {
  padding: 32px 32px 24px;
  border-bottom: 2px dashed #e2e8f0;
  background: #ffffff;
  text-align: center;
}
.result-head p { margin: 0; color: #64748b; font-weight: 700; font-size: 16px; }
.result-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  background: #fafaf9;
}
@media (min-width: 768px) {
  .result-main {
    display: grid;
    grid-template-columns: 340px 1fr;
  }
}
.avatar-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.avatar-box img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #f1f5f9;
}
.type-cn { font-size: 48px; color: #0f172a; margin: 16px 0 8px; line-height: 1.1; font-weight: 900; letter-spacing: 2px; }
.type-code { font-size: 36px; color: #10b981; font-weight: 900; letter-spacing: 2px; margin: 0; font-family: "ZCOOL KuaiLe", cursive; }

.desc-block {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.desc-block h4 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}
.desc-block h4::before {
  content: "";
  width: 8px;
  height: 20px;
  border-radius: 6px;
  background: #f59e0b;
}

.quote-line {
  background: #fefce8;
  border-left: 6px solid #facc15;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #422006;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 900;
}
.review-paras { display: grid; gap: 12px; }
.review-p {
  color: #334155;
  line-height: 1.8;
  font-size: 15px;
}

.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.list-card {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.list-card h5 {
  margin: 0 0 16px;
  font-size: 17px;
  color: #1e293b;
  font-weight: 900;
}
.points { display: grid; gap: 12px; }
.point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: #334155;
  line-height: 1.5;
  font-size: 15px;
  font-weight: 500;
}
.idx {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-note { margin-top: 20px; color: #64748b; font-size: 13px; text-align: center; }

@media (max-width: 860px) {
  #app { padding: 16px 12px; }
  .panel { padding: 20px 16px; border-radius: 16px; }
  .type-cn { font-size: 32px; }
  .list-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
}
