/* AI 智能助手首页 - 紫粉渐变 + 卡片推荐 */
.ai-hub-wrap {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  position: relative;
  overflow-x: hidden;
  padding: 32px 40px 80px;
}
.ai-hub-wrap::before,
.ai-hub-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.ai-hub-wrap::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ff00cc 0%, transparent 70%);
  top: -120px;
  right: -60px;
}
.ai-hub-wrap::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: 10%;
  left: -80px;
}

.ai-hub-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
}

/* Hero */
.ai-hub-hero {
  text-align: center;
  padding: 40px 0 44px;
}
.ai-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #e0d4ff;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.ai-hub-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f2ea;
  box-shadow: 0 0 10px #00f2ea;
  animation: ai-hub-pulse 2s infinite;
}
@keyframes ai-hub-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.ai-hub-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #ffffff 0%, #f0abff 40%, #ff7eb3 70%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.ai-hub-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* 输入条 */
.ai-hub-inputbar {
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-hub-inputbar:focus-within {
  border-color: rgba(255, 126, 179, 0.55);
  box-shadow: 0 20px 60px rgba(255, 0, 204, 0.18);
}
.ai-hub-inputbar textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 120px;
  padding: 6px 4px;
}
.ai-hub-inputbar textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.ai-hub-inputbar button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ff00cc 0%, #7c3aed 100%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.ai-hub-inputbar button:hover {
  transform: scale(1.05);
  opacity: 0.92;
}
.ai-hub-inputbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-hub-hint {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 44px;
}

/* 部门卡片 */
.ai-hub-section-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-hub-section-title .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent);
}
.ai-hub-depts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}
.ai-hub-card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.ai-hub-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(124, 58, 237, 0.22);
}
.ai-hub-card .glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ai-hub-card:hover .glow { opacity: 0.75; }
.ai-hub-card .icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}
.ai-hub-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.ai-hub-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0 0 16px;
}
.ai-hub-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.ai-hub-card .tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 推荐提示词 */
.ai-hub-prompts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.ai-hub-prompt {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ai-hub-prompt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 126, 179, 0.4);
}
.ai-hub-prompt .emoji {
  font-size: 20px;
  margin-bottom: 8px;
}
.ai-hub-prompt .text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-hub-prompt .dept-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
}

/* 最近会话 */
.ai-hub-sessions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.ai-hub-sess {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}
.ai-hub-sess:hover { background: rgba(255, 255, 255, 0.1); }
.ai-hub-sess .title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-hub-sess .meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* 结果面板（销售下单分解） */
.ai-hub-result {
  max-width: 900px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(14px);
  animation: ai-hub-fadein 0.35s ease;
}
@keyframes ai-hub-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-hub-result h4 {
  margin: 0 0 18px;
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-hub-result .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.ai-hub-result .plan-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ai-hub-result .plan-card h5 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #f0abff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-hub-result .plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}
.ai-hub-result .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-hub-result .actions button {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.ai-hub-result .actions .primary {
  background: linear-gradient(135deg, #ff00cc 0%, #7c3aed 100%);
  color: #fff;
}
.ai-hub-result .actions .secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* 空态 */
.ai-hub-empty {
  text-align: center;
  padding: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

/* 零代码首页 */
.nc-home-wrap { padding: 8px 0 40px; }
.nc-home-section { margin-bottom: 32px; }
.nc-home-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nc-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.nc-home-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.nc-home-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 126, 179, 0.45);
  transform: translateY(-2px);
}
.nc-home-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,0,204,0.25), rgba(124,58,237,0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.nc-home-body { flex: 1; min-width: 0; }
.nc-home-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.nc-home-card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc-home-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}
.nc-home-tip {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

@media (max-width: 768px) {
  .ai-hub-wrap { padding: 24px 20px 60px; }
  .ai-hub-title { font-size: 34px; }
  .ai-hub-depts { grid-template-columns: 1fr; }
  .nc-home-grid { grid-template-columns: 1fr; }
}
