/* ========================================
   积分中心样式
   ======================================== */

/* ---------- 积分展示区 ---------- */
.points-hero {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.points-hero-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 1px;
}

.points-hero-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
}

.points-hero-value::after {
  content: attr(data-points);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.points-hero-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--spacing-xs);
}

/* ---------- 兑换区域 ---------- */
.exchange-card {
  margin-bottom: var(--spacing-md);
}

.exchange-card .card-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.exchange-card .card-title .title-icon {
  font-size: 20px;
}

.exchange-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 10px;
  background: rgba(0, 212, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.exchange-rate .rate-highlight {
  color: var(--accent-blue);
  font-weight: 600;
}

.exchange-input-wrap {
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.exchange-input-wrap .form-input {
  padding-right: 60px;
}

.exchange-input-wrap .input-suffix {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-tertiary);
}

.exchange-quick-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.exchange-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  cursor: pointer;
}

.exchange-quick-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.exchange-quick-btn:active {
  transform: scale(0.96);
}

.exchange-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--spacing-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

.exchange-preview .preview-label {
  color: var(--text-secondary);
}

.exchange-preview .preview-value {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 16px;
}

.exchange-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.exchange-submit-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.exchange-submit-btn:disabled {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- 任务区域 ---------- */
.tasks-section {
  margin-top: var(--spacing-md);
}

.tasks-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.task-card {
  display: flex;
  align-items: center;
  padding: 14px var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.task-card:active {
  background: rgba(26, 31, 46, 0.85);
}

.task-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  font-size: 22px;
  flex-shrink: 0;
}

.task-info {
  flex: 1;
  margin: 0 var(--spacing-sm);
  min-width: 0;
}

.task-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.task-reward {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 500;
}

.task-extra {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.task-action {
  flex-shrink: 0;
}

.task-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.task-btn-claim {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.25);
}

.task-btn-claim:active {
  transform: scale(0.95);
}

.task-btn-done {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  pointer-events: none;
  opacity: 0.7;
}

.task-btn-go {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 2px 10px rgba(240, 194, 127, 0.25);
}

.task-btn-go:active {
  transform: scale(0.95);
}

.task-btn-disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- 进度条 ---------- */
.task-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.task-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---------- 页面滚动区域 ---------- */
.points-page-content {
  padding: var(--spacing-md);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--spacing-xl));
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

/* ---------- 分割线 ---------- */
.points-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--spacing-sm) 0;
}

/* ---------- 动画 ---------- */
@keyframes pointsPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.points-hero-value {
  animation: pointsPulse 3s ease-in-out infinite;
}

.task-card {
  animation: slideUp 0.3s ease backwards;
}

.task-card:nth-child(1) { animation-delay: 0.05s; }
.task-card:nth-child(2) { animation-delay: 0.1s; }
.task-card:nth-child(3) { animation-delay: 0.15s; }
.task-card:nth-child(4) { animation-delay: 0.2s; }
.task-card:nth-child(5) { animation-delay: 0.25s; }
