/* ===== 成就墙页面 ===== */
.achievement-page { padding: 0 16px 80px; }
.achievement-top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.back-btn:active { transform: scale(0.9); }
.achievement-top-title { flex: 1; min-width: 0; }
.achievement-top-title h1 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.achievement-count-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,140,255,0.1);
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.achievement-count-pill .num { font-size: 14px; font-weight: 700; color: var(--gc-primary); }

.ach-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: var(--gc-card);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 20px;
}
.ach-tab {
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s;
}
.ach-tab.active { color: var(--gc-primary); font-weight: 700; }
.ach-tab-bar {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  border-radius: 3px;
  background: var(--gc-primary);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ach-tab.active .ach-tab-bar { transform: translateX(-50%) scaleX(1); }

.ach-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.ach-panel.active {
  display: grid;
  animation: panel-fade 0.3s ease;
}
@keyframes panel-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.achievement-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--gc-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.achievement-card:active { transform: scale(0.96); }
.achievement-card.unlocked {
  box-shadow: var(--gc-shadow-md);
  color: white;
}
.achievement-card.unlocked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: card-shimmer 3.2s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes card-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.achievement-card.locked {
  background: var(--gc-muted);
  border: 1px dashed var(--gc-border);
}
.ach-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.achievement-card.unlocked .ach-card-icon { background: rgba(255,255,255,0.25); }
.achievement-card.locked .ach-card-icon { background: var(--gc-muted); color: var(--gc-muted-foreground); opacity: 0.6; }
.ach-card-name {
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.achievement-card.locked .ach-card-name { color: var(--gc-muted-foreground); opacity: 0.7; }
.ach-card-desc {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}
.achievement-card.locked .ach-card-desc { color: var(--gc-muted-foreground); opacity: 1; }
.ach-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.achievement-card.unlocked .ach-card-badge { background: rgba(255,255,255,0.25); color: white; }
.achievement-card.locked .ach-card-badge { background: var(--gc-muted); color: var(--gc-muted-foreground); }

/* ===== 规则说明卡片 ===== */
.ach-rules-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: var(--gc-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1.5px solid rgba(0,0,0,0.04);
}
.ach-rules-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gc-foreground);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--gc-border);
}
.ach-rules-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ach-rule-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ach-rule-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(79,140,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ach-rule-text { flex: 1; min-width: 0; }
.ach-rule-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gc-foreground);
  margin-bottom: 2px;
}
.ach-rule-desc {
  font-size: 12px;
  color: var(--gc-muted-foreground);
  line-height: 1.5;
}

/* ===== 响应式：平板竖屏（>=768px） ===== */
@media (min-width: 768px) {
  /* 成就页徽章面板：2列 -> 3列 */
  .ach-panel { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ===== 响应式：平板横屏（>=1024px） ===== */
@media (min-width: 1024px) {
  /* 成就页徽章面板：3列 -> 4列 */
  .ach-panel { grid-template-columns: repeat(4, 1fr); }
}
