/* 域名跳转系统 - 样式表 */
/* 设计：腾讯系清爽风格，去AI化，简洁紧凑 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2b7fff;
  --primary-hover: #4d94ff;
  --primary-light: #e8f1ff;
  --success: #00b42a;
  --success-light: #e8f9ec;
  --warning: #ff7d00;
  --warning-light: #fff3e8;
  --danger: #f53f3f;
  --danger-light: #ffecec;
  --info: #909399;
  --info-light: #f4f4f5;
  --text-1: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --text-4: #c9cdd4;
  --border-1: #e5e6eb;
  --border-2: #f2f3f5;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-hover: #f7f8fa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --sidebar-w: 220px;
  --header-h: 56px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ====== 登录页 ====== */
.login-page {
  height: 100vh;
  display: flex;
  background: #f7f8fa;
}
.login-left {
  width: 55%;
  min-width: 420px;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(0,0,0,0.08) 0%, transparent 45%);
}
.login-left-inner { position: relative; z-index: 1; max-width: 420px; padding: 40px; }
.login-brand-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.login-brand-icon svg { width: 30px; height: 30px; color: #fff; }
.login-brand-title { font-size: 32px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.login-brand-desc { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 40px; }
.login-brand-feature { display: flex; flex-direction: column; gap: 14px; }
.login-feature-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.9); }
.login-feature-dot { width: 6px; height: 6px; border-radius: 50%; background: #86efac; }
.login-right {
  flex: 1;
  min-width: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.08);
  border: 1px solid var(--border-1);
}
.login-card-header { margin-bottom: 28px; }
.login-card-title { font-size: 22px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.login-card-subtitle { font-size: 13px; color: var(--text-3); }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.login-input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-1);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,127,255,0.12); }
.login-input::placeholder { color: var(--text-4); }
.login-submit {
  width: 100%; height: 44px;
  margin-top: 8px;
  border: none; border-radius: 8px;
  background: linear-gradient(135deg, #2b7fff 0%, #1d6ef5 100%);
  color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}
.login-submit:hover { box-shadow: 0 6px 16px rgba(43,127,255,0.35); background: linear-gradient(135deg, #2372f5 0%, #1861e6 100%); }
.login-submit:active { transform: translateY(1px); }
.login-copyright { margin-top: 24px; font-size: 12px; color: var(--text-4); }
.expired-icon { width: 64px; height: 64px; margin: 0 auto; color: var(--warning); }
.expired-icon svg { width: 100%; height: 100%; }
.expired-date { margin-top: 12px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.expired-desc { margin-top: 16px; font-size: 13px; color: var(--text-3); line-height: 1.8; }
@media (max-width: 860px) {
  .login-left { display: none; }
  .login-right { width: 100%; min-width: auto; }
}

/* ====== 主框架 ====== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border-1);
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-header {
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-1);
  gap: 10px;
}
.sidebar-header .logo-icon {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-header .logo-icon svg { width: 18px; height: 18px; display: block; }
.sidebar-header .logo-text { font-size: 16px; font-weight: 600; color: var(--text-1); }
.sidebar-menu { flex: 1; padding: 12px 0; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.menu-item:hover { background: var(--bg-hover); color: var(--text-1); }
.menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.menu-item .icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.menu-item .icon svg { width: 18px; height: 18px; display: block; }
.menu-section { font-size: 12px; color: var(--text-3); padding: 16px 20px 8px; font-weight: 500; }

/* 主区域 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.user-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.user-info:hover { background: var(--bg-hover); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.content { flex: 1; padding: 20px 24px; overflow-y: auto; }

/* ====== 通用组件 ====== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.page-title {
  font-size: 20px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: baseline; gap: 12px;
}
.page-subtitle { font-size: 13px; color: var(--text-3); font-weight: 400; }
.page-actions { display: flex; gap: 8px; }

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-2);
  margin-bottom: 16px;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.card-body { padding: 20px; }
.card-body.no-pad { padding: 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  height: 32px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--border-1); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-solid:hover { background: #e83737; border-color: #e83737; color: #fff; }
.btn-success { color: var(--success); border-color: var(--border-1); }
.btn-success:hover { background: var(--success); color: #fff; border-color: var(--success); }
.btn-warning { color: var(--warning); border-color: var(--border-1); }
.btn-warning:hover { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-sm { height: 28px; padding: 4px 10px; font-size: 12px; }
.btn-text {
  background: transparent; border: none; padding: 4px 8px;
  color: var(--primary); font-size: 13px; cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.btn-text:hover { background: var(--primary-light); }
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { background: var(--danger-light); }

/* 表单 */
.form-item { display: flex; align-items: center; margin-bottom: 18px; }
.form-label {
  width: 100px;
  text-align: left;
  font-size: 13px;
  color: var(--text-2);
  padding-right: 12px;
  flex-shrink: 0;
}
.form-label.required::before { content: '*'; color: var(--danger); margin-right: 2px; }
.form-control { flex: 1; max-width: 480px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-1);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.form-textarea {
  height: auto; min-height: 80px;
  padding: 8px 11px;
  font-family: inherit;
  resize: vertical;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-input:disabled, .form-select:disabled { background: var(--bg-page); color: var(--text-3); }
.form-help { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.form-actions { margin-top: 24px; padding-left: 100px; display: flex; gap: 8px; }

.checkbox-item {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 32px;
  cursor: pointer; font-size: 13px; color: var(--text-1);
  user-select: none; line-height: 1;
}
.checkbox-item input[type=checkbox] {
  width: 14px; height: 14px;
  cursor: pointer; accent-color: var(--primary);
}
.radio-group { display: inline-flex; gap: 18px; align-items: center; min-height: 32px; }
.radio-item {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 13px;
  user-select: none; line-height: 1;
}
.radio-item input[type=radio] {
  width: 14px; height: 14px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* 搜索栏 */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-input {
  width: 240px; height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
}
.search-input:focus { border-color: var(--primary); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: left;
  padding: 12px 16px;
  background: #fafbfc;
  color: var(--text-2);
  font-weight: 500;
  border-bottom: 1px solid var(--border-1);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-1);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: var(--bg-hover); }
.table .actions { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.table .actions .btn-text { flex-shrink: 0; }
.table-empty { text-align: center; padding: 60px 0; color: var(--text-3); font-size: 13px; }
.table-empty-icon { font-size: 40px; margin-bottom: 8px; color: var(--text-4); }
.log-detail {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  font-size: 12px;
  color: var(--text-3);
  vertical-align: bottom;
}

/* 状态徽章 */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* 域名卡片 */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.domain-card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.15s;
  position: relative;
}
.domain-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.domain-card .dc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.domain-card .dc-name {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  word-break: break-all;
}
.domain-card .dc-owner { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.domain-card .dc-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 4px 0; font-size: 12px; gap: 8px;
}
.domain-card .dc-row .label { color: var(--text-3); flex-shrink: 0; }
.domain-card .dc-row .value {
  color: var(--text-1); text-align: right;
  flex: 1; word-break: break-all;
}
.domain-card .dc-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 8px 0 10px; align-items: center;
}
.domain-card .dc-actions {
  display: flex; gap: 4px;
  border-top: 1px solid var(--border-2);
  padding-top: 10px; margin-top: 10px;
  flex-wrap: wrap;
}

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-2);
  font-size: 13px; color: var(--text-2);
}
.pagination .page-btn {
  height: 28px; min-width: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-1);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
}
.pagination .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  animation: fadeIn 0.15s;
}
.modal-mask.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-large { width: 720px; }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.modal-close {
  cursor: pointer;
  font-size: 20px; color: var(--text-3);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: transparent; border: none;
  line-height: 1;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-1); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-2);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* 提示 */
.toast-container {
  position: fixed; top: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  min-width: 200px;
  pointer-events: auto;
  animation: slideDown 0.2s;
}
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.success { border-color: var(--success); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--primary); }
.toast-icon { font-size: 16px; }

/* 提示框 */
.alert {
  padding: 10px 14px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.6;
  margin-bottom: 16px;
  display: flex; gap: 8px; align-items: flex-start;
}
.alert-info { background: var(--primary-light); border-color: #c9deff; color: #1d4ed8; }
.alert-warning { background: var(--warning-light); border-color: #ffd9b3; color: #b35a00; }
.alert-success { background: var(--success-light); border-color: #b8ecce; color: #00701a; }
.alert-danger { background: var(--danger-light); border-color: #ffcdcd; color: #b51b1b; }
.alert .alert-icon { font-size: 14px; flex-shrink: 0; line-height: 1.6; }

/* 描述列表 */
.descriptions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; font-size: 13px; }
.desc-item { display: flex; }
.desc-label { color: var(--text-3); width: 90px; flex-shrink: 0; }
.desc-value { color: var(--text-1); flex: 1; word-break: break-all; }

/* 空状态 */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px; color: var(--text-3);
}
.empty-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(43,127,255,0.12) 0%, rgba(43,127,255,0.04) 100%);
  color: var(--primary);
  margin-bottom: 16px;
}
.empty-icon-wrap svg { width: 34px; height: 34px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.empty-desc { font-size: 13px; color: var(--text-3); margin-top: 6px; }

/* 加载 */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
  color: var(--text-3); font-size: 13px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 设置页 */
.config-section { margin-bottom: 24px; }
.config-section-title {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-2);
}

/* 批量结果条 */
.batch-result {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex; align-items: center; gap: 12px;
}
.batch-result .success-count { color: var(--success); font-weight: 600; }
.batch-result .fail-count { color: var(--danger); font-weight: 600; }

/* 用户下拉 */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 4px 0;
  display: none;
  z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-1);
  cursor: pointer;
  user-select: none;
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-divider { height: 1px; background: var(--border-2); margin: 4px 0; }
.dropdown-info { cursor: default; color: var(--text-3); font-size: 12px; }
.dropdown-info:hover { background: transparent; }

/* 工具类 */
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

/* 点击复制后的内联小提示 */
.copy-tip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  background: rgba(0, 180, 42, 0.1);
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.copy-tip.fade { opacity: 0; }
[data-copy] {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* 工作台统计卡片图标 */
.stat-icon { display: flex; align-items: center; }
.stat-icon svg { width: 24px; height: 24px; display: block; }
.stat-icon.is-spin svg { animation: icon-spin 1.2s linear infinite; }
@keyframes icon-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.mono { font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.fw-600 { font-weight: 600; }
.cursor-pointer { cursor: pointer; }

/* ====== 弹窗专用表单 ====== */
.modal-status-card {
  background: var(--bg-page);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.modal-status-card.compact { padding: 12px 16px; margin-bottom: 16px; }
.modal-status-main {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.modal-status-card.compact .modal-status-main { margin-bottom: 0; }
.modal-status-label { font-size: 13px; color: var(--text-3); }
.modal-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.modal-status-item {
  display: flex; flex-direction: column; gap: 2px;
}
.modal-status-item-label {
  font-size: 12px; color: var(--text-3);
}
.modal-status-item-value {
  font-size: 13px; color: var(--text-1); font-weight: 500;
  word-break: break-all;
}

.modal-field { margin-bottom: 18px; }
.modal-field:last-of-type { margin-bottom: 0; }
.modal-label {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  margin-bottom: 6px;
}
.modal-label.required::before { content: '*'; color: var(--danger); margin-right: 2px; }
.modal-input {
  width: 100%; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,127,255,0.1);
}
.modal-help {
  font-size: 12px; color: var(--text-3);
  margin-top: 5px; line-height: 1.5;
}
.modal-tip {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--primary);
  line-height: 1.5;
}

/* 状态码卡片选择器 */
.code-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.code-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.code-card input[type=radio] {
  position: absolute; opacity: 0; pointer-events: none;
}
.code-card:hover { border-color: var(--primary-light); background: var(--primary-light); }
.code-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.code-card-mark {
  font-size: 18px; font-weight: 700; color: var(--primary);
}
.code-card-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
}
.code-card-desc {
  font-size: 12px; color: var(--text-3);
}

/* Toggle 开关 */
.switch-row {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.switch-row input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch {
  width: 40px; height: 22px;
  background: var(--border-1);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.switch-row input:checked + .toggle-switch { background: var(--primary); }
.switch-row input:checked + .toggle-switch::after { transform: translateX(18px); }
.switch-text { font-size: 13px; color: var(--text-1); }

/* 弹窗进度面板 */
.modal-progress {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
}
.modal-progress-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.modal-progress-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.modal-progress-percent { font-size: 12px; color: var(--text-2); }
.modal-progress-bar {
  height: 8px;
  background: var(--border-1);
  border-radius: 4px;
  overflow: hidden;
}
.modal-progress-fill {
  height: 100%; width: 0%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.modal-progress-text {
  margin-top: 10px;
  font-size: 13px; color: var(--text-2); line-height: 1.6;
}
.modal-progress-log {
  margin-top: 8px;
  font-size: 12px; color: var(--text-3); line-height: 1.5;
  max-height: 90px; overflow-y: auto;
}

/* 表格内备注可编辑 */
.remark-text {
  display: inline-block;
  max-width: 100%;
  font-size: 13px; color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.remark-text.editable {
  cursor: pointer;
  border-bottom: 1px dashed var(--border-1);
  padding: 2px 0;
  transition: color 0.15s, border-color 0.15s;
}
.remark-text.editable:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.remark-text.placeholder {
  color: var(--text-4);
  font-size: 12px;
}
.remark-input {
  width: 100%; height: 30px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-1);
  outline: none;
  box-shadow: 0 0 0 2px rgba(43,127,255,0.1);
}

@media (max-width: 768px) {
  :root { --sidebar-w: 56px; }
  .menu-item span { display: none; }
  .menu-section { display: none; }
  .sidebar-header .logo-text { display: none; }
  .form-item { flex-direction: column; }
  .form-label { width: 100%; text-align: left; padding: 0 0 4px; }
  .form-actions { padding-left: 0; }
  .descriptions { grid-template-columns: 1fr; }
}
