/* ============================================================
   free&back - 反馈收集与讨论平台
   版本: v1.1.0
   样式文件: css/style.css
   ============================================================ */
/* ---------- CSS 变量与主题 ---------- */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-bg: rgba(99, 102, 241, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-hover: #e2e8f0;
  --bg-active: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --primary-bg: rgba(129, 140, 248, 0.15);
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-hover: #475569;
  --bg-active: #64748b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}
/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-dark);
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: inherit;
  color: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-active);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #059669;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* ---------- 通用输入框 ---------- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  color: var(--text-primary);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}
.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--danger);
}
.form-group.has-error .form-error {
  display: block;
}
/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}
.badge-primary {
  background: var(--primary-bg);
  color: var(--primary);
}
.badge-gray {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}
/* ---------- 头像 ---------- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}
/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-body {
  padding: 20px;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
/* ---------- Toast 提示 ---------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: 14px;
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}
.toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}
.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}
/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-tertiary);
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
/* ---------- 登录/注册页面 ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg-primary) 50%, rgba(16, 185, 129, 0.05) 100%);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-bg) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 36px;
  animation: authIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}
.auth-logo h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.auth-logo p {
  font-size: 14px;
  color: var(--text-tertiary);
}
.auth-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--bg-secondary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}
.guest-entry {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.guest-entry button {
  color: var(--text-secondary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.guest-entry button:hover {
  color: var(--primary);
}
/* ---------- 主布局 ---------- */
.app-layout {
  display: flex;
  min-height: 100vh;
}
/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sidebar-brand {
  flex: 1;
  min-width: 0;
}
.sidebar-brand h2 {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-brand span {
  font-size: 11px;
  color: var(--text-tertiary);
}
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.nav-section {
  margin-bottom: 8px;
}
.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 8px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  margin-bottom: 2px;
  width: 100%;
  text-align: left;
}
.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.nav-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-user:hover {
  background: var(--bg-tertiary);
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 12px;
  color: var(--text-tertiary);
}
.sidebar-version {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
/* ---------- 主内容区 ---------- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-header {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
/* ---------- 汉堡菜单按钮（移动端） ---------- */
.hamburger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}
.hamburger-btn:hover {
  background: var(--bg-tertiary);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
/* ---------- 首页/导航页 ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -100px;
  right: -50px;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: -80px;
  left: 100px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-section p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.hero-actions .btn-primary-solid {
  background: #fff;
  color: var(--primary);
}
.hero-actions .btn-primary-solid:hover {
  background: #f0f0f0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.stat-icon.primary { background: var(--primary-bg); }
.stat-icon.success { background: rgba(16, 185, 129, 0.15); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.15); }
.stat-icon.info { background: rgba(59, 130, 246, 0.15); }
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.quick-action-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.quick-action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.quick-action-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.quick-action-content p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
/* ---------- 话题列表页 ---------- */
.topic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-tertiary);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.topic-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.topic-card:hover::before {
  transform: scaleX(1);
}
.topic-card.closed {
  opacity: 0.7;
}
.topic-card.closed::before {
  background: var(--text-tertiary);
}
.topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.topic-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topic-code {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  display: inline-block;
}
.topic-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.topic-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.topic-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.topic-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topic-actions {
  display: flex;
  gap: 6px;
}
.topic-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-tertiary);
  transition: var(--transition);
}
.topic-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.topic-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.empty-state p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
/* ---------- 反馈详情/提交页 ---------- */
.feedback-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.feedback-main {
  min-width: 0;
}
.feedback-form-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.feedback-form-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
}
.feedback-form-body {
  padding: 24px;
}
.feedback-textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  transition: var(--transition);
}
.feedback-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
  background: var(--bg-secondary);
}
.upload-area {
  margin-top: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.upload-area-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.upload-area-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.upload-area-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.upload-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}
.upload-preview-remove:hover {
  background: var(--danger);
}
.feedback-form-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feedback-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}
.topic-info-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 20px;
  margin-bottom: 16px;
}
.topic-info-card h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.topic-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.topic-info-item .label {
  color: var(--text-tertiary);
  min-width: 60px;
}
/* ---------- 我的反馈列表 ---------- */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feedback-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}
.feedback-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.feedback-item.hidden {
  opacity: 0.5;
}
.feedback-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.feedback-item-topic {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-item-topic .topic-code {
  margin-bottom: 0;
}
.feedback-item-time {
  font-size: 12px;
  color: var(--text-tertiary);
}
.feedback-item-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feedback-item-images {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.feedback-item-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.feedback-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.feedback-item-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-item-actions {
  display: flex;
  gap: 6px;
}
/* ---------- 反馈详情弹窗 ---------- */
.feedback-detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  white-space: pre-wrap;
  word-break: break-word;
}
.feedback-detail-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.feedback-detail-images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.feedback-detail-images img:hover {
  transform: scale(1.05);
}
.admin-reply-section {
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  border-left: 3px solid var(--primary);
}
.admin-reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-reply-author {
  font-weight: 600;
  font-size: 14px;
}
.admin-reply-time {
  font-size: 12px;
  color: var(--text-tertiary);
}
.admin-reply-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}
/* ---------- 聊天室 ---------- */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 48px);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-title {
  font-size: 16px;
  font-weight: 600;
}
.chat-header-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-message {
  display: flex;
  gap: 12px;
  max-width: 75%;
  animation: messageIn 0.3s ease;
}
@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-message.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message.deleted .chat-bubble {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-style: italic;
}
.chat-message-avatar {
  flex-shrink: 0;
}
.chat-message-content {
  min-width: 0;
}
.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
}
.chat-message.own .chat-message-meta {
  justify-content: flex-end;
}
.chat-message-author {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.chat-message-author:hover {
  color: var(--primary);
}
.chat-message-time {
  color: var(--text-tertiary);
}
.chat-bubble {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  position: relative;
}
.chat-message:not(.own) .chat-bubble {
  border-top-left-radius: 4px;
}
.chat-message.own .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-top-right-radius: 4px;
}
.chat-bubble img {
  max-width: 240px;
  max-height: 240px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 6px;
}
.chat-message-actions {
  display: none;
  gap: 4px;
  margin-top: 6px;
}
.chat-message:hover .chat-message-actions {
  display: flex;
}
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.chat-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.chat-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
}
.chat-attach-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-tertiary);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.chat-attach-btn:hover {
  color: var(--primary);
  background: var(--primary-bg);
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}
.chat-send-btn:disabled {
  background: var(--bg-active);
  transform: none;
}
.chat-image-preview {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.chat-image-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.chat-image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- 收件箱 ---------- */
.inbox-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: calc(100vh - var(--header-height) - 48px);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.inbox-list {
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  background: var(--bg-primary);
}
.inbox-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
}
.inbox-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 12px;
  position: relative;
}
.inbox-item:hover {
  background: var(--bg-tertiary);
}
.inbox-item.active {
  background: var(--primary-bg);
}
.inbox-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}
.inbox-item-avatar {
  flex-shrink: 0;
}
.inbox-item-content {
  flex: 1;
  min-width: 0;
}
.inbox-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.inbox-item-sender {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-item-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.inbox-item-preview {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-item.unread .inbox-item-sender {
  color: var(--primary);
}
.inbox-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.inbox-detail-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inbox-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.inbox-detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.inbox-reply-subject {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.inbox-reply-block {
  margin-bottom: 14px;
}
.inbox-reply-block:last-child {
  margin-bottom: 0;
}
.inbox-reply-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.inbox-reply-label.admin {
  color: var(--primary);
}
/* 收件箱列表：回复类消息所属话题标签行 */
.inbox-item-topicrow {
  margin: 2px 0 3px;
}
.inbox-item-topic {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px; border-radius: 999px; font-weight: 500;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 收件箱详情：明确「是针对哪个话题的反馈回复」 */
.inbox-reply-topic {
  font-size: 13px; color: var(--text-secondary);
  background: var(--primary-bg); border: 1px solid var(--primary-light);
  padding: 10px 14px; border-radius: var(--radius-md); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.inbox-reply-topic b { color: var(--primary); }
.inbox-reply-topic-link {
  color: var(--primary); font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.inbox-reply-topic-link:hover { text-decoration: underline; }
.inbox-reply-text {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.inbox-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.inbox-detail-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
}
.inbox-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
/* ---------- 设置页 ---------- */
.settings-container {
  max-width: 720px;
  margin: 0 auto;
}
.settings-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  overflow: hidden;
}
.settings-section-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section-header h3 {
  font-size: 16px;
  font-weight: 600;
}
.settings-section-body {
  padding: 8px 0;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: var(--transition);
}
.settings-item:hover {
  background: var(--bg-primary);
}
.settings-item-info {
  flex: 1;
}
.settings-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.settings-item-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}
/* 主题切换三态 */
.theme-switcher {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 3px;
}
.theme-option {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-option.active {
  background: var(--bg-secondary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
/* 开关 */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-active);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle-switch.active {
  background: var(--primary);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle-switch.active::after {
  left: 23px;
}
/* 个人资料卡片 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.profile-avatar-section {
  position: relative;
  cursor: pointer;
}
.profile-avatar-section:hover .avatar-overlay {
  opacity: 1;
}
.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: var(--transition);
}
.profile-info {
  flex: 1;
}
.profile-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-id {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: monospace;
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 24px 20px;
}
.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-detail-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-detail-value {
  font-size: 14px;
  font-weight: 500;
}
.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
/* ---------- 用户资料弹窗 ---------- */
.user-profile-modal .modal-body {
  text-align: center;
  padding: 32px 24px;
}
.user-profile-avatar {
  margin: 0 auto 16px;
}
.user-profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.user-profile-role {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.user-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.user-profile-stat {
  padding: 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}
.user-profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.user-profile-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
}
.user-profile-info-list {
  text-align: left;
}
.user-profile-info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.user-profile-info-item:last-child {
  border-bottom: none;
}
.user-profile-info-item .label {
  color: var(--text-tertiary);
}
/* ---------- 管理员面板 ---------- */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.admin-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--bg-secondary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
/* 用户管理表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: var(--bg-primary);
}
.data-table .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.data-table .actions-cell {
  display: flex;
  gap: 6px;
}
.table-action-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.table-action-btn.edit {
  background: var(--primary-bg);
  color: var(--primary);
}
.table-action-btn.edit:hover {
  background: var(--primary);
  color: #fff;
}
.table-action-btn.freeze {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.table-action-btn.freeze:hover {
  background: var(--warning);
  color: #fff;
}
.table-action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}
.table-action-btn.delete:hover {
  background: var(--danger);
  color: #fff;
}
/* ---------- 头像裁剪弹窗 ---------- */
.cropper-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}
.cropper-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cropper-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.cropper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cropper-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
}
.cropper-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}
/* ---------- 图片查看器 ---------- */
.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.image-viewer.active {
  opacity: 1;
  visibility: visible;
}
.image-viewer img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: var(--transition);
}
.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* ---------- 加载动画 ---------- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
[data-theme="dark"] .loading-overlay {
  background: rgba(15, 23, 42, 0.8);
}
.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}
.loading-content {
  text-align: center;
}
.loading-content .loading-spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
  margin-bottom: 16px;
}
.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}
/* ---------- 确认对话框 ---------- */
.confirm-dialog {
  text-align: center;
  padding: 8px 0;
}
.confirm-dialog-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.confirm-dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.confirm-dialog-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
/* ---------- 动画工具类 ---------- */
.animate-fade-in {
  animation: fadeIn 0.4s ease;
}
.animate-slide-up {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .feedback-sidebar {
    position: static;
  }
}
@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
    --header-height: 56px;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: block;
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .main-content {
    margin-left: 0;
  }
  .hamburger-btn {
    display: flex;
  }
  .page-header {
    padding: 0 16px;
  }
  .page-title {
    font-size: 18px;
  }
  .page-body {
    padding: 16px;
  }
  .hero-section {
    padding: 32px 24px;
  }
  .hero-section h1 {
    font-size: 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .inbox-list {
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .inbox-detail {
    min-height: 400px;
  }
  .chat-container {
    height: calc(100vh - var(--header-height) - 32px);
  }
  .chat-message {
    max-width: 85%;
  }
  .auth-card {
    padding: 32px 24px;
  }
  .profile-details {
    grid-template-columns: 1fr;
  }
  .data-table {
    display: block;
    overflow-x: auto;
  }
  .admin-tabs {
    margin: 0 -16px 20px;
    padding: 4px 16px;
    border-radius: 0;
  }
  .modal {
    max-width: 100%;
    margin: 0;
    max-height: 90vh;
  }
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
  .feedback-form-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .topic-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .chat-input-area {
    padding: 12px;
    gap: 8px;
  }
  .chat-send-btn {
    width: 40px;
    height: 40px;
  }
  .settings-item {
    padding: 14px 16px;
  }
  .theme-switcher {
    flex-direction: column;
    width: 100%;
  }
  .theme-option {
    justify-content: center;
  }
}
/* ---------- 打印样式 ---------- */
@media print {
  .sidebar, .page-header, .toast-container {
    display: none !important;
  }
  .main-content {
    margin-left: 0;
  }
}
/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* ---------- 选中文字 ---------- */
::selection {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ---------- 网站品牌区（标志 + 名称 + 配文） ---------- */
.brand-zone {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(129,140,248,0.04));
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
}
.brand-logo {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 0;              /* 去掉背景圆圈，只要纯文字 SF */
  padding: 0;
  background: transparent;        /* 无背景 */
  border: none;
  box-shadow: none;
}
.brand-logo-inner { width: 100%; height: 100%; border-radius: 0; overflow: visible; display: flex; align-items: center; justify-content: center; }
/* 网站标志 = 字母 SF（蓝紫圆盘 + 白色 SF），Base64 内置，填满圆形容器 */
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-size: 24px; font-weight: 800; letter-spacing: 0.3px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tagline { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 600px) {
  .brand-zone { flex-direction: column; text-align: center; }
  .brand-name { font-size: 20px; }
}

/* ============================================================
   「方和工作室」出品方 + 站点信息（导航页底部区域）
   - 出品方（图二，纯 SVG 生成，不使用图片），位于站点信息上方
   - 站点信息（图一）：网站版本号 / 追溯码 / 产品码 / 版本码
   - 默认直接显示；所有用户（含游客）均可查看
   ============================================================ */
/* 底部信息区容器：出品方 + 站点信息一体 */
.footer-info-zone {
  margin: 32px 0 8px;
  display: flex; flex-direction: column; gap: 14px;
}
/* 出品方「方和工作室」 */
.creditor-zone {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.creditor-logo {
  width: 200px; height: 42px; flex-shrink: 0;   /* 宽幅 logo，比例约 4.7:1，与原图 2901x592 接近，大小适中 */
  display: flex; align-items: center; justify-content: flex-start;
}
/* 出品方「方和工作室」= 原图，Base64 内置 */
.creditor-logo .fonhe-logo-img,
.creditor-logo .fonhe-logo-svg { width: auto; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.creditor-text {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 2px; padding-left: 14px; border-left: 2px solid var(--primary);
}
/* 站点信息卡片（图一） */
.site-info-strip {
  margin: 0; padding: 18px 22px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: block;
}
.site-info-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.site-info-col { display: flex; flex-direction: column; gap: 6px; }
.si-label { font-size: 12px; color: var(--text-tertiary); }
.si-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.si-value.mono { font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; font-size: 14px; letter-spacing: 0.3px; }

@media (max-width: 600px) {
  .creditor-zone { flex-direction: column; text-align: center; gap: 8px; }
  .creditor-text { border-left: none; border-top: 2px solid var(--primary); padding: 8px 0 0; }
  .creditor-logo { width: 116px; height: 40px; }
  .site-info-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 顶部用户头像菜单（退出登录移至此） ---------- *//* ---------- 顶部用户头像菜单（退出登录移至此） ---------- */
.header-user-menu { position: relative; }
.header-avatar-btn { width: 38px; height: 38px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); background: var(--bg-secondary); transition: var(--transition); }
.header-avatar-btn:hover { border-color: var(--primary); }
.header-avatar-btn .avatar { width: 30px; height: 30px; }
.header-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 180px; padding: 8px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--transition); z-index: 100; }
.header-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.header-dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary); text-align: left; }
.header-dropdown-item:hover { background: var(--bg-tertiary); }
.header-dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 4px; }
.header-dropdown-logout { color: var(--danger); }
.header-dropdown-logout:hover { background: rgba(239,68,68,0.1); }

/* ---------- 侧栏精简（已移除退出登录按钮） ---------- */
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--border-light); }

  .site-info-inner { grid-template-columns: repeat(2, 1fr); }


/* 侧栏 logo：网站标志 "SF"，纯文字，无背景圆圈 */
.sidebar-logo { width: 48px; height: 48px; border-radius: 0; overflow: visible; display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; flex-shrink: 0; }
.sidebar-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 品牌区标志：纯文字 SF，无背景圆圈 */
.brand-logo-inner { width: 100%; height: 100%; border-radius: 0; overflow: visible; display: flex; align-items: center; justify-content: center; }
/* 快捷操作：6 宫格（2 行 × 3 列） */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .quick-actions { grid-template-columns: 1fr; } }

/* ============================================================
   Products Module - 产品模块样式
   free&back · 产品 / 产品类 / 产品详情
   ============================================================ */

/* ---------- 页面公共 ---------- */
.products-page,
.product-class-page,
.product-detail-page { animation: fadeIn .25s ease; }
.products-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.products-toolbar .search-box { flex: 1; min-width: 220px; }

/* ---------- 标签筛选条（如话题一样：全部 + 各标签，点击切换） ---------- */
.tag-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
/* ---------- 产品类卡片（扁平网格，不再按固定分类分组） ---------- */
.class-grid { display: grid; gap: 16px; }
.class-grid-flat { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.class-card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-secondary);
  background: var(--bg-tertiary, rgba(0,0,0,.04)); padding: 2px 8px; border-radius: 999px;
}
.class-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
}
.class-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.class-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.class-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; flex-shrink: 0;
}
.class-card-name { font-size: 16px; font-weight: 600; }
.class-card-type {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  margin-top: 4px; font-weight: 500;
}
.class-type-物品 { background: rgba(16,185,129,.15); color: var(--success); }
.class-type-应用 { background: rgba(59,130,246,.15); color: var(--info); }
.class-type-其他 { background: rgba(148,163,184,.18); color: var(--text-secondary); }
.class-card-meta {
  display: flex; gap: 14px; font-size: 12px; color: var(--text-secondary);
  border-top: 1px solid var(--border-light); padding-top: 10px; margin-top: 4px;
}
.class-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.class-card-no { font-family: monospace; }

/* ---------- 产品类详情页 ---------- */
.pc-header {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px;
}
.pc-header-icon {
  width: 84px; height: 84px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; flex-shrink: 0;
}
.pc-header-main { flex: 1; min-width: 220px; }
.pc-header-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.pc-header-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; }
.pc-header-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.pc-header-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pc-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

.pc-section-title {
  font-size: 16px; font-weight: 600; margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.pc-section-title .bar { width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }

/* 追溯码搜索 */
.trace-box {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 20px;
}
.trace-box .form-label { display: flex; align-items: center; gap: 6px; }
.trace-hint { font-size: 12px; color: var(--text-tertiiary, var(--text-tertiary)); margin-top: 8px; }

/* 介绍区 */
.pc-intro { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-intro-image {
  width: 200px; height: 140px; border-radius: var(--radius-md); object-fit: cover;
  background: var(--bg-tertiary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--text-tertiiary, var(--text-tertiary)); font-size: 12px;
}
.pc-intro-text { flex: 1; min-width: 240px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }

/* 下载 / 反馈按钮组 */
.pc-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* 产品列表（类详情内，不公开详情，仅卡片） */
.product-mini-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.product-mini-card {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px; transition: var(--transition);
}
.product-mini-card.highlight {
  border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-bg);
}
.product-mini-thumb {
  width: 100%; height: 110px; border-radius: var(--radius-sm); object-fit: cover;
  background: var(--bg-tertiary); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--text-tertiiary, var(--text-tertiary)); font-size: 11px;
}
.product-mini-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.product-mini-no { font-family: monospace; font-size: 12px; color: var(--text-secondary); }
.product-mini-date { font-size: 11px; color: var(--text-tertiiary, var(--text-tertiary)); margin-top: 6px; }

/* ---------- 追溯码结果弹窗 ---------- */
.trace-result-list { max-height: 50vh; overflow-y: auto; }
.trace-result-item {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 10px; cursor: pointer; transition: var(--transition);
}
.trace-result-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.trace-result-thumb {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-tertiiary, var(--text-tertiary)); flex-shrink: 0;
}
.trace-result-info { flex: 1; }
.trace-result-info b { font-size: 14px; }
.trace-result-info div { font-size: 12px; color: var(--text-secondary); font-family: monospace; }
.trace-empty { text-align: center; padding: 30px; color: var(--text-tertiiary, var(--text-tertiary)); }

/* ---------- 产品详情页 ---------- */
.pd-hero {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.pd-hero-top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pd-hero-icon {
  width: 88px; height: 88px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #fff; flex-shrink: 0;
}
.pd-hero-main { flex: 1; min-width: 240px; }
.pd-hero-name { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.pd-hero-sub { font-size: 13px; color: var(--text-secondary); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-hero-sub span { display: inline-flex; align-items: center; gap: 4px; }
.pd-hero-intro { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; }
.pd-hero-image {
  width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-md);
  margin-top: 14px; background: var(--bg-tertiary);
}

.pd-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0;
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
}
.pd-field { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
.pd-field:nth-child(odd) { background: var(--bg-primary); }
.pd-field .label { font-size: 12px; color: var(--text-tertiiary, var(--text-tertiary)); margin-bottom: 3px; }
.pd-field .value { font-size: 14px; font-weight: 500; word-break: break-all; }
.pd-field .value.mono { font-family: monospace; }

/* ---------- 评论 ---------- */
.review-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px;
}
.review-sort { margin-left: auto; }
.review-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.review-item {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.review-user { font-size: 14px; font-weight: 500; }
.review-time { font-size: 11px; color: var(--text-tertiiary, var(--text-tertiary)); margin-left: auto; }
.review-content { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.review-empty { text-align: center; padding: 24px; color: var(--text-tertiiary, var(--text-tertiary)); font-size: 13px; }

.review-form {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px;
}
.review-stars { display: flex; gap: 6px; margin-bottom: 10px; font-size: 26px; cursor: pointer; }
.review-stars .star { color: var(--border); transition: color .15s; user-select: none; }
.review-stars .star.active { color: #f59e0b; }
.review-stars .star:hover { transform: scale(1.1); }
.review-form textarea { width: 100%; min-height: 70px; resize: vertical;
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; font-size: 14px; color: var(--text-primary); margin-bottom: 10px; font-family: inherit; }
.review-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }

/* 评分汇总 */
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.rating-score { font-size: 38px; font-weight: 700; color: var(--primary); line-height: 1; }
.rating-stars { font-size: 18px; color: #f59e0b; }
.rating-count { font-size: 13px; color: var(--text-secondary); }

/* ---------- 弹窗表单辅助 ---------- */
.pf-toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pf-toggle-row .toggle-switch { width: 42px; height: 24px; border-radius: 12px; background: var(--bg-active); position: relative; transition: .2s; flex-shrink: 0; }
.pf-toggle-row .toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.pf-toggle-row .toggle-switch.active { background: var(--primary); }
.pf-toggle-row .toggle-switch.active::after { left: 20px; }
.pf-form-hint { font-size: 12px; color: var(--text-tertiiary, var(--text-tertiary)); margin-top: 6px; }
.pf-hidden { display: none; }

/* 选择话题列表（反馈绑定） */
.topic-pick-list { max-height: 44vh; overflow-y: auto; }
.topic-pick-item {
  display: flex; gap: 10px; align-items: center; padding: 11px 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 8px; cursor: pointer; transition: var(--transition);
}
.topic-pick-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.topic-pick-item .tp-icon { font-size: 20px; flex-shrink: 0; }
.topic-pick-item .tp-info { flex: 1; }
.topic-pick-item .tp-info b { font-size: 14px; }
.topic-pick-item .tp-info div { font-size: 12px; color: var(--text-secondary); }

/* 类型选择卡片 */
.type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.type-option {
  border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 12px;
  text-align: center; cursor: pointer; transition: var(--transition); font-size: 13px; font-weight: 500;
}
.type-option:hover { border-color: var(--primary-light); }
.type-option.active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.type-option .to-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.type-option .to-desc { font-size: 10px; color: var(--text-tertiiary, var(--text-tertiary)); font-weight: 400; margin-top: 3px; }
.type-option.active .to-desc { color: var(--primary); }

/* 反馈入口条 */
.feedback-bar {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--primary-bg), transparent);
  border: 1px solid var(--primary-light); border-radius: var(--radius-lg);
  padding: 16px 18px; margin-top: 8px;
}
.feedback-bar .fb-icon { font-size: 26px; }
.feedback-bar .fb-text { flex: 1; }
.feedback-bar .fb-text b { font-size: 15px; }
.feedback-bar .fb-text div { font-size: 12px; color: var(--text-secondary); }

/* 移动端适配 */
@media (max-width: 640px) {
  .pc-header { flex-direction: column; }
  .pc-actions { flex-direction: row; width: 100%; }
  .pd-hero-top { flex-direction: column; }
  .type-options { grid-template-columns: 1fr; }
  .review-sort { margin-left: 0; width: 100%; }
}

/* 产品搜索框（产品名 / 产品码） */
.product-search-box { margin: 4px 0 14px; }
.product-mini-card-hit {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.product-search-tip {
  display: none;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning, #f59e0b);
  color: var(--warning, #b45309);
  font-size: 13px;
  text-align: center;
}

/* ===== 同步刷新时禁用淡入动画，消除闪烁 ===== */
body.sync-render .animate-fade-in,
body.sync-render .fade-in,
body.sync-render [class*="animate-"] {
  animation: none !important;
  transition: none !important;
}
body.sync-render #pageBody {
  opacity: 1 !important;
}

/* ===== v4：同步刷新期间禁用一切过渡/动画，图片不淡入（防闪烁）===== */
body.sync-render #pageBody,
body.sync-render .page-body {
  transition: none !important;
  animation: none !important;
}
body.sync-render #pageBody *,
body.sync-render .page-body * {
  animation: none !important;
  transition: none !important;
}
body.sync-render #pageBody img,
body.sync-render .page-body img {
  opacity: 1 !important;
  animation: none !important;
}
/* 滚动锚定，辅助防跳动 */
#pageBody, .page-body { overflow-anchor: auto; }

@keyframes bl{0%,100%{transform:translateX(-30%)}50%{transform:translateX(90%)}}
/* ============================================================
   FSER · 产品组 / 个 / 验证 / 富文本编辑器
   ============================================================ */

/* ---------- 产品组列表（标签样式排布，与话题/反馈卡片一致） ---------- */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
           gap: 14px; margin-top: 14px; }
.pg-card { display: flex; align-items: center; gap: 12px; padding: 14px;
           background: var(--bg-secondary, #fff); border: 1px solid var(--border, #e2e8f0);
           border-radius: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pg-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,.12);
                 border-color: var(--primary, #6366f1); }
.pg-tag-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 48px;
              background: var(--bg-tertiary, #f1f5f9); }
.pg-tag-fallback { display: flex; align-items: center; justify-content: center; font-size: 22px;
                   background: linear-gradient(135deg, #a5b4fc, #6366f1); color: #fff; }
.pg-card-main { flex: 1; min-width: 0; }
.pg-name { font-size: 15px; font-weight: 600; color: var(--text-primary, #1e293b);
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-code { font-size: 12px; color: var(--text-tertiary, #94a3b8); margin-top: 2px;
           font-family: ui-monospace, monospace; }
.pg-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pg-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px;
            background: var(--bg-tertiary, #f1f5f9); color: var(--text-secondary, #64748b); }
.pg-badge-fb { background: rgba(16,185,129,.12); color: #10b981; }
.pg-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pg-hint { margin-top: 12px; font-size: 13px; color: var(--text-tertiary, #94a3b8); }
.brand-sub-cn { display: block; font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: .5px; }

/* ---------- 产品组详情 ---------- */
.pg-detail-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px;
                  background: var(--bg-secondary, #fff); border: 1px solid var(--border, #e2e8f0);
                  border-radius: 16px; }
.pg-detail-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: 0 0 72px; }
.pg-detail-main { flex: 1; min-width: 0; }
.pg-detail-name { font-size: 20px; font-weight: 700; color: var(--text-primary, #1e293b); }
.pg-detail-code { font-size: 13px; color: var(--text-secondary, #64748b); margin-top: 4px;
                  font-family: ui-monospace, monospace; }
.pg-detail-meta { font-size: 12px; color: var(--text-tertiary, #94a3b8); margin-top: 6px; }
.pg-detail-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pg-detail-btns { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.pg-intro-rich { padding: 14px; background: var(--bg-secondary, #fff);
                 border: 1px solid var(--border, #e2e8f0); border-radius: 12px;
                 font-size: 14px; line-height: 1.7; color: var(--text-primary, #1e293b);
                 word-break: break-word; }
.pg-intro-rich img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0; }
.pg-intro-empty { padding: 14px; background: var(--bg-secondary, #fff);
                  border: 1px dashed var(--border, #e2e8f0); border-radius: 12px;
                  font-size: 13px; color: var(--text-tertiary, #94a3b8); }
.pg-feedback-box { padding: 12px 14px; background: var(--bg-secondary, #fff);
                   border: 1px solid var(--border, #e2e8f0); border-radius: 12px; }
.pg-fb-title { font-size: 14px; font-weight: 600; }
.pg-fb-desc { font-size: 12px; color: var(--text-tertiary, #94a3b8); margin-top: 4px; }

/* ---------- 个列表 ---------- */
.pg-unit-list { display: flex; flex-direction: column; gap: 10px; }
.pg-unit-item { padding: 12px 14px; background: var(--bg-secondary, #fff);
                border: 1px solid var(--border, #e2e8f0); border-radius: 12px; }
.pg-unit-trace { font-size: 14px; color: var(--text-primary, #1e293b); }
.pg-unit-ids { font-size: 12px; color: var(--text-secondary, #64748b); margin-top: 6px;
               display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg-id-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
              background: rgba(99,102,241,.1); color: var(--primary, #6366f1);
              font-family: ui-monospace, monospace; }
.pg-unit-actions { display: flex; gap: 8px; margin-top: 10px; }
.pg-muted { color: var(--text-tertiary, #94a3b8); font-size: 12px; }

/* ---------- 验证页 ---------- */
.pg-verify-head { display: flex; align-items: center; gap: 12px; padding: 14px;
                  background: var(--bg-secondary, #fff); border: 1px solid var(--border, #e2e8f0);
                  border-radius: 14px; margin-bottom: 14px; }
.pg-verify-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 52px; }
.pg-verify-name { font-size: 16px; font-weight: 700; }
.pg-verify-code { font-size: 12px; color: var(--text-tertiary, #94a3b8); font-family: ui-monospace, monospace; }
.pg-verify-form { padding: 16px; background: var(--bg-secondary, #fff);
                  border: 1px solid var(--border, #e2e8f0); border-radius: 14px; }
.pg-verify-hint { margin-top: 10px; font-size: 12px; color: var(--text-tertiary, #94a3b8); }
.pg-verify-error { margin-top: 16px; padding: 14px 16px; border-radius: 12px;
                   background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
                   color: #dc2626; font-size: 14px; font-weight: 600; }
.pg-verify-ok { margin-top: 16px; padding: 16px; border-radius: 14px;
                background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.25); }
.pg-verify-ok-head { font-size: 16px; font-weight: 700; color: #059669; margin-bottom: 8px; }
.pg-verify-ok-trace { font-size: 13px; color: var(--text-secondary, #64748b);
                      font-family: ui-monospace, monospace; }

/* ---------- 富文本编辑器 ---------- */
.rich-editor { border: 1px solid var(--border, #e2e8f0); border-radius: 12px; overflow: hidden;
               background: var(--bg-secondary, #fff); }
.re-toolbar { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--border, #e2e8f0);
              background: var(--bg-tertiary, #f8fafc); flex-wrap: wrap; }
.re-btn { padding: 5px 9px; font-size: 12px; border: 1px solid transparent; border-radius: 8px;
          background: transparent; cursor: pointer; color: var(--text-secondary, #64748b); }
.re-btn:hover { background: var(--bg-secondary, #fff); border-color: var(--border, #e2e8f0); }
.re-emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
                  gap: 2px; padding: 8px; max-height: 150px; overflow-y: auto;
                  border-bottom: 1px solid var(--border, #e2e8f0); background: var(--bg-secondary, #fff); }
.re-emoji { border: none; background: transparent; font-size: 19px; cursor: pointer; padding: 4px;
            border-radius: 8px; line-height: 1; }
.re-emoji:hover { background: var(--bg-tertiary, #f1f5f9); }
.re-body { min-height: 130px; max-height: 320px; overflow-y: auto; padding: 12px;
           font-size: 14px; line-height: 1.7; outline: none; color: var(--text-primary, #1e293b); }
.re-body:empty:before { content: attr(data-placeholder); color: var(--text-tertiary, #94a3b8); }
.re-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0; }

/* ---------- 创建表单：图片行 / 验证 ID 行 ---------- */
.pg-img-row { display: flex; gap: 12px; align-items: flex-start; }
.pg-img-preview { width: 72px; height: 72px; border-radius: 12px; border: 1px dashed var(--border, #e2e8f0);
                  display: flex; align-items: center; justify-content: center; overflow: hidden;
                  flex: 0 0 72px; background: var(--bg-tertiary, #f8fafc); font-size: 12px; }
.pg-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.pg-img-ops { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.un-id-list { display: flex; flex-direction: column; gap: 8px; }
.un-id-row { display: flex; gap: 8px; align-items: center; }
.un-id-row .form-input { flex: 1; }
.req { color: #ef4444; }

/* ============================================================
   FSER · 仓库模块样式 (Repo)
   ------------------------------------------------------------
   标签视图：对齐话题卡片风格
   列表视图：对齐清华开源镜像站（TUNA）目录索引风格
   ============================================================ */
.repo-page { padding-bottom: 20px; }
.repo-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.repo-toolbar .search-box { flex: 1; min-width: 200px; }
.repo-view-switch { display: flex; background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 3px; gap: 2px; }
.repo-vs-btn { border: none; background: transparent; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px;
  color: var(--text-secondary); cursor: pointer; transition: var(--transition); white-space: nowrap; }
.repo-vs-btn.active { background: var(--bg-secondary); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }

.repo-exts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.repo-ext { border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: var(--transition); }
.repo-ext:hover { border-color: var(--primary-light); color: var(--primary); }
.repo-ext.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 视图 A：标签 ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.repo-card { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: var(--transition);
  cursor: pointer; position: relative; overflow: hidden; }
.repo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transition: transform .3s ease; }
.repo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.repo-card:hover::before { transform: scaleX(1); }
.repo-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.repo-card-icon { font-size: 30px; line-height: 1; }
.repo-card-flags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.repo-flag { font-size: 11px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.repo-flag-lock { background: rgba(239,68,68,.12); color: #ef4444; }
.repo-flag-free { background: rgba(16,185,129,.12); color: #10b981; }
.repo-flag-link { background: rgba(99,102,241,.12); color: var(--primary); }
.repo-card-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-card-code { font-size: 12px; color: var(--text-tertiary); margin-bottom: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.repo-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.repo-badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--bg-tertiary); color: var(--text-secondary); }
.repo-badge-fb { background: var(--primary-bg); color: var(--primary); }
.repo-badge-lock { background: rgba(239,68,68,.12); color: #ef4444; }
.repo-badge-free { background: rgba(16,185,129,.12); color: #10b981; }
.repo-card-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); }
.repo-card-actions { position: absolute; top: 10px; right: 10px; display: none; gap: 4px; }
.repo-card:hover .repo-card-actions { display: flex; }

/* ---------- 视图 B：列表（清华开源镜像站风格） ---------- */
.repo-listwrap { background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.repo-crumb { padding: 14px 18px; border-bottom: 1px solid var(--border-light); font-size: 13px;
  background: var(--bg-tertiary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.repo-crumb-root { color: var(--text-tertiary); }
.repo-crumb-sep { color: var(--text-tertiary); margin: 0 4px; }
.repo-crumb-cur { color: var(--primary); font-weight: 600; }
.repo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.repo-table thead th { text-align: left; padding: 10px 16px; background: var(--bg-secondary);
  border-bottom: 2px solid var(--border); color: var(--text-secondary); font-weight: 600; font-size: 12px;
  letter-spacing: .3px; user-select: none; }
.repo-th[data-sort] { cursor: pointer; }
.repo-th[data-sort]:hover { color: var(--primary); background: var(--bg-tertiary); }
.repo-table tbody tr { border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background .12s; }
.repo-table tbody tr:hover { background: var(--bg-tertiary); }
.repo-table tbody tr:last-child { border-bottom: none; }
.repo-table td { padding: 10px 16px; vertical-align: middle; }
.repo-td-name { display: flex; align-items: center; gap: 8px; }
.repo-td-icon { font-size: 16px; }
.repo-td-fn { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.repo-td-fn:hover { color: var(--primary); text-decoration: underline; }
.repo-td-code, .repo-td-size, .repo-td-time { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.repo-td-op { text-align: right; white-space: nowrap; }
.repo-lock, .repo-linktag { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.repo-dl-btn { border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  padding: 4px 12px; font-size: 12px; cursor: pointer; transition: var(--transition); }
.repo-dl-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.repo-op-btn { border: 1px solid var(--border); background: var(--bg-secondary); border-radius: var(--radius-sm);
  padding: 4px 8px; font-size: 12px; cursor: pointer; margin-left: 4px; }
.repo-op-btn:hover { border-color: var(--primary-light); }
.repo-op-btn.danger:hover { border-color: #ef4444; color: #ef4444; }
@media (max-width: 720px) {
  .repo-td-code, .repo-th-code { display: none; }
  .repo-td-time, .repo-th-time { display: none; }
  .repo-td-fn { max-width: 150px; }
}

/* ---------- 上传：拖拽区 ---------- */
.repo-drop { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 22px; text-align: center;
  cursor: pointer; transition: var(--transition); background: var(--bg-tertiary); }
.repo-drop:hover, .repo-drop.over { border-color: var(--primary); background: var(--primary-bg); }
.repo-drop-icon { font-size: 30px; margin-bottom: 6px; }
.repo-drop-text { font-size: 13px; color: var(--text-secondary); }
.repo-drop-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }
.repo-picked { margin-top: 10px; }
.repo-picked-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-tertiary);
  border-radius: var(--radius-sm); font-size: 13px; }
.repo-picked-icon { font-size: 18px; }
.repo-picked-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-picked-size { color: var(--text-tertiary); font-size: 12px; }
.repo-picked-rm { border: none; background: transparent; color: var(--text-tertiary); cursor: pointer; font-size: 14px; }
.repo-picked-rm:hover { color: #ef4444; }
.repo-warn { margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(245,158,11,.12); color: #b45309; font-size: 12px; }
.repo-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.repo-form-row .form-group { flex: 1; min-width: 160px; }

/* ---------- 密钥输入 ---------- */
.repo-keywrap { position: relative; display: flex; align-items: center; }
.repo-keywrap .form-input { padding-right: 42px; }
.repo-keyeye { position: absolute; right: 8px; border: none; background: transparent; cursor: pointer;
  font-size: 15px; opacity: .6; }
.repo-keyeye:hover { opacity: 1; }

/* ---------- 详情弹窗 ---------- */
.repo-detail { }
.repo-detail-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.repo-detail-icon { font-size: 38px; line-height: 1; }
.repo-detail-name { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; word-break: break-all; }
.repo-detail-sub { display: flex; gap: 6px; flex-wrap: wrap; }
.repo-detail-stat { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg-tertiary);
  border-radius: var(--radius-md); margin-top: 6px; }
.repo-detail-stat > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.repo-detail-stat span { color: var(--text-tertiary); }
.repo-detail-stat b { color: var(--text-primary); font-weight: 600; }
.repo-fb-row { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--primary-bg); font-size: 13px; color: var(--text-secondary); }
/* ============================================================
   FSER · 仓库文件夹样式（面包屑 / 文件夹卡片 / 列表目录行 / 移动弹窗）
   ============================================================ */

/* ---------- 面包屑 ---------- */
.repo-bread {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--bg-secondary, #f6f7fb);
  border: 1px solid var(--border-color, #e6e8ef);
  border-radius: 10px;
  font-size: 14px;
}
.repo-bread-item {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary, #5b5bd6);
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background .15s;
}
.repo-bread-item:hover { background: rgba(91, 91, 214, .1); }
.repo-bread-item.active {
  color: var(--text-primary, #1f2233);
  font-weight: 600;
  cursor: default;
}
.repo-bread-item.active:hover { background: none; }
.repo-bread-sep { color: var(--text-muted, #9aa0b4); }
.repo-bread-count {
  margin-left: auto;
  color: var(--text-muted, #9aa0b4);
  font-size: 12px;
}

/* ---------- 工具条右侧分组 ---------- */
.repo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 标签视图：文件夹卡片 ---------- */
.repo-card-dir {
  background: linear-gradient(160deg, #f3f5ff 0%, #ffffff 60%);
  border: 1px dashed var(--primary, #5b5bd6);
}
.repo-card-icon-dir {
  background: rgba(91, 91, 214, .1) !important;
  font-size: 26px;
}
.repo-flag-dir {
  background: rgba(91, 91, 214, .12);
  color: var(--primary, #5b5bd6);
}
.repo-card-enter {
  color: var(--primary, #5b5bd6);
  font-weight: 600;
}
.repo-card-dir:hover {
  border-style: solid;
  box-shadow: 0 6px 18px rgba(91, 91, 214, .14);
}
.repo-badge-dir {
  background: rgba(91, 91, 214, .1);
  color: var(--primary, #5b5bd6);
}

/* ---------- 列表视图：目录行 ---------- */
.repo-tr-dir { background: rgba(91, 91, 214, .04); }
.repo-tr-dir .repo-td-fn { font-weight: 600; color: var(--primary, #5b5bd6); }
.repo-tr-up { background: rgba(0, 0, 0, .02); }
.repo-tr-up .repo-td-fn { color: var(--text-muted, #9aa0b4); font-style: italic; }
.repo-tr-dir, .repo-tr-up { cursor: pointer; }
.repo-tr-dir:hover { background: rgba(91, 91, 214, .09); }
.repo-tr-up:hover { background: rgba(0, 0, 0, .05); }
.repo-td-dir {
  color: var(--primary, #5b5bd6);
  font-size: 12px;
  opacity: .85;
}
.repo-crumb-link {
  background: none;
  border: none;
  color: var(--primary, #5b5bd6);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.repo-crumb-link:hover { text-decoration: underline; }

/* ---------- 移动文件弹窗 ---------- */
.repo-move-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.repo-move-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color, #e6e8ef);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all .15s;
}
.repo-move-item:hover {
  border-color: var(--primary, #5b5bd6);
  background: rgba(91, 91, 214, .05);
}
.repo-move-item.active {
  border-color: var(--primary, #5b5bd6);
  background: rgba(91, 91, 214, .09);
  font-weight: 600;
}
.repo-move-n {
  margin-left: auto;
  color: var(--text-muted, #9aa0b4);
  font-size: 12px;
}
.repo-move-cur {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--primary, #5b5bd6);
  color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .repo-bread { font-size: 13px; padding: 8px 10px; }
  .repo-bread-count { width: 100%; margin-left: 0; }
  .repo-toolbar-right { width: 100%; }
  .repo-toolbar-right .btn { flex: 1; }
  .repo-td-code { display: none; }
}

/* ==========================================================================
   FSER v7：工具模块 / 二维码 / 图标选择器 / 离站通知 / 仓库文件夹（黄）
   ========================================================================== */

/* ---------- 仓库：文件夹改为黄色 ---------- */
.repo-card-dir {
  background: linear-gradient(160deg, #fff8e6 0%, #ffffff 62%) !important;
  border: 1px dashed #f0b429 !important;
}
.repo-card-icon-dir {
  background: rgba(245, 158, 11, .16) !important;
}
.repo-flag-dir {
  background: rgba(245, 158, 11, .16);
  color: #b45309;
}
.repo-card-enter { color: #b45309; }
.repo-card-dir:hover {
  border-style: solid !important;
  border-color: #f59e0b !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .18) !important;
}
.repo-badge-dir {
  background: rgba(245, 158, 11, .14);
  color: #b45309;
}
.repo-tr-dir { background: rgba(245, 158, 11, .06); }
.repo-tr-dir .repo-td-fn { color: #b45309; }
.repo-tr-dir:hover { background: rgba(245, 158, 11, .12); }
.repo-td-dir { color: #b45309; }
.repo-crumb-link { color: #b45309; }
.repo-back-btn {
  background: rgba(245, 158, 11, .1);
  border-color: rgba(245, 158, 11, .35);
  color: #b45309;
  white-space: nowrap;
}
.repo-back-btn:hover { background: rgba(245, 158, 11, .18); }
.repo-qr-btn {
  border: none; background: var(--bg-tertiary); color: var(--text-secondary);
  border-radius: 6px; cursor: pointer; font-size: 13px; padding: 2px 7px; margin-left: auto;
  transition: var(--transition);
}
.repo-qr-btn:hover { background: var(--primary-bg); color: var(--primary); }

/* ---------- 工具模块 ---------- */
.tools-page { padding-bottom: 20px; }
.tools-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tools-toolbar .search-box { flex: 1; min-width: 200px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8); transform: scaleX(0); transition: transform .3s ease;
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.tool-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: rgba(14,165,233,.1);
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 44px; text-align: center; }
.tool-flags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tool-flag { font-size: 11px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tool-flag-html { background: rgba(14,165,233,.12); color: #0284c7; }
.tool-flag-url { background: rgba(245,158,11,.14); color: #b45309; }
.tool-flag-fb { background: var(--primary-bg); color: var(--primary); }
.tool-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-code { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tool-time { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.tool-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool-mini-btn {
  border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary);
  border-radius: 6px; cursor: pointer; font-size: 13px; padding: 3px 8px; transition: var(--transition);
}
.tool-mini-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.tool-mini-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

/* 工具运行器 */
.modal-xl { width: min(1100px, 96vw) !important; max-width: 96vw !important; }
.modal-xl .modal-body { padding: 0; }
.tool-run { display: flex; flex-direction: column; }
.tool-run-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-light); background: var(--bg-tertiary);
}
.tool-run-name { font-weight: 600; font-size: 14px; }
.tool-run-ops { display: flex; gap: 6px; }
.tool-run-frame { width: 100%; height: min(68vh, 640px); border: 0; background: #fff; display: block; }

/* 工具类型选择 */
.tl-kind { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-kind-btn {
  flex: 1; min-width: 160px; border: 1px solid var(--border); background: var(--bg-secondary);
  border-radius: var(--radius-md); padding: 10px 12px; font-size: 13px; cursor: pointer;
  color: var(--text-secondary); transition: var(--transition);
}
.tl-kind-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); font-weight: 600; }
.tl-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-file-name { font-size: 12px; color: var(--text-tertiary); }

/* 产品组卡片二维码角标 */
.pg-qr-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  border: none; background: rgba(0,0,0,.05); color: var(--text-secondary);
  border-radius: 6px; cursor: pointer; font-size: 14px; padding: 3px 7px; transition: var(--transition);
}
.pg-qr-btn:hover { background: var(--primary-bg); color: var(--primary); }
.pg-detail-qr { margin-bottom: 10px; }

/* ---------- IconPicker ---------- */
.ip-field { border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px; background: var(--bg-tertiary); }
.ip-preview { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px;
  border: 1px solid var(--border-light); }
.ip-preview img { width: 100%; height: 100%; object-fit: cover; }
.ip-preview .ip-emoji { font-size: 32px; }
.ip-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-panel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px;
  margin-top: 10px; padding: 10px; background: var(--bg-secondary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-light); max-height: 190px; overflow-y: auto;
}
.ip-emo { border: none; background: transparent; font-size: 20px; cursor: pointer; padding: 5px; border-radius: 6px; }
.ip-emo:hover { background: var(--primary-bg); }
.ip-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* FSER v10 · 图标自行输入 */
.ip-custom { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.ip-custom .ip-custom-input { flex: 1; min-width: 0; font-size: 16px; text-align: center; }
.ip-custom .btn { flex: none; white-space: nowrap; }
.ip-panel { scrollbar-width: thin; }

/* 裁剪器 */
.crop-wrap { display: flex; flex-direction: column; gap: 12px; }
.crop-stage {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--bg-tertiary); border-radius: var(--radius-md); cursor: grab;
  border: 1px solid var(--border); touch-action: none;
}
.crop-stage::after {
  content: ''; position: absolute; inset: 6px; border: 2px dashed var(--primary); border-radius: 8px; pointer-events: none;
}
.crop-stage img { position: absolute; left: 0; top: 0; user-select: none; -webkit-user-drag: none; }
.crop-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crop-ctl input[type=range] { flex: 1; min-width: 140px; }
.crop-ctl label { font-size: 13px; color: var(--text-secondary); }
.crop-tip { font-size: 12px; color: var(--text-muted); }

/* ---------- 离站通知 ---------- */
.leave-box { text-align: center; }
.leave-icon { font-size: 40px; margin-bottom: 6px; }
.leave-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.leave-host { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.leave-host b { color: var(--primary); }
.leave-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.leave-url {
  font-size: 12px; color: var(--text-tertiary); background: var(--bg-tertiary);
  padding: 8px 10px; border-radius: var(--radius-sm); word-break: break-all; margin: 8px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.leave-tip { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.leave-count { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---------- 二维码 ---------- */
.qr-box { text-align: center; }
.qr-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.qr-img { display: flex; justify-content: center; margin-bottom: 10px; }
.qr-img img { width: 240px; height: 240px; image-rendering: pixelated; border-radius: 10px;
  border: 1px solid var(--border-light); background: #fff; padding: 6px; }
.qr-fail { color: #ef4444; font-size: 13px; }
.qr-url {
  font-size: 11px; color: var(--text-tertiary); background: var(--bg-tertiary); padding: 8px 10px;
  border-radius: var(--radius-sm); word-break: break-all; margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.qr-tip { font-size: 12px; color: var(--text-muted); }
.qr-result-text { font-size: 13px; word-break: break-all; background: var(--bg-tertiary);
  padding: 10px; border-radius: var(--radius-sm); margin-bottom: 8px; }

/* ---------- 扫码器 ---------- */
.scan-box { display: flex; flex-direction: column; gap: 12px; }
.scan-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.scan-tab {
  border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; transition: var(--transition);
}
.scan-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.scan-pane { position: relative; }
.scan-pane video {
  width: 100%; max-height: 320px; background: #000; border-radius: var(--radius-md); display: block; object-fit: cover;
}
.scan-mask {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%);
  border: 2px solid var(--primary); border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.25);
}
.scan-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.scan-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 30px 16px; text-align: center;
  color: var(--text-muted); font-size: 13px; cursor: pointer; background: var(--bg-tertiary);
}
.scan-drop:hover { border-color: var(--primary-light); color: var(--primary); }
.scan-status { font-size: 12px; color: var(--text-muted); text-align: center; min-height: 18px; }

@media (max-width: 640px) {
  .modal-xl { width: 98vw !important; }
  .tool-run-frame { height: 60vh; }
  .repo-back-btn { font-size: 12px; padding: 5px 10px; }
}

/* ==========================================================================
   FSER v8 —— 工具窗口全屏（模态撑满视口，非浏览器 F11）+ 我的反馈扫码栏
   ========================================================================== */

/* ---------- 工具运行：窗口内全屏 ----------
   与浏览器 Fullscreen API 的区别：
   这里只把模态撑到接近视口大小，仍保留本站外框（标题栏/关闭按钮），
   因此不会遮挡浏览器 UI，用户随时可以点「还原」或直接关闭。 */
.modal.modal-fill {
  width: calc(100vw - 24px) !important;
  max-width: calc(100vw - 24px) !important;
  height: calc(100vh - 24px) !important;
  max-height: calc(100vh - 24px) !important;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.modal.modal-fill .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
}
.modal.modal-fill .tool-run {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.modal.modal-fill .tool-run-frame {
  flex: 1;
  height: auto !important;
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 0 0 14px 14px;
}
/* 全屏态下 iframe 需要更高权限才能正常展示（不授予 same-origin） */
.modal.modal-fill .tool-run-frame {
  background: #fff;
}

/* ---------- 我的反馈：扫码栏 ---------- */
.mf-scan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(16, 185, 129, .08));
  border: 1px solid var(--border-light, #e2e8f0);
}
.mf-scan-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mf-scan-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .25);
}
.mf-scan-title { font-size: 15px; font-weight: 600; color: var(--text-primary, #1e293b); }
.mf-scan-desc { font-size: 12px; color: var(--text-tertiary, #94a3b8); margin-top: 2px; line-height: 1.5; }
.mf-scan-btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .mf-scan-bar { flex-direction: column; align-items: stretch; }
  .mf-scan-btns { justify-content: flex-start; }
  .modal.modal-fill {
    width: 100vw !important; max-width: 100vw !important;
    height: 100vh !important; max-height: 100vh !important;
    border-radius: 0;
  }
}
