﻿/* 搞钱人格地图 - 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

/* 页面切换 */
.page { display: none; min-height: 100vh; padding: 20px 16px 40px; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 开始页 */
.start-container { max-width: 400px; margin: 0 auto; text-align: center; padding-top: 60px; }
.logo-icon { font-size: 80px; margin-bottom: 16px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.logo-area h1 { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: rgba(255,255,255,0.7); margin-top: 8px; font-size: 16px; }
.intro-card { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; margin: 32px 0; backdrop-filter: blur(10px); }
.intro-item { padding: 10px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.intro-item:last-child { border-bottom: none; }
.start-tip { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 16px; }

/* 按钮 */
.btn-primary {
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a2e; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }
.btn-pay {
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #FF4444, #FF8800);
  color: #fff; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; margin-top: 16px;
}
.btn-pay:active { transform: scale(0.97); }
.btn-share {
  width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #00C853, #00BFA5);
  color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; margin: 16px 0 8px;
}
.btn-restart, .btn-back {
  width: 100%; padding: 14px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px; background: transparent;
  color: rgba(255,255,255,0.8); font-size: 16px;
  cursor: pointer; margin-top: 8px;
}

/* 答题页 */
.quiz-container { max-width: 420px; margin: 0 auto; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #FFD700, #FFA500); border-radius: 3px; transition: width 0.4s ease; }
.progress-text { text-align: center; color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 8px; }
.dimension-tag { display: inline-block; background: rgba(255,215,0,0.15); color: #FFD700; padding: 6px 14px; border-radius: 20px; font-size: 14px; margin: 16px 0; }
.question-card { background: rgba(255,255,255,0.08); border-radius: 20px; padding: 28px 20px; backdrop-filter: blur(10px); }
.question-number { color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 8px; }
.question-text { font-size: 20px; font-weight: 600; line-height: 1.6; margin-bottom: 24px; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
  padding: 16px; border: 2px solid rgba(255,255,255,0.15); border-radius: 12px;
  background: rgba(255,255,255,0.05); color: #fff; font-size: 16px;
  cursor: pointer; transition: all 0.3s; text-align: left; line-height: 1.5;
}
.option-btn:active, .option-btn.selected {
  border-color: #FFD700; background: rgba(255,215,0,0.15);
}
.btn-nav:active { opacity: 0.8; }
.btn-next:active { transform: scale(0.97); }

/* 加载页 */
.loading-container { max-width: 360px; margin: 0 auto; text-align: center; padding-top: 40%; }
.loading-spinner {
  width: 60px; height: 60px; border: 4px solid rgba(255,255,255,0.15);
  border-top-color: #FFD700; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-container h2 { font-size: 20px; margin-bottom: 32px; }
.loading-steps { text-align: left; }
.loading-step { padding: 10px 0; color: rgba(255,255,255,0.4); font-size: 15px; transition: color 0.3s; }
.loading-step.active { color: #FFD700; }
.loading-step.done { color: #00C853; }

/* 结果页 */
.result-container { max-width: 420px; margin: 0 auto; }
.result-badge { text-align: center; font-size: 80px; margin: 20px 0 8px; }
.result-title { text-align: center; font-size: 28px; font-weight: 800; }
.result-slogan { text-align: center; color: rgba(255,255,255,0.7); font-size: 16px; margin: 8px 0 24px; }
.dimension-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.dim-card {
  background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px;
  backdrop-filter: blur(10px);
}
.dim-card .dim-icon { font-size: 20px; }
.dim-card .dim-name { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.dim-card .dim-score { font-size: 22px; font-weight: 700; color: #FFD700; margin-top: 4px; }
.dim-card .dim-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 8px; }
.dim-card .dim-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }

.basic-analysis, .full-analysis {
  background: rgba(255,255,255,0.08); border-radius: 16px; padding: 20px;
  margin: 20px 0; line-height: 1.8; font-size: 15px;
  backdrop-filter: blur(10px);
}

/* 付费卡片 */
.paywall-card {
  background: linear-gradient(135deg, rgba(255,68,68,0.15), rgba(255,136,0,0.15));
  border: 1px solid rgba(255,68,68,0.3); border-radius: 16px;
  padding: 24px 20px; text-align: center; margin-top: 24px;
}
.paywall-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.paywall-preview { text-align: left; margin-bottom: 8px; }
.paywall-preview p { padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.8); }
.pay-tip { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 10px; }

/* 副业卡片 */
.careers-section { margin: 24px 0; }
.careers-section h3 { font-size: 20px; margin-bottom: 16px; }
.career-card {
  background: rgba(255,255,255,0.08); border-radius: 16px; padding: 20px;
  margin-bottom: 16px; backdrop-filter: blur(10px);
}
.career-card h4 { font-size: 17px; margin-bottom: 8px; }
.career-card p { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 12px; }
.career-steps { list-style: none; counter-reset: step; }
.career-steps li {
  position: relative; padding-left: 32px; padding-top: 4px; padding-bottom: 4px;
  font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6;
}
.career-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,215,0,0.2); color: #FFD700;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.income-tag {
  display: inline-block; background: rgba(0,200,83,0.15); color: #00C853;
  padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-top: 8px;
}

/* 平台推荐 */
.platforms-section { margin: 24px 0; }
.platforms-section h3 { font-size: 20px; margin-bottom: 16px; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-tag {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 20px; font-size: 14px;
}

/* 海报页 */
.poster-container { max-width: 400px; margin: 0 auto; text-align: center; }
.poster-container canvas {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); margin-bottom: 20px;
}

/* 动画 */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: slideUp 0.5s ease forwards; }

/* 支付弹窗 */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(5px);
}
.modal-content {
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
  border-radius: 20px; padding: 0; width: 90%; max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-header h3 { font-size: 18px; color: #fff; }
.close { color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; }
.close:hover { color: #fff; }
.modal-body { padding: 24px 20px; text-align: center; }
#qr-code { margin: 0 auto; display: inline-block; }
#qr-code canvas, #qr-code img { border-radius: 8px; }
#payment-status { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 16px; }
.pay-amount { font-size: 28px; font-weight: 800; color: #FFD700; margin-top: 12px; }
.loading { color: rgba(255,255,255,0.7); padding: 40px 0; }
.error { color: #FF4444; padding: 40px 0; }

/* 海报页面样式 */
.poster-container {
  text-align: center;
  padding: 20px;
}

#poster-canvas {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.poster-container .btn-primary,
.poster-container .btn-share,
.poster-container .btn-back {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.poster-container .btn-primary {
  background: linear-gradient(135deg, #FFD700, #FF8800);
  color: #1a1a2e;
}

.poster-container .btn-share {
  background: linear-gradient(135deg, #00C853, #00BFA5);
  color: #fff;
}

.poster-container .btn-back {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.poster-container .btn-primary:hover,
.poster-container .btn-share:hover {
  transform: scale(1.02);
}
