/* ========================================
   在线聊天室 — 全局公共样式
   暗色赛博朋克/科技感主题
   ======================================== */

/* --- CSS 变量 --- */
:root {
  --primary: #a855f7;
  --secondary: #ec4899;
  --accent: #f97316;
  --bg-main: linear-gradient(135deg, #050810, #0a1128);
  --bg-card: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(236, 72, 153, 0.04));
  --bg-nav: rgba(8, 12, 21, 0.9);
  --bg-dropdown: rgba(15, 23, 42, 0.98);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-weak: #64748b;
  --text-weakest: #475569;
  --border-color: rgba(168, 85, 247, 0.15);
  --border-hover: rgba(168, 85, 247, 0.4);
  --gradient-brand: linear-gradient(90deg, #a855f7, #ec4899);
  --gradient-banner: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  --gradient-btn: linear-gradient(135deg, #a855f7, #ec4899);
  --gradient-success: linear-gradient(135deg, #10b981, #059669);
  --gradient-error: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-info: linear-gradient(135deg, #a855f7, #ec4899);
  --shadow-normal: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -12px rgba(168, 85, 247, 0.3);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-btn: 0 4px 15px rgba(168, 85, 247, 0.3);
  --shadow-btn-hover: 0 8px 25px rgba(236, 72, 153, 0.5);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.4);
  --radius-sm: 0.8rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-full: 50%;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-height: 6rem;
  --transition: all 0.3s ease;
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- 全局重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 10px; scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-family); border: none; outline: none; }
input, textarea, select { font-family: var(--font-family); outline: none; }
::selection { color: #fff; background-color: #a855f7; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, 0.5); }

/* --- 渐变文字 --- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 导航栏 --- */
.header {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 120rem;
  margin: 0 auto;
  padding: 1.2rem 3rem;
  gap: 2rem;
}
.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}
.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.3rem;
  background: var(--gradient-brand);
  border-radius: 0.15rem;
}
.nav-list .nav-icon {
  font-size: 1.8rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* 导航搜索框 */
.nav-search {
  position: relative;
}
.nav-search input {
  width: 20rem;
  height: 3.6rem;
  padding: 0 1.2rem 0 3.6rem;
  font-size: 1.4rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  transition: var(--transition);
}
.nav-search input:focus {
  border-color: var(--primary);
  width: 26rem;
  box-shadow: var(--shadow-glow);
}
.nav-search input::placeholder { color: var(--text-weakest); }
.nav-search .search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-weak);
  font-size: 1.5rem;
}

/* 导航头像 */
.nav-avatar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  position: relative;
}
.nav-avatar img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  object-fit: cover;
  transition: var(--transition);
}
.nav-avatar:hover img {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.nav-avatar-name {
  font-size: 1.4rem;
  color: var(--text-primary);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 头像下拉菜单 */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: 22rem;
  background: var(--bg-dropdown);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  padding: 1rem;
  display: none;
  animation: dropIn 0.25s ease;
}
.avatar-dropdown.show { display: block; }
.avatar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}
.avatar-dropdown-header img {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary);
  object-fit: cover;
}
.avatar-dropdown-info .name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.avatar-dropdown-info .level {
  font-size: 1.2rem;
  color: var(--primary);
}
.avatar-dropdown a,
.avatar-dropdown button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
  text-align: left;
}
.avatar-dropdown a:hover,
.avatar-dropdown button:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
}
.avatar-dropdown .dropdown-icon { font-size: 1.6rem; }
.avatar-dropdown .divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}
.avatar-dropdown .logout-btn { color: var(--gradient-error); }

/* 通知铃铛 */
.nav-notification {
  position: relative;
  cursor: pointer;
  font-size: 2rem;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-notification:hover {
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}
.nav-notification .badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1.6rem;
  height: 1.6rem;
  background: var(--gradient-error);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
}

/* 汉堡菜单（移动端） */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--text-primary);
  border-radius: 0.1rem;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(0.5rem, 0.5rem); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(0.5rem, -0.5rem); }

/* 移动端遮罩 */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
}
.mobile-overlay.show { display: block; }

/* 移动端侧边栏 */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: -30rem;
  width: 28rem;
  height: 100vh;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  z-index: 101;
  padding: 2rem;
  transition: left 0.3s ease;
  overflow-y: auto;
}
.mobile-sidebar.show { left: 0; display: block; }
.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-sidebar-close {
  font-size: 2.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-sidebar a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  font-size: 1.6rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-sidebar a:hover,
.mobile-sidebar a.active {
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}

/* --- 按钮样式 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  background: var(--gradient-btn);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  transition: var(--transition-bounce);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.1);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
}
.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  box-shadow: none;
  transform: none;
}
.btn-danger {
  background: var(--gradient-error);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}
.btn-success {
  background: var(--gradient-success);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- 卡片样式 --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-normal);
  transition: var(--transition-bounce);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-0.5rem) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* --- 表单输入框 --- */
.form-input {
  width: 100%;
  height: 4.5rem;
  padding: 1rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  transition: var(--transition);
}
.form-input:focus {
  border-bottom-color: var(--primary);
}
.form-input::placeholder { color: var(--text-weak); }
.form-group {
  margin-top: 2rem;
  position: relative;
}
.form-label {
  display: block;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-textarea {
  width: 100%;
  min-height: 12rem;
  padding: 1rem;
  font-size: 1.4rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: var(--transition);
}
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.form-select {
  width: 100%;
  height: 4.5rem;
  padding: 0 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  appearance: none;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.form-select option {
  background: #0f172a;
  color: var(--text-primary);
}

/* --- Toast 提示 --- */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  color: #fff;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  min-width: 20rem;
}
.toast-icon { font-size: 1.8rem; }
.toast-success { background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9)); }
.toast-error { background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9)); }
.toast-info { background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9)); }

/* --- 骨架屏 --- */
.skeleton {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 25%, rgba(168, 85, 247, 0.2) 50%, rgba(168, 85, 247, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-circle { border-radius: var(--radius-full); }
.skeleton-text { height: 1.4rem; margin-bottom: 0.8rem; border-radius: 0.3rem; }
.skeleton-title { height: 2.4rem; width: 60%; margin-bottom: 1rem; }
.skeleton-img { aspect-ratio: 16/9; border-radius: var(--radius-md); }

/* --- 分页组件 --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  min-width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-secondary);
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- 徽章 / 标签 --- */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  border-radius: 2rem;
  background: var(--gradient-btn);
  color: #fff;
}
.badge-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  font-size: 1.1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.badge-online {
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-full);
  background: #10b981;
  display: inline-block;
}
.badge-offline { background: #64748b; }
.badge-busy { background: #ef4444; }
.badge-away { background: #f59e0b; }

/* --- 模态框 --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal {
  width: 90%;
  max-width: 50rem;
  max-height: 80vh;
  background: var(--bg-dropdown);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
}
.modal-close {
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover { color: var(--primary); background: rgba(168, 85, 247, 0.1); }
.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: 60vh;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
}

/* --- 页脚 --- */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}
.footer p {
  font-size: 1.3rem;
  color: var(--text-weak);
}

/* --- 空状态 --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}
.empty-state .empty-icon {
  font-size: 6rem;
  margin-bottom: 2rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.empty-state p {
  font-size: 1.4rem;
  color: var(--text-weak);
  max-width: 40rem;
}

/* --- 回到顶部 --- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-btn);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: var(--transition);
  z-index: 90;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--shadow-btn-hover);
}

/* --- 标签页 --- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}
.tab-item {
  padding: 1rem 2rem;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.tab-item:hover { color: var(--primary); }
.tab-item.active {
  color: var(--primary);
}
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 0.2rem;
  background: var(--gradient-brand);
}

/* --- 在线状态指示器 --- */
.status-indicator {
  position: relative;
}
.status-indicator .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: var(--radius-full);
  border: 2px solid #0a1128;
}
.status-dot.online { background: #10b981; }
.status-dot.away { background: #f59e0b; }
.status-dot.busy { background: #ef4444; }
.status-dot.offline { background: #64748b; }

/* --- 动画关键帧 --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-1rem); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- 加载旋转器 --- */
.spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 0.3rem solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

/* --- 响应式 --- */
@media (max-width: 90rem) {
  .nav { padding: 1.2rem 2rem; }
}
@media (max-width: 65rem) {
  .nav { padding: 1rem 1.5rem; }
}
@media (max-width: 60rem) {
  .nav-list { display: none; }
  .nav-search { display: none; }
  .nav-avatar-name { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 1rem 1.5rem; }
}
@media (max-width: 768px) {
  .nav { padding: 1rem; }
  .nav-avatar img { width: 3.2rem; height: 3.2rem; }
  .modal { width: 95%; }
}
