:root {
  --bg: #F2F4F8;
  --card: #ffffff;
  --text: #333333;
  --sub: #999999;
  --brand: #667eea;
  --brand-2: #764ba2;
  --ok: #25a25a;
  --line: #e6eaf2;
  --shadow: 0 8px 24px rgba(18, 28, 45, 0.08);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: var(--text);
  line-height: 1.5;
}

.app {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 16px 96px;
}

.redeem-view {
  min-height: 100vh;
}

.app.app-gate {
  max-width: 560px;
  padding: 14px 14px 20px;
}

.redeem-screen {
  min-height: calc(100vh - 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.redeem-card {
  width: 100%;
  min-height: calc(100vh - 44px);
  background: linear-gradient(160deg, #2c4fc0 0%, #4d7fe2 46%, #75bce6 100%);
  border-radius: 30px;
  box-shadow: 0 20px 44px rgba(24, 52, 136, 0.28);
  padding: 18px 20px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.redeem-card::before,
.redeem-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.redeem-card::before {
  width: 240px;
  height: 240px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(167, 200, 255, 0.3) 0%, rgba(167, 200, 255, 0) 72%);
}

.redeem-card::after {
  width: 320px;
  height: 320px;
  bottom: -170px;
  left: -130px;
  background: radial-gradient(circle, rgba(146, 236, 255, 0.2) 0%, rgba(146, 236, 255, 0) 70%);
}

.redeem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}

.redeem-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(239, 246, 255, 0.2);
  border: 1px solid rgba(239, 246, 255, 0.35);
  color: #edf5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.redeem-mini {
  color: rgba(232, 244, 255, 0.86);
  font-size: 11px;
  letter-spacing: 1.1px;
  font-weight: 600;
}

.redeem-hero {
  position: relative;
  z-index: 2;
}

.redeem-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.22;
  color: #f4f9ff;
  letter-spacing: 0.1px;
  font-weight: 800;
}

.redeem-title span {
  color: #c2ffbf;
  font-style: italic;
  font-size: 52px;
}

.redeem-desc {
  margin: 12px 0 0;
  color: rgba(236, 246, 255, 0.94);
  font-size: 14px;
  max-width: 450px;
}

.redeem-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.redeem-tags span {
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  color: #e8f4ff;
  background: rgba(232, 244, 255, 0.16);
  border: 1px solid rgba(232, 244, 255, 0.3);
  backdrop-filter: blur(4px);
}

.redeem-orbit {
  height: 230px;
  margin: 24px 0 auto;
  position: relative;
}

.redeem-orbit-ring {
  position: absolute;
  border: 1px solid rgba(168, 242, 255, 0.24);
  border-radius: 50%;
}

.ring-a {
  width: 290px;
  height: 132px;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.ring-b {
  width: 224px;
  height: 100px;
  left: 58%;
  top: 56%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.ring-c {
  width: 164px;
  height: 72px;
  left: 61%;
  top: 61%;
  transform: translate(-50%, -50%) rotate(-13deg);
}

.redeem-planet {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  left: 62%;
  top: 58%;
  transform: translate(-50%, -50%) rotate(-16deg);
  background: radial-gradient(circle at 30% 30%, rgba(207, 251, 255, 0.96), rgba(158, 214, 247, 0.58));
  color: rgba(248, 255, 255, 0.86);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 18px rgba(57, 103, 183, 0.3);
}

.redeem-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(162, 248, 238, 0.45);
}

.star-a {
  width: 13px;
  height: 13px;
  left: 16%;
  top: 68%;
}

.star-b {
  width: 11px;
  height: 11px;
  left: 73%;
  top: 75%;
}

.star-c {
  width: 8px;
  height: 8px;
  left: 46%;
  top: 84%;
}

.redeem-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 10px;
}

.redeem-label {
  display: block;
  font-size: 13px;
  color: rgba(232, 246, 255, 0.95);
  margin-bottom: 8px;
  font-weight: 600;
}

.redeem-input {
  width: 100%;
  border: 1px solid rgba(188, 218, 255, 0.74);
  background: rgba(246, 252, 255, 0.2);
  border-radius: 999px;
  height: 48px;
  font-size: 14px;
  color: #f8fcff;
  padding: 0 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.redeem-input::placeholder {
  color: rgba(224, 241, 255, 0.78);
}

.redeem-input:focus {
  border-color: rgba(232, 245, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(235, 246, 255, 0.2);
}

.redeem-error {
  margin: 8px 4px 0;
  color: #ffe6e6;
  font-size: 12px;
}

.redeem-btn {
  width: 100%;
  height: 50px;
  margin-top: 12px;
  font-size: 16px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(120deg, #3c71ef 0%, #305fe0 100%);
  box-shadow: 0 8px 16px rgba(39, 88, 198, 0.38);
}

.redeem-secondary {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(238, 246, 255, 0.42);
  background: rgba(250, 252, 255, 0.18);
  color: #e8f4ff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.redeem-secondary:active {
  transform: scale(0.99);
  background: rgba(250, 252, 255, 0.24);
}

.service-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(9, 18, 36, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.service-modal {
  width: min(420px, 100%);
  border-radius: 18px;
  padding: 18px 16px 16px;
  background: linear-gradient(150deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid #d7e6ff;
  box-shadow: 0 20px 40px rgba(16, 38, 90, 0.28);
  position: relative;
}

.service-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 30px;
  color: #5b6c8f;
  background: #eaf1ff;
}

.service-modal-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2f4db8;
  background: #e8efff;
}

.service-modal-title {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.35;
  color: #1d2b50;
}

.service-modal-wechat {
  margin: 0;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1b7a57;
  background: #edfff7;
  border: 1px solid #c5f4dd;
}

.service-modal-actions {
  margin-top: 10px;
}

.service-copy-btn {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #4a7aff 0%, #5d54eb 100%);
  box-shadow: 0 8px 16px rgba(65, 89, 191, 0.24);
}

.service-copy-btn.is-copied {
  background: linear-gradient(120deg, #16a34a 0%, #0e9f6e 100%);
}

.service-modal-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: #5a6a88;
}

.redeem-tip {
  margin: 10px 4px 0;
  color: rgba(232, 245, 255, 0.86);
  font-size: 12px;
}

@media (max-width: 420px) {
  .redeem-card {
    min-height: 100vh;
    border-radius: 0;
    padding: 16px 14px 18px;
  }

  .redeem-title {
    font-size: 34px;
  }

  .redeem-title span {
    font-size: 42px;
  }

  .redeem-orbit {
    height: 210px;
    margin-top: 18px;
  }
}

.hidden {
  display: none;
}

/* 顶部导航 - 胶囊/Tab样式 */
.head-row.section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 99px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.head-row.section .btn {
  flex: 1;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 500;
  padding: 8px 0;
  font-size: 14px;
  transition: all 0.3s ease;
}

.head-row.section .btn.active-nav {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 600;
}

/* 顶部欢迎区 */
.header-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 10px 4px;
}

.avatar-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: transparent;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 本周热推卡片 (Hero Card) */
.hero-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 24px;
  padding: 28px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 172px;
}

.hero-card:active {
  transform: scale(0.98);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-content {
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  background: rgba(255,255,255,0.2);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero-btn {
  background: #fff;
  color: var(--brand);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-btn::after {
  content: "  >";
}

.hero-icon {
  width: 120px;
  height: 120px;
  position: absolute;
  right: -10px;
  bottom: -20px;
  z-index: 1;
  transform: rotate(-10deg);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.section {
  margin-top: 24px;
}

.section h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
}

.section h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 2px;
  margin-right: 8px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 移动端改为2列更合适 */
}

/* 卡片通用样式 */
.card {
  background: var(--card);
  border: none;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

/* 版本卡片 */
.version-card {
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  border: none;
  box-shadow: var(--shadow);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.version-card:active {
  transform: scale(0.98);
}

.sm-version-grid {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-version-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5eaf3;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 10px 20px rgba(82, 103, 172, 0.08);
}

.sm-version-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 14%, rgba(102, 126, 234, 0.12), transparent 44%);
  pointer-events: none;
}

.sm-version-card .version-title,
.sm-version-card .version-sub {
  position: relative;
  z-index: 1;
}

.sm-version-card.pick {
  border: 1px solid #6c84f7;
  background: linear-gradient(160deg, #edf2ff 0%, #e6ecff 100%);
  box-shadow: 0 12px 28px rgba(90, 116, 230, 0.22);
}

.sm-version-card.pick .version-title {
  color: #2f46c2;
}

.sm-version-card.pick .version-sub {
  color: #5a6ec4;
}

.version-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.version-sub {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.4;
}

/* 首页入口卡片 (新品推荐) */
.home-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 18px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border: 1px solid rgba(0,0,0,0.02);
}

.home-entry:active {
  transform: scale(0.98);
}

.home-entry .version-title {
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
}

.home-entry .version-sub {
  font-size: 12px;
  color: #999;
}

.pan-entry-card {
  background: linear-gradient(135deg, #fff8ef 0%, #fff3de 100%);
  border: 1px solid #ffe3b9;
}

.pan-entry-card .version-title {
  color: #8c4f00;
}

.pan-entry-card .version-sub {
  color: #9d6a1f;
}

.pan-entry-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #b56b00;
  white-space: nowrap;
}

.tiny-cover {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tiny-cover {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* 探索更多卡片 (Fun Card) */
.fun-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  font-weight: 700;
  font-size: 16px;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.fun-card:active {
  transform: scale(0.98);
}

.fun-card span:first-child {
  z-index: 2;
  font-size: 16px;
  color: #333;
}

.fun-card span:last-child {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 60px; /* emoji size */
  opacity: 0.2;
  transform: rotate(-10deg);
  filter: grayscale(0.5);
}

/* 针对不同功能卡片的背景色 */
.fun-card[data-fun="control"] { background: linear-gradient(135deg, #F3F1FF 0%, #E6E2FF 100%); color: #4B4588; }
.fun-card[data-fun="mentalAge"] { background: linear-gradient(135deg, #F0F9FF 0%, #E1F4FF 100%); color: #2A5B7F; }
.fun-card[data-fun="love"] { background: linear-gradient(135deg, #F0FFFA 0%, #DCFFF5 100%); color: #2C6E5C; }
.fun-card[data-fun="animal"] { background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%); color: #884545; }

.fun-card[data-fun="control"] span:first-child { color: #4B4588; }
.fun-card[data-fun="mentalAge"] span:first-child { color: #2A5B7F; }
.fun-card[data-fun="love"] span:first-child { color: #2C6E5C; }
.fun-card[data-fun="animal"] span:first-child { color: #884545; }

/* MBTI 类型按钮 (Type Btn) */
.type-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  font-weight: 600;
  font-size: 15px;
}

.type-btn:active {
  transform: scale(0.98);
}

.type-btn img {
  width: 32px;
  height: 32px;
}

/* 通知栏 */
.notice {
  margin-top: 30px;
  background: #fff;
  border: none;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 16px 20px;
  color: #666;
  font-size: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.notice::before {
  content: "🔔";
  margin-right: 10px;
}

/* 头部行 */
.head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* 按钮通用 */
.btn {
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0,0,0,0.05);
  color: #666;
}

/* 进度条 */
.progress {
  margin: 20px 0;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #f0f2f5;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 问题卡片 */
.question {
  font-size: 19px;
  line-height: 1.7;
  margin: 10px 0 24px;
  font-weight: 600;
}

.dim-hint {
  display: flex;
  justify-content: space-between;
  color: var(--sub);
  font-size: 13px;
  margin-bottom: 20px;
  background: #f9fafc;
  padding: 8px 12px;
  border-radius: 8px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f8faff;
  padding: 16px 14px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: all 0.2s;
  text-align: left;
  min-height: 56px;
}

.option:active {
  background: #edf1f9;
}

.option.active {
  border-width: 2px;
  border-color: var(--brand);
  background: #eef2ff;
  color: var(--brand);
  font-weight: 600;
}

.interaction-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
}

.quiz-actions {
  position: sticky;
  bottom: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 28, 45, 0.08);
}

/* 结果页 */
.dim-row {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.dim-track {
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f2f5;
  display: flex;
}

.dim-left {
  background: var(--brand);
}

.dim-right {
  background: #a0aec0;
}

.dim-active {
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
}

/* 详情页 */
.detail-head {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 10px;
}

.detail-head img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.detail-name {
  font-size: 32px;
  margin: 0;
  color: #333;
  font-weight: 800;
}

.detail-sub {
  color: var(--brand);
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
}

.detail-p {
  margin: 0;
  line-height: 1.8;
  color: #4a5568;
  font-size: 15px;
  text-align: justify;
}

.detail-block {
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  margin-top: 20px;
}

.detail-block-title {
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.detail-block-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 8px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analysis-item {
  text-align: center;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.analysis-item:active {
  transform: scale(0.98);
  background: #f7fafc;
}

.analysis-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analysis-preview {
  text-align: left;
  background: linear-gradient(165deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid #e8edf8;
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(40, 60, 120, 0.06);
}

.analysis-preview:active {
  transform: scale(0.98);
}

.analysis-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #3d4a86;
  margin-bottom: 6px;
}

.analysis-preview-desc {
  font-size: 12px;
  color: #5b647a;
  line-height: 1.5;
}

/* MBTI Hub 专用样式 */
.mbti-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.hub-title {
  font-size: 20px;
  font-weight: 800;
  color: #333;
  margin: 0;
}

.hub-back-btn {
  background: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mbti-banner {
  height: 220px;
  background: #fff;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbti-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

.scene-char {
  position: absolute;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.char-1 {
  width: 120px;
  bottom: -10px;
  left: 10%;
  z-index: 2;
}

.char-2 {
  width: 140px;
  bottom: -20px;
  right: 10%;
  z-index: 3;
  transform: scaleX(-1); /* 翻转朝向 */
}

.char-3 {
  width: 90px;
  bottom: 40px;
  left: 45%;
  transform: translateX(-50%);
  opacity: 0.8;
  z-index: 1;
  filter: blur(1px);
}

.pick {
  border-color: var(--brand);
}

.role-tag {
  font-size: 12px;
  color: var(--brand);
  background: rgba(102, 126, 234, 0.1);
  border-radius: 99px;
  padding: 4px 12px;
  font-weight: 600;
}

.advice-item {
  margin-top: 10px;
  color: #4a5568;
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

@media (min-width: 560px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-3.sm-version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app {
    padding: 22px 22px 110px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 22px;
  }

  .question {
    font-size: 18px;
  }

  .btn {
    padding: 10px 16px;
  }
}

/* SM 专区新样式 */
.sm-header-section {
  padding-top: 10px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-header-content {
  flex: 1;
}

.sm-header-visual {
  width: 110px;
  height: 110px;
  margin-left: 10px;
  margin-right: -10px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
  transform: rotate(-5deg);
}

.sm-title {
  font-size: 24px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.sm-desc {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.sm-test-card {
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  transition: transform 0.2s;
  min-height: 150px;
  cursor: pointer;
}

.sm-test-card:active {
  transform: scale(0.98);
}

.primary-card {
  background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
  color: #fff;
}

.secondary-card {
  background: #fff;
  border: 2px solid #E0C3FC;
  box-shadow: 0 5px 15px rgba(224, 195, 252, 0.2);
  color: #333;
}

.sm-card-content {
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sm-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 10px;
  backdrop-filter: blur(5px);
  font-weight: 600;
}

.sm-tag.outline {
  background: #f3e8ff;
  color: #764ba2;
}

.sm-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.sm-card-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.sm-meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.sm-meta-item {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.secondary-card .sm-meta-item {
  background: #f5f5f7;
  color: #666;
}

.sm-start-btn {
  width: 100px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #fff;
  color: #764ba2;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sm-card-visual {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-visual-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  filter: blur(10px);
}

.sm-visual-icon {
  font-size: 80px;
  z-index: 2;
  transform: rotate(-10deg);
  text-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.sm-menu-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sm-menu-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  min-height: 110px;
  cursor: pointer;
  transition: transform 0.2s;
}

.sm-menu-card:active {
  transform: scale(0.98);
}

.sm-menu-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.sm-menu-info {
  flex: 1;
}

.sm-menu-title {
  font-size: 15px;
  font-weight: 800;
  color: #333;
  margin-bottom: 4px;
}

.sm-menu-desc {
  font-size: 11px;
  color: #999;
}

.sm-arrow-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 16px;
  color: #ddd;
  font-weight: 300;
}

/* MBTI 专区新样式 */
.mbti-header-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  margin-bottom: 30px;
}

.mbti-banner-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.mbti-logo-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  margin-right: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbti-logo-img {
  width: 40px;
  height: 40px;
}

.mbti-banner-text {
  color: #fff;
}

.mbti-main-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mbti-sub-title {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 1px;
}

.mbti-banner-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
}

.mbti-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.mbti-indicator {
  width: 4px;
  height: 18px;
  background: #667eea;
  border-radius: 2px;
  margin-right: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.mbti-version-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mbti-version-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  position: relative;
  transition: transform 0.1s;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.02);
}

.mbti-version-card:active {
  transform: scale(0.98);
}

.tag-hot {
  position: absolute;
  top: 0;
  right: 0;
  background: #FF6B6B;
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 16px;
  font-weight: 700;
}

.v-left {
  margin-right: 16px;
}

.v-icon-box {
  width: 50px;
  height: 50px;
  background: #F5F7FA;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.v-center {
  flex: 1;
}

.v-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.v-desc {
  font-size: 12px;
  color: #999;
}

.v-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.v-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.v-btn {
  background: linear-gradient(to right, #ac8af6, #80beff);
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.mbti-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mbti-type-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: block;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: transform 0.1s;
}

.mbti-type-item:active {
  transform: scale(0.98);
}

.mbti-type-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mbti-type-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.mbti-type-icon {
  width: 36px;
  height: 36px;
}

@media (min-width: 560px) {
  .mbti-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}