/* ============================================================
   SMTI 葬爱灵魂测试 - QQ空间老风格样式表
   致敬2008-2013年QQ空间黄金时代
   ============================================================ */

/* ---------- 导入字体 ---------- */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Ma+Shan+Zheng&display=swap');

/* ---------- CSS 变量 ---------- */
:root {
  --qq-pink: #FF69B4;
  --qq-purple: #9B30FF;
  --qq-dark-purple: #5B0099;
  --qq-black: #0a0010;
  --qq-darker: #050008;
  --qq-gold: #FFD700;
  --qq-red: #FF1744;
  --qq-text: #f5e6ff;
  --qq-text-sub: #cc99ff;
  --qq-border: #9933CC;
  --qq-border-light: rgba(153,51,204,0.4);
  --qq-card-bg: rgba(20,0,40,0.85);
  --qq-card-bg2: rgba(40,0,80,0.9);
  --font-main: 'ZCOOL KuaiLe', 'Ma Shan Zheng', '黑体', cursive;
  --font-body: 'Ma Shan Zheng', 'ZCOOL KuaiLe', 'SimHei', sans-serif;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: #050008;
  /* QQ空间经典深紫渐变背景 */
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(100,0,180,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(180,0,100,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(60,0,120,0.15) 0%, transparent 70%);
  color: var(--qq-text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

button { border: none; cursor: pointer; font-family: var(--font-main); outline: none; }
img { max-width: 100%; }
a { color: var(--qq-pink); text-decoration: none; }

/* ============================================================
   QQ空间背景动效
   ============================================================ */
.qq-bg-wrap {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}

/* 星星粒子 */
.qq-star-item {
  position: absolute;
  color: var(--qq-gold);
  font-size: 10px;
  animation: qqStarFloat linear infinite;
  opacity: 0.7;
  text-shadow: 0 0 6px var(--qq-gold);
}
@keyframes qqStarFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* 爱心粒子 */
.qq-heart-item {
  position: absolute;
  color: var(--qq-pink);
  font-size: 14px;
  animation: qqHeartFloat ease-in-out infinite;
  opacity: 0.5;
  filter: drop-shadow(0 0 4px var(--qq-pink));
}
@keyframes qqHeartFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-30px) scale(1.2); opacity: 0.9; }
  100% { transform: translateY(0) scale(1); opacity: 0.6; }
}

/* 闪光容器 */
#sparkles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
}

/* ============================================================
   QQ空间顶部导航栏
   ============================================================ */
.qq-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(90deg, #200040 0%, #3D0070 50%, #200040 100%);
  border-bottom: 1px solid var(--qq-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(153,51,204,0.5);
}
.qq-nav-logo {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--qq-gold);
  text-shadow: 0 0 8px var(--qq-gold);
  letter-spacing: 2px;
}
.qq-nav-title {
  font-size: 12px;
  color: var(--qq-text-sub);
  letter-spacing: 1px;
}
.qq-nav-time {
  font-size: 11px;
  color: var(--qq-purple);
  font-family: monospace;
}

/* ============================================================
   页面容器
   ============================================================ */
.page {
  display: none;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding-top: 44px; /* 导航栏高度 */
}
.page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qq-page-wrap {
  width: 100%;
  max-width: 440px;
  padding: 16px 14px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   首页 - QQ空间风格
   ============================================================ */
#page-home {
  background: transparent;
}

/* 个人头像区 */
.qq-profile-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.qq-avatar-frame {
  position: relative;
  width: 80px; height: 80px;
}
.qq-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--qq-purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: radial-gradient(circle, #2a0050 0%, #0a0020 100%);
  box-shadow:
    0 0 15px rgba(153,51,204,0.6),
    0 0 30px rgba(153,51,204,0.3),
    inset 0 0 20px rgba(153,51,204,0.2);
  animation: avatarGlow 2.5s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(153,51,204,0.6), 0 0 30px rgba(153,51,204,0.3); }
  50%       { box-shadow: 0 0 25px rgba(255,105,180,0.8), 0 0 50px rgba(255,105,180,0.4); }
}
.qq-avatar-level {
  position: absolute; bottom: -6px; right: -6px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #000;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 8px;
  font-family: var(--font-main);
}
.qq-nick {
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--qq-gold);
  text-shadow: 0 0 10px var(--qq-gold);
  letter-spacing: 1px;
}
.qq-status-line {
  display: flex; align-items: center; gap: 5px;
}
.qq-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00FF66;
  box-shadow: 0 0 6px #00FF66;
  animation: onlineBlink 1.5s ease-in-out infinite;
}
@keyframes onlineBlink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
.qq-status-text {
  font-size: 12px;
  color: var(--qq-text-sub);
}

/* 公告板（仿Windows弹窗标题栏风格） */
.qq-notice-board {
  width: 100%;
  border: 2px solid var(--qq-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(153,51,204,0.4),
    0 0 40px rgba(153,51,204,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.qq-notice-title-bar {
  background: linear-gradient(90deg, #5B0099 0%, #9B30FF 50%, #5B0099 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px;
  font-size: 12px;
}
.qq-close-btn, .qq-min-btn {
  width: 18px; height: 18px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
  cursor: default;
  color: #fff;
}
.qq-close-btn { background: rgba(255,50,50,0.7); }
.qq-min-btn   { background: rgba(255,200,0,0.7); color: #333; }
.qq-notice-bar-title {
  color: var(--qq-gold);
  font-size: 12px;
  font-family: var(--font-main);
  letter-spacing: 1px;
  text-shadow: 0 0 6px var(--qq-gold);
}
.qq-notice-body {
  background: var(--qq-card-bg);
  padding: 20px 16px 24px;
  text-align: center;
}

/* SMTI Logo */
.smti-logo-text {
  font-size: 28px;
  letter-spacing: 6px;
  font-family: var(--font-main);
  margin-bottom: 8px;
}
.smti-s { color: #FF1493; text-shadow: 0 0 12px #FF1493; }
.smti-m { color: #FFD700; text-shadow: 0 0 12px #FFD700; }
.smti-t { color: #00FFFF; text-shadow: 0 0 12px #00FFFF; }
.smti-i { color: #ADFF2F; text-shadow: 0 0 12px #ADFF2F; }
.smti-dot { color: rgba(255,255,255,0.4); font-size: 20px; }

.home-main-title {
  font-family: var(--font-main);
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.title-line1 {
  color: var(--qq-text);
  text-shadow: 0 0 20px rgba(255,105,180,0.8), 0 2px 4px rgba(0,0,0,0.8);
  display: block;
}
.title-line2 {
  background: linear-gradient(90deg, #FF69B4, #FFD700, #FF1493);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,105,180,0.6));
}
.home-subtitle {
  font-size: 14px;
  color: var(--qq-text-sub);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.blink-star {
  color: var(--qq-gold);
  text-shadow: 0 0 8px var(--qq-gold);
  animation: blinkStar 1s step-end infinite;
}
@keyframes blinkStar {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.home-intro {
  font-size: 14px;
  color: var(--qq-text-sub);
  line-height: 1.8;
}
.home-intro small {
  font-size: 12px;
  color: var(--qq-purple);
  letter-spacing: 1px;
}

/* 神秘感盒子 */
.qq-mystery-box {
  width: 100%;
  background: rgba(30,0,60,0.7);
  border: 1px dashed var(--qq-border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.qq-mystery-box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(153,51,204,0.1) 0%, rgba(255,20,147,0.05) 100%);
  pointer-events: none;
}
.mystery-question-marks {
  display: flex; justify-content: center; gap: 8px;
  font-size: 20px;
  margin-bottom: 8px;
  animation: questionFloat 2s ease-in-out infinite;
}
@keyframes questionFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.mystery-main-text {
  font-size: 15px;
  color: var(--qq-gold);
  font-family: var(--font-main);
  text-shadow: 0 0 10px var(--qq-gold);
  letter-spacing: 1px;
}
.mystery-sub-text {
  font-size: 12px;
  color: var(--qq-text-sub);
  margin-top: 4px;
}

/* 小贴士 */
.qq-tip-bar {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(153,51,204,0.3);
  border-left: 3px solid var(--qq-purple);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--qq-text-sub);
  width: 100%;
}
.qq-tip-bar b { color: var(--qq-gold); }
.qq-tip-icon {
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--qq-purple);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  text-align: center;
  line-height: 16px;
  margin-right: 6px;
  font-style: normal;
}

/* 开始按钮（QQ空间按钮风格） */
.qq-start-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  font-family: var(--font-main);
  letter-spacing: 4px;
  color: #000;
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FF4500 100%);
  border-radius: 6px;
  border: 2px solid #FFD700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,140,0,0.5), 0 0 40px rgba(255,140,0,0.2);
  transition: all 0.2s;
  text-shadow: none;
  cursor: pointer;
}
.qq-start-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btnShine 2.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { left: -100%; }
  60%  { left: 150%; }
  100% { left: 150%; }
}
.qq-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,140,0,0.7), 0 0 60px rgba(255,140,0,0.3);
}
.qq-start-btn:active {
  transform: translateY(0);
}
.btn-spark {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255,255,0,0.8));
}

.home-sign {
  font-size: 12px;
  color: rgba(153,51,204,0.6);
  text-align: center;
  font-style: italic;
  letter-spacing: 1px;
}

/* 留言板 */
.qq-guestbook {
  width: 100%;
  border: 1px solid var(--qq-border-light);
  border-radius: 6px;
  overflow: hidden;
}
.qq-gb-title {
  background: linear-gradient(90deg, #3D0070, #5B0099, #3D0070);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--qq-gold);
  text-align: center;
  text-shadow: 0 0 6px var(--qq-gold);
}
.qq-gb-scroll {
  background: rgba(10,0,25,0.7);
  padding: 8px 0;
  max-height: 130px;
  overflow: hidden;
}
.qq-gb-item {
  padding: 5px 12px;
  font-size: 12px;
  color: var(--qq-text-sub);
  border-bottom: 1px solid rgba(153,51,204,0.15);
  animation: gbScroll 12s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qq-gb-item:nth-child(odd)  { color: var(--qq-pink); }
.qq-gb-item:nth-child(even) { color: #bb88ff; }
@keyframes gbScroll {
  0%,20%  { opacity: 1; }
  25%,95% { opacity: 0.7; }
  100%    { opacity: 1; }
}

/* ============================================================
   性别选择页
   ============================================================ */
#page-gender {
  background: radial-gradient(ellipse at 50% 0%, rgba(100,0,180,0.3) 0%, transparent 65%);
}

.qq-gender-header {
  text-align: center;
  padding: 8px 0 4px;
}
.qq-badge-small {
  display: inline-block;
  background: linear-gradient(90deg, rgba(153,51,204,0.3), rgba(255,20,147,0.3));
  border: 1px solid var(--qq-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--qq-text-sub);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.qq-gender-title {
  font-family: var(--font-main);
  font-size: 24px;
  color: var(--qq-text);
  text-shadow: 0 0 15px rgba(255,105,180,0.6);
  margin-bottom: 6px;
}
.qq-gender-sub {
  font-size: 13px;
  color: var(--qq-text-sub);
}

.qq-gender-cards {
  display: flex;
  gap: 12px;
  width: 100%;
}
.qq-gender-card {
  flex: 1;
  padding: 16px 12px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--qq-card-bg);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.qq-gender-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.qq-card-male {
  border-color: rgba(0,200,255,0.4);
  box-shadow: 0 0 15px rgba(0,200,255,0.1);
}
.qq-card-male::before {
  background: linear-gradient(135deg, rgba(0,200,255,0.1), rgba(0,100,200,0.1));
}
.qq-card-male:hover {
  border-color: #00C8FF;
  box-shadow: 0 0 25px rgba(0,200,255,0.4);
  transform: translateY(-3px);
}
.qq-card-male:hover::before { opacity: 1; }

.qq-card-female {
  border-color: rgba(255,105,180,0.4);
  box-shadow: 0 0 15px rgba(255,105,180,0.1);
}
.qq-card-female::before {
  background: linear-gradient(135deg, rgba(255,105,180,0.1), rgba(200,0,100,0.1));
}
.qq-card-female:hover {
  border-color: #FF69B4;
  box-shadow: 0 0 25px rgba(255,105,180,0.4);
  transform: translateY(-3px);
}
.qq-card-female:hover::before { opacity: 1; }

.qq-card-deco {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
.qq-card-label {
  font-family: var(--font-main);
  font-size: 20px;
  color: var(--qq-text);
  letter-spacing: 3px;
}
.qq-card-desc {
  font-size: 12px;
  color: var(--qq-text-sub);
  text-align: center;
  line-height: 1.6;
}
.qq-card-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
}
.qq-card-tags span {
  background: rgba(153,51,204,0.2);
  border: 1px solid rgba(153,51,204,0.3);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--qq-text-sub);
}
.qq-card-enter {
  font-size: 12px;
  color: var(--qq-gold);
  text-shadow: 0 0 6px var(--qq-gold);
}

.qq-gender-note {
  font-size: 12px;
  color: rgba(153,51,204,0.6);
  text-align: center;
}
.qq-back-btn {
  background: transparent;
  border: 1px solid rgba(153,51,204,0.4);
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--qq-text-sub);
  transition: all 0.2s;
}
.qq-back-btn:hover {
  border-color: var(--qq-purple);
  color: var(--qq-text);
  background: rgba(153,51,204,0.1);
}

/* ============================================================
   答题页
   ============================================================ */
#page-quiz {
  background: radial-gradient(ellipse at 50% 0%, rgba(80,0,160,0.3) 0%, transparent 65%);
}

.qq-quiz-wrap {
  width: 100%;
  max-width: 440px;
  padding: 12px 14px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 进度头部 */
.qq-quiz-header {
  width: 100%;
  background: rgba(10,0,25,0.6);
  border: 1px solid var(--qq-border-light);
  border-radius: 6px;
  padding: 10px 12px;
}
.qq-quiz-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.qq-progress-info { display: flex; align-items: baseline; gap: 2px; }
.qq-q-num {
  font-family: var(--font-main);
  font-size: 28px;
  color: var(--qq-gold);
  text-shadow: 0 0 10px var(--qq-gold);
  line-height: 1;
}
.qq-q-total {
  font-size: 14px;
  color: var(--qq-text-sub);
}
.q-gender-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: var(--font-main);
}
.badge-male {
  background: rgba(0,150,255,0.2);
  border: 1px solid rgba(0,150,255,0.5);
  color: #66CCFF;
}
.badge-female {
  background: rgba(255,105,180,0.2);
  border: 1px solid rgba(255,105,180,0.5);
  color: #FF99CC;
}
.qq-progress-bar-bg {
  height: 8px;
  background: rgba(153,51,204,0.15);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(153,51,204,0.2);
  margin-bottom: 6px;
}
.qq-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9B30FF, #FF1493, #FFD700);
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(153,51,204,0.6);
}
.qq-progress-stars {
  display: flex; gap: 3px; justify-content: center;
}
.star-filled {
  color: var(--qq-gold);
  text-shadow: 0 0 6px var(--qq-gold);
  font-size: 12px;
}
.star-empty {
  color: rgba(153,51,204,0.3);
  font-size: 12px;
}

/* 题目卡片（QQ空间消息框/窗口风格） */
.qq-quiz-card {
  width: 100%;
  background: var(--qq-card-bg);
  border: 2px solid var(--qq-border);
  border-radius: 8px;
  padding: 0 0 16px;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(153,51,204,0.3),
    0 4px 24px rgba(0,0,0,0.6);
  transition: all 0.3s;
}
.qq-quiz-card.slide-in {
  animation: cardSlideIn 0.35s ease-out forwards;
}
@keyframes cardSlideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.qq-card-header-strip {
  background: linear-gradient(90deg, #3D0070, #5B0099, #3D0070);
  padding: 6px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.qq-card-category {
  font-size: 12px;
  font-family: var(--font-main);
  color: var(--qq-gold);
  text-shadow: 0 0 6px var(--qq-gold);
  letter-spacing: 1px;
}
.qq-multi-hint {
  font-size: 11px;
  color: var(--qq-pink);
  background: rgba(255,105,180,0.15);
  border: 1px solid rgba(255,105,180,0.3);
  padding: 2px 8px;
  border-radius: 10px;
  animation: multiPulse 1.5s ease-in-out infinite;
}
@keyframes multiPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.qq-q-emoji {
  font-size: 38px;
  text-align: center;
  padding: 14px 0 6px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}
.qq-q-text {
  font-family: var(--font-main);
  font-size: 17px;
  color: var(--qq-text);
  text-align: center;
  padding: 0 16px 14px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* 选项按钮（QQ空间选项卡风格） */
.qq-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}
.option-btn {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: rgba(30,0,60,0.6);
  border: 1px solid rgba(153,51,204,0.35);
  border-radius: 6px;
  color: var(--qq-text);
  font-family: var(--font-body);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.option-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(153,51,204,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.option-btn:hover {
  border-color: var(--qq-purple);
  background: rgba(60,0,120,0.6);
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(153,51,204,0.3);
}
.option-btn:hover::before { opacity: 1; }
.option-btn.selected {
  border-color: var(--qq-gold);
  background: rgba(60,20,0,0.6);
  box-shadow: 0 0 15px rgba(255,215,0,0.3);
}
.option-btn.selected::before {
  background: linear-gradient(90deg, rgba(255,215,0,0.15), transparent);
  opacity: 1;
}
.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.opt-label {
  min-width: 22px; height: 22px;
  border-radius: 4px;
  background: rgba(153,51,204,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
  color: var(--qq-gold);
  flex-shrink: 0;
  font-family: var(--font-main);
}
.option-btn.selected .opt-label {
  background: var(--qq-gold);
  color: #000;
}
.opt-text {
  line-height: 1.4;
  color: var(--qq-text-sub);
}
.option-btn:hover .opt-text { color: var(--qq-text); }
.option-btn.selected .opt-text { color: var(--qq-gold); }

/* 多选确认按钮 */
.qq-confirm-btn {
  margin: 10px 12px 0;
  width: calc(100% - 24px);
  padding: 10px;
  background: linear-gradient(135deg, #FF1493, #9B30FF);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-main);
  letter-spacing: 2px;
  box-shadow: 0 0 15px rgba(255,20,147,0.4);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.qq-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,20,147,0.6);
}

.qq-quiz-brand {
  font-size: 12px;
  color: rgba(153,51,204,0.4);
  letter-spacing: 3px;
  font-family: var(--font-main);
}

/* ============================================================
   加载页
   ============================================================ */
#page-loading {
  background: radial-gradient(ellipse at 50% 50%, rgba(80,0,160,0.4) 0%, transparent 70%);
  justify-content: center;
}

.qq-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
  max-width: 360px;
}
.qq-loading-icon {
  font-size: 64px;
  animation: loadingIconSpin 0.3s ease-in-out;
  filter: drop-shadow(0 0 20px rgba(153,51,204,0.8));
}
.qq-loading-title {
  font-family: var(--font-main);
  font-size: 18px;
  color: var(--qq-text);
  text-shadow: 0 0 10px rgba(255,105,180,0.5);
  letter-spacing: 1px;
}
.qq-loading-dots {
  display: flex; gap: 8px;
}
.qq-loading-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--qq-purple);
  box-shadow: 0 0 8px var(--qq-purple);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.qq-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.qq-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%           { transform: scale(1.4); opacity: 1; }
}
.qq-loading-quote {
  font-size: 14px;
  color: var(--qq-text-sub);
  text-align: center;
  font-style: italic;
  letter-spacing: 1px;
  min-height: 22px;
}
.qq-loading-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(153,51,204,0.15);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(153,51,204,0.3);
}
.qq-loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9B30FF, #FF1493, #FFD700);
  border-radius: 5px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(153,51,204,0.6);
}
.qq-loading-pct {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--qq-purple);
}

/* ============================================================
   结果页
   ============================================================ */
#page-result {
  background: transparent;
}

.qq-result-wrap {
  width: 100%;
  max-width: 440px;
  padding: 16px 14px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qq-result-top {
  text-align: center;
}
.qq-result-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(60,0,120,0.8), rgba(120,0,60,0.8));
  border: 1px solid var(--qq-border);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--qq-gold);
  text-shadow: 0 0 8px var(--qq-gold);
  letter-spacing: 1px;
}

/* 稀有度徽章 */
.qq-rarity-banner {
  width: 100%;
  text-align: center;
}
.rarity-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 16px;
  letter-spacing: 2px;
  animation: rarityPulse 2s ease-in-out infinite;
}
.rarity-ssr {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
  border: 2px solid #FFD700;
  color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.4), 0 0 40px rgba(255,215,0,0.15);
}
.rarity-sr {
  background: linear-gradient(135deg, rgba(192,160,255,0.2), rgba(100,0,200,0.2));
  border: 2px solid #C0A0FF;
  color: #C0A0FF;
  box-shadow: 0 0 20px rgba(192,160,255,0.4), 0 0 40px rgba(192,160,255,0.15);
}
.rarity-r {
  background: linear-gradient(135deg, rgba(128,255,200,0.2), rgba(0,150,100,0.2));
  border: 2px solid #80FFCC;
  color: #80FFCC;
  box-shadow: 0 0 15px rgba(128,255,200,0.3);
}
@keyframes rarityPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.02); }
}
.rarity-sub {
  font-size: 13px;
  color: var(--qq-text-sub);
  margin-top: 6px;
}

/* 结果主卡片（QQ空间相册/展示页风格） */
.qq-result-card {
  width: 100%;
  border-radius: 8px;
  padding: 0 0 20px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(153,51,204,0.2);
  position: relative;
}
.qq-result-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.qq-result-card-header {
  background: rgba(0,0,0,0.3);
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.qq-result-type-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}
.qq-result-emoji {
  font-size: 64px;
  text-align: center;
  padding: 16px 0 8px;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
  animation: resultEmojiBob 2s ease-in-out infinite;
}
@keyframes resultEmojiBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.05); }
}
.qq-result-name {
  font-family: var(--font-main);
  font-size: 30px;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 2px 4px rgba(0,0,0,0.8);
  padding: 0 16px;
}
.qq-result-title {
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  letter-spacing: 2px;
  padding: 4px 16px;
}
.qq-result-slogan {
  font-family: var(--font-main);
  font-size: 15px;
  text-align: center;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
  padding: 6px 16px;
  letter-spacing: 1px;
}
.qq-result-type-desc {
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.65);
  padding: 0 16px 8px;
  font-style: italic;
}
.qq-result-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  padding: 8px 16px;
  background: rgba(0,0,0,0.2);
  margin: 0 12px;
  border-radius: 6px;
  border-left: 3px solid rgba(255,255,255,0.3);
}

/* 维度分析（QQ等级条风格） */
.qq-dimension-box {
  margin: 14px 12px 0;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.qq-dim-title {
  font-family: var(--font-main);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.qq-dimensions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dim-item { width: 100%; }
.dim-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.dim-icon { font-size: 14px; }
.dim-name {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.dim-value {
  font-family: var(--font-main);
  font-size: 14px;
  color: #FFD700;
  min-width: 30px;
  text-align: right;
}
.dim-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* 标签 */
.qq-tags-box {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 12px 0;
  justify-content: center;
}
.tag-item {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid;
  background: rgba(0,0,0,0.2);
  font-family: var(--font-main);
  transition: all 0.2s;
}
.tag-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* 彩虹屁区域（QQ空间留言板/诺诺格式） */
.qq-rainbow-praise {
  width: 100%;
  background: rgba(10,0,25,0.8);
  border: 2px solid rgba(255,20,147,0.5);
  border-radius: 8px;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255,20,147,0.15), 0 0 40px rgba(153,51,204,0.1);
}
.qq-rainbow-praise::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,20,147,0.05), rgba(153,51,204,0.05), rgba(255,215,0,0.05));
  pointer-events: none;
}
.praise-header {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--qq-gold);
  text-shadow: 0 0 10px var(--qq-gold);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.praise-main {
  font-size: 15px;
  color: var(--qq-text);
  line-height: 1.8;
  text-align: center;
  padding: 6px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  margin-bottom: 10px;
}
.praise-extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.praise-item {
  font-size: 13px;
  color: var(--qq-text-sub);
  padding: 6px 10px;
  background: rgba(153,51,204,0.1);
  border-radius: 4px;
  border-left: 2px solid var(--qq-purple);
  line-height: 1.6;
}
.praise-seal {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(153,51,204,0.5);
  letter-spacing: 1px;
  font-style: italic;
}

/* 其他人格（QQ空间好友列表风格） */
.qq-other-types {
  width: 100%;
}
.qq-other-title {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--qq-text-sub);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.qq-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.other-card {
  background: rgba(20,0,40,0.7);
  border: 1px solid;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  transition: all 0.2s;
}
.other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(153,51,204,0.3);
}
.other-emoji { font-size: 20px; margin-bottom: 4px; }
.other-name { font-size: 11px; color: var(--qq-text-sub); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-rarity {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-family: var(--font-main);
}
.rarity-ssr .other-rarity, .other-rarity.rarity-ssr { background: rgba(255,215,0,0.2); color: #FFD700; border: 1px solid rgba(255,215,0,0.3); }
.rarity-sr .other-rarity, .other-rarity.rarity-sr   { background: rgba(192,160,255,0.2); color: #C0A0FF; border: 1px solid rgba(192,160,255,0.3); }
.rarity-r .other-rarity, .other-rarity.rarity-r     { background: rgba(128,255,200,0.2); color: #80FFCC; border: 1px solid rgba(128,255,200,0.3); }

/* 操作按钮 */
.qq-result-actions {
  display: flex; gap: 12px; width: 100%;
}
.qq-btn-share, .qq-btn-retry {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-main);
  letter-spacing: 1px;
  transition: all 0.2s;
}
.qq-btn-share {
  background: linear-gradient(135deg, #FF1493, #9B30FF);
  color: #fff;
  box-shadow: 0 0 15px rgba(255,20,147,0.3);
  border: 1px solid rgba(255,20,147,0.5);
}
.qq-btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,20,147,0.5);
}
.qq-btn-retry {
  background: transparent;
  color: var(--qq-text-sub);
  border: 1px solid rgba(153,51,204,0.4);
}
.qq-btn-retry:hover {
  border-color: var(--qq-purple);
  color: var(--qq-text);
  background: rgba(153,51,204,0.1);
  transform: translateY(-2px);
}
.qq-result-footer {
  font-size: 12px;
  color: rgba(153,51,204,0.4);
  letter-spacing: 3px;
  text-align: center;
  font-family: var(--font-main);
}

/* ============================================================
   Toast提示
   ============================================================ */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30,0,60,0.95);
  border: 1px solid var(--qq-border);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--qq-gold);
  font-family: var(--font-main);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(153,51,204,0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   滚动条美化（QQ空间风格）
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--qq-purple), var(--qq-pink));
  border-radius: 3px;
}

/* ============================================================
   响应式优化
   ============================================================ */
@media (max-width: 400px) {
  .smti-logo-text { font-size: 22px; letter-spacing: 4px; }
  .home-main-title { font-size: 28px; }
  .qq-other-grid { grid-template-columns: repeat(3, 1fr); }
  .qq-result-emoji { font-size: 52px; }
  .qq-result-name { font-size: 26px; }
}
@media (max-width: 360px) {
  .qq-other-grid { grid-template-columns: repeat(2, 1fr); }
}
