:root {
  /* 主色调 */
  --primary-purple: #6c5ce7;
  --primary-purple-light: #a29bfe;
  --primary-pink: #e84393;
  --primary-pink-light: #fd79a8;
  --accent-yellow: #fdcb6e;
  --accent-blue: #74b9ff;
  
  /* 背景色 */
  --bg-gradient-start: #f0f2f5;
  --bg-gradient-end: #ffffff;
  
  /* 文本颜色 */
  --text-dark: #2d3436;
  --text-medium: #636e72;
  --text-light: #b2bec3;
  
  /* 卡片样式 */
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  --card-radius: 16px;
  
  /* 按钮样式 */
  --btn-radius: 30px;
  --btn-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modern-theme {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-dark);
  min-height: 100vh;
}

/* 卡片样式 */
.modern-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 页面标题栏 */
.page-header {
  padding: 1.5rem 1.5rem 2rem;
  color: white;
  position: relative;
}

.page-header.purple {
  background-color: var(--primary-purple);
}

.page-header.pink {
  background-color: var(--primary-pink);
}

.page-header.blue {
  background-color: var(--accent-blue);
}

/* 天气信息显示 */
.weather-info {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.weather-info i {
  margin-right: 0.5rem;
}

/* 徽章样式 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.purple {
  background-color: var(--primary-purple-light);
  color: white;
}

.badge.pink {
  background-color: var(--primary-pink-light);
  color: white;
}

.badge.yellow {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
}

/* 标签样式 */
.tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag.purple {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-purple);
}

.tag.pink {
  background-color: rgba(232, 67, 147, 0.1);
  color: var(--primary-pink);
}

.tag.yellow {
  background-color: rgba(253, 203, 110, 0.1);
  color: #f39c12;
}

.tag.blue {
  background-color: rgba(116, 185, 255, 0.1);
  color: var(--accent-blue);
}

/* 数据圈样式 */
.data-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: white;
  box-shadow: var(--card-shadow);
}

.data-circle .number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.data-circle .label {
  font-size: 0.7rem;
  color: var(--text-medium);
  margin-top: 0.25rem;
}

/* 进度条样式 */
.progress-container {
  width: 100%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-bar.purple {
  background-color: var(--primary-purple);
}

.progress-bar.pink {
  background-color: var(--primary-pink);
}

.progress-bar.yellow {
  background-color: var(--accent-yellow);
}

.progress-bar.blue {
  background-color: var(--accent-blue);
}

/* 按钮样式 */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--btn-shadow);
  border: none;
  cursor: pointer;
}

.modern-btn.purple {
  background-color: var(--primary-purple);
  color: white;
}

.modern-btn.pink {
  background-color: var(--primary-pink);
  color: white;
}

.modern-btn.yellow {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
}

.modern-btn.blue {
  background-color: var(--accent-blue);
  color: white;
}

.modern-btn.sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.modern-btn.icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-medium);
  font-size: 0.7rem;
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.nav-item.active {
  color: var(--primary-purple);
}

/* 日历样式 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.calendar-day.today {
  background-color: var(--primary-purple);
  color: white;
}

.calendar-day.completed {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary-purple);
}

/* 课程卡片 */
.course-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--card-radius);
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}

.course-card .image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 1rem;
}

.course-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card .content {
  flex: 1;
}

.course-card .title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.course-card .description {
  font-size: 0.8rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .data-circle {
    width: 60px;
    height: 60px;
  }
  
  .data-circle .number {
    font-size: 1.2rem;
  }
  
  .calendar-day {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* 游戏卡片样式 */
.game-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}

.game-card .image {
  width: 100%;
  height: 120px;
  position: relative;
}

.game-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.game-card .content {
  padding: 1rem;
  background-color: white;
}

.game-card .title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.game-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-medium);
}

/* 难度标签 */
.difficulty {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
}

.difficulty.easy {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.difficulty.medium {
  background-color: rgba(255, 193, 7, 0.1);
  color: #FFC107;
}

.difficulty.hard {
  background-color: rgba(244, 67, 54, 0.1);
  color: #F44336;
}

/* 进度环形图 */
.progress-arc {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-arc .percentage {
  position: absolute;
  font-weight: 700;
  font-size: 0.9rem;
}

.progress-arc svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-arc circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-arc .bg {
  stroke: rgba(0,0,0,0.05);
}

.progress-arc .fill {
  stroke: var(--primary-purple);
  stroke-dasharray: 188.5;
  transition: stroke-dashoffset 0.3s ease;
} 