/* ============================================================
   AI 智能互动体验中心 - 主样式表
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #f2f7fc;
  user-select: none;
  -webkit-user-select: none;
}

/* --- 科幻背景 --- */
.bg-sci-fi {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: url('https://zhidao-1328221956.cos.ap-shanghai.myqcloud.com/materials/5215afc8-c947-408e-b1aa-8cba567ffe99/1780906912283_kvarco.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- 玻璃态卡片 --- */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 2px 5px rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-5px);
}

/* --- 卡片图片容器（带科技感角标） --- */
.image-container {
  position: relative;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 240, 255, 0.5));
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.image-container::before,
.image-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 10;
}

.image-container::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.image-container::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

/* --- 各主题卡片发光边框 --- */

/* 红色 - AI 时光机 */
.card-red {
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.card-red:hover {
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15),
              inset 0 0 20px rgba(239, 68, 68, 0.05);
}

/* 蓝色 - AI 情景化学习 */
.card-blue {
  border: 1px solid rgba(100, 150, 255, 0.3);
}

.card-blue:hover {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15),
              inset 0 0 20px rgba(59, 130, 246, 0.05);
}

/* 绿色 - AI 智慧老师 */
.card-green {
  border: 1px solid rgba(100, 200, 150, 0.3);
}

.card-green:hover {
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15),
              inset 0 0 20px rgba(16, 185, 129, 0.05);
}

/* --- 操作按钮（圆形箭头） --- */
.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s;
}

/* --- 响应式：大屏适配 --- */
@media (min-width: 1536px) {
  .glass-card.2xl\:p-8 {
    padding: 2rem;
  }

  .image-container.2xl\:h-\[340px\] {
    height: 340px;
  }
}

/* --- 底部提示栏 --- */
.footer-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

/* --- 超时覆盖层动画 --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.timeout-overlay {
  animation: fadeIn 0.3s ease;
}
