* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f2f3f5;
  color: #303133;
}

/* ===== 整体布局：左侧菜单 + 右侧内容 ===== */
.app-layout { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 220px; flex-shrink: 0;
  background: #1f2d3d; color: #cfd3dc;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  height: 60px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; color: #fff; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-logo { font-size: 22px; }
.app-nav { display: flex; flex-direction: column; padding: 14px 12px; flex: 1; }
.app-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; margin-bottom: 4px; border-radius: 8px;
  color: #cfd3dc; text-decoration: none; font-size: 14px;
  transition: background .2s, color .2s;
}
.app-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-nav a.router-link-active { background: #1e80ff; color: #fff; font-weight: 600; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; outline: none;
  color: #cfd3dc; font-size: 14px;
}
.user-chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #1e80ff; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-arrow { font-size: 12px; }
.toolbar-spacer { flex: 1; }
.app-main { flex: 1; padding: 20px 24px 48px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }

.page.narrow { max-width: 760px; background: #fff; border-radius: 8px; padding: 24px 28px; margin: 0 auto; }
.page-title { margin: 0 0 20px; font-size: 18px; }
.page-hint { font-size: 12px; color: #909399; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ===== 工具条 / 表格 / 分页 ===== */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.record-table { background: #fff; border-radius: 8px; }
.record-table tbody tr { cursor: pointer; }
.pager { display: flex; justify-content: flex-end; margin-top: 16px; }
.cover { width: 44px; height: 44px; border-radius: 6px; display: block; }
.cover-empty {
  background: #f5f7fa; color: #c0c4cc;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e80ff 0%, #3f9eff 55%, #7cc4ff 100%);
}
.login-card {
  width: 380px; background: #fff; border-radius: 12px;
  padding: 42px 36px 36px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); text-align: center;
}
.login-title { font-size: 24px; font-weight: 700; color: #303133; }
.login-sub { font-size: 13px; color: #909399; margin: 10px 0 30px; }
.login-btn { width: 100%; margin-top: 6px; }

/* ===== 详情页 ===== */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-title { margin: 0; font-size: 20px; }
.info-box { background: #fff; border-radius: 8px; margin-bottom: 24px; padding: 14px 16px; }
.steps-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; flex-wrap: wrap; gap: 10px; }
.steps-head h3 { margin: 0; font-size: 16px; }
.steps-head-btns { display: flex; gap: 10px; }
.steps-timeline { padding-left: 6px; padding-top: 4px; }
.step-card { background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 16px 18px; }
.step-content { font-size: 14px; line-height: 1.75; }

/* 步骤图片 */
.step-images { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.img-box { position: relative; width: 110px; }
.img-box .img { width: 110px; height: 110px; border-radius: 6px; display: block; background: #f5f7fa; }
.img-del {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; line-height: 19px;
  text-align: center; background: #f56c6c; color: #fff; border-radius: 50%;
  font-size: 12px; cursor: pointer; display: none; z-index: 2;
}
.img-box:hover .img-del { display: block; }
.img-name {
  font-size: 11px; color: #909399; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.step-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }

/* ===== 证书管理页 ===== */
.cert-tip { margin-bottom: 18px; }
.tip-list { line-height: 1.9; font-size: 13px; }
.tip-list.muted { color: #909399; }
.cert-section h3 { margin: 26px 0 16px; font-size: 15px; }
.form-hint { margin-left: 12px; font-size: 12px; color: #909399; }
.form-hint-block { font-size: 12px; color: #909399; line-height: 1.6; margin-top: 4px; }
.form-hint-block code { background: #f5f7fa; padding: 1px 6px; border-radius: 4px; }

/* ===== 系统维护页-卡片布局 ===== */
.sys-card { margin-bottom: 22px; }
.backup-card { margin-top: 0; }
.backup-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.backup-form { margin-bottom: 6px; }
.backup-info { font-size: 12px; color: #909399; line-height: 1.8; margin-bottom: 12px; }
.backup-alert { margin-bottom: 12px; }
