/* =========================================
   1. 全局变量与魔法色彩定义
========================================= */
:root {
  /* ===== 伊莉雅 · 粉红梦幻 ===== */
  --illya-primary: #ff6b9d;
  --illya-deep: #ff0844;
  --illya-glow: #ffb3d0;
  --illya-light: #fff0f5;
  --illya-shadow: 0 0 15px rgba(255, 8, 68, 0.4);
  --illya-card-bg: linear-gradient(135deg, rgba(255,240,245,0.9) 0%, rgba(255,220,235,0.7) 100%);
  --illya-card-border: rgba(255, 107, 157, 0.5);

  /* ===== 美游 · 紫月神秘 ===== */
  --miyu-primary: #9d88ff;
  --miyu-deep: #5b247a;
  --miyu-glow: #c9b8ff;
  --miyu-light: #f5f0ff;
  --miyu-shadow: 0 0 15px rgba(91, 36, 122, 0.4);
  --miyu-card-bg: linear-gradient(135deg, rgba(245,240,255,0.9) 0%, rgba(225,215,255,0.7) 100%);
  --miyu-card-border: rgba(157, 136, 255, 0.5);

  /* ===== 小黑 · 金焰琥珀 ===== */
  --chloe-primary: #ff8c42;
  --chloe-deep: #e04020;
  --chloe-glow: #ffc896;
  --chloe-light: #fff5ed;
  --chloe-shadow: 0 0 15px rgba(255, 94, 58, 0.4);
  --chloe-card-bg: linear-gradient(135deg, rgba(255,245,237,0.9) 0%, rgba(255,230,210,0.7) 100%);
  --chloe-card-border: rgba(255, 140, 66, 0.5);

  /* ===== 用户状态卡片 · 冰蓝 ===== */
  --user-card-bg: linear-gradient(135deg, rgba(240,248,255,0.9) 0%, rgba(225,240,255,0.7) 100%);
  --user-card-border: rgba(100,180,255,0.5);
  --user-shadow: 0 4px 25px rgba(100,180,255,0.15);

  /* ===== 全局通用 ===== */
  --bg-glass: rgba(255, 255, 255, 0.55);
  --border-glass: rgba(255, 255, 255, 0.5);
  --text-main: #4a4a4a;
  --shadow-magic: 0 8px 32px 0 rgba(157, 136, 255, 0.15);
}

/* ==================== 隐藏思维链 ==================== */
think, cot {
    display: none !important;
}

/* =========================================
   2. 全局魔法背景
========================================= */
body, .chat-container, .main-area {
  background: 
    radial-gradient(ellipse at 15% 25%, rgba(255,107,157,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(157,136,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(255,140,66,0.05) 0%, transparent 40%),
    linear-gradient(175deg, #fdf6fb 0%, #f8f5ff 35%, #fff9f5 70%) !important;
  background-attachment: fixed !important;
}

/* =========================================
   3. 正文区 · 魔法书页
========================================= */
.story-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  padding: 22px 28px;
  background: 
    radial-gradient(circle at 15% 25%, rgba(255,107,157,0.04), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(157,136,255,0.04), transparent 40%),
    var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 
    0 8px 32px rgba(157,136,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

.story-content::before {
  content: '✦';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 1.3rem;
  color: var(--illya-glow);
  animation: star-twinkle 4s ease-in-out infinite;
  pointer-events: none;
}

.story-content::after {
  content: '✧';
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 1.3rem;
  color: var(--miyu-glow);
  animation: star-twinkle 4s ease-in-out 2s infinite;
  pointer-events: none;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* =========================================
   4. 角色对话标签 · 三人专属颜色
========================================= */

.illya-talk {
  color: #ff0844 !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 8, 68, 0.3);
}
.illya-talk::before {
  content: '♡ ';
  color: #ff6b9d;
  animation: heart-beat 1.4s ease-in-out infinite;
  display: inline-block;
}
.illya-think {
  color: #ff6b9d !important;
  font-style: italic;
  font-size: 0.95em;
  opacity: 0.9;
}
.illya-think::before {
  content: '💭 ';
  font-style: normal;
  font-size: 0.8em;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  15% { transform: scale(1.3); opacity: 1; }
  30% { transform: scale(1); opacity: 0.7; }
}

.miyu-talk {
  color: #9d00ff !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.3);
}
.miyu-talk::before {
  content: '☽ ';
  color: #b088ff;
  animation: moon-phase 3s ease-in-out infinite;
  display: inline-block;
}
.miyu-think {
  color: #b088ff !important;
  font-style: italic;
  font-size: 0.95em;
  opacity: 0.9;
}
.miyu-think::before {
  content: '💭 ';
  font-style: normal;
  font-size: 0.8em;
}

@keyframes moon-phase {
  0%, 100% { opacity: 0.6; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 6px #b088ff; }
}

.chloe-talk {
  color: #ff6b00 !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}
.chloe-talk::before {
  content: '⚡ ';
  color: #f9d423;
  animation: spark-flash 0.7s ease-in-out infinite;
  display: inline-block;
}
.chloe-think {
  color: #ffa060 !important;
  font-style: italic;
  font-size: 0.95em;
  opacity: 0.9;
}
.chloe-think::before {
  content: '💭 ';
  font-style: normal;
  font-size: 0.8em;
}

@keyframes spark-flash {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); text-shadow: 0 0 8px #f9d423; }
}

/* =========================================
   5. 顶部状态栏 · 魔法阵能量条
========================================= */
.status-bar-top {
  background: linear-gradient(
    135deg,
    rgba(255,107,157,0.75) 0%,
    rgba(180,150,255,0.7) 35%,
    rgba(157,136,255,0.75) 65%,
    rgba(255,140,66,0.55) 100%
  );
  background-size: 300% 300%;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  padding: 14px 20px;
  color: white;
  box-shadow: 
    0 8px 32px rgba(157,136,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 40px rgba(255,107,157,0.1);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  animation: status-bar-shift 8s ease-in-out infinite;
}

@keyframes status-bar-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.status-bar-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1.5px 1.5px at 10% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 25% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 50% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 35%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 60% 40%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.5), transparent);
  animation: particle-sparkle 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particle-sparkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.status-row:last-child { margin-bottom: 0; }
.status-item {
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  letter-spacing: 0.4px;
}
.status-item .highlight {
  background: rgba(255,255,255,0.3);
  padding: 3px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.4);
}

/* =========================================
   6. 底部状态卡片 · 四人四色 + 标签星星
========================================= */
.status-bar-bottom {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-card {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* ----- 伊莉雅卡片 · 粉红 ----- */
.status-card:nth-child(1) {
  background: var(--illya-card-bg);
  border: 2px solid var(--illya-card-border);
  box-shadow: 0 4px 25px rgba(255,107,157,0.2);
}
.status-card:nth-child(1) summary {
  background: linear-gradient(90deg, rgba(255,240,245,0.95), rgba(255,255,255,0.7));
  color: #ff0844;
  position: relative;
  overflow: hidden;
}
/* 伊莉雅标签上浮现的星星 */
.status-card:nth-child(1) summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 20% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 70% 60%, rgba(255,182,193,0.9), transparent),
    radial-gradient(2px 2px at 85% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 40% 75%, rgba(255,182,193,0.6), transparent);
  animation: illya-stars-fade 3s ease-in-out infinite;
}
@keyframes illya-stars-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ----- 美游卡片 · 紫色 ----- */
.status-card:nth-child(2) {
  background: var(--miyu-card-bg);
  border: 2px solid var(--miyu-card-border);
  box-shadow: 0 4px 25px rgba(157,136,255,0.2);
}
.status-card:nth-child(2) summary {
  background: linear-gradient(90deg, rgba(245,240,255,0.95), rgba(255,255,255,0.7));
  color: #5b247a;
  position: relative;
  overflow: hidden;
}
.status-card:nth-child(2) summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(3px 3px at 15% 50%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 55% 30%, rgba(200,180,255,0.9), transparent),
    radial-gradient(3px 3px at 90% 65%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 35% 80%, rgba(200,180,255,0.6), transparent);
  animation: miyu-stars-fade 3.5s ease-in-out 0.5s infinite;
}
@keyframes miyu-stars-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ----- 小黑卡片 · 琥珀 ----- */
.status-card:nth-child(3) {
  background: var(--chloe-card-bg);
  border: 2px solid var(--chloe-card-border);
  box-shadow: 0 4px 25px rgba(255,140,66,0.2);
}
.status-card:nth-child(3) summary {
  background: linear-gradient(90deg, rgba(255,245,237,0.95), rgba(255,255,255,0.7));
  color: #e04020;
  position: relative;
  overflow: hidden;
}
.status-card:nth-child(3) summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 25% 35%, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 80% 55%, rgba(255,200,150,0.9), transparent),
    radial-gradient(2px 2px at 10% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 60% 20%, rgba(255,200,150,0.6), transparent);
  animation: chloe-stars-fade 2.8s ease-in-out 1s infinite;
}
@keyframes chloe-stars-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ----- 用户状态卡片 · 冰蓝 ----- */
.status-card:nth-child(4) {
  background: var(--user-card-bg);
  border: 2px solid var(--user-card-border);
  box-shadow: 0 4px 25px rgba(100,180,255,0.15);
}
.status-card:nth-child(4) summary {
  background: linear-gradient(90deg, rgba(240,248,255,0.95), rgba(255,255,255,0.7));
  color: #2a6cb6;
  position: relative;
  overflow: hidden;
}
.status-card:nth-child(4) summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 30% 45%, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 75% 35%, rgba(150,200,255,0.7), transparent),
    radial-gradient(2px 2px at 50% 75%, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 15% 60%, rgba(150,200,255,0.6), transparent);
  animation: user-stars-fade 3.2s ease-in-out 1.5s infinite;
}
@keyframes user-stars-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.status-card:nth-child(4) summary::after {
  color: #66b0ff;
}

/* ----- 记忆区卡片 · 保持默认 ----- */
.status-card.memory-card {
  background: var(--bg-glass);
  border: 1.5px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.status-card.memory-card summary {
  background: rgba(255,255,255,0.5);
  color: #333;
}

/* 卡片悬停效果 */
.status-card:nth-child(1):hover { box-shadow: 0 8px 35px rgba(255,107,157,0.35); }
.status-card:nth-child(2):hover { box-shadow: 0 8px 35px rgba(157,136,255,0.35); }
.status-card:nth-child(3):hover { box-shadow: 0 8px 35px rgba(255,140,66,0.35); }
.status-card:nth-child(4):hover { box-shadow: 0 8px 35px rgba(100,180,255,0.3); }
.status-card:hover { transform: translateY(-3px); }

.status-card summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  user-select: none;
}
.status-card summary::-webkit-details-marker { display: none; }

.status-card summary::after {
  content: '✦';
  margin-left: auto;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
  color: var(--illya-primary);
  position: relative;
  z-index: 1;
}
.status-card:nth-child(2) summary::after { color: var(--miyu-primary); }
.status-card:nth-child(3) summary::after { color: var(--chloe-primary); }

.status-card[open] summary::after {
  transform: rotate(180deg) scale(1.3);
  opacity: 1;
}
.status-card:nth-child(1)[open] summary::after { text-shadow: 0 0 12px var(--illya-glow); }
.status-card:nth-child(2)[open] summary::after { text-shadow: 0 0 12px var(--miyu-glow); }
.status-card:nth-child(3)[open] summary::after { text-shadow: 0 0 12px var(--chloe-glow); }
.status-card:nth-child(4)[open] summary::after { text-shadow: 0 0 12px rgba(100,180,255,0.5); }

/* 卡片内部 */
.profile-content {
  padding: 18px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.profile-content .label {
  font-weight: 700;
  color: #999;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.profile-content .value {
  font-weight: bold;
  color: var(--illya-deep);
}
.status-card:nth-child(2) .profile-content .value { color: var(--miyu-deep); }
.status-card:nth-child(3) .profile-content .value { color: var(--chloe-deep); }
.status-card:nth-child(4) .profile-content .value { color: #2a6cb6; }

.profile-content .highlight {
  font-weight: 600;
}

.divider {
  height: 1px;
  margin: 12px 0;
}
.status-card:nth-child(1) .divider { background: linear-gradient(90deg, transparent, rgba(255,107,157,0.4), transparent); }
.status-card:nth-child(2) .divider { background: linear-gradient(90deg, transparent, rgba(157,136,255,0.4), transparent); }
.status-card:nth-child(3) .divider { background: linear-gradient(90deg, transparent, rgba(255,140,66,0.4), transparent); }
.status-card:nth-child(4) .divider { background: linear-gradient(90deg, transparent, rgba(100,180,255,0.4), transparent); }
.status-card.memory-card .divider { background: linear-gradient(90deg, transparent, rgba(157,136,255,0.3), transparent); }

.clothing-list, .body-state-list {
  padding-left: 20px;
  margin: 6px 0;
  line-height: 1.7;
}

/* =========================================
   7. 魔法进度条 · 三人专属流光
========================================= */
.progress-container { margin: 12px 0; }
.progress-label {
  font-size: 0.85rem;
  margin-bottom: 5px;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.3px;
}

.progress-bar {
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.08);
  position: relative;
  background: rgba(240,235,245,0.6);
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  position: relative;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- 伊莉雅进度条 · 粉红渐变流光 ----- */
.status-card:nth-child(1) .progress-bar {
  background: rgba(255,200,215,0.4);
}
.status-card:nth-child(1) .progress-fill {
  background: linear-gradient(
    90deg,
    #ffb3d0 0%,
    #ff6b9d 25%,
    #ff0844 50%,
    #ff6b9d 75%,
    #ffb3d0 100%
  );
  background-size: 200% 100%;
  animation: illya-progress-flow 2.5s linear infinite;
  box-shadow: 0 0 15px rgba(255, 8, 68, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.status-card:nth-child(1) .progress-fill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  animation: illya-highlight 2s ease-in-out infinite;
}

@keyframes illya-progress-flow {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}
@keyframes illya-highlight {
  0% { left: -10%; opacity: 0.3; }
  50% { left: 90%; opacity: 1; }
  100% { left: -10%; opacity: 0.3; }
}

/* ----- 美游进度条 · 紫色渐变流光 ----- */
.status-card:nth-child(2) .progress-bar {
  background: rgba(210,200,240,0.4);
}
.status-card:nth-child(2) .progress-fill {
  background: linear-gradient(
    90deg,
    #c9b8ff 0%,
    #9d88ff 25%,
    #5b247a 50%,
    #9d88ff 75%,
    #c9b8ff 100%
  );
  background-size: 200% 100%;
  animation: miyu-progress-flow 3s linear infinite;
  box-shadow: 0 0 15px rgba(91, 36, 122, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.status-card:nth-child(2) .progress-fill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  animation: miyu-highlight 2.3s ease-in-out infinite;
}
@keyframes miyu-progress-flow {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}
@keyframes miyu-highlight {
  0% { left: -10%; opacity: 0.3; }
  50% { left: 90%; opacity: 1; }
  100% { left: -10%; opacity: 0.3; }
}

/* ----- 小黑进度条 · 金焰渐变流光 ----- */
.status-card:nth-child(3) .progress-bar {
  background: rgba(255,215,185,0.4);
}
.status-card:nth-child(3) .progress-fill {
  background: linear-gradient(
    90deg,
    #f9d423 0%,
    #ff8c42 25%,
    #e04020 50%,
    #ff8c42 75%,
    #f9d423 100%
  );
  background-size: 200% 100%;
  animation: chloe-progress-flow 2.8s linear infinite;
  box-shadow: 0 0 15px rgba(255, 94, 58, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.status-card:nth-child(3) .progress-fill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  animation: chloe-highlight 1.8s ease-in-out infinite;
}
@keyframes chloe-progress-flow {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}
@keyframes chloe-highlight {
  0% { left: -10%; opacity: 0.3; }
  50% { left: 90%; opacity: 1; }
  100% { left: -10%; opacity: 0.3; }
}

/* =========================================
   8. 选项按钮 · 四色圆角魔法符文
========================================= */
[data-option] {
  background: linear-gradient(135deg, #ffffff 0%, #fff5fa 100%);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  border: 2px solid transparent;
}
[data-option]::before {
  margin-right: 8px;
  transition: all 0.3s ease;
}

[data-option="A"] {
  border-color: #ff6b9d;
  box-shadow: 0 2px 12px rgba(255,107,157,0.15);
}
[data-option="A"]::before {
  content: '♡';
  color: #ff6b9d;
}

[data-option="B"] {
  border-color: #9d88ff;
  box-shadow: 0 2px 12px rgba(157,136,255,0.15);
}
[data-option="B"]::before {
  content: '☽';
  color: #9d88ff;
}

[data-option="C"] {
  border-color: #66c7ff;
  box-shadow: 0 2px 12px rgba(102,199,255,0.15);
}
[data-option="C"]::before {
  content: '✦';
  color: #66c7ff;
}

[data-option="D"] {
  border-color: #ff8c42;
  box-shadow: 0 2px 12px rgba(255,140,66,0.15);
}
[data-option="D"]::before {
  content: '⚡';
  color: #f9d423;
}

[data-option]:hover {
  transform: translateX(8px);
  background: linear-gradient(135deg, #fff8fa 0%, #faf8ff 100%);
}
[data-option="A"]:hover {
  border-color: #ff0844;
  box-shadow: 0 6px 25px rgba(255,107,157,0.3), 0 0 0 4px rgba(255,107,157,0.08);
}
[data-option="B"]:hover {
  border-color: #5b247a;
  box-shadow: 0 6px 25px rgba(157,136,255,0.3), 0 0 0 4px rgba(157,136,255,0.08);
}
[data-option="C"]:hover {
  border-color: #3399dd;
  box-shadow: 0 6px 25px rgba(102,199,255,0.3), 0 0 0 4px rgba(102,199,255,0.08);
}
[data-option="D"]:hover {
  border-color: #e04020;
  box-shadow: 0 6px 25px rgba(255,140,66,0.3), 0 0 0 4px rgba(255,140,66,0.08);
}

[data-option]:hover::before {
  transform: scale(1.3);
}

/* =========================================
   9. 聊天输入框
========================================= */
.chat-input-container, #chat-input-area {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border-top: 2px solid rgba(255,182,193,0.5) !important;
  padding: 16px !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -4px 25px rgba(255,107,157,0.1) !important;
}
textarea.chat-input, #send-textarea {
  background: linear-gradient(135deg, #fff9fb 0%, #fdf5ff 100%) !important;
  border: 2px solid #ffd6e8 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  font-size: 1rem;
  transition: all 0.35s ease !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03) !important;
}
textarea.chat-input:focus, #send-textarea:focus {
  outline: none !important;
  border-color: #ff0844 !important;
  box-shadow: 
    inset 0 2px 6px rgba(0,0,0,0.03),
    0 0 0 4px rgba(255,107,157,0.12),
    0 0 30px rgba(255,107,157,0.2) !important;
}

.send-btn, #send-button {
  background: linear-gradient(135deg, #ff6b9d, #9d88ff, #ff8c42) !important;
  background-size: 300% 300% !important;
  border: none !important;
  border-radius: 50% !important;
  color: white !important;
  box-shadow: 
    0 4px 20px rgba(255,107,157,0.35),
    inset 0 1px 0 rgba(255,255,255,0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: send-gradient-shift 4s ease-in-out infinite !important;
}
@keyframes send-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.send-btn:hover, #send-button:hover {
  transform: scale(1.15) rotate(10deg) !important;
  box-shadow: 
    0 6px 30px rgba(255,107,157,0.5),
    0 0 50px rgba(255,107,157,0.25) !important;
}

/* =========================================
   10. 魔法阵加载动画
========================================= */
.magic-loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  gap: 18px;
}
.magic-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: orb-bounce 1.2s ease-in-out infinite;
  position: relative;
}
.magic-orb::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: orb-halo 1.2s ease-in-out infinite;
}
.orb-illya { background: #ff6b9d; box-shadow: 0 0 14px #ffb3d0; animation-delay: 0s; }
.orb-illya::after { background: #ffb3d0; animation-delay: 0s; }
.orb-miyu { background: #9d88ff; box-shadow: 0 0 14px #c9b8ff; animation-delay: 0.2s; }
.orb-miyu::after { background: #c9b8ff; animation-delay: 0.2s; }
.orb-chloe { background: #ff8c42; box-shadow: 0 0 14px #ffc896; animation-delay: 0.4s; }
.orb-chloe::after { background: #ffc896; animation-delay: 0.4s; }

@keyframes orb-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.4); }
}
@keyframes orb-halo {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(2); opacity: 0.3; }
}
.magic-loading-text {
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b9d, #9d88ff, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  animation: text-shimmer 2s ease-in-out infinite;
}
@keyframes text-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}