body {
  margin: 0;
  padding: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #fff;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(180, 245, 220, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(200, 240, 255, 0.5) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(230, 255, 200, 0.4) 0%, transparent 50%);
  animation: breatheBg 8s ease-in-out infinite;
}

/* create.html 页面：渐变只在首屏 */
body.create-page::before {
  position: absolute;
  height: 100vh;
  bottom: auto;
}

/* my-agents.html 页面：禁用渐变背景 */
body.no-gradient::before {
  display: none;
}

@keyframes breatheBg {
  0%, 100% {
    background-image: 
      radial-gradient(circle at 15% 20%, rgba(180, 245, 220, 0.6) 0%, transparent 40%),
      radial-gradient(circle at 85% 10%, rgba(200, 240, 255, 0.5) 0%, transparent 35%),
      radial-gradient(circle at 50% 50%, rgba(230, 255, 200, 0.4) 0%, transparent 50%);
  }
  33% {
    background-image: 
      radial-gradient(circle at 20% 25%, rgba(180, 245, 220, 0.55) 0%, transparent 42%),
      radial-gradient(circle at 80% 15%, rgba(200, 240, 255, 0.45) 0%, transparent 38%),
      radial-gradient(circle at 55% 45%, rgba(230, 255, 200, 0.35) 0%, transparent 48%);
  }
  66% {
    background-image: 
      radial-gradient(circle at 12% 18%, rgba(180, 245, 220, 0.65) 0%, transparent 38%),
      radial-gradient(circle at 88% 8%, rgba(200, 240, 255, 0.55) 0%, transparent 32%),
      radial-gradient(circle at 45% 55%, rgba(230, 255, 200, 0.45) 0%, transparent 52%);
  }
}

.header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
.header-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: #059669;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.1);
}
.header-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #111827;
}
.header-nav {
  display: none;
  gap: 2.5rem;
  font-size: 16px;
  font-weight: 600;
  color: #9ca3af;
}
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}
.header-nav a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: #059669;
}
.header-nav a.active {
  color: #191919;
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.header-icon-btn {
  padding: 0.625rem;
  color: #9ca3af;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.header-icon-btn:hover {
  color: #059669;
}
.header-dropdown-wrap {
  position: relative;
}
.header-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 20rem;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 60;
  transform-origin: top right;
}
.header-dropdown-wrap:hover .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-dropdown-title {
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-dropdown-title span {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
}
.header-dropdown-link {
  font-size: 14px;
  color: #06b4a2;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}
.header-dropdown-link:hover {
  opacity: 0.7;
}
.header-dropdown-divider {
  height: 1px;
  background: #f9fafb;
  margin: 0 1rem 0.5rem;
}
.header-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 20px;
  transition: background 0.2s;
  text-decoration: none;
}
.header-dropdown-item:hover {
  background: #f9fafb;
}
.header-dropdown-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.header-dropdown-item:hover svg {
  color: #06b4a2;
}
.header-dropdown-item span {
  font-size: 16px;
  color: #4b5563;
  font-weight: 500;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}
.header-dropdown-item:hover span {
  color: #111827;
}
.header-btn {
  background: transparent;
  color: #191919;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #191919;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.header-btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.header-btn-primary {
  background: #191919;
  color: white;
  border-color: #191919;
}
.header-btn-primary:hover {
  background: #1f2937;
}
.header-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background: #06b4a2;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  font-size: 0.875rem;
}
.header-avatar:hover {
  box-shadow: 0 0 0 4px rgba(6, 180, 162, 0.2);
}
.header-user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 20rem;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  z-index: 60;
  transform-origin: top right;
  transition: all 0.2s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
}
.header-user-section:hover .header-user-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-panel-header {
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.header-panel-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
}
.header-panel-header p {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}
.header-logout {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 20px;
  transition: background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.header-logout:hover {
  background: #fef2f2;
}
.header-logout svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #ef4444;
  margin-right: 1rem;
}
.header-logout span {
  font-size: 16px;
  color: #ef4444;
  font-weight: 700;
}
.hidden { display: none; }

.dev-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  pointer-events: none;
}
.dev-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
