/* 作品集演示专用：账号切换与数据重置，不影响商城原有样式 */
.demo-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  font-family: inherit;
  color: #1f2a26;
}

.demo-dock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(24, 58, 47, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #183a2f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(24, 58, 47, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-dock-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 58, 47, 0.22);
}

.demo-dock-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8f6b;
  box-shadow: 0 0 0 4px rgba(47, 143, 107, 0.14);
}

.demo-dock-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 268px;
  padding: 18px;
  border: 1px solid rgba(24, 58, 47, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(24, 58, 47, 0.24);
  backdrop-filter: blur(14px);
}

.demo-dock-panel[hidden] {
  display: none;
}

.demo-dock-panel strong {
  display: block;
  color: #183a2f;
  font-size: 15px;
  margin-bottom: 4px;
}

.demo-dock-panel p {
  margin: 0 0 14px;
  color: #6b7a73;
  font-size: 12px;
  line-height: 1.6;
}

.demo-dock-actions {
  display: grid;
  gap: 8px;
}

.demo-dock-actions button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(24, 58, 47, 0.16);
  border-radius: 10px;
  background: #f7f9f7;
  color: #183a2f;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.demo-dock-actions button:hover {
  background: #edf4ef;
  border-color: rgba(24, 58, 47, 0.3);
}

.demo-dock-actions button small {
  display: block;
  margin-top: 2px;
  color: #7a8a82;
  font-size: 11px;
  font-weight: 400;
}

.demo-dock-actions button.demo-dock-danger {
  color: #a33a2f;
  border-color: rgba(163, 58, 47, 0.2);
  background: #fdf6f4;
}

.demo-dock-actions button.demo-dock-danger:hover {
  background: #fbece8;
}

.demo-dock-hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(24, 58, 47, 0.14);
  color: #8a978f;
  font-size: 11px;
  line-height: 1.6;
}

.demo-dock-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f0f4f1;
  color: #365a4b;
  font-size: 10px;
}

@media (max-width: 640px) {
  .demo-dock {
    right: 12px;
    bottom: 12px;
  }
  .demo-dock-panel {
    width: min(268px, calc(100vw - 24px));
  }
}
