/* ===================================================================
   GEO AI 信源收录平台 - 通用样式表 common.css
   从首页 index.html 抽取的通用样式：变量、按钮、卡片、导航、布局
   =================================================================== */

:root {
  --bg: #0A0B14;
  --bg-2: #0F1020;
  --card: #13141F;
  --card-2: #181928;
  --border: #232539;
  --border-2: #2E3050;
  --fg: #F0F2FF;
  --fg-2: #B5B8D0;
  --muted: #6E7295;
  --acid: #A6FF4D;
  --acid-2: #7DF0B0;
  --violet: #7C5CFF;
  --violet-2: #B89AFF;
  --grad: linear-gradient(120deg, #7C5CFF 0%, #A6FF4D 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,0.16), rgba(166,255,77,0.12));
  --shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  --shadow-soft: 0 12px 40px -16px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  /* 状态色 */
  --c-draft: #6E7295;     /* 草稿灰 */
  --c-push: #4D9CFF;      /* 已推送蓝 */
  --c-indexed: #A6FF4D;   /* 已收录绿 */
  --c-fail: #FF5C7C;      /* 未收录红 */
  --c-warn: #FFB84D;      /* 警告黄 */
  /* 布局 */
  --nav-h: 70px;
  --sidebar-w: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Sora', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 噪点纹理覆盖 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ============ 排版 ============ */
.font-sora { font-family: 'Sora', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--acid);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10,11,20,0.72);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0A0B14;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(166,255,77,0.35);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--acid); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-user .uinfo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}
.nav-user .uavatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0A0B14;
  font-size: 13px;
}
.nav-user .uname { font-size: 13px; color: var(--fg); font-weight: 500; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: var(--grad);
  color: #0A0B14;
  box-shadow: 0 10px 30px -8px rgba(124,92,255,0.5), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(166,255,77,0.45), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover:not(:disabled) { background: var(--card-2); border-color: var(--acid); color: var(--fg); }
.btn-danger {
  background: transparent;
  color: var(--c-fail);
  border: 1px solid rgba(255,92,124,0.4);
}
.btn-danger:hover:not(:disabled) { background: rgba(255,92,124,0.12); border-color: var(--c-fail); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 7px 10px; font-size: 13px; }

/* ============ 卡片 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.card-2 { background: var(--card-2); }
.card-hover { transition: all 0.3s; }
.card-hover:hover { border-color: var(--border-2); transform: translateY(-2px); }

/* ============ 表单 ============ */
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.field-label .req { color: var(--c-fail); margin-left: 2px; }
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(166,255,77,0.12);
  background: var(--card);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236E7295' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select option { background: var(--card); }

/* ============ 状态徽章 ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-draft { color: var(--c-draft); background: rgba(110,114,149,0.14); }
.badge-push { color: var(--c-push); background: rgba(77,156,255,0.14); }
.badge-indexed { color: var(--c-indexed); background: rgba(166,255,77,0.14); }
.badge-fail { color: var(--c-fail); background: rgba(255,92,124,0.14); }
.badge-warn { color: var(--c-warn); background: rgba(255,184,77,0.14); }
.badge-violet { color: var(--violet-2); background: rgba(124,92,255,0.16); }

/* ============ 表格 ============ */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
table.table th, table.table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
table.table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: var(--bg-2);
}
table.table tbody tr { transition: background 0.2s; }
table.table tbody tr:hover { background: var(--card-2); }
table.table tbody tr:last-child td { border-bottom: none; }
table.table td.t-title { color: var(--fg); font-weight: 500; }
table.table td.t-muted { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
table.table td.t-actions { white-space: nowrap; }
table.table td.t-actions .btn { margin-right: 6px; }
.t-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.t-empty .em-ico { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }

/* ============ 分页 ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pagination .pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination .pg-btn:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }
.pagination .pg-btn.active { background: var(--grad); color: #0A0B14; border-color: transparent; font-weight: 700; }
.pagination .pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .pg-info { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin: 0 8px; }

/* ============ Tab 切换 ============ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--fg-2);
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  transition: color 0.2s;
  font-family: inherit;
  font-weight: 500;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--acid); }
.tab.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px 2px 0 0;
}
.tab .tab-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

/* ============ 后台布局 ============ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 50;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 12px;
  margin-bottom: 8px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.2s;
}
.sidebar a:hover { background: var(--card); color: var(--fg); }
.sidebar a.active {
  background: var(--grad-soft);
  color: var(--acid);
  border: 1px solid var(--border-2);
}
.sidebar a .s-ico {
  width: 20px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  opacity: 0.8;
}
.main-area {
  grid-column: 2;
  padding: 32px;
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head .page-desc { color: var(--fg-2); font-size: 14px; margin-top: 4px; }

/* ============ 统计卡片网格 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.5;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.stat-card .s-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.stat-card .s-num {
  font-family: 'Sora', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .s-sub { font-size: 12px; color: var(--fg-2); margin-top: 10px; }
.stat-card .s-ico {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--acid);
}

/* ============ 柱状图 ============ */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding: 20px 0 0;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  max-width: 36px;
  background: var(--grad);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 4px;
  transition: all 0.3s;
  cursor: pointer;
}
.bar:hover { filter: brightness(1.2); transform: translateY(-2px); }
.bar .bar-val {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg);
  opacity: 0;
  transition: opacity 0.2s;
}
.bar:hover .bar-val { opacity: 1; }
.bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* ============ Toast 提示 ============ */
.toast-wrap {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--border-2);
  color: var(--fg);
  font-size: 13.5px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
  backdrop-filter: blur(10px);
}
.toast .t-ico { font-size: 16px; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--acid); }
.toast-success .t-ico { color: var(--acid); }
.toast-error { border-left: 3px solid var(--c-fail); }
.toast-error .t-ico { color: var(--c-fail); }
.toast-info { border-left: 3px solid var(--violet); }
.toast-info .t-ico { color: var(--violet-2); }
.toast.warn { border-left: 3px solid var(--c-warn); }
.toast.warn .t-ico { color: var(--c-warn); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ============ 模态弹窗 ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(5,6,12,0.78);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease;
}
.modal-lg { max-width: 720px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg-2);
  cursor: pointer;
  font-size: 18px;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--c-fail); color: var(--c-fail); }
.modal h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal .modal-desc { color: var(--fg-2); font-size: 13.5px; margin-bottom: 20px; }
.modal .modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ 富文本编辑器 ============ */
.rte-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  flex-wrap: wrap;
}
.rte-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-2);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rte-btn:hover { background: var(--card); color: var(--acid); border-color: var(--border-2); }
.rte-btn.active { background: var(--grad-soft); color: var(--acid); border-color: var(--border-2); }
.rte-divider { width: 1px; background: var(--border); margin: 4px 4px; }
.rte-editor {
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 0 0 10px 10px;
  color: var(--fg);
  font-size: 14.5px;
  line-height: 1.8;
  outline: none;
  transition: all 0.2s;
}
.rte-editor:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(166,255,77,0.1); }
.rte-editor:focus-visible { outline: none; }
.rte-editor h1 { font-size: 24px; margin: 14px 0 10px; font-family: 'Sora', sans-serif; }
.rte-editor h2 { font-size: 20px; margin: 14px 0 10px; font-family: 'Sora', sans-serif; }
.rte-editor h3 { font-size: 17px; margin: 12px 0 8px; }
.rte-editor p { margin: 8px 0; }
.rte-editor ul, .rte-editor ol { padding-left: 24px; margin: 8px 0; }
.rte-editor a { color: var(--acid); text-decoration: underline; }
.rte-editor b, .rte-editor strong { color: var(--fg); font-weight: 700; }

/* ============ 动态行(FAQ) ============ */
.faq-rows { display: flex; flex-direction: column; gap: 12px; }
.faq-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.faq-row .input { padding: 10px 12px; }

/* ============ Loading ============ */
.loading-dots { display: inline-flex; gap: 4px; align-items: center; }
.loading-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dotPulse 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1.2); } }

.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ 动画 ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ 登录注册页专属 ============ */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.auth-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}
.auth-bg .orb.violet { width: 480px; height: 480px; background: #7C5CFF; top: -120px; left: -120px; }
.auth-bg .orb.acid { width: 420px; height: 420px; background: #A6FF4D; bottom: -150px; right: -100px; opacity: 0.3; }
.auth-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,92,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
}
.auth-tag {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--bg-2);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.auth-tab {
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--fg-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
  font-family: inherit;
}
.auth-tab:hover { color: var(--fg); }
.auth-tab.active {
  background: var(--grad);
  color: #0A0B14;
  box-shadow: 0 6px 20px -8px rgba(124,92,255,0.6);
}
.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-foot a { color: var(--acid); }

/* ============ 移动端 ============ */
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--nav-h);
    left: -260px;
    width: var(--sidebar-w);
    transition: left 0.3s;
    z-index: 60;
  }
  .sidebar.open { left: 0; }
  .main-area { grid-column: 1; padding: 24px 20px; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    background: var(--card);
    color: var(--fg);
    cursor: pointer;
    margin-right: 12px;
  }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-card .s-num { font-size: 30px; }
  .page-head h1 { font-size: 22px; }
  .nav-user .uinfo .uname { display: none; }
  .auth-card { padding: 30px 22px; }
  .faq-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
}
