/* 成就页面样式 */

/* 经验值信息 */
.exp-info {
  margin-left: auto;
  text-align: right;
}

.exp-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.exp-progress {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 0.3s;
}

.exp-text {
  font-size: 11px;
  opacity: 0.9;
}

/* 统计概览 */
.stats-overview {
  display: flex;
  background: #fff;
  padding: 16px;
  margin: 12px 12px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  position: relative;
}

.stat-item:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #d9d9d9;
}

.stat-item.primary .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1890FF;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 4px;
}

.stat-value.up {
  color: #FF4D4F;
}

.stat-label {
  font-size: 13px;
  color: #8C8C8C;
}

/* 模式概览 */
.mode-overview {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.mode-card {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 0;
}

.mode-icon {
  font-size: 24px;
  margin-right: 8px;
  flex-shrink: 0;
}

.mode-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mode-label {
  font-size: 11px;
  color: #8C8C8C;
  margin-bottom: 1px;
}

.mode-value {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

/* 成就区域 */
.achievement-section {
  padding: 0 12px 12px;
}

.section-header {
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.section-subtitle {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

/* 成就列表 */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 成就卡片 */
.achievement-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

.achievement-card.locked {
  opacity: 0.7;
}

.achievement-card.unlocked {
  border-left: 4px solid #52c41a;
  background: linear-gradient(135deg, #f6ffed 0%, #e6f7d4 100%);
}

.achievement-card.locked {
  border-left: 4px solid #d9d9d9;
}

.achievement-icon {
  font-size: 32px;
  margin-right: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 12px;
}

.achievement-card.unlocked .achievement-icon {
  background: linear-gradient(135deg, #52c41a, #95de64);
}

.achievement-content {
  flex: 1;
  min-width: 0;
}

.achievement-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.achievement-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890FF, #36cfc9);
  border-radius: 2px;
  transition: width 0.3s;
}

.achievement-card.unlocked .progress-fill {
  background: #52c41a;
}

.progress-text {
  font-size: 11px;
  color: #999;
  min-width: 40px;
  text-align: right;
}

.achievement-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: 12px;
}

.exp-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.unlock-tag {
  font-size: 11px;
  color: #52c41a;
}

.lock-tag {
  font-size: 11px;
  color: #999;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-text {
  font-size: 14px;
}
