/* 星辰学院 · 童趣温暖风主题（参考：圆润可爱/糖果色/柔和阴影） */

:root {
  --bg-top: #fff8f0;
  --bg-mid: #fff0f5;
  --bg-bot: #f0f7ff;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.9);
  --text-main: #3a3448;
  --text-sub: #7a7389;
  --text-light: #a39bb0;

  --pink: #FF8FB1;
  --pink-soft: rgba(255, 143, 177, 0.14);
  --yellow: #FFD166;
  --yellow-soft: rgba(255, 209, 102, 0.14);
  --blue: #6BCBFF;
  --blue-soft: rgba(107, 203, 255, 0.14);
  --green: #7DEDB8;
  --green-soft: rgba(125, 237, 184, 0.14);
  --purple: #C8A8E9;
  --purple-soft: rgba(200, 168, 233, 0.14);
  --coral: #FF9B85;
  --coral-soft: rgba(255, 155, 133, 0.14);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-soft: 0 6px 18px rgba(120, 110, 140, 0.08);
  --shadow-hover: 0 12px 28px rgba(120, 110, 140, 0.14);
}

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

body.xc-warm {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg-bot) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 图标统一（彩色卡通） ===== */
.xc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}
/* 关键修复：图形撑满画框，避免"框大图形小"的空心感 */
.xc-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: scale(1.2);
  transform-origin: center;
}

/* ===== 口令锁 ===== */
.lock-screen.xc-warm {
  background: linear-gradient(135deg, #fff0f5 0%, #f0f7ff 100%);
}
.lock-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 320px;
  width: 90%;
}
.lock-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 143, 177, 0.3);
  animation: lockFloat 3s ease-in-out infinite;
}
.lock-icon-wrap .xc-ico {
  width: 42px;
  height: 42px;
  color: #fff;
}
.lock-title.xc-warm {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.lock-sub.xc-warm {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.lock-input.xc-warm {
  width: 100%;
  padding: 13px 18px;
  border-radius: 30px;
  border: 2px solid rgba(0,0,0,0.06);
  background: #fff;
  color: var(--text-main);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all .25s;
}
.lock-input.xc-warm:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.lock-btn.xc-warm {
  width: 100%;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 6px 16px rgba(255, 143, 177, 0.32);
}
.lock-btn.xc-warm:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 143, 177, 0.38); }
.lock-btn.xc-warm:active { transform: scale(0.97); }
.lock-error.xc-warm { color: #e64c6c; font-size: 12px; margin-top: 12px; min-height: 18px; }
.lock-hint.xc-warm { color: var(--text-light); font-size: 11px; margin-top: 22px; }

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

/* ===== 主内容 ===== */
.main-content.xc-warm {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 16px 28px;
}
.portal-header.xc-warm {
  text-align: center;
  margin: 10px 0 14px;
}
.hero-scene.xc-warm { margin: 4px auto 6px; }
.hero-scene-img.xc-warm {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(120,110,140,0.14));
  animation: heroFloat 3.6s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.portal-title.xc-warm {
  font-size: 28px;
  font-weight: 800;
  display: inline-block;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portal-sub.xc-warm {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}
/* 灵兽伙伴一排 */
.spirit-row.xc-warm {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 2px;
  max-width: 360px;
  cursor: pointer;
}
.spirit.xc-warm {
  width: 64px;
  height: 64px;
  transition: transform .25s;
  filter: drop-shadow(0 6px 12px rgba(120,110,140,0.12));
}
.spirit-row.xc-warm:hover .spirit.xc-warm { transform: translateY(-4px) scale(1.05); }
.spirit-tip.xc-warm {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===== 数据大屏 ===== */
.dashboard.xc-warm {
  max-width: 400px;
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.dash-title.xc-warm {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-title.xc-warm .xc-ico { width: 16px; height: 16px; }
.dash-grid.xc-warm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-item.xc-warm {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(0,0,0,0.03);
}
.dash-item.xc-warm:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dash-num.xc-warm {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.dash-label.xc-warm {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.dash-label.xc-warm .xc-ico { width: 11px; height: 11px; }

/* ===== 星座入口 ===== */
.constellation-entry.xc-warm {
  max-width: 720px;
  margin: 16px auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(107,203,255,0.12), rgba(200,168,233,0.12));
  border: 1px solid rgba(255,255,255,0.85);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.constellation-entry.xc-warm:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.constellation-title.xc-warm {
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.constellation-title.xc-warm .xc-ico { width: 20px; height: 20px; color: var(--blue); }
.constellation-count.xc-warm {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  margin: 4px 0;
  text-shadow: 0 2px 8px rgba(107,203,255,0.25);
}
.constellation-sub.xc-warm {
  font-size: 11px;
  color: var(--text-sub);
}

/* ===== 分区标题 ===== */
.zone-section.xc-warm {
  max-width: 720px;
  margin: 18px auto 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.zone-section.xc-warm .xc-ico { width: 18px; height: 18px; }
.zone-line.xc-warm {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), transparent);
}

/* ===== 子入口卡片 ===== */
.sub-grid.xc-warm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.sub-card.xc-warm {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 8px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all .25s;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 118px;
}
.sub-card.xc-warm:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.sub-card.xc-warm:active { transform: scale(0.96); }
.sub-icon.xc-warm {
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-icon.xc-warm .xc-ico { width: 32px; height: 32px; }
.sub-name.xc-warm { font-size: 14px; font-weight: 700; }
.sub-tag.xc-warm {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* 图标色板 */
.sub-card.xc-warm:nth-child(odd) .sub-icon.xc-warm { background: var(--pink-soft); color: var(--pink); }
.sub-card.xc-warm:nth-child(even) .sub-icon.xc-warm { background: var(--blue-soft); color: var(--blue); }
.sub-card.xc-warm:nth-child(3n) .sub-icon.xc-warm { background: var(--yellow-soft); color: #E8B923; }
.sub-card.xc-warm:nth-child(4n) .sub-icon.xc-warm { background: var(--green-soft); color: #38C48B; }
.sub-card.xc-warm:nth-child(5n) .sub-icon.xc-warm { background: var(--purple-soft); color: var(--purple); }
.sub-card.xc-warm:nth-child(6n) .sub-icon.xc-warm { background: var(--coral-soft); color: var(--coral); }

/* ===== 信号预览 ===== */
.signal-preview.xc-warm {
  max-width: 720px;
  margin: 16px auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: all .25s;
}
.signal-preview.xc-warm:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.signal-header.xc-warm { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.signal-icon.xc-warm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: signalPulse 2s ease-in-out infinite;
}
.signal-icon.xc-warm .xc-ico { width: 18px; height: 18px; }
.signal-title.xc-warm { font-size: 15px; font-weight: 700; }
.signal-badge.xc-warm {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
  margin-left: auto;
}
.signal-list.xc-warm { margin-top: 6px; }
.signal-item.xc-warm {
  font-size: 12px;
  color: var(--text-sub);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.signal-item.xc-warm:last-child { border-bottom: none; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.signal-dot.new { background: var(--green); box-shadow: 0 0 6px var(--green); }
.signal-dot.old { background: rgba(0,0,0,0.12); }

@keyframes signalPulse { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.12)} }

/* ===== Toast ===== */
.xc-toast.xc-warm {
  background: rgba(58, 52, 72, 0.92);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  font-weight: 500;
}

/* ===== 每日一问模态框 ===== */
.daily-q-modal.xc-warm {
  background: rgba(58, 52, 72, 0.55);
}
.daily-q-content.xc-warm {
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  border: 1px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  color: var(--text-main);
}
.daily-q-close.xc-warm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 12px;
  color: var(--text-sub);
  font-size: 0;
}
.daily-q-close.xc-warm .xc-ico { width: 16px; height: 16px; }
.daily-q-close.xc-warm:hover { background: rgba(0,0,0,0.1); color: var(--text-main); }
.daily-q-badge.xc-warm {
  background: var(--yellow-soft);
  color: #D4A61A;
  font-weight: 700;
}
.daily-q-question.xc-warm {
  color: var(--text-main);
  font-size: 16px;
}
.daily-q-hint.xc-warm {
  background: #fff8e7;
  color: #7a6a4a;
  border-left-color: var(--yellow);
}
.daily-q-followup.xc-warm {
  background: #fff0f5;
  color: #8a5a6e;
  border-left-color: var(--pink);
}
.daily-q-date.xc-warm { color: var(--text-light); }

/* ===== 页脚 ===== */
.portal-footer.xc-warm {
  margin: 32px 0 20px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
}

/* ===== 宠物漫游（温暖气泡） ===== */
.roaming-pet.xc-warm {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(120,110,140,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 背景微调 ===== */
.constellation-bg.xc-warm .ambient-star { background: var(--purple); opacity: .25; }
.constellation-bg.xc-warm .knowledge-star.collected { box-shadow: 0 0 8px 3px var(--star-color, var(--blue)); }
