/* 单词精灵APP全局样式 - 参考现代化学习平台设计 */

/* 全局变量 */
:root {
  --primary-purple: #7C4DFF;
  --primary-pink: #E83E8C;
  --primary-blue: #3E97FF;
  --light-purple: #f8f7ff;
  --light-pink: #FDE8F0;
  --dark-text: #1E2022;
  --gray-text: #71717A;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 基础样式重置 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--light-purple);
  color: var(--dark-text);
  line-height: 1.5;
}

/* 渐变背景 */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* 进度条样式 */
.progress-bar {
  height: 8px;
  border-radius: 4px;
  background-color: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background-color: var(--primary-pink);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: white;
  box-shadow: 0 4px 10px rgba(125, 77, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 14px rgba(125, 77, 255, 0.4);
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pink {
  background-color: var(--light-pink);
  color: var(--primary-pink);
}

/* 头像样式 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

/* 图标容器样式 */
.icon-container {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 虚拟宠物/助手容器 */
.mascot-container {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 圆形指示器 */
.circle-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-pink);
}

/* 导航菜单样式 */
.nav-menu {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  color: var(--gray-text);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.nav-item.active {
  background-color: var(--light-purple);
  color: var(--primary-purple);
}

/* 日程表格样式 */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.day-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* 页面过渡动画 */
.page-transition {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 搜索框样式 */
.search-input {
  background-color: #f3f4f6;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  width: 100%;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(125, 77, 255, 0.1);
}

/* 分类标签样式 */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* 隐藏滚动条但保留功能 */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}