/* 开发者模式样式 — 发布时删除本文件及 index.html 中的 DEV MODE 区块 */

.dev-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fef08a;
  background: rgba(20, 20, 30, 0.92);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}

.dev-toggle:hover,
.dev-toggle.active {
  opacity: 1;
  transform: scale(1.05);
}

.dev-panel {
  position: fixed;
  right: 1rem;
  bottom: 3.2rem;
  z-index: 9998;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(78vh, 640px);
  background: rgba(16, 14, 28, 0.97);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.dev-panel.open {
  display: flex;
}

.dev-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: rgba(250, 204, 21, 0.08);
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fef08a;
}

.dev-close {
  background: none;
  border: none;
  color: #9a8fc7;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.dev-close:hover {
  color: #fff;
}

.dev-panel-body {
  padding: 0.75rem;
  overflow-y: auto;
}

.dev-section {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dev-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dev-action-btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  color: #e8e6f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
}

.dev-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dev-action-btn.dev-danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dev-grid label {
  font-size: 0.72rem;
  color: #9a8fc7;
}

.dev-input {
  width: 100%;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
  color: #e8e6f0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
}

.dev-apply-btn {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #fef08a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dev-apply-btn:hover {
  background: #fde047;
}
