﻿:root {
  --bg-primary: #FDF8F2;
  --bg-secondary: #F9F5EB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF9F0;
  --bg-chat: #FFFFFF;
  --accent-mint: #10B981;
  --accent-mint-dim: rgba(16, 185, 129, 0.10);
  --accent-blue: #3B82F6;
  --accent-blue-dim: rgba(59, 130, 246, 0.08);
  --accent-green: #10B981;
  --accent-green-dim: rgba(16, 185, 129, 0.10);
  --accent-purple: #8B5CF6;
  --accent-purple-dim: rgba(139, 92, 246, 0.08);
  --accent-rose: #E74C3C;
  --accent-rose-dim: rgba(231, 76, 60, 0.08);
  --accent-gold: #B8860B;
  --accent-gold-dim: rgba(184, 134, 11, 0.10);
  --text-primary: #2D2016;
  --text-secondary: #6B5544;
  --text-muted: #9B8578;
  --border: #E8DCCF;
  --border-dark: #D4C5B0;
  --border-active: rgba(16, 185, 129, 0.4);
  --shadow-card: 0 4px 24px rgba(139, 105, 74, 0.10);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(184, 134, 11, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(139, 105, 74, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grid overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 105, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 105, 74, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Header ── */
header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(253, 248, 242, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-mint), #059669);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-mint-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-mint);
  font-weight: 500;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.header-user:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(139, 105, 74, 0.1);
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mint), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.header-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.header-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-role-tag {
  font-size: 10px;
  color: var(--accent-mint);
  background: var(--accent-mint-dim);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.5px;
}

.header-logout {
  padding: 5px 12px;
  background: var(--accent-rose-dim);
  border: 1px solid rgba(231, 76, 60, 0.15);
  border-radius: 16px;
  font-size: 11px;
  color: var(--accent-rose);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  white-space: nowrap;
  margin-left: 4px;
}

.header-logout:hover {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.3);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 40px 56px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-mint-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-mint);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Core Features (四大核心功能) ── */
.core-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 40px;
  margin-bottom: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--accent-mint);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Stats bar (保留但不再使用) ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px 40px;
  margin-bottom: 8px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-mint);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ── Departments ── */
.departments {
  padding: 0 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Onboarding Modal ── */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 22, 0.4);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.onboarding-overlay.hidden {
  display: none;
}

.onboarding-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(139, 105, 74, 0.15);
  position: relative;
  transform: scale(0.95);
  transform-origin: center center;
}

.onboarding-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.onboarding-close-btn:hover {
  background: rgba(0,0,0,0.12);
  color: var(--text-primary);
}

.onboarding-header {
  padding: 40px 32px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.onboarding-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25);
}

.onboarding-header h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.onboarding-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.onboarding-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.onboarding-form input,
.onboarding-form select,
.onboarding-form textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s;
}

.onboarding-form input:focus,
.onboarding-form select:focus,
.onboarding-form textarea:focus {
  border-color: var(--accent-mint);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.onboarding-form input::placeholder {
  color: var(--text-muted);
}

.onboarding-form textarea::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.onboarding-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B8578' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.onboarding-form select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Subject Tags */
.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-tag {
  cursor: pointer;
}

.subject-tag input {
  display: none;
}

.subject-tag span {
  display: block;
  padding: 7px 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.subject-tag:hover span {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-dark);
}

.subject-tag input:checked+span {
  background: var(--accent-mint-dim);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}

.subject-tag.other span {
  background: var(--accent-purple-dim);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.subject-tag.other input:checked+span {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--accent-purple);
}

.other-input {
  margin-top: 8px;
}

.onboarding-submit {
  margin-top: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-mint), #059669);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.onboarding-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.onboarding-submit .arrow {
  transition: transform 0.2s;
}

.onboarding-submit:hover .arrow {
  transform: translateX(4px);
}

/* ── User Profile Card ── */
.user-profile {
  padding: 0 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease;
}

.profile-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-mint-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 账号类型 badge */
.profile-account-badge {
  margin-bottom: 4px;
}
.profile-account-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}
.badge-official {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.badge-trial {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  border: 1px solid #ffcc80;
}
.badge-expired {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: #c62828;
  border: 1px solid #ef9a9a;
  animation: badgePulse 2s ease-in-out infinite;
}
.badge-permanent {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border: 1px solid #90caf9;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.profile-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-meta .dot {
  color: var(--text-muted);
}

.profile-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-subject-tag {
  padding: 3px 10px;
  background: var(--accent-mint-dim);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent-mint);
}

.profile-edit {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.profile-edit:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--border-dark);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .onboarding-form {
    padding: 24px;
  }

  .onboarding-header {
    padding: 32px 24px 20px;
  }

  .user-profile {
    padding: 0 20px 20px;
  }

  .profile-card {
    flex-wrap: wrap;
  }
}

/* ── Department Card ── */
.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dept-color, var(--accent-mint));
  opacity: 0;
  transition: opacity 0.3s;
}

.dept-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.dept-card:hover::before {
  opacity: 1;
}

.dept-card.active {
  border-color: var(--dept-color, var(--accent-mint));
  box-shadow: 0 0 0 1px var(--dept-color, var(--accent-mint)), var(--shadow-card);
}

.dept-card.active::before {
  opacity: 1;
}

.dept-header {
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dept-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--dept-bg, var(--accent-mint-dim));
  border: 1px solid var(--dept-border, rgba(16, 185, 129, 0.15));
}

.dept-info h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dept-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dept-employees {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.employee-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.employee-chip:hover {
  background: var(--dept-bg, var(--accent-mint-dim));
  border-color: var(--dept-border, rgba(16, 185, 129, 0.25));
  transform: translateX(4px);
}

.employee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--dept-bg, var(--accent-mint-dim));
  flex-shrink: 0;
}

.employee-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.employee-tag {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.dept-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-count {
  font-size: 12px;
  color: var(--text-muted);
}

.dept-cta {
  font-size: 12px;
  color: var(--dept-color, var(--accent-mint));
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Chat Modal ── */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 22, 0.35);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}

.chat-overlay.open {
  display: flex;
}

.chat-modal {
  width: 100%;
  max-width: 720px;
  height: 80vh;
  max-height: 700px;
  background: var(--bg-chat);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(139, 105, 74, 0.15);
  /* 去掉 scale 动画，避免打开时闪烁感 */
  transform: none;
}

.chat-overlay.open .chat-modal {
  transform: none;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.02);
}

.chat-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.chat-agent-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-agent-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.chat-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.chat-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

/* ── Quick prompts ── */
.quick-prompts {
  padding: 16px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.01);
}

.quick-btn {
  padding: 6px 14px;
  background: var(--agent-bg, rgba(255,165,0,0.15));
  border: 1px solid var(--agent-border, rgba(255,165,0,0.3));
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.quick-btn:hover {
  background: linear-gradient(135deg, var(--agent-bg, rgba(255,165,0,0.3)), var(--agent-bg, rgba(255,165,0,0.45)));
  border-color: var(--agent-border, rgba(255,165,0,0.55));
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Messages ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: auto;
  background: var(--bg-primary);
}

.chat-messages::-webkit-scrollbar {
  width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(139, 105, 74, 0.15);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 105, 74, 0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.msg {
  display: flex;
  gap: 10px;
}

/* 新消息入场动画（仅 addMessage 时添加 .animate 类触发） */
.msg.animate {
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg.user .msg-avatar {
  background: var(--accent-mint-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.msg>div {
  max-width: 560px;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.msg.ai .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.msg.user .msg-bubble {
  background: var(--accent-mint);
  color: #FFFFFF;
  border-top-right-radius: 4px;
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.msg.user .msg-time {
  text-align: right;
}

/* ── Copy button (AI only) ── */
.msg.ai .copy-btn {
  display: none;
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--accent-mint);
  border: 1px solid rgba(80,80,80,0.4);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  color: #e0e0e0;
  filter: none;
  transition: filter 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.msg.ai .copy-btn:hover {
  background: var(--accent-mint);
}
.msg.ai:hover .copy-btn {
  display: block;
}

/* ── Typing indicator ── */
.typing-indicator {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top-left-radius: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ── Chat input ── */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.01);
}

.chat-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  resize: none;
  outline: none;
  min-height: 48px;
  max-height: 120px;
  transition: border-color 0.2s;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-all;
}

.chat-input:focus {
  border-color: var(--accent-mint);
  background: #FFFFFF;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-mint), #059669);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  flex-shrink: 0;
  color: #FFFFFF;
}

.send-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

/* ── Welcome message ── */
.welcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 8px;
}

.welcome-card h5 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .departments {
    padding: 0 20px 60px;
  }

  .stats-bar {
    gap: 24px;
    padding: 20px;
  }

  .core-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .feature-icon {
    font-size: 28px;
  }

  .feature-title {
    font-size: 14px;
  }

  .feature-desc {
    font-size: 11px;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .chat-modal {
    height: 90vh;
    max-height: none;
    border-radius: 16px 16px 0 0;
    align-self: flex-end;
  }

  .chat-overlay {
    padding: 0;
    align-items: flex-end;
  }
}

/* ── Entrance animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-card:nth-child(1) {
  animation-delay: 0.1s;
}

.dept-card:nth-child(2) {
  animation-delay: 0.2s;
}

.dept-card:nth-child(3) {
  animation-delay: 0.3s;
}

.dept-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* 退出确认弹窗 */
.logout-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 32, 22, 0.35);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.logout-overlay.show {
  display: flex;
}

.logout-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(139, 105, 74, 0.15);
  border: 1px solid var(--border);
}

.logout-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.logout-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 20px;
}

.logout-card p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.logout-card-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.logout-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.logout-input:focus {
  border-color: var(--accent-mint);
}
/* 修改密码弹窗 */
.pwd-card { max-width: 400px; }
.pwd-card p { margin: 0 0 20px; text-align: center; }
.pwd-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pwd-row { position: relative; }
.pwd-row .logout-input { padding-right: 42px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: var(--text-muted); font-size: 16px; line-height: 1;
  transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--text-secondary); }
.pwd-toggle.on .eye-icon::after {
  content: '';
  display: block;
  width: 14px; height: 2px;
  background: var(--text-muted);
  transform: rotate(45deg);
  margin-top: -10px;
  margin-left: 1px;
}
.pwd-toggle .eye-icon { display: inline-block; }
#pwdMsg { font-size: 13px; min-height: 18px; text-align: center; }
#pwdMsg.ok { color: var(--accent-mint); }
#pwdMsg.err { color: var(--accent-rose); }

.logout-cancel,
.logout-confirm {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.logout-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.logout-cancel:hover {
  background: rgba(0, 0, 0, 0.06);
}

.logout-confirm {
  background: var(--accent-mint);
  color: #FFFFFF;
}

.logout-confirm:hover {
  background: #059669;
}

/* 密码修改弹窗 */
.pwd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 22, 0.35);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.pwd-overlay.active {
  display: flex !important;
}

.pwd-modal {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(139, 105, 74, 0.15);
  border: 1px solid var(--border);
}

/* ���� Chat Image Styles ���� */
.chat-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin: 8px 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
}
.chat-image:hover {
  transform: scale(1.02);
}
.chat-link {
  color: var(--accent-mint);
  text-decoration: underline;
}
.chat-link:hover {
  color: var(--accent-blue);
}

/* ���� Image Preview Overlay ���� */
.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}
.image-preview-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}
.image-preview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.image-preview-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ���� Chat Image Fix ���� */
.msg-bubble img.chat-image {
  max-width: 200px !important;
  max-height: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 8px;
}

/* ── 聊天导航按钮组 ── */
.chat-body-wrapper {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}
.chat-nav {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.chat-body-wrapper:hover .chat-nav {
  opacity: 1;
}
.chat-nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(139, 105, 74, 0.12);
  color: #8b694a;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
}
.chat-nav-btn:hover {
  background: rgba(139, 105, 74, 0.25);
  transform: scale(1.1);
}
.chat-nav-btn:active {
  transform: scale(0.95);
}



/* ========== 反馈功能 ========== */
.feedback-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}
.feedback-fab:active {
    transform: scale(0.95);
}

.feedback-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.feedback-overlay.active {
    display: flex;
}

.feedback-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    width: 560px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: feedbackIn 0.25s ease-out;
}
@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.feedback-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feedback-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.feedback-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.feedback-type-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.feedback-type-btn {
    flex: 1;
    padding: 10px 0;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    text-align: center;
}
.feedback-type-btn:hover {
    border-color: #FFA500;
    color: #FFA500;
}
.feedback-type-btn.active {
    border-color: #FFA500;
    background: #FFF5E6;
    color: #FF6B35;
    font-weight: 600;
}

.feedback-textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.feedback-textarea:focus {
    border-color: #FFA500;
}
.feedback-textarea::placeholder {
    color: #bbb;
}





.feedback-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s, transform 0.1s;
}
.feedback-submit-btn:hover {
    opacity: 0.9;
}
.feedback-submit-btn:active {
    transform: scale(0.98);
}
.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10001;
    animation: toastIn 0.3s ease-out;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== 反馈功能 ========== */
.feedback-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}
.feedback-fab:active {
    transform: scale(0.95);
}

.feedback-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.feedback-overlay.active {
    display: flex;
}

.feedback-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    width: 560px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: feedbackIn 0.25s ease-out;
}
@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.feedback-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feedback-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.feedback-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.feedback-type-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.feedback-type-btn {
    flex: 1;
    padding: 10px 0;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    text-align: center;
}
.feedback-type-btn:hover {
    border-color: #FFA500;
    color: #FFA500;
}
.feedback-type-btn.active {
    border-color: #FFA500;
    background: #FFF5E6;
    color: #FF6B35;
    font-weight: 600;
}

.feedback-textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.feedback-textarea:focus {
    border-color: #FFA500;
}
.feedback-textarea::placeholder {
    color: #bbb;
}

.feedback-contact {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.feedback-contact:focus {
    border-color: #FFA500;
}
.feedback-contact::placeholder {
    color: #bbb;
}

.feedback-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFA500, #FF6B35);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s, transform 0.1s;
}
.feedback-submit-btn:hover {
    opacity: 0.9;
}
.feedback-submit-btn:active {
    transform: scale(0.98);
}
.feedback-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10001;
    animation: toastIn 0.3s ease-out;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 系统公告（合并展示框） */
.ann-banner-box {
  background: linear-gradient(135deg, #fffde7, #fff8e1);
  border: 1px solid #ffcc02;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}
.ann-box-header {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.ann-box-body {}
.ann-box-item {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 204, 2, 0.3);
}
.ann-box-item:last-child { border-bottom: none; padding-bottom: 0; }
.ann-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.ann-item-title { color: #d84315; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ann-item-time { color: #bdbdbd; font-size: 11px; flex-shrink: 0; }
.ann-item-summary {
  color: #555;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-all;
  text-align: justify;
}
/* 富文本公告内容样式 */
.ann-rich-content {
  max-height: 200px;
  overflow-y: auto;
}
.ann-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}
.ann-rich-content p { margin: 4px 0; }
.ann-rich-content h1, .ann-rich-content h2, .ann-rich-content h3 {
  margin: 8px 0 4px;
  font-weight: 600;
}
.ann-rich-content iframe {
  max-width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  margin: 8px 0;
}
.ann-rich-content ul, .ann-rich-content ol {
  padding-left: 18px;
  margin: 4px 0;
}