/* ═══ 桃子公司 · AI 启动器视觉 ═══ */

/* ─── 行业 chip ─────────────────────── */
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--paper-dark);
  border-radius: 999px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.industry-chip:hover {
  background: var(--peach);
  color: white;
  border-color: var(--peach);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(209, 106, 78, 0.25);
}
.industry-chip:active { transform: translateY(0); }

/* ─── 输入框抖动（空值提交时）─────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ─── 全站浮动 Chat 按钮 ───────────── */
#peach-float-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--peach);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(209, 106, 78, 0.35);
  z-index: 998;
  transition: all 0.2s ease;
}
#peach-float-chat:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(209, 106, 78, 0.45);
}
.float-chat-icon { font-size: 20px; }
.float-chat-label { font-style: italic; }

/* 小屏只显 icon */
@media (max-width: 640px) {
  #peach-float-chat { padding: 14px; border-radius: 50%; }
  .float-chat-label { display: none; }
}

/* ─── Chat Drawer ────────────────── */
#peach-chat-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
#peach-chat-drawer.open { pointer-events: auto; }

.chat-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 54, 46, 0);
  transition: background 0.3s ease;
}
#peach-chat-drawer.open .chat-drawer-backdrop {
  background: rgba(61, 54, 46, 0.35);
  backdrop-filter: blur(4px);
}

.chat-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--paper);
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.17, 1);
  display: flex;
  flex-direction: column;
}
#peach-chat-drawer.open .chat-drawer-panel {
  transform: translateX(0);
}

.chat-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--paper-dark);
}
.chat-drawer-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  font-style: italic;
}
.chat-drawer-subtitle {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--peach);
  margin-top: 4px;
}
.chat-drawer-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.chat-drawer-close:hover { background: var(--paper-dark); color: var(--ink); }

.chat-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

#drawer-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--paper-dark);
  border-radius: 12px;
  background: white;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s;
}
#drawer-input:focus { border-color: var(--peach); }

.drawer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.drawer-chip {
  padding: 5px 12px;
  background: white;
  border: 1px solid var(--paper-dark);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.drawer-chip:hover {
  background: var(--peach);
  color: white;
  border-color: var(--peach);
}

.drawer-mode-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--paper-light);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.drawer-mode-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.drawer-mode-row input[type="radio"] { accent-color: var(--peach); }

.chat-drawer-hint {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
}
