/* ===== 设置弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 100%;
  max-width: var(--gc-container-width);
  background: var(--gc-background);
  border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 75vh;
  overflow-y: auto;
}
.modal-overlay.show .modal-card {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gc-foreground);
}
.modal-close-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--gc-radius-md);
  border: none;
  background: var(--gc-primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.12s;
}
.modal-close-btn:active { transform: scale(0.98); }

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--gc-radius-md);
  background: var(--gc-card);
  box-shadow: var(--gc-shadow-sm);
}
.setting-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.setting-info { flex: 1; min-width: 0; }
.setting-name { font-size: 14px; font-weight: 700; color: var(--gc-foreground); }
.setting-desc { font-size: 12px; color: var(--gc-muted-foreground); }
.switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--gc-primary);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch.off { background: var(--gc-muted); }
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.switch.off .switch-thumb { transform: translateX(0); }
.switch:not(.off) .switch-thumb { transform: translateX(20px); }

/* ===== 成就详情弹窗 ===== */
.ach-detail-content {
  text-align: center;
  padding: 20px 0;
}
.ach-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ach-detail-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--gc-foreground);
  margin-bottom: 6px;
}
.ach-detail-desc {
  font-size: 14px;
  color: var(--gc-muted-foreground);
  margin-bottom: 16px;
}
.ach-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.ach-detail-status.unlocked {
  background: rgba(34,197,94,0.12);
  color: var(--gc-success);
}
.ach-detail-status.locked {
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
}
.ach-detail-reward {
  font-size: 13px;
  color: var(--gc-warning);
  font-weight: 600;
}
