/* ===== 点亮数字认证（对齐官方截图风格） ===== */
:root {
  --cert-red: #e60012;
  --cert-red-hover: #cc0010;
  --cert-border: #dcdcdc;
  --cert-head-bg: #f5f5f5;
  --cert-text: #333;
  --cert-text-light: #999;
}

.cert-page {
  padding: 16px 0 48px;
  background: #fff;
  min-height: 60vh;
}

.cert-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--cert-border);
  margin-bottom: 20px;
}

.cert-tabs {
  display: flex;
  gap: 40px;
}

.cert-tab {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--cert-text);
  padding: 12px 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  line-height: 1;
}
.cert-tab.active {
  color: var(--cert-red);
}
.cert-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cert-red);
}

.cert-scheme-link {
  font-size: 13px;
  color: var(--cert-red);
  padding-bottom: 12px;
  white-space: nowrap;
}
.cert-scheme-link:hover { opacity: .85; }

.cert-panel { display: none; }
.cert-panel.active { display: block; }

/* 查询表单 */
.cert-query-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--cert-text);
  margin-bottom: 32px;
}

.cert-form {
  max-width: 500px;
  margin: 0 auto 72px;
}

.cert-field {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.cert-label {
  width: 88px;
  flex-shrink: 0;
  font-size: 14px;
  color: #666;
  text-align: justify;
  text-align-last: justify;
  letter-spacing: 2px;
}

.cert-input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--cert-border);
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--cert-text);
  outline: none;
  font-family: inherit;
}
.cert-input:focus { border-color: #f0a0a0; }

.cert-form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.cert-btn {
  min-width: 84px;
  height: 34px;
  border: none;
  border-radius: 3px;
  background: var(--cert-red);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.cert-btn:hover { background: var(--cert-red-hover); }

.cert-tips-bottom {
  max-width: 880px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--cert-text-light);
  line-height: 2;
}
.cert-tips-bottom strong {
  color: #666;
  font-weight: 600;
}
.cert-tips-bottom .highlight { color: var(--cert-red); }

.cert-msg {
  text-align: center;
  font-size: 13px;
  margin-top: -56px;
  margin-bottom: 36px;
  min-height: 20px;
}
.cert-msg.error { color: var(--cert-red); }
.cert-msg.success { color: #43a047; }

/* 认证信息：左表右提示 */
.cert-info-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-info-main {
  flex: 1;
  min-width: 0;
}

.cert-table-wrap {
  overflow-x: auto;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  color: var(--cert-text);
  table-layout: auto;
}
.cert-table th,
.cert-table td {
  border: 1px solid var(--cert-border);
  padding: 8px 6px;
  line-height: 1.5;
  vertical-align: middle;
}
.cert-table th {
  background: var(--cert-head-bg);
  font-weight: normal;
  color: var(--cert-text);
  white-space: nowrap;
}
.cert-table td {
  background: #fff;
}

.cert-table th:first-child,
.cert-table td:first-child {
  white-space: nowrap;
  min-width: 4.5em;
}

.cert-op-btns {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: nowrap;
}
.cert-op-btn {
  padding: 2px 6px;
  border: none;
  border-radius: 0;
  background: var(--cert-red);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
  white-space: nowrap;
}
.cert-op-btn:hover { background: var(--cert-red-hover); }

.cert-pagination {
  margin-top: 12px;
}
.cert-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: var(--cert-red);
  color: #fff;
  font-size: 12px;
}

/* 右侧提示框 */
.cert-tips-float {
  width: 268px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px 16px 16px;
  font-size: 12px;
  color: var(--cert-text-light);
  line-height: 1.85;
  position: relative;
  background: #fff;
  margin-top: 0;
}
.cert-tips-float.hidden { display: none; }

.cert-tips-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--cert-red);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-weight: bold;
}
.cert-tips-close:hover { opacity: .7; }

.cert-tips-float .tips-title {
  font-weight: bold;
  color: var(--cert-text);
  margin-bottom: 4px;
  font-size: 12px;
}

.cert-tips-float p {
  margin: 0 0 2px;
}

.cert-tips-float .tips-sub {
  padding-left: 0;
  margin-bottom: 4px;
}

.cert-badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 6px;
  color: var(--cert-text);
}
.cert-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1e88e5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.cert-light-table .cert-badge-icon {
  width: 15px;
  height: 15px;
  font-size: 9px;
  vertical-align: middle;
  margin-right: 2px;
}

.cert-light-status {
  color: #43a047;
}

.cert-empty-row td {
  padding: 48px 16px !important;
  color: var(--cert-text-light);
  font-size: 13px;
  background: #fafafa !important;
}

.cert-tab.cert-tab-locked {
  color: #bbb;
  cursor: not-allowed;
}

.cert-op-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.cert-op-btn:disabled:hover {
  background: #ccc;
}

.hidden { display: none !important; }

/* 证书预览弹窗 */
.cert-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cert-preview-mask.hidden { display: none; }

.cert-preview-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.cert-preview-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--cert-red);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.cert-preview-close:hover { background: var(--cert-red-hover); }

.cert-preview-body {
  max-height: calc(90vh - 24px);
  overflow: auto;
}
.cert-preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  margin: 0 auto;
}
