/* 教师 AI 助手 — 对齐 ai-edu.huayuntiantu.com/app/list */
.agent-assistant-page {
  --aa-purple: #e63323;
  --aa-purple-light: #fde8e6;
  --aa-border: #e8ecf3;
  color: #1e293b;
}

.aa-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(105deg, #e63323 0%, #c0271b 48%, #e63323 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(192,39,27, 0.22);
}

.aa-hero::before,
.aa-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.aa-hero::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: 8%;
}

.aa-hero::after {
  width: 120px;
  height: 120px;
  bottom: -40px;
  right: 28%;
}

.aa-hero-title {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.aa-hero-sub {
  position: relative;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.aa-hero-actions {
  position: relative;
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aa-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease;
}

.aa-hero-link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.aa-section {
  margin-bottom: 28px;
}

.aa-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aa-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.aa-add-frequent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px dashed #f5c6c0;
  border-radius: 8px;
  background: #faf5ff;
  color: var(--aa-purple);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.aa-add-frequent:hover {
  border-color: var(--aa-purple);
  background: var(--aa-purple-light);
}

.aa-frequent-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.aa-frequent-card {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid var(--aa-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.aa-frequent-card:hover {
  border-color: #f5c6c0;
  box-shadow: 0 8px 20px rgba(192,39,27, 0.12);
  transform: translateY(-2px);
}

.aa-frequent-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.aa-frequent-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-all-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aa-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.aa-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.aa-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--aa-border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.aa-search-input:focus {
  border-color: #f2796b;
  box-shadow: 0 0 0 3px rgba(242,121,107, 0.25);
  background: #fff;
}

.aa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.aa-filter {
  padding: 6px 14px;
  border: 1px solid var(--aa-border);
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.aa-filter:hover {
  border-color: #f5c6c0;
  color: var(--aa-purple);
}

.aa-filter.active {
  border-color: #f5c6c0;
  background: var(--aa-purple-light);
  color: var(--aa-purple);
  font-weight: 600;
}

.aa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .aa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aa-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 16px;
  border: 1px solid var(--aa-border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.aa-card:hover {
  border-color: #f5c6c0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.aa-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.aa-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.aa-card-meta {
  flex: 1;
  min-width: 0;
}

.aa-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-card-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.aa-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aa-card-desc mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(242,121,107, 0.35);
  color: #9e1f15;
  font-weight: 600;
}

.aa-empty {
  padding: 48px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  border: 1px dashed var(--aa-border);
  border-radius: 14px;
  background: #f8fafc;
}

.aa-empty.hidden {
  display: none;
}
