/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f2f5;
  color: #333;
  font-size: 14px;
}
.app {
  display: flex;
  min-height: 100vh;
}
/* ===== 侧边栏 ===== */
.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.logo-title {
  font-size: 16px;
  font-weight: 600;
}
.logo-sub {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.logo-sub a {
  color: #4f46e5;
  text-decoration: none;
}
.section-title {
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}
.input, .select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  outline: none;
  font-size: 13px;
  transition: border 0.2s;
  background: #fff;
}
.input:focus, .select:focus {
  border-color: #4f46e5;
}
.upload-box {
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 12px 0;
  color: #999;
}
.upload-box:hover, .upload-box.dragover {
  border-color: #4f46e5;
  background: #f5f3ff;
}
.upload-icon {
  font-size: 28px;
  margin-bottom: 8px;
  color: #c4b5fd;
}
.hint {
  font-size: 11px;
  margin-top: 6px;
  color: #bbb;
}
.hint-blue {
  font-size: 11px;
  color: #4f46e5;
  margin: 6px 0 12px;
}
.btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.btn-primary {
  background: #4f46e5;
  color: #fff;
}
.btn-primary:hover {
  background: #4338ca;
}
.btn-gray {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
}
.btn-gray:hover {
  background: #eee;
}
.btn-danger-outline {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.btn-danger-outline:hover {
  background: #fef2f2;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.btn-view {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.btn-refresh {
  background: #4f46e5;
  color: #fff;
}
.btn-del {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.log-box {
  margin-top: auto;
  background: #1e1e1e;
  color: #a3e635;
  font-size: 11px;
  padding: 10px;
  border-radius: 8px;
  max-height: 140px;
  overflow-y: auto;
  font-family: monospace;
  line-height: 1.5;
  display: none;
}
.log-box.show {
  display: block;
}
/* ===== 主区域 ===== */
.main {
  flex: 1;
  padding: 20px 24px;
  overflow-x: auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card.purple {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}
.stat-card.green {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.stat-card.pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}
.stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  opacity: 0.3;
}
.stat-label {
  font-size: 13px;
  opacity: 0.9;
}
.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-top: 4px;
}
/* 工具栏 */
.toolbar {
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.search-box input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  width: 220px;
  outline: none;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
}
/* 表格 */
.table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 400px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead {
  background: #fafafa;
}
th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  vertical-align: middle;
}
th {
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}
td {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td.email {
  color: #2563eb;
  max-width: 220px;
}
td.token {
  max-width: 140px;
  font-family: monospace;
  font-size: 12px;
  color: #666;
}
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.status-unknown {
  background: #fef3c7;
  color: #d97706;
}
.status-valid {
  background: #d1fae5;
  color: #059669;
}
.status-expired {
  background: #fee2e2;
  color: #dc2626;
}
.code-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.code-text {
  font-family: monospace;
  font-weight: 600;
  color: #7c3aed;
  letter-spacing: 1px;
}
.btn-copy {
  padding: 2px 8px;
  font-size: 11px;
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  border-radius: 4px;
  cursor: pointer;
}
.btn-copy:hover {
  background: #ede9fe;
}
.actions {
  display: flex;
  gap: 6px;
}
.empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #bbb;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #c4b5fd;
}
/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
  font-size: 13px;
}
.pagination button {
  width: 32px;
  height: 32px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.pagination .page-num {
  background: #4f46e5;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.pagination input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  text-align: center;
}
/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}
.modal-content textarea {
  margin: 16px 20px;
  height: 200px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font-family: monospace;
  font-size: 13px;
  outline: none;
}
.modal-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
}
.progress-modal {
  width: 320px;
  padding: 32px;
  text-align: center;
  align-items: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin: 16px 0 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  width: 0%;
  transition: width 0.3s;
}
.mail-modal {
  width: 700px;
}
.mail-list {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 500px;
}
.mail-item {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.mail-item .from {
  font-weight: 600;
  margin-bottom: 4px;
}
.mail-item .subject {
  color: #666;
  font-size: 13px;
}
.mail-item .time {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.mail-item .body {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
  max-height: 100px;
  overflow: hidden;
  background: #fafafa;
  padding: 8px;
  border-radius: 6px;
}
.table-wrap { overflow-x: auto; }
table { min-width: 1000px; table-layout: fixed; }
td.email, td.token { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { white-space: nowrap; }
/* 强制表格紧凑 */
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100% !important;
  min-width: 900px;
  table-layout: fixed !important;
  border-collapse: collapse;
}
th, td {
  padding: 6px 4px !important;
  font-size: 13px !important;
}
td.email {
  max-width: 160px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td.token {
  max-width: 110px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actions {
  white-space: nowrap !important;
  min-width: 150px;
}
.actions .btn {
  padding: 2px 6px !important;
  font-size: 12px !important;
  margin: 0 1px !important;
}
.status-badge {
  font-size: 12px !important;
  padding: 2px 6px !important;
}
/* 密码区往左挪约3cm */
td.email {
  max-width: 130px !important;
  width: 130px !important;
}
th:nth-child(3), td:nth-child(3) { /* 邮箱地址列 */
  max-width: 130px !important;
  width: 130px !important;
}
/* 再往左1cm */
td.email {
  max-width: 95px !important;
  width: 95px !important;
}
th:nth-child(3), td:nth-child(3) {
  max-width: 95px !important;
  width: 95px !important;
}
/* 再往左1cm */
td.email {
  max-width: 95px !important;
  width: 95px !important;
}
th:nth-child(3), td:nth-child(3) {
  max-width: 95px !important;
  width: 95px !important;
}
/* ===== 强制布局调整 ===== */
.table-wrap table {
  table-layout: fixed !important;
  width: 100% !important;
}
.table-wrap th:nth-child(1),
.table-wrap td:nth-child(1) { width: 30px !important; } /* 复选框 */
.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2) { width: 40px !important; } /* 序号 */
.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) {
  width: 140px !important;
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
} /* 邮箱地址 - 控制密码区位置的关键 */
.table-wrap th:nth-child(4),
.table-wrap td:nth-child(4) { width: 90px !important; } /* 密码 */
.table-wrap th:nth-child(5),
.table-wrap td:nth-child(5) { width: 110px !important; } /* Client ID */
.table-wrap th:nth-child(6),
.table-wrap td:nth-child(6) { width: 110px !important; } /* Refresh Token */
.table-wrap th:nth-child(7),
.table-wrap td:nth-child(7) { width: 100px !important; } /* 验证码 */
.table-wrap th:nth-child(8),
.table-wrap td:nth-child(8) { width: 90px !important; } /* 状态 */
.table-wrap th:nth-child(9),
.table-wrap td:nth-child(9) { width: 160px !important; } /* 操作 */
/* 强制显示删除按钮 */
.btn-del {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #ff4d4f !important;
  color: white !important;
  border: 1px solid #ff4d4f !important;
  padding: 3px 8px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}
.actions {
  overflow: visible !important;
}
/* 收件箱 / 垃圾箱 明显区分 */
.mail-section-title {
  margin: 18px 0 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}
.mail-section-inbox {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}
.mail-section-junk {
  background: #fff3e0;
  color: #e65100;
  border-left: 4px solid #ff9800;
}
.mail-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fafafa;
}
.mail-section-inbox + .mail-item,
.mail-section-inbox ~ .mail-item {
  border-left: 3px solid #c8e6c9;
}
.mail-section-junk + .mail-item,
.mail-section-junk ~ .mail-item {
  border-left: 3px solid #ffe0b2;
}
.btn-copy-sm {
  margin-left: 4px;
  padding: 1px 5px !important;
  font-size: 11px !important;
  background: #f0f0f0;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  cursor: pointer;
  color: #666;
  vertical-align: middle;
}
.btn-copy-sm:hover {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
}
td.email, td:nth-child(4) {
  white-space: nowrap;
}
/* 统一所有复制按钮样式 + 垂直对齐 */
.btn-copy,
.btn-copy-sm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 22px !important;
  padding: 0 6px !important;
  margin-left: 6px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  background: #1890ff !important;
  color: #fff !important;
  border: 1px solid #1890ff !important;
  border-radius: 4px !important;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}
.btn-copy:hover,
.btn-copy-sm:hover {
  background: #40a9ff !important;
  border-color: #40a9ff !important;
}
/* 让单元格内容垂直居中，按钮对齐 */
td.email,
td:nth-child(4),
td .code-cell {
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
td.email span,
td:nth-child(4) span,
.code-text {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
/* 清除之前可能影响对齐的 flex */
td.email,
td:nth-child(4),
td .code-cell {
  display: table-cell !important;
  vertical-align: middle !important;
  white-space: nowrap;
}
/* 统一复制按钮 */
.btn-copy,
.btn-copy-sm {
  display: inline-block !important;
  height: 22px !important;
  line-height: 20px !important;
  padding: 0 6px !important;
  margin-left: 6px !important;
  font-size: 12px !important;
  background: #1890ff !important;
  color: #fff !important;
  border: 1px solid #1890ff !important;
  border-radius: 4px !important;
  cursor: pointer;
  vertical-align: middle !important;
}
.btn-copy:hover,
.btn-copy-sm:hover {
  background: #40a9ff !important;
}
/* 让文字和按钮在同一行，按钮位置固定靠右一点 */
td.email span,
td:nth-child(4) span {
  display: inline-block;
  max-width: calc(100% - 50px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.code-cell {
  white-space: nowrap;
}
.code-text {
  display: inline-block;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
/* 最终对齐方案：按钮固定在右侧 */
td.email,
td:nth-child(4),
td:nth-child(7) {
  position: relative !important;
  padding-right: 52px !important;
  vertical-align: middle !important;
  overflow: hidden;
}
td.email span,
td:nth-child(4) span,
.code-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* 复制按钮绝对定位到右侧，保证对齐 */
.btn-copy,
.btn-copy-sm {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 22px !important;
  line-height: 20px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  font-size: 12px !important;
  background: #1890ff !important;
  color: #fff !important;
  border: 1px solid #1890ff !important;
  border-radius: 4px !important;
  cursor: pointer;
  z-index: 2;
}
.btn-copy:hover,
.btn-copy-sm:hover {
  background: #40a9ff !important;
}
/* 验证码列给“未获取到验证码”足够宽度 */
td:nth-child(7) {
  min-width: 130px !important;
}
.code-cell {
  position: relative;
  padding-right: 52px !important;
  display: block !important;
}
/* 取消绝对定位，改用简单稳定对齐 */
td.email,
td:nth-child(4),
td:nth-child(7) {
  position: static !important;
  padding-right: 8px !important;
}
.btn-copy,
.btn-copy-sm {
  position: static !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
  display: inline-block !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  height: 22px !important;
  line-height: 20px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  background: #1890ff !important;
  color: white !important;
  border: 1px solid #1890ff !important;
  border-radius: 4px !important;
}
td.email,
td:nth-child(4) {
  white-space: nowrap;
}
.code-cell {
  white-space: nowrap;
  position: static !important;
  padding-right: 0 !important;
}
/* ===== 复制按钮最终优化 ===== */
/* 邮箱、密码、验证码统一布局 */
td.email,
td:nth-child(4),
td:nth-child(7) {
    position: relative !important;
    padding-right: 48px !important;
    white-space: nowrap !important;
}
/* 内容省略 */
td.email,
td:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 复制按钮统一样式 */
.btn-copy,
.btn-copy-sm {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 22px !important;
    line-height: 20px !important;
    padding: 0 7px !important;
    background: #1890ff !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    cursor: pointer;
    z-index: 5;
}
/* 鼠标效果 */
.btn-copy:hover,
.btn-copy-sm:hover {
    background: #40a9ff !important;
}
/* 鼠标经过邮箱提示 */
td.email:hover,
td:nth-child(4):hover {
    background: #f5faff;
}
/* 鼠标提示复制 */
td.email::after,
td:nth-child(4)::after {
    content: " 点击复制";
    display: none;
    position: absolute;
    left: 8px;
    bottom: -18px;
    font-size: 11px;
    color: #1890ff;
    background: #fff;
    z-index: 20;
}
td.email:hover::after,
td:nth-child(4):hover::after {
    display:block;
}
/* 验证码按钮 */
.code-cell {
    position: relative !important;
    padding-right:48px !important;
    white-space:nowrap;
}
.code-text {
    max-width:70px;
    overflow:hidden;
    text-overflow:ellipsis;
    display:inline-block;
}
/* 表格行鼠标效果 */
tbody tr:hover {
    background:#fafafa;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* ===== 点击复制优化 ===== */
.copy-hover {
    cursor:pointer;
    position:relative;
    transition:.2s;
}
.copy-hover:hover {
    color:#1890ff;
}
/* 鼠标提示 */
.copy-hover:hover::after {
    content:"点击复制";
    position:absolute;
    left:50%;
    bottom:-25px;
    transform:translateX(-50%);
    background:#333;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    white-space:nowrap;
    z-index:999;
}
/* 验证码显示完整 */
.table-wrap td:nth-child(7) {
    width: 150px !important;
    min-width: 150px !important;
    white-space: nowrap !important;
}
.code-cell {
    white-space: nowrap !important;
}
.code-text {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}
/* ===== 复制提示优化 ===== */
.copy-hover::after {
    opacity: 0;
    visibility: hidden;
    transition: all .15s ease;
    transform: translateX(-50%) translateY(5px) !important;
}
.copy-hover:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}
/* 提示框大小 */
.copy-hover:hover::after {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    bottom: -26px;
}
/* 鼠标效果 */
.copy-hover:hover {
    color: #1890ff;
}
/* ===== 复制提示优化 ===== */
.copy-hover::after {
    opacity: 0;
    visibility: hidden;
    transition: all .15s ease;
    transform: translateX(-50%) translateY(5px) !important;
}
.copy-hover:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}
/* 提示框大小 */
.copy-hover:hover::after {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    bottom: -26px;
}
/* 鼠标效果 */
.copy-hover:hover {
    color: #1890ff;
}
/* ===== 验证码列固定复制按钮 ===== */
/* 验证码列固定宽度 */
.table-wrap th:nth-child(7),
.table-wrap td:nth-child(7) {
    width:150px !important;
    min-width:150px !important;
    position:relative !important;
    white-space:nowrap !important;
}
/* 验证码容器 */
.code-cell {
    display:block !important;
    position:relative !important;
    width:100%;
    height:22px;
}
/* 验证码文字 */
.code-text {
    display:inline-block !important;
    max-width:85px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    vertical-align:middle;
}
/* 验证码复制按钮固定右侧 */
td:nth-child(7) .btn-copy-sm {
    position:absolute !important;
    right:4px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    height:22px !important;
    line-height:20px !important;
    padding:0 7px !important;
    font-size:12px !important;
    background:#1890ff !important;
    color:#fff !important;
    border:1px solid #1890ff !important;
    border-radius:4px !important;
    cursor:pointer;
}
/* 鼠标效果 */
td:nth-child(7) .btn-copy-sm:hover {
    background:#40a9ff !important;
}
/* ===== 修复验证码按钮遮挡文字 ===== */
.table-wrap th:nth-child(7),
.table-wrap td:nth-child(7) {
    width:170px !important;
    min-width:170px !important;
}
/* 验证码容器 */
td:nth-child(7) .code-cell {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
}
/* 验证码文字 */
td:nth-child(7) .code-text {
    flex:1;
    min-width:0;
    max-width:none !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
/* 验证码复制按钮 */
td:nth-child(7) .btn-copy-sm {
    position:static !important;
    transform:none !important;
    flex-shrink:0;
    height:22px !important;
    line-height:20px !important;
    padding:0 7px !important;
    font-size:12px !important;
    background:#1890ff !important;
    color:white !important;
    border-radius:4px !important;
}
/* ===== 微调验证码复制按钮位置 ===== */
td:nth-child(7) .code-cell {
    display:flex !important;
    align-items:center;
    justify-content:flex-start !important;
    gap:12px !important;
}
/* 验证码文字区域 */
td:nth-child(7) .code-text {
    flex:0 1 auto !important;
    max-width:90px !important;
}
/* 按钮固定宽度，不贴边 */
td:nth-child(7) .btn-copy-sm {
    flex:none !important;
    margin-left:8px !important;
}
/* ===== 微调验证码复制按钮位置 ===== */
td:nth-child(7) .code-cell {
    display:flex !important;
    align-items:center;
    justify-content:flex-start !important;
    gap:12px !important;
}
/* 验证码文字区域 */
td:nth-child(7) .code-text {
    flex:0 1 auto !important;
    max-width:90px !important;
}
/* 按钮固定宽度，不贴边 */
td:nth-child(7) .btn-copy-sm {
    flex:none !important;
    margin-left:8px !important;
}
/* ===== 验证码最终布局 ===== */
/* 取消验证码列之前的特殊定位 */
td:nth-child(7) {
    position: static !important;
    padding-right: 8px !important;
}
/* 验证码容器 */
td:nth-child(7) .code-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
}
/* 验证码文字 */
td:nth-child(7) .code-text {
    display: inline-block !important;
    max-width: 90px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
}
/* 验证码复制按钮 */
td:nth-child(7) .btn-copy-sm {
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin-left: 4px !important;
    height:22px !important;
    line-height:20px !important;
    padding:0 7px !important;
    font-size:12px !important;
}
/* ===== 验证码列最终方案 ===== */
/* 验证码列扩大 */
.table-wrap th:nth-child(7),
.table-wrap td:nth-child(7) {
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
}
/* 验证码区域 */
td:nth-child(7) .code-cell {
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    white-space:nowrap !important;
}
/* 验证码文字禁止省略 */
td:nth-child(7) .code-text {
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
    flex-shrink:0 !important;
}
/* 复制按钮固定跟随文字 */
td:nth-child(7) .btn-copy-sm {
    position:static !important;
    flex-shrink:0 !important;
    margin-left:0 !important;
}

/* ===== 欢迎弹窗 ===== */
.welcome-modal {
  width: 420px;
  max-width: 90vw;
  padding: 32px 28px 24px;
  text-align: center;
  border-radius: 16px;
}
.welcome-icon {
  width: 56px;
  height: 56px;
  background: #f0f2f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
  color: #666;
}
.welcome-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.welcome-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 18px;
}
.welcome-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  text-align: left;
  margin-bottom: 22px;
}
.welcome-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.welcome-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #f5f6f8;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
}
.welcome-feature i {
  font-size: 12px;
  color: #4f46e5;
}
.welcome-main-btn {
  width: 180px;
  justify-content: center;
  padding: 11px 0;
  border-radius: 24px;
  font-size: 15px;
  margin: 0 auto 16px;
  display: flex;
}
.welcome-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.welcome-link:hover {
  color: #4f46e5;
}