/* ============================================================
   雾区谜解社 · 赛博多巴胺主题
   Cyberpunk x Dopamine Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Nunito:wght@400;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* 主色调 - 深色赛博基底 */
  --bg: #18182c;
  --bg2: #1f1f3b;
  --bg3: #27274b;
  --bg-card: rgba(39, 39, 75, 0.75);
  --ink: #f0f0ff;
  --ink-dim: #c8c8e8;
  --muted: #7a7aa8;
  --rule: #3a3a67;
  --rule-light: #4a4a87;

  /* 霓虹色 - 赛博核心 */
  --neon-cyan: #00f5ff;
  --neon-pink: #ff3df5;
  --neon-purple: #b14aff;

  /* 多巴胺色 - 活力点缀 */
  --mint: #3ddc97;
  --mint-light: #6ee7b7;
  --sun-yellow: #ffd93d;
  --sun-yellow-light: #ffe66d;
  --coral: #ff6b6b;
  --peach: #ff8e8e;

  /* 字体 */
  --font-title: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* 尺寸 */
  --max-width: 900px;
  --nav-height: 68px;

  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* 阴影 */
  --shadow-cyan: 0 0 12px rgba(0, 245, 255, 0.4), 0 0 30px rgba(0, 245, 255, 0.15);
  --shadow-pink: 0 0 12px rgba(255, 61, 245, 0.4), 0 0 30px rgba(255, 61, 245, 0.15);
  --shadow-mint: 0 0 12px rgba(61, 220, 151, 0.4), 0 0 30px rgba(61, 220, 151, 0.15);
  --shadow-yellow: 0 4px 20px rgba(255, 217, 61, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 1rem);
  font-weight: 500;
}

/* SVG 噪点纹理覆盖层 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9998;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 扫描线（淡化版） */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 245, 255, 0.008) 3px,
    rgba(0, 245, 255, 0.008) 6px
  );
  pointer-events: none;
  z-index: 9999;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 有机Blob背景装饰 */
.blob-bg {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
  width: 300px; height: 300px;
  background: var(--neon-cyan);
  top: -80px; right: -100px;
  animation-duration: 18s;
}

.blob-2 {
  width: 250px; height: 250px;
  background: var(--neon-pink);
  top: 30%; left: -80px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.blob-3 {
  width: 200px; height: 200px;
  background: var(--mint);
  bottom: 20%; right: -60px;
  animation-duration: 25s;
  animation-delay: -10s;
}

.blob-4 {
  width: 180px; height: 180px;
  background: var(--sun-yellow);
  bottom: -40px; left: 30%;
  animation-duration: 19s;
  animation-delay: -15s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-15px, 20px) scale(0.95); }
  75% { transform: translate(25px, 15px) scale(1.02); }
}

/* 通用 */
a { color: var(--neon-cyan); text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; font-weight: 600; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
}

/* ============================================================
   顶部状态栏
   ============================================================ */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, rgba(24, 24, 44, 0.92), rgba(24, 24, 44, 0.75));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.status-bar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.status-bar .logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2s infinite;
}

.status-bar .level-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  background: var(--bg3);
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--rule);
}

.status-bar .level-info .lv {
  color: var(--sun-yellow);
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   底部导航
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  background: rgba(31, 31, 59, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--rule);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  font-family: var(--font-title);
}

.nav-item .icon {
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
  color: var(--mint);
}

.nav-item.active .icon {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(61, 220, 151, 0.6));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--sun-yellow));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--mint);
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

/* ============================================================
   首页：Hero 区域
   ============================================================ */
.home-hero {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  margin: -1.25rem -1.25rem 1.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(0, 245, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255, 61, 245, 0.08), transparent 50%),
    radial-gradient(ellipse at top left, rgba(61, 220, 151, 0.06), transparent 45%),
    var(--bg2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--sun-yellow), var(--neon-pink), var(--mint), transparent);
  box-shadow: 0 0 15px rgba(61, 220, 151, 0.5);
}

.home-hero .greeting {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
}

.home-hero .greeting::before {
  content: '✦ ';
  color: var(--sun-yellow);
}

.home-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mint) 0%, var(--neon-cyan) 40%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 2px 20px rgba(0, 245, 255, 0.2));
}

.home-hero .subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  font-weight: 400;
}

.home-hero .club-slogan {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1rem;
  opacity: 0.8;
}

/* 社团简介 */
.club-intro {
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 61, 245, 0.05));
  border: 1px solid var(--rule);
}

.club-desc {
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.club-desc:last-child {
  margin-bottom: 0;
}

.club-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule);
}

.club-tag {
  padding: 0.3rem 0.65rem;
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--ink-dim);
  font-weight: 600;
  font-family: var(--font-title);
}

/* 经验条 */
.exp-bar-wrap {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  text-align: left;
}

.exp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
}

.exp-bar-label .lv {
  color: var(--sun-yellow);
  font-weight: 800;
}

.exp-bar {
  height: 10px;
  background: var(--bg3);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  position: relative;
}

.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--sun-yellow), var(--neon-pink));
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(61, 220, 151, 0.4);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.exp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   卡片通用样式（带随机旋转）
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 1.75rem 0 1rem;
}

.section-title::before {
  content: '✦';
  color: var(--sun-yellow);
  font-size: 0.8rem;
  text-shadow: 0 0 8px var(--sun-yellow);
}

.section-title .more {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-body);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(-0.5deg);
}

.card:nth-child(even) {
  transform: rotate(0.6deg);
}

.card:nth-child(3n) {
  transform: rotate(-0.8deg);
}

.card:hover {
  border-color: var(--mint);
  transform: rotate(0deg) translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(61, 220, 151, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--sun-yellow), var(--neon-pink));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover::before {
  opacity: 1;
}

/* ============================================================
   紧急任务卡片
   ============================================================ */
.mission-card {
  background: linear-gradient(135deg, rgba(255, 61, 245, 0.08), rgba(255, 217, 61, 0.05));
  border-color: rgba(255, 61, 245, 0.25);
  transform: rotate(-0.6deg);
}

.mission-card::before {
  background: linear-gradient(90deg, var(--coral), var(--sun-yellow), var(--neon-pink));
}

.mission-card .mission-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.mission-card .mission-badge {
  background: linear-gradient(135deg, var(--coral), var(--neon-pink));
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 61, 245, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 61, 245, 0.7); }
}

.mission-card .mission-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.mission-card .mission-desc {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.mission-card .mission-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-title);
  font-weight: 600;
  flex-wrap: wrap;
}

.mission-card .mission-meta span::before {
  content: '● ';
  color: var(--sun-yellow);
  font-size: 0.6rem;
  vertical-align: middle;
}

/* ============================================================
   数据统计卡片
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-item:nth-child(1) { transform: rotate(-1deg); }
.stat-item:nth-child(2) { transform: rotate(0.8deg); }
.stat-item:nth-child(3) { transform: rotate(-0.6deg); }

.stat-item:hover {
  transform: rotate(0) translateY(-3px);
  border-color: var(--mint);
}

.stat-item .stat-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mint), var(--sun-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ============================================================
   案件卡片
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1rem 0.85rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.case-card:nth-child(odd) { transform: rotate(-1deg); }
.case-card:nth-child(even) { transform: rotate(0.8deg); }

.case-card:hover {
  border-color: var(--neon-cyan);
  transform: rotate(0) translateY(-5px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 245, 255, 0.15);
}

.case-card .case-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.case-card .case-name {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.case-card .case-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.case-card .case-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-title);
}

.case-tag.easy { background: rgba(61, 220, 151, 0.15); color: var(--mint); }
.case-tag.medium { background: rgba(255, 217, 61, 0.15); color: var(--sun-yellow); }
.case-tag.hard { background: rgba(255, 107, 107, 0.15); color: var(--coral); }
.case-tag.cross { background: rgba(177, 74, 255, 0.15); color: var(--neon-purple); }

.case-card.done::after {
  content: '✓ 已结';
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.65rem;
  color: var(--mint);
  font-weight: 700;
  font-family: var(--font-title);
  background: rgba(61, 220, 151, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.case-card.locked {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.case-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.9rem;
}

.case-card.empty {
  opacity: 0.6;
  cursor: default;
}

.case-card.empty:hover {
  transform: none;
  border-color: var(--rule);
}

.case-card.solved-case {
  border-color: rgba(61, 220, 151, 0.3);
}

.case-card.solved-case:hover {
  border-color: var(--mint);
}

.case-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
}

.case-card.solved-case .case-meta span:last-child {
  color: var(--mint);
  font-weight: 600;
}

/* ============================================================
   角色展示区
   ============================================================ */
.character-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
  scrollbar-width: none;
}

.character-row::-webkit-scrollbar { display: none; }

.char-card {
  flex-shrink: 0;
  width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.1rem 0.9rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.char-card:nth-child(odd) { transform: rotate(-1.5deg); }
.char-card:nth-child(even) { transform: rotate(1deg); }

.char-card:hover {
  border-color: var(--neon-cyan);
  transform: rotate(0) translateY(-4px) scale(1.03);
}

.char-card .char-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.25);
  background: var(--bg3);
  transition: all 0.3s;
}

.char-card.pink .char-avatar { border-color: var(--neon-pink); box-shadow: 0 0 16px rgba(255, 61, 245, 0.25); }
.char-card.yellow .char-avatar { border-color: var(--sun-yellow); box-shadow: 0 0 16px rgba(255, 217, 61, 0.25); }

.char-card:hover .char-avatar {
  transform: scale(1.1);
}

.char-card .char-name {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.char-card .char-role {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== 大成员卡片（核心成员板块用） ===== */
.char-card-big {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.char-card-big:nth-child(odd) { transform: rotate(-1deg); }
.char-card-big:nth-child(even) { transform: rotate(1deg); }

.char-card-big:hover {
  border-color: var(--neon-cyan);
  transform: rotate(0) translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 245, 255, 0.15);
}

.char-card-big .char-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  background: var(--bg3);
  transition: all 0.3s;
}

.char-card-big.pink .char-avatar-big { 
  border-color: var(--neon-pink); 
  box-shadow: 0 0 20px rgba(255, 61, 245, 0.3); 
}
.char-card-big.yellow .char-avatar-big { 
  border-color: var(--sun-yellow); 
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.3); 
}

.char-card-big:hover .char-avatar-big {
  transform: scale(1.1);
}

.char-card-big .char-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.char-card-big .char-role {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

.char-card-big.pink .char-role { color: var(--neon-pink); }
.char-card-big.yellow .char-role { color: var(--sun-yellow); }

.char-card-big .char-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  line-height: 1.3;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-title);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(61, 220, 151, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(61, 220, 151, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--mint);
  border: 2px solid var(--mint);
}

.btn-secondary:hover {
  background: rgba(61, 220, 151, 0.1);
  box-shadow: 0 4px 20px rgba(61, 220, 151, 0.2);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ============================================================
   成就徽章
   ============================================================ */
.badge-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.badge-row::-webkit-scrollbar { display: none; }

.badge-item {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  transition: all 0.3s;
}

.badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg3);
  border: 2px solid var(--rule);
  transition: all 0.3s;
}

.badge-item.unlocked .badge-icon {
  border-color: var(--sun-yellow);
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 61, 245, 0.1));
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
  animation: badge-bounce 3s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.badge-item .badge-name {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.badge-item.unlocked .badge-name {
  color: var(--sun-yellow);
  font-weight: 700;
}

/* 能力成长面板 */
.ability-panel {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ability-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ability-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ability-icon {
  font-size: 1rem;
}

.ability-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
}

.ability-val {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.ability-bar {
  height: 6px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.ability-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.ability-fill.observation { background: linear-gradient(90deg, var(--neon-cyan), #00d4ff); }
.ability-fill.logic { background: linear-gradient(90deg, var(--neon-pink), #ff6bd6); }
.ability-fill.calc { background: linear-gradient(90deg, var(--sun-yellow), #ffed4a); }
.ability-fill.transfer { background: linear-gradient(90deg, var(--mint), #5ef0b8); }
.ability-fill.team { background: linear-gradient(90deg, #a855f7, #c084fc); }

/* ============================================================
   案件列表页
   ============================================================ */
.page-header {
  padding: 1.25rem;
  margin: -1.25rem -1.25rem 1.25rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-header h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-weight: 900;
}

.page-header p {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--rule);
  transition: all 0.25s;
  font-weight: 600;
  font-family: var(--font-title);
}

.filter-tab.active {
  color: var(--bg);
  border-color: transparent;
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(61, 220, 151, 0.3);
}

.case-list-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  transform: rotate(-0.3deg);
}

.case-list-item:nth-child(even) {
  transform: rotate(0.4deg);
}

.case-list-item:hover {
  border-color: var(--mint);
  transform: rotate(0) translateX(4px);
  box-shadow: 0 8px 28px rgba(61, 220, 151, 0.12);
}

.case-list-item .case-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.case-list-item .case-info {
  flex: 1;
  min-width: 0;
}

.case-list-item .case-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-list-item .case-title .case-tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-title);
}

.case-list-item .case-desc {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin-bottom: 0.65rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.case-list-item .case-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}

/* ============================================================
   档案库
   ============================================================ */
.archive-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule);
}

.archive-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-radius: 10px;
  transition: all 0.25s;
  font-weight: 600;
  font-family: var(--font-title);
}

.archive-tab.active {
  background: linear-gradient(135deg, var(--bg3), var(--bg-card));
  color: var(--mint);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.archive-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.archive-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

.archive-item .archive-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg3);
}

.archive-item.pending .archive-icon { color: var(--coral); }
.archive-item.review .archive-icon { color: var(--sun-yellow); }
.archive-item.done .archive-icon { color: var(--mint); }

.archive-item .archive-info {
  flex: 1;
}

.archive-item .archive-name {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-title);
  margin-bottom: 0.15rem;
}

.archive-item .archive-meta {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.archive-item .archive-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.archive-item.pending .archive-status { background: rgba(255, 107, 107, 0.15); color: var(--coral); }
.archive-item.review .archive-status { background: rgba(255, 217, 61, 0.15); color: var(--sun-yellow); }
.archive-item.done .archive-status { background: rgba(61, 220, 151, 0.15); color: var(--mint); }

/* ============================================================
   游戏页面
   ============================================================ */
.game-container {
  padding: 0;
  position: relative;
  z-index: 1;
}

/* 案件现场场景 */
.crime-scene {
  position: relative;
  height: 280px;
  background:
    linear-gradient(180deg, rgba(24, 24, 44, 0.2), rgba(24, 24, 44, 0.92)),
    radial-gradient(ellipse at center, rgba(0, 245, 255, 0.08), transparent 70%),
    var(--bg2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.crime-scene .scene-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.25;
  padding-bottom: 3rem;
}

.crime-scene .scene-title {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

.crime-scene .scene-title h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.crime-scene .scene-title p {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 0.95rem;
}

/* 热点标记 */
.hotspot {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 217, 61, 0.2);
  border: 3px solid var(--sun-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: hotspot-pulse 2s infinite;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotspot::after {
  content: '?';
  color: var(--sun-yellow);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-title);
}

.hotspot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(255, 217, 61, 0.6);
}

.hotspot.found {
  background: rgba(61, 220, 151, 0.2);
  border-color: var(--mint);
  animation: none;
}

.hotspot.found::after {
  content: '✓';
  color: var(--mint);
  font-size: 1rem;
}

@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(255, 217, 61, 0); }
}

@keyframes hotspot-appear {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* 线索收集进度 */
.clue-progress {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  z-index: 2;
  background: var(--bg-card);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}

.clue-progress .bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}

.clue-progress .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--sun-yellow));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.4);
}

/* 线索板 */
.clue-board {
  padding: 1.25rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
}

.clue-board h4 {
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.clue-board h4::before {
  content: '✦';
  color: var(--neon-pink);
  font-size: 0.7rem;
}

.clue-list {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
}

.clue-list::-webkit-scrollbar { display: none; }

.clue-card {
  flex-shrink: 0;
  width: 95px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.clue-card.new {
  border-color: var(--sun-yellow);
  animation: clue-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(255, 217, 61, 0.2);
}

@keyframes clue-pop {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.clue-card .clue-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.clue-card .clue-name {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-title);
}

/* 对话区域 */
.dialogue-area {
  padding: 1.25rem;
  min-height: 300px;
}

.dialogue-message {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  animation: msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-items: flex-start;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialogue-message.student {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--bg3);
  border: 2px solid var(--rule);
}

.dialogue-message.chenmo .msg-avatar { border-color: var(--neon-cyan); }
.dialogue-message.suye .msg-avatar { border-color: var(--neon-pink); }
.dialogue-message.nova .msg-avatar { border-color: var(--sun-yellow); }
.dialogue-message.student .msg-avatar { border-color: var(--mint); }

.msg-bubble {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  animation: msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-bubble.student-msg {
  flex-direction: row-reverse;
}

.msg-text {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 500;
  background: var(--bg3);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-top-left-radius: 4px;
  max-width: 75%;
}

.msg-bubble.student-msg .msg-text {
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  color: var(--bg);
  border-top-right-radius: 4px;
  border-top-left-radius: 14px;
  font-weight: 600;
}

.msg-content {
  flex: 1;
  min-width: 0;
}

.dialogue-message.chenmo .msg-bubble {
  display: block;
  max-width: 75%;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--bg3);
  border: 1px solid var(--neon-cyan);
  color: var(--ink);
  border-top-left-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 500;
}

.dialogue-message.suye .msg-bubble {
  display: block;
  max-width: 75%;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--bg3);
  border: 1px solid var(--neon-pink);
  color: var(--ink);
  border-top-left-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 500;
}

.dialogue-message.nova .msg-bubble {
  display: block;
  max-width: 75%;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: var(--bg3);
  border: 1px solid var(--sun-yellow);
  color: var(--ink);
  border-top-left-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 500;
}

.dialogue-message.student .msg-bubble {
  display: block;
  max-width: 75%;
  margin-bottom: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  color: var(--bg);
  border-top-right-radius: 4px;
  border-top-left-radius: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.55;
}

.msg-name {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
  font-family: var(--font-title);
}

.dialogue-message.chenmo .msg-name { color: var(--neon-cyan); }
.dialogue-message.suye .msg-name { color: var(--neon-pink); }
.dialogue-message.nova .msg-name { color: var(--sun-yellow); }

/* 角色专属对话气泡配色 */
.msg-bubble.chenmo .msg-text {
  border-color: var(--neon-cyan);
}

.msg-bubble.suye .msg-text {
  border-color: var(--neon-pink);
}

.msg-bubble.nova .msg-text {
  border-color: var(--sun-yellow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.msg-bubble.chenmo .msg-name,
.msg-bubble.suye .msg-name,
.msg-bubble.nova .msg-name {
  color: var(--ink-dim);
}

.msg-bubble.chenmo .msg-name { color: var(--neon-cyan); }
.msg-bubble.suye .msg-name { color: var(--neon-pink); }
.msg-bubble.nova .msg-name { color: var(--sun-yellow); }

/* 打字动画 */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.2rem 0;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* 选项按钮 */
.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.choice-btn {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.88rem;
  text-align: left;
  transition: all 0.25s;
  font-weight: 500;
  font-family: var(--font-body);
  backdrop-filter: blur(10px);
}

.choice-btn:hover {
  border-color: var(--mint);
  background: rgba(61, 220, 151, 0.08);
  transform: translateX(4px);
}

/* 输入框 */
.input-area {
  position: sticky;
  bottom: var(--nav-height);
  left: 0; right: 0;
  padding: 0.85rem 1.25rem;
  background: rgba(31, 31, 59, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.6rem;
  z-index: 50;
}

.input-area input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.25s;
  font-weight: 500;
}

.input-area input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.15);
}

.input-area input::placeholder {
  color: var(--muted);
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 800;
}

.send-btn:hover {
  box-shadow: 0 4px 20px rgba(61, 220, 151, 0.4);
  transform: scale(1.05);
}

/* 麦克风按钮 */
.mic-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg3);
  border: 1px solid var(--rule);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mic-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(61, 220, 151, 0.1);
}

.mic-btn.recording {
  background: linear-gradient(135deg, var(--neon-pink), var(--coral));
  border-color: var(--neon-pink);
  color: white;
  animation: mic-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 61, 245, 0.4);
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mic-btn.recording::after {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  border: 2px solid var(--neon-pink);
  animation: mic-ripple 1.2s ease-out infinite;
}

@keyframes mic-ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   结案报告
   ============================================================ */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(10px);
}

.report-section h3 {
  font-size: 1rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}

.report-section h3::before {
  content: '▸';
  color: var(--neon-pink);
}

.report-field {
  margin-bottom: 1rem;
}

.report-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: var(--font-title);
}

.report-field textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.88rem;
  font-family: var(--font-body);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s;
  font-weight: 500;
}

.report-field textarea:focus {
  border-color: var(--mint);
}

.report-result {
  text-align: center;
  padding: 2rem 1.5rem;
}

.report-result .result-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: result-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-pop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.report-result .result-title {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--sun-yellow), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.report-result .result-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.result-stat {
  background: var(--bg3);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.result-stat .num {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.result-stat .label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-cyan { color: var(--neon-cyan); }
.text-pink { color: var(--neon-pink); }
.text-mint { color: var(--mint); }
.text-yellow { color: var(--sun-yellow); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--mint);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 0 60px rgba(61, 220, 151, 0.2), 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

@keyframes modal-in {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal h3 {
  font-size: 1.2rem;
  color: var(--mint);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 800;
}

.modal p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* 响应式 */
@media (min-width: 520px) {
  body {
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    box-shadow: 0 0 80px rgba(0, 245, 255, 0.05);
  }
}

/* ============================================================
   突发新闻卡片
   ============================================================ */
.breaking-news-title {
  animation: pulse-red 2s infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff3355;
  border-radius: 50%;
  margin-left: 0.5rem;
  animation: blink-dot 1s infinite;
  box-shadow: 0 0 10px #ff3355;
}

@keyframes pulse-red {
  0%, 100% { border-color: rgba(255, 51, 85, 0.3); }
  50% { border-color: rgba(255, 51, 85, 0.6); }
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.breaking-news-card {
  border-color: rgba(255, 51, 85, 0.4);
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.08), rgba(20, 30, 55, 0.8));
  cursor: pointer;
  transition: all 0.3s;
}

.breaking-news-card:hover {
  border-color: #ff3355;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 51, 85, 0.2);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.news-badge {
  background: #ff3355;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  animation: blink-dot 1.5s infinite;
}

.news-time {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.news-weather {
  font-size: 0.8rem;
  color: var(--sun-yellow);
}

.news-headline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.news-subheadline {
  font-size: 0.9rem;
  color: var(--neon-pink);
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid #ff3355;
}

.news-preview-item {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-family: 'Quicksand', sans-serif;
}

.news-preview-item:last-child {
  margin-bottom: 0;
}

.news-cta {
  text-align: right;
}

.news-cta-text {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

/* ============================================================
   场景化案件介绍模态框
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #050810;
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.intro-overlay.active {
  display: flex;
  animation: fade-in 0.5s ease;
}

.intro-modal {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 办公室场景背景 */
.office-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.scene-rain {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      100deg,
      transparent,
      transparent 10px,
      rgba(0, 245, 255, 0.03) 10px,
      rgba(0, 245, 255, 0.03) 11px
    );
  animation: rain-move 0.8s linear infinite;
  opacity: 0.6;
}

@keyframes rain-move {
  from { transform: translateY(-20px); }
  to { transform: translateY(20px); }
}

.scene-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.scene-hud {
  position: absolute;
  inset: 1rem;
  pointer-events: none;
}

.hud-line {
  position: absolute;
  background: rgba(0, 245, 255, 0.2);
}

.hud-line:nth-child(1) {
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
}
.hud-line:nth-child(1)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 60px;
  background: rgba(0, 245, 255, 0.2);
}

.hud-line:nth-child(2) {
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
}
.hud-line:nth-child(2)::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2px;
  height: 60px;
  background: rgba(0, 245, 255, 0.2);
}

/* 对话区域 */
.intro-dialogue {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.intro-msg {
  display: flex;
  gap: 0.8rem;
  opacity: 0;
  animation: msg-appear 0.5s ease forwards;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-msg.system {
  justify-content: center;
}

.intro-msg.system .intro-bubble {
  background: rgba(255, 217, 61, 0.15);
  border: 1px solid rgba(255, 217, 61, 0.3);
  color: var(--sun-yellow);
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

.intro-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.intro-msg.nova .intro-avatar {
  background: rgba(255, 217, 61, 0.15);
  border: 2px solid var(--sun-yellow);
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.2);
}

.intro-msg.chenmo .intro-avatar {
  background: rgba(0, 245, 255, 0.15);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.intro-msg.suye .intro-avatar {
  background: rgba(255, 61, 245, 0.15);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 61, 245, 0.2);
}

.intro-bubble-wrap {
  flex: 1;
  min-width: 0;
}

.intro-name {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 0.3rem;
}

.intro-msg.nova .intro-name { color: var(--sun-yellow); }
.intro-msg.chenmo .intro-name { color: var(--neon-cyan); }
.intro-msg.suye .intro-name { color: var(--neon-pink); }

.intro-bubble {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
  font-family: 'Quicksand', sans-serif;
  backdrop-filter: blur(10px);
}

.intro-bubble.typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.8rem 1rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.intro-bubble.news-block {
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.1), rgba(20, 30, 55, 0.9));
  border-color: rgba(255, 51, 85, 0.4);
}

.news-block-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: #ff3355;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-block-title::before {
  content: '●';
  animation: blink-dot 1s infinite;
}

.news-block-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.news-block-body .highlight {
  color: var(--neon-pink);
  font-weight: 700;
}

.intro-bubble.golden-quote {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(20, 30, 55, 0.9));
  border-color: rgba(0, 245, 255, 0.5);
  text-align: center;
  padding: 1.5rem;
}

.golden-quote-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.5;
}

.golden-quote-attr {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* 用户选择/回复 */
.intro-choices {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.intro-choice {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.intro-choice:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--neon-cyan);
  transform: translateX(4px);
}

/* 底部按钮 */
.intro-actions {
  padding: 1rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.btn-intro {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
}

/* ============================================================
   结案对话界面
   ============================================================ */
.case-complete-overlay {
  background: linear-gradient(180deg, #050810 0%, #0a0e1a 100%);
  padding: 0;
}

.case-complete-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
}

.complete-dialogue {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}

.complete-msg {
  display: flex;
  gap: 0.8rem;
  animation: msg-appear 0.5s ease forwards;
  opacity: 0;
}

.complete-msg.system {
  justify-content: center;
}

.complete-bubble.system {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), rgba(255, 61, 245, 0.2));
  border: 1px solid rgba(255, 217, 61, 0.4);
  color: var(--sun-yellow);
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  letter-spacing: 0.05em;
}

.complete-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.complete-msg.chenmo .complete-avatar {
  background: rgba(0, 245, 255, 0.15);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}
.complete-msg.suye .complete-avatar {
  background: rgba(255, 61, 245, 0.15);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 61, 245, 0.3);
}
.complete-msg.nova .complete-avatar {
  background: rgba(255, 217, 61, 0.15);
  border: 2px solid var(--sun-yellow);
  box-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
}

.complete-bubble-wrap {
  flex: 1;
  min-width: 0;
}

.complete-name {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 0.3rem;
}

.complete-msg.chenmo .complete-name { color: var(--neon-cyan); }
.complete-msg.suye .complete-name { color: var(--neon-pink); }
.complete-msg.nova .complete-name { color: var(--sun-yellow); }

.complete-bubble {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
  font-family: 'Quicksand', sans-serif;
  backdrop-filter: blur(10px);
}

.complete-msg.chenmo .complete-bubble strong {
  color: var(--neon-cyan);
}

/* 奖励卡片 */
.complete-reward-card {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 217, 61, 0.08));
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  margin: 0.5rem 0;
  animation: reward-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes reward-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reward-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.8rem;
}

.reward-item {
  text-align: center;
}

.r-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-cyan), var(--sun-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.r-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  margin-top: 0.2rem;
}

.reward-badges {
  font-size: 0.85rem;
  color: var(--mint);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.complete-actions {
  display: flex;
  gap: 0.8rem;
  padding-top: 1rem;
  animation: fade-in 0.5s ease;
}

/* ============================================================
   首页重设计：Hero
   ============================================================ */
.new-hero {
  position: relative;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  margin: -1.25rem -1.25rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 245, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 61, 245, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(61, 220, 151, 0.06), transparent),
    var(--bg2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.new-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--sun-yellow), var(--neon-pink), transparent);
  opacity: 0.6;
}

.new-hero .hero-brand {
  position: relative;
  z-index: 1;
}

.new-hero .hero-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
  animation: hero-float 3s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.new-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.2rem 0;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(255, 61, 245, 0.3), 0 0 80px rgba(0, 245, 255, 0.15);
}

.new-hero .hero-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.new-hero .hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--ink-dim);
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.new-hero .hero-intro {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* 玩法介绍标签按钮 */
.how-to-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0.5rem;
}

.how-to-play-btn:hover {
  color: var(--mint);
  border-color: var(--mint);
  background: rgba(61, 220, 151, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 220, 151, 0.2);
}

.how-to-play-btn .icon {
  font-size: 1rem;
}

/* ============================================================
   首页重设计：核心案件卡片
   ============================================================ */
.featured-section {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem;
  margin-top: -1rem;
}

.featured-case-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 51, 85, 0.1), rgba(20, 30, 60, 0.85), rgba(0, 245, 255, 0.05));
  border: 1px solid rgba(255, 51, 85, 0.4);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(255, 51, 85, 0.15), 0 0 60px rgba(0, 0, 0, 0.2);
}

.featured-case-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3355, #ff6b6b, #ff3355, transparent);
  animation: featured-glow 3s ease-in-out infinite;
}

@keyframes featured-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.featured-case-card:hover {
  transform: translateY(-4px);
  border-color: #ff3355;
  box-shadow: 0 16px 60px rgba(255, 51, 85, 0.25), 0 0 80px rgba(255, 51, 85, 0.1);
}

.featured-case-card .featured-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.featured-case-card .featured-live {
  background: #ff3355;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  animation: blink-dot 1.5s infinite;
}

.featured-case-card .featured-time {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}

.featured-case-card .featured-weather {
  font-size: 0.82rem;
  color: var(--sun-yellow);
  margin-left: auto;
}

.featured-case-card .featured-headline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.featured-case-card .featured-subhead {
  font-size: 0.9rem;
  color: var(--neon-pink);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Quicksand', sans-serif;
}

.featured-case-card .featured-facts {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid #ff3355;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.featured-case-card .featured-fact {
  font-size: 0.88rem;
  color: var(--ink-dim);
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}

.featured-case-card .featured-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-case-card .featured-cta-text {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.featured-case-card .featured-cta-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 61, 245, 0.3);
}

.featured-case-card:hover .featured-cta-arrow {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255, 61, 245, 0.5);
}

/* ============================================================
   首页重设计：核心成员
   ============================================================ */
.members-compact {
  padding: 0 1.25rem;
  margin-top: 1.5rem;
}

.members-compact .section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.members-compact .section-head::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--neon-pink);
  border-radius: 2px;
}

.members-compact .members-row {
  display: flex;
  gap: 0.75rem;
}

.members-compact .member-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.members-compact .member-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.12);
}

.members-compact .member-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: rgba(39, 39, 75, 0.6);
  border: 2px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.member-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 61, 245, 0.08));
  position: relative;
}

.member-avatar-placeholder::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
}

/* 头像图片通用样式 */
.avatar-img,
.msg-avatar-img,
.complete-avatar-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* 对话头像容器覆盖 */
.msg-avatar.chenmo,
.msg-avatar.suye,
.msg-avatar.nova {
  padding: 0;
  overflow: hidden;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

.complete-avatar {
  overflow: hidden;
}

.intro-avatar {
  overflow: hidden;
}

.members-compact .member-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.members-compact .member-role {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  margin-top: 0.15rem;
}

/* ============================================================
   首页重设计：破案记录
   ============================================================ */
.records-compact {
  padding: 0 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.records-compact .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.records-compact .section-head::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--mint);
  border-radius: 2px;
  margin-right: 0.5rem;
}

.records-compact .section-head .count {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.records-compact .records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.records-compact .record-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.records-compact .record-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.records-compact .record-card.empty {
  opacity: 0.5;
  cursor: default;
}

.records-compact .record-card.empty:hover {
  transform: none;
  border-color: var(--rule);
}

.records-compact .record-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.records-compact .record-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.records-compact .record-sub {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
  font-family: 'Quicksand', sans-serif;
}

/* ============================================================
   玩法介绍弹窗
   ============================================================ */
.how-to-play-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease;
}

.how-to-play-card {
  background: var(--bg2);
  border: 1px solid var(--mint);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(61, 220, 151, 0.2), 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-to-play-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mint);
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.gameplay-step {
  display: flex;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.gameplay-step:last-child {
  border-bottom: none;
}

.gameplay-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bg);
  flex-shrink: 0;
}

.gameplay-step .step-info {
  flex: 1;
}

.gameplay-step .step-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.gameplay-step .step-desc {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  line-height: 1.5;
}

/* ============================================================
   我的页面
   ============================================================ */
.my-page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: fade-in 0.3s ease;
}

.my-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(24, 24, 44, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.my-page-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.my-page-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.my-page-close:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
}

.my-page-body {
  flex: 1;
  padding: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* 玩家信息卡片 */
.my-player-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.my-player-card .player-avatar {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.my-player-card .player-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}

.my-player-card .player-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: var(--sun-yellow);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.my-player-card .player-joined {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
}

/* 经验条 */
.my-exp-wrap {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.my-exp-wrap .exp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.my-exp-wrap .exp-label .lv {
  color: var(--sun-yellow);
  font-family: 'Orbitron', sans-serif;
}

.my-exp-wrap .exp-bar {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.my-exp-wrap .exp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--neon-cyan));
  border-radius: 4px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgba(61, 220, 151, 0.4);
}

/* 统计 */
.my-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.my-stat {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.my-stat .stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mint), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.my-stat .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

/* 徽章 */
.my-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.05em;
}

.my-section-title .more {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.my-badges {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.my-badges::-webkit-scrollbar { display: none; }

.my-badge-item {
  flex-shrink: 0;
  width: 62px;
  text-align: center;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.my-badge-item.unlocked {
  opacity: 1;
  filter: none;
}

.my-badge-item .badge-icon {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.my-badge-item .badge-name {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.my-badge-item.unlocked .badge-name {
  color: var(--sun-yellow);
  font-weight: 700;
}

/* 能力 */
.my-abilities {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.my-ability {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.my-ability .ability-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.my-ability .ability-icon {
  font-size: 1rem;
}

.my-ability .ability-name {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.my-ability .ability-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.my-ability .ability-bar {
  height: 6px;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.my-ability .ability-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.my-ability .ability-fill.cyan { background: linear-gradient(90deg, var(--neon-cyan), #00d4ff); }
.my-ability .ability-fill.pink { background: linear-gradient(90deg, var(--neon-pink), #ff6bd6); }
.my-ability .ability-fill.yellow { background: linear-gradient(90deg, var(--sun-yellow), #ffed4a); }
.my-ability .ability-fill.mint { background: linear-gradient(90deg, var(--mint), #5ef0b8); }
.my-ability .ability-fill.purple { background: linear-gradient(90deg, #a855f7, #c084fc); }

.my-page-footer {
  padding: 1rem 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.my-page-footer .reset-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  padding: 0.5rem;
  transition: color 0.2s;
}

.my-page-footer .reset-link:hover {
  color: var(--coral);
}

/* ============================================================
   浮动提示箭头
   ============================================================ */
.floating-hint {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.3rem;
  animation: hint-fade-in 0.6s ease 1.5s both;
}

.floating-hint-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 51, 85, 0.1);
  border: 1px solid rgba(255, 51, 85, 0.3);
  border-radius: 24px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dim);
  animation: hint-pulse 2s ease-in-out infinite;
}

.floating-hint-arrow {
  font-size: 1.2rem;
  animation: hint-bounce 1.2s ease-in-out infinite;
}

.floating-hint.fading {
  animation: hint-fade-out 0.5s ease forwards;
}

@keyframes hint-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hint-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes hint-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 51, 85, 0); }
  50% { box-shadow: 0 0 16px rgba(255, 51, 85, 0.25), 0 0 40px rgba(255, 51, 85, 0.08); }
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-3px); }
}
