/* ============================================================
   爆图匠 · 用户中心「高级电商工具风」覆盖层
   深石墨 + 香槟金 + 柔和紫，简洁清爽、精致留白
   加载顺序：在 suoai-theme.css 之后，用属性选择器精准命中 Tailwind 结构
   只改视觉，不动任何 DOM / 功能逻辑
   ============================================================ */

/* ---------- 全局配色变量 ---------- */
#root {
  --pm-bg: #0e0d16;          /* 主背景：更深纯黑紫 */
  --pm-panel: #171622;       /* 面板：明显比主区亮一档 */
  --pm-panel-2: #211f30;     /* 面板浮层 */
  --pm-line: rgba(228,194,120,0.22);  /* 金调细线，更清晰 */
  --pm-gold: #E4C278;        /* 香槟金 */
  --pm-gold-soft: #F7E6B8;
  --pm-purple: #9D8BE8;      /* 柔和紫 */
  --pm-text: #f3eefb;
  --pm-text-2: #b5accf;
  --pm-text-3: #7a7296;
}

/* ---------- 根容器 ---------- */
#root > div {
  background: var(--pm-bg) !important;
  color: var(--pm-text) !important;
}

/* ---------- 顶栏 ---------- */
#root > div > div:first-child {
  background: linear-gradient(180deg, #1c1a28 0%, #171623 100%) !important;
  border-bottom: 1px solid var(--pm-line) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3) !important;
}
/* 顶栏 logo 图片：紫金「爆」字徽章 */
#root img[alt="Logo"] {
  width: 38px !important;
  height: 38px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid rgba(228,194,120,0.45) !important;
  box-shadow: 0 0 18px rgba(228,194,120,0.18) !important;
  background: #2A1B5C !important;
}
/* logo 文字：爆图匠 金 + 副标灰 */
#root > div > div:first-child [class*="text-transparent"],
#root > div > div:first-child [class*="bg-clip-text"] {
  background: linear-gradient(115deg, #F2DCA8, #E4C278) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 顶栏菜单项：清爽、选中金色下划线 */
#root > div > div:first-child button,
#root > div > div:first-child [class*="cursor-pointer"] {
  color: var(--pm-text-2) !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  transition: color .2s !important;
}
#root > div > div:first-child button:hover,
#root > div > div:first-child [class*="cursor-pointer"]:hover {
  color: var(--pm-gold-soft) !important;
}
/* 当前选中菜单（紫金高亮块） */
#root > div > div:first-child [class*="bg-[#7C5CE0]"],
#root > div > div:first-child [class*="bg-[#e94560]"],
#root > div > div:first-child [class*="bg-[#8b5cf6]"] {
  background: linear-gradient(135deg, rgba(124,92,224,0.28), rgba(228,194,120,0.16)) !important;
  color: var(--pm-gold-soft) !important;
  border: 1px solid rgba(228,194,120,0.28) !important;
  border-radius: 8px !important;
}

/* 用户名徽章（右上角） */
#root [class*="rounded-full"] {
  border-color: rgba(228,194,120,0.28) !important;
}

/* ---------- 左栏：参数面板 ---------- */
#root > div > div:nth-child(2) > div:first-child {
  background: var(--pm-panel) !important;
  border-right: 1px solid var(--pm-line) !important;
}
/* 参数区滚动容器：清爽留白 */
#root > div > div:nth-child(2) > div:first-child > div:first-child {
  padding: 20px 18px !important;
}
/* 分区标题（生成数量/提示词模式/输出分辨率/画幅比例/上传图片） */
#root > div > div:nth-child(2) > div:first-child [class*="font-medium"],
#root > div > div:nth-child(2) > div:first-child [class*="font-semibold"] {
  color: var(--pm-gold-soft) !important;
  letter-spacing: 0.5px !important;
}

/* 参数选项按钮：默认深底细边 */
#root > div > div:nth-child(2) > div:first-child button {
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(228,194,120,0.12) !important;
  color: var(--pm-text-2) !important;
  border-radius: 8px !important;
  transition: all .2s !important;
}
#root > div > div:nth-child(2) > div:first-child button:hover {
  border-color: rgba(228,194,120,0.4) !important;
  color: var(--pm-gold-soft) !important;
}
/* 选中态：紫金渐变 */
#root > div > div:nth-child(2) > div:first-child button[class*="bg-[#7C5CE0]"],
#root > div > div:nth-child(2) > div:first-child button[class*="bg-[#e94560]"],
#root > div > div:nth-child(2) > div:first-child button[class*="bg-[#8b5cf6]"],
#root > div > div:nth-child(2) > div:first-child button[class*="bg-blue"],
#root > div > div:nth-child(2) > div:first-child button[class*="text-white"][class*="border"] {
  background: linear-gradient(135deg, #7C5CE0, #A78BFA) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(124,92,224,0.3) !important;
}
/* 提示词输入框/文本域 */
#root textarea,
#root input[type="text"] {
  background: rgba(12,11,20,0.6) !important;
  border: 1px solid rgba(228,194,120,0.14) !important;
  color: var(--pm-text) !important;
  border-radius: 10px !important;
  transition: border-color .2s, box-shadow .2s !important;
}
#root textarea:focus,
#root input[type="text"]:focus {
  border-color: rgba(228,194,120,0.5) !important;
  box-shadow: 0 0 0 3px rgba(228,194,120,0.08) !important;
  outline: none !important;
}
/* 上传占位区 */
#root [class*="border-dashed"] {
  border-color: rgba(228,194,120,0.28) !important;
  background: rgba(139,123,216,0.04) !important;
  border-radius: 10px !important;
}
/* 提示文案（💡） */
#root [class*="text-gray-500"],
#root [class*="text-gray-400"] {
  color: var(--pm-text-3) !important;
}

/* 底部生成按钮区 */
#root > div > div:nth-child(2) > div:first-child > div:last-child {
  background: var(--pm-panel) !important;
  border-top: 1px solid var(--pm-line) !important;
}
/* 立即生成按钮：香槟金渐变 */
#root > div > div:nth-child(2) > div:first-child > div:last-child button {
  background: linear-gradient(115deg, #7C5CE0, #9D6FE0 45%, #E4C278) !important;
  color: #fff9ec !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 6px 20px rgba(124,92,224,0.32) !important;
  transition: transform .2s, box-shadow .2s !important;
}
#root > div > div:nth-child(2) > div:first-child > div:last-child button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(124,92,224,0.45) !important;
}

/* ---------- 中栏：出图区 ---------- */
#root > div > div:nth-child(2) > div:nth-child(2) {
  background:
    radial-gradient(760px 540px at 50% 40%, rgba(124,92,224,0.20), transparent 62%),
    radial-gradient(560px 440px at 78% 88%, rgba(228,194,120,0.10), transparent 58%),
    linear-gradient(180deg, #100e1b 0%, #0b0a12 100%) !important;
  border: none !important;
}
/* 中央空状态：AI 赋能 成为视觉焦点 */
#root > div > div:nth-child(2) > div:nth-child(2) [class*="text-gray"],
#root > div > div:nth-child(2) > div:nth-child(2) h1,
#root > div > div:nth-child(2) > div:nth-child(2) h2,
#root > div > div:nth-child(2) > div:nth-child(2) h3 {
  color: var(--pm-gold-soft) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: 6px !important;
  text-shadow: 0 0 40px rgba(228,194,120,0.35) !important;
}
#root > div > div:nth-child(2) > div:nth-child(2) [class*="tracking"] {
  color: var(--pm-gold) !important;
  letter-spacing: 8px !important;
  font-size: 12px !important;
}
/* 中央图标容器：发光金边徽章 */
#root > div > div:nth-child(2) > div:nth-child(2) [class*="rounded-2xl"],
#root > div > div:nth-child(2) > div:nth-child(2) [class*="rounded-xl"] {
  background: radial-gradient(circle, rgba(228,194,120,0.12), rgba(124,92,224,0.06)) !important;
  border: 1px solid rgba(228,194,120,0.32) !important;
  box-shadow: 0 0 60px rgba(124,92,224,0.28), 0 0 30px rgba(228,194,120,0.15) inset !important;
}

/* ---------- 右栏：历史图库 ---------- */
#root > div > div:nth-child(2) > div:nth-child(3) {
  background: var(--pm-panel) !important;
  border-left: 1px solid var(--pm-line) !important;
}
#root > div > div:nth-child(2) > div:nth-child(3) [class*="border-b"] {
  border-color: var(--pm-line) !important;
}
/* 历史分类标签 */
#root > div > div:nth-child(2) > div:nth-child(3) button {
  color: var(--pm-text-2) !important;
  border: 1px solid rgba(228,194,120,0.12) !important;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 7px !important;
  font-size: 12px !important;
}
#root > div > div:nth-child(2) > div:nth-child(3) button[class*="bg-[#7C5CE0]"],
#root > div > div:nth-child(2) > div:nth-child(3) button[class*="bg-[#e94560]"],
#root > div > div:nth-child(2) > div:nth-child(3) button[class*="text-white"] {
  background: linear-gradient(135deg, rgba(124,92,224,0.35), rgba(228,194,120,0.18)) !important;
  border-color: rgba(228,194,120,0.3) !important;
  color: var(--pm-gold-soft) !important;
}
/* 历史空状态 */
#root > div > div:nth-child(2) > div:nth-child(3) [class*="text-gray"] {
  color: var(--pm-text-3) !important;
}

/* ---------- 滚动条：精致细条 ---------- */
#root ::-webkit-scrollbar { width: 6px !important; height: 6px !important; }
#root ::-webkit-scrollbar-track { background: transparent !important; }
#root ::-webkit-scrollbar-thumb {
  background: rgba(228,194,120,0.18) !important;
  border-radius: 3px !important;
}
#root ::-webkit-scrollbar-thumb:hover { background: rgba(228,194,120,0.35) !important; }

/* ---------- 窄屏：保留三栏但压缩 ---------- */
@media (max-width: 1100px) {
  #root > div > div:nth-child(2) > div:first-child { flex-basis: 260px !important; }
  #root > div > div:nth-child(2) > div:nth-child(3) { flex-basis: 220px !important; }
}
