/* 赛博朋克基础样式 */
:root {
  --cp-bg: #0a0014;
  --cp-bg2: #150025;
  --cp-primary: #ff00ff;
  --cp-cyan: #00ffff;
  --cp-yellow: #fbbf24;
  --cp-red: #ff0055;
  --cp-text: #e9d5ff;
  --cp-dim: #9ca3af;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* 霓虹光晕 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 标题霓虹 */
.neon {
  color: var(--cp-cyan);
  text-shadow:
    0 0 8px rgba(0, 255, 255, 0.8),
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3);
}

.neon-pink {
  color: var(--cp-primary);
  text-shadow:
    0 0 8px rgba(255, 0, 255, 0.8),
    0 0 20px rgba(255, 0, 255, 0.5),
    0 0 40px rgba(255, 0, 255, 0.3);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--cp-primary), var(--cp-cyan));
  color: #000;
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
  letter-spacing: 2px;
  font-family: inherit;
}

.btn:hover, .btn:active {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.7), 0 0 60px rgba(0, 255, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--cp-cyan);
  border: 2px solid var(--cp-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(0, 255, 255, 0.1);
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* 闪烁光标 */
@keyframes blink {
  50% { opacity: 0; }
}

.cursor::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: var(--cp-cyan);
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cp-primary), var(--cp-cyan));
  box-shadow: 0 0 10px var(--cp-cyan);
  transition: width 0.3s ease;
}

/* 选项卡片 */
.option {
  display: block;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: rgba(21, 0, 37, 0.8);
  border: 1.5px solid rgba(255, 0, 255, 0.3);
  border-radius: 6px;
  color: var(--cp-text);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
  font-family: inherit;
}

.option:hover, .option:active {
  border-color: var(--cp-cyan);
  background: rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateX(4px);
}

.option-letter {
  display: inline-block;
  width: 24px;
  color: var(--cp-primary);
  font-weight: 700;
  margin-right: 8px;
}

/* 结果残值大数字 */
.residual-number {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--cp-cyan), var(--cp-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
  font-family: "Courier New", monospace;
  letter-spacing: -4px;
}

.residual-unit {
  font-size: 40px;
  font-weight: 700;
}

/* 人格标签卡 */
.persona-card {
  border: 2px solid var(--cp-primary);
  border-radius: 8px;
  padding: 24px;
  background: rgba(21, 0, 37, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
  text-align: center;
  margin: 20px 0;
}

.persona-name {
  font-size: 32px;
  font-weight: 900;
  margin: 8px 0;
}

.persona-code {
  font-family: "Courier New", monospace;
  color: var(--cp-cyan);
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.8;
}

.persona-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 255, 255, 0.15);
  border: 1px solid var(--cp-cyan);
  border-radius: 20px;
  font-size: 13px;
  color: var(--cp-cyan);
  margin: 4px;
}

.persona-quote {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--cp-yellow);
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.persona-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cp-text);
  opacity: 0.9;
}

/* 统计行 */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--cp-cyan);
  margin: 8px 0;
  font-size: 14px;
}

.stat-label { color: var(--cp-dim); }
.stat-value { color: var(--cp-cyan); font-weight: 700; }

/* 底部小字 */
.footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--cp-dim);
  opacity: 0.6;
}

/* 扫描线效果 */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.scanline {
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
  pointer-events: none;
  z-index: 2;
  animation: scanline 8s linear infinite;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.hidden { display: none; }

.title-main {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 8px 0;
}

.subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--cp-dim);
  text-transform: uppercase;
}

.count-display {
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--cp-cyan);
}

.q-act {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cp-primary);
  opacity: 0.8;
}

.q-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin: 16px 0 24px;
}

.q-num {
  font-family: "Courier New", monospace;
  color: var(--cp-dim);
  font-size: 13px;
}

/* ========== V2 新增 ========== */

/* 广告位 */
.ad-slot {
  margin: 16px 0;
  min-height: 60px;
}

/* 深度报告解锁区 */
.report-locked {
  position: relative;
  margin-top: 24px;
  padding: 24px;
  border: 2px solid var(--cp-yellow);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(255, 0, 255, 0.08));
  text-align: center;
  overflow: hidden;
}

.report-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(251, 191, 36, 0.04) 10px,
    rgba(251, 191, 36, 0.04) 20px
  );
  pointer-events: none;
}

.lock-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--cp-yellow);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.lock-subtitle {
  font-size: 13px;
  color: var(--cp-text);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 20px;
}

.lock-preview {
  position: relative;
  max-height: 80px;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--cp-dim);
  text-align: left;
  line-height: 1.7;
}

.lock-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(21, 0, 37, 0.95));
  pointer-events: none;
}

.lock-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
  position: relative;
}

.btn-unlock-ad {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #00ffff, #0ea5e9);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-unlock-pay {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.btn-unlock-ad:hover, .btn-unlock-pay:hover { transform: translateY(-2px); }

/* 深度报告正文 */
.report-section {
  margin: 20px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--cp-primary);
  border-radius: 4px;
}

.report-chapter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.report-chapter-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--cp-text);
  opacity: 0.95;
}

/* 兑换码输入 */
.code-input-wrap {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.code-input {
  width: 100%;
  padding: 12px;
  background: #000;
  border: 1px solid var(--cp-cyan);
  border-radius: 4px;
  color: var(--cp-cyan);
  font-family: "Courier New", monospace;
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  box-sizing: border-box;
}

.code-input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* 付费弹窗 */
.pay-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay-box {
  background: var(--cp-bg2);
  border: 2px solid var(--cp-yellow);
  border-radius: 8px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

.pay-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--cp-yellow);
  text-align: center;
  margin-bottom: 8px;
}

.pay-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--cp-cyan);
  text-align: center;
  margin: 12px 0;
}

.pay-qr {
  width: 200px;
  height: 200px;
  margin: 12px auto;
  background: #fff;
  border-radius: 4px;
  display: block;
}

.pay-steps {
  font-size: 13px;
  color: var(--cp-text);
  line-height: 1.9;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 4px;
  margin: 12px 0;
}

.pay-contact {
  text-align: center;
  font-size: 14px;
  color: var(--cp-cyan);
  padding: 8px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 4px;
  margin: 8px 0;
  font-family: "Courier New", monospace;
}

/* 小屏幕优化 */
@media (max-width: 380px) {
  .residual-number { font-size: 96px; }
  .persona-name { font-size: 26px; }
  .q-text { font-size: 18px; }
}
