/* ====================
   Reply Box Beautification
   ===================== */

/* 回复框容器 */
.reply-box-wrapper {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* 回复框标题区域 */
.reply-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.reply-box-icon {
  font-size: 28px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.reply-box-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 回复框卡片 */
.reply-box-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.reply-box-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.reply-box-card:focus-within {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
}

/* 回复文本框 */
.reply-textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
  resize: vertical;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.reply-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--card);
}

.reply-textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* 回复框操作按钮区域 */
.reply-box-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* 发布回复按钮 */
.reply-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.reply-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.reply-submit-btn:active {
  transform: translateY(0);
}

/* 取消编辑按钮 */
.reply-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.reply-cancel-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .reply-box-header {
    margin-bottom: 12px;
  }
  
  .reply-box-icon {
    font-size: 24px;
  }
  
  .reply-box-title {
    font-size: 18px;
  }
  
  .reply-textarea {
    padding: 14px;
    font-size: 14px;
  }
  
  .reply-box-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .reply-submit-btn,
  .reply-cancel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 富文本编辑器工具栏美化 */
.rich-toolbar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* richbtn 样式统一由 editor.css 管理，此处不再重复定义 */


/* ====================
   Edit Topic Page Beautification
   ===================== */

/* 编辑主题容器 */
.edit-topic-wrapper {
  max-width: 900px;
  margin: 32px auto;
}

/* 编辑主题标题区域 */
.edit-topic-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--border);
}

.edit-topic-icon {
  font-size: 36px;
  animation: editPulse 3s ease-in-out infinite;
}

@keyframes editPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-5deg); }
}

.edit-topic-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 编辑主题卡片 */
.edit-topic-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.edit-topic-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 表单组 */
.edit-form-group {
  margin-bottom: 24px;
}

/* 表单标签 */
.edit-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.label-icon {
  font-size: 20px;
}

/* 选择框样式 */
.edit-form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  outline: none;
  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='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.edit-form-select:hover {
  border-color: var(--primary);
}

.edit-form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--card);
}

/* 输入框样式 */
.edit-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.edit-form-input:hover {
  border-color: var(--primary);
}

.edit-form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--card);
}

.edit-form-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* 标题输入框特殊样式 */
.edit-form-title {
  font-size: 24px;
  font-weight: 600;
  padding: 18px 22px;
  line-height: 1.5;
  min-height: 64px;
}

/* 文本域样式 */
.edit-form-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
  resize: vertical;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  outline: none;
}

.edit-form-textarea:hover {
  border-color: var(--primary);
}

.edit-form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--card);
}

.edit-form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* 操作按钮区域 */
.edit-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* 保存按钮 */
.edit-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.edit-submit-btn:active {
  transform: translateY(0);
}

/* 取消按钮 */
.edit-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.edit-cancel-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  text-decoration: none;
}

/* 提示信息 */
.edit-form-tips {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tips-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .edit-topic-wrapper {
    margin: 16px auto;
  }
  
  .edit-topic-header {
    margin-bottom: 16px;
  }
  
  .edit-topic-icon {
    font-size: 28px;
  }
  
  .edit-topic-title {
    font-size: 22px;
  }
  
  .edit-form-group {
    margin-bottom: 20px;
  }
  
  .edit-form-title {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .edit-form-textarea {
    padding: 14px;
    font-size: 14px;
  }
  
  .edit-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .edit-submit-btn,
  .edit-cancel-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ===================================
   登录页面美化样式
   =================================== */

.login-page-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
  animation: loginFadeIn 0.6s ease-out;
}

.login-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: loginBounce 1s ease-in-out;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 16px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  opacity: 0.8;
}

.login-form {
  animation: loginSlideUp 0.6s ease-out;
}

.login-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--card, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.login-field {
  margin-bottom: 24px;
}

.login-field:last-of-type {
  margin-bottom: 28px;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #e2e8f0);
  margin-bottom: 10px;
}

.login-label-icon {
  font-size: 18px;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  background: var(--bg, #0f172a);
  color: var(--text, #e2e8f0);
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  background: var(--card, #1e293b);
}

.login-input:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.login-toggle-btn {
  min-width: 48px;
  height: 48px;
  font-size: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.login-toggle-btn:hover {
  transform: scale(1.05);
  background: rgba(102, 126, 234, 0.2);
}

.login-captcha-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.login-captcha-input {
  flex: 1;
  min-width: 180px;
}

.login-captcha-image-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.login-captcha-image {
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
  display: block;
}

.login-captcha-image:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: scale(1.02);
}

.login-captcha-refresh {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.login-captcha-refresh:hover {
  color: #764ba2;
  transform: translateY(-2px);
}

.login-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-btn-icon {
  font-size: 20px;
  animation: loginSparkle 2s ease-in-out infinite;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted, #94a3b8);
}

.login-footer-text {
  opacity: 0.8;
}

.login-footer-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-footer-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.login-footer-divider {
  margin: 0 12px;
  opacity: 0.5;
}

/* 动画效果 */
@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes loginSparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
}

/* 移动端优化 */
@media (max-width: 640px) {
  .login-page-wrapper {
    padding: 16px;
  }
  
  .login-icon {
    font-size: 48px;
  }
  
  .login-title {
    font-size: 28px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
  
  .login-card {
    padding: 24px;
  }
  
  .login-input {
    padding: 12px 16px;
    font-size: 16px; /* 防止iOS自动缩放 */
  }
  
  .login-captcha-wrapper {
    flex-direction: column;
  }
  
  .login-captcha-input {
    width: 100%;
  }
  
  .login-captcha-image-wrapper {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .login-submit-btn {
    padding: 14px;
    font-size: 16px;
  }
  
  .login-footer {
    font-size: 14px;
  }
  
  .login-footer-divider {
    margin: 0 8px;
  }
}


/* ===================================
   邀请码管理页面样式
   =================================== */

.invite-codes-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.invite-header {
  text-align: center;
  margin-bottom: 32px;
}

.invite-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.invite-icon {
  font-size: 48px;
}

.invite-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.invite-subtitle {
  font-size: 16px;
  color: var(--muted, #94a3b8);
  margin: 0;
}

.alert {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.invite-switch-card {
  margin-bottom: 24px;
}

.invite-switch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.invite-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-card.stat-active {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.stat-card.stat-used {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.stat-card.stat-expired {
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.05);
}

.stat-icon {
  font-size: 36px;
  opacity: 0.9;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #e2e8f0);
}

.stat-label {
  font-size: 14px;
  color: var(--muted, #94a3b8);
  margin-top: 4px;
}

.invite-generate-card {
  margin-bottom: 24px;
}

.invite-generate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e2e8f0);
}

.invite-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
}

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

.filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--card, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text, #e2e8f0);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.table-responsive {
  overflow-x: auto;
}

.invite-table {
  width: 100%;
  font-size: 14px;
}

.invite-table th {
  font-weight: 600;
  white-space: nowrap;
}

.invite-table td {
  vertical-align: middle;
}

.invite-code-display {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-copy-code {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.btn-copy-code:hover {
  opacity: 1;
  transform: scale(1.1);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.status-used {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.status-expired {
  background: rgba(251, 146, 60, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fb923c;
}

.status-disabled {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .invite-codes-page {
    padding: 16px;
  }
  
  .invite-title {
    font-size: 24px;
  }
  
  .invite-switch-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .invite-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .invite-table {
    font-size: 12px;
  }
  
  .invite-table th,
  .invite-table td {
    padding: 6px 4px;
  }
}


/* ====================
   版块栏滚动条样式
   ===================== */
#catListWrap {
  max-height: 300px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.4) rgba(255,255,255,0.05);
}

/* 自定义滚动条样式（WebKit浏览器） */
#catListWrap::-webkit-scrollbar {
  width: 6px;
}
#catListWrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
#catListWrap::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,0.4);
  border-radius: 3px;
  transition: background 0.2s;
}
#catListWrap::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,0.6);
}

/* 响应式：不同屏幕高度设置不同的max-height */
@media (max-height: 800px) {
  #catListWrap {
    max-height: 200px !important;
  }
}
@media (max-height: 600px) {
  #catListWrap {
    max-height: 150px !important;
  }
}
@media (max-width: 900px) {
  #catListWrap {
    max-height: 180px !important;
  }
}
