/* 时光短链 · 正式版样式补充（基于 Tabler UI） */
:root {
  --tblr-primary: #206bc4;
}

body {
  background: #f6f8fb;
}

/* 统计卡片头像 */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: none;
}

/* 列表里的目标内容列 */
.td-target {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tblr-secondary);
}

.td-target.is-message {
  font-family: var(--tblr-font-monospace);
  font-size: 0.82rem;
}

.shortcode {
  font-family: var(--tblr-font-monospace);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 抽屉内容排版 */
.detail-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--tblr-border-color);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  flex: 0 0 88px;
  color: var(--tblr-secondary);
  font-size: 0.85rem;
}
.detail-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
.detail-value pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--tblr-tertiary-bg);
  padding: 0.6rem 0.75rem;
  border-radius: 0.375rem;
  margin: 0;
  max-height: 320px;
  overflow: auto;
}

.pager-btn {
  min-width: 2.25rem;
}

/* 2FA 验证码输入框 */
#code {
  font-size: 1.35rem;
  font-weight: 600;
}
#code::-webkit-outer-spin-button,
#code::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 页脚备案信息：保持中性灰，不使用链接默认的蓝色 */
.footer .beian-link {
  color: var(--tblr-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  max-width: 100%;
}
.footer .beian-link:hover {
  color: var(--tblr-secondary);
  text-decoration: underline;
}

/* 备案图标：与文字基线对齐，尺寸适中（原图 819×772 非正方形，需按宽定高避免变形） */
.footer .beian-icon {
  width: 1.25rem;
  height: auto;
  max-width: 1.25rem;
  display: inline-block;
  vertical-align: -0.25rem;
  flex: none;
  opacity: 0.9;
}

/* 深色模式适配 */
[data-bs-theme="dark"] body { background: #161b22; }
