/* ===== 10-achievements.css : 成就与收藏册系统（赛博朋克版） ===== */
.ach-banner {
  position: fixed; top: 70px; right: 20px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-left: 4px solid var(--cyber-neon-purple);
  border-radius: 2px;
  padding: 12px 18px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
  pointer-events: none;
  max-width: 320px;
}
.ach-banner.show {
  transform: translateX(0);
  opacity: 1;
  animation: achBannerPulse 1.2s ease-in-out infinite;
}
@keyframes achBannerPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255,255,255,0.06); }
  50% { box-shadow: 0 0 36px rgba(168, 85, 247, 0.5), 0 0 60px rgba(236, 72, 153, 0.2), inset 0 1px 0 rgba(255,255,255,0.06); }
}
.ach-banner-icon {
  font-size: 32px; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}
.ach-banner-info { display: flex; flex-direction: column; gap: 2px; }
.ach-banner-label {
  font-size: 10px; color: var(--cyber-neon-purple-soft); font-weight: 700; letter-spacing: 1.5px;
  font-family: var(--cyber-font-display); text-transform: uppercase;
  text-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}
.ach-banner-name {
  font-size: 16px; color: var(--cyber-text-primary); font-weight: 700;
  font-family: var(--cyber-font-display);
}

.ach-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 2, 15, 0.85);
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ach-overlay.open { display: flex; }
.ach-box {
  position: relative;
  background: var(--cyber-bg-panel);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--cyber-border-glow);
  border-radius: 2px;
  padding: 28px 24px 24px;
  width: 92%;
  max-width: 760px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(6, 182, 212, 0.1);
}
.ach-box::before, .ach-box::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--cyber-neon-purple);
  pointer-events: none;
}
.ach-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.ach-box::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.ach-title {
  font-size: 22px; font-weight: 700; color: var(--cyber-neon-purple-soft);
  text-align: center; margin-bottom: 14px;
  text-shadow: var(--cyber-glow-purple);
  font-family: var(--cyber-font-display);
  letter-spacing: 2px;
}
.ach-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
  border-bottom: 1px solid var(--cyber-border);
  padding-bottom: 8px;
}
.ach-tab {
  flex: 1; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(60, 30, 100, 0.4), rgba(30, 15, 60, 0.6));
  border: 1px solid var(--cyber-border);
  border-radius: 4px;
  color: var(--cyber-text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--cyber-font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ach-tab:hover {
  border-color: var(--cyber-neon-purple);
  color: #fff;
  box-shadow: var(--cyber-glow-purple);
}
.ach-tab.active {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.3), rgba(88, 28, 135, 0.5));
  border-color: var(--cyber-neon-purple);
  color: #fff;
  box-shadow: var(--cyber-glow-purple);
}
.ach-body {
  flex: 1; overflow-y: auto; padding-right: 4px;
}
.ach-summary {
  text-align: center; color: var(--cyber-text-secondary); font-size: 12px;
  padding: 8px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  font-family: var(--cyber-font-mono);
}
.ach-section-title {
  font-size: 14px; font-weight: 700; color: var(--cyber-neon-cyan);
  margin: 14px 0 8px; padding-left: 10px;
  border-left: 3px solid var(--cyber-neon-cyan);
  font-family: var(--cyber-font-display);
  text-shadow: var(--cyber-glow-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.ach-card {
  position: relative;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04), rgba(15, 8, 40, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 4px;
  padding: 10px;
  transition: all 0.2s;
}
.ach-card:hover {
  border-color: var(--cyber-border);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(15, 8, 40, 0.4));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.ach-card.locked { opacity: 0.55; filter: grayscale(0.6); }
.ach-card.unlocked {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(88, 28, 135, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.ach-card.claimed {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1), rgba(6, 95, 70, 0.15));
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.ach-card-icon {
  font-size: 24px; text-align: center; margin-bottom: 4px;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6));
}
.ach-card-name {
  font-size: 13px; font-weight: 700; color: var(--cyber-text-primary);
  text-align: center; margin-bottom: 4px;
  font-family: var(--cyber-font-display);
  letter-spacing: 0.3px;
}
.ach-card-desc {
  font-size: 11px; color: var(--cyber-text-secondary); text-align: center;
  margin-bottom: 6px; min-height: 28px;
  line-height: 1.4;
}
.ach-card-progress { margin-bottom: 6px; }
.ach-card-progress-bar {
  height: 4px; background: rgba(0,0,0,0.3); border-radius: 2px;
  overflow: hidden; margin-bottom: 3px;
}
.ach-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-neon-purple), var(--cyber-neon-pink));
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
  transition: width 0.4s;
}
.ach-card.unlocked .ach-card-progress-fill {
  background: linear-gradient(90deg, var(--cyber-neon-green), #059669);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.ach-card.claimed .ach-card-progress-fill {
  background: linear-gradient(90deg, var(--cyber-neon-green), #047857);
}
.ach-card-progress-text {
  font-size: 10px; color: var(--cyber-text-secondary); text-align: center;
  font-family: var(--cyber-font-mono);
}
.ach-card-reward {
  font-size: 10px; color: var(--cyber-neon-gold); text-align: center;
  margin-top: 4px;
  text-shadow: 0 0 4px rgba(251, 191, 36, 0.5);
}
.ach-claim-btn {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.7), rgba(88, 28, 135, 0.9));
  border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: 4px;
  color: #fff; font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--cyber-font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ach-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--cyber-glow-purple);
  border-color: var(--cyber-neon-purple);
}
.ach-claim-btn:active { transform: translateY(0); }
.ach-claimed-mark {
  text-align: center; font-size: 10px; color: var(--cyber-neon-green);
  margin-top: 6px; font-weight: 600;
  text-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
}

.coll-bonus {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
}
.coll-bonus-title {
  font-size: 13px; font-weight: 700; color: var(--cyber-neon-green);
  margin-bottom: 6px;
  font-family: var(--cyber-font-display);
  text-shadow: var(--cyber-glow-cyan);
  letter-spacing: 1px;
}
.coll-bonus-row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 3px 0; color: var(--cyber-text-secondary);
}
.coll-bonus-row b { color: var(--cyber-neon-gold); text-shadow: 0 0 4px rgba(251, 191, 36, 0.5); }
.coll-bonus-hint {
  font-size: 10px; color: var(--cyber-text-muted);
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--cyber-border);
}

/* ===== 成就解锁 Canvas 通知动画样式 ===== */
.achievement-unlock-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 210;
  pointer-events: none;
}

.achievement-glow-pulse {
  animation: achGlowPulse 1.5s ease-in-out infinite;
}

@keyframes achGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 30px rgba(253, 224, 71, 0.5));
  }
}

.achievement-card-fly-in {
  animation: achCardFlyIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes achCardFlyIn {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.achievement-card-fly-out {
  animation: achCardFlyOut 0.4s ease-in forwards;
}

@keyframes achCardFlyOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

