/* ============================================================
   FDU.email — 管理员后台样式
   ============================================================ */

.admin-container { max-width: 960px; margin: 0 auto; padding: 120px 20px 60px; }
.admin-view { display: none; animation: fadeUp .5s ease-out both; }
.admin-view.visible { display: block; }
.admin-card > .card-inner { padding: 28px; }
.admin-badge { font-size: 10px; background: rgba(239,68,68,.2); color: #fca5a5; padding: 2px 7px; border-radius: 5px; margin-left: 6px; letter-spacing: 1px; font-weight: 700; vertical-align: middle; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card .card-inner { padding: 20px; text-align: center; }
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-num { font-size: 28px; font-weight: 800; color: #e0e7ff; font-family: 'JetBrains Mono', monospace; }
.stat-label { font-size: 12px; color: rgba(165,180,252,.5); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* 标签栏 */
.tab-bar { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(15,15,35,.5); border-radius: 12px; padding: 4px; border: 1px solid rgba(99,102,241,.1); }
.tab { flex: 1; padding: 10px 16px; border: none; background: none; color: rgba(165,180,252,.5); font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px; transition: all .25s; }
.tab.active { background: rgba(99,102,241,.2); color: #e0e7ff; }
.tab:hover:not(.active) { color: rgba(165,180,252,.8); }

.tab-content { display: none; }
.tab-content.visible { display: block; animation: fadeUp .3s ease-out; }

/* 工具栏 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-title { font-size: 14px; color: rgba(165,180,252,.6); font-weight: 500; }
.search-bar { flex: 1; min-width: 200px; }
.search-bar input { font-size: 13px; }

/* 数据表格 */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; color: rgba(165,180,252,.45); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid rgba(99,102,241,.1); white-space: nowrap; }
.data-table td { padding: 10px 12px; color: #c7d2fe; border-bottom: 1px solid rgba(99,102,241,.06); }
.data-table tr:hover td { background: rgba(99,102,241,.05); }
.data-table .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #a5b4fc; }
.data-table .alias-col { font-weight: 600; color: #e0e7ff; }
.data-table .status-badge { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.data-table .status-badge.ok { background: rgba(34,197,94,.15); color: #86efac; }
.data-table .status-badge.err { background: rgba(239,68,68,.15); color: #fca5a5; }

/* 操作按钮 */
.action-btns { display: flex; gap: 6px; }
.action-btn { padding: 4px 10px; border: 1px solid rgba(165,180,252,.15); background: none; color: rgba(165,180,252,.7); font-size: 12px; border-radius: 6px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.action-btn:hover { border-color: rgba(165,180,252,.3); color: #e0e7ff; background: rgba(99,102,241,.1); }
.action-btn.danger { border-color: rgba(239,68,68,.2); color: rgba(252,165,165,.7); }
.action-btn.danger:hover { border-color: rgba(239,68,68,.4); color: #fca5a5; background: rgba(239,68,68,.1); }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.pagination button { padding: 6px 14px; border: 1px solid rgba(99,102,241,.15); background: none; color: rgba(165,180,252,.6); border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .2s; }
.pagination button:hover:not(:disabled) { background: rgba(99,102,241,.15); color: #e0e7ff; }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination .page-info { font-size: 13px; color: rgba(165,180,252,.4); }

/* 弹窗 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-overlay.visible { display: flex; animation: fadeIn .2s ease-out; }
.modal-card { max-width: 480px; width: 90%; }
.modal-card .card-inner { padding: 28px; }
.modal-card h3 { color: #e0e7ff; font-size: 17px; margin: 0 0 12px; }
.modal-card .form-field { margin-bottom: 14px; }
.modal-card .modal-btns { display: flex; gap: 10px; margin-top: 16px; }
.modal-card .modal-btns .btn-main { flex: 1; }
.modal-card .btn-cancel { flex: 1; padding: 12px; border: 1px solid rgba(165,180,252,.15); background: none; color: rgba(165,180,252,.6); border-radius: 12px; font-size: 14px; cursor: pointer; transition: all .2s; }
.modal-card .btn-cancel:hover { background: rgba(99,102,241,.1); color: #e0e7ff; }

.empty-state { text-align: center; padding: 40px 20px; color: rgba(165,180,252,.3); font-size: 14px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .admin-container { padding-top: 100px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; }
  .data-table { font-size: 12px; }
}
