/* 管理后台补充样式（基础风格复用 style.css） */

.admin-page { max-width: 720px; }
.admin-card { max-width: 400px; margin: 10vh auto 0; }
.admin-title { font-size: 22px; text-align: center; margin-bottom: 4px; }
.admin-sub { text-align: center; font-size: 13px; color: #999; margin-bottom: 18px; }
#login-form .submit-btn { margin-top: 16px; letter-spacing: 8px; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; margin-bottom: 18px;
}
.panel-head h1 { font-size: 22px; letter-spacing: 1px; }
.head-actions { display: flex; gap: 8px; }
.head-actions .ghost-btn { text-decoration: none; display: inline-block; }

.ghost-btn {
  padding: 8px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 14px; cursor: pointer;
}
.ghost-btn:hover { background: rgba(255,255,255,.22); }
.ghost-btn:disabled { opacity: .4; cursor: not-allowed; }

.stat-row { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-card {
  flex: 1; background: #fff; border-radius: 14px; padding: 16px 8px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.stat-num { font-size: 26px; font-weight: 700; color: #07c160; }
.stat-link { text-decoration: none; display: block; }
.stat-label { font-size: 12px; color: #999; margin-top: 4px; }

.list-card { padding: 8px 14px 14px; }
.list-empty { text-align: center; color: #999; padding: 32px 0; font-size: 14px; }
.list-empty a { color: #07c160; }

.link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid #f0f3f1;
}
.link-item:last-child { border-bottom: none; }

.link-thumb {
  width: 52px; height: 52px; border-radius: 8px; border: 1px solid #e8ece9;
  object-fit: cover; background: #fafbfa; flex-shrink: 0; cursor: pointer;
}

.link-info { flex: 1; min-width: 0; }
.link-code {
  color: #046f3f; font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}
.link-title {
  font-size: 13px; color: #555; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-meta { font-size: 12px; color: #a3aaa6; margin-top: 2px; }

.link-copy {
  border: none; background: #f0faf4; color: #046f3f; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.link-copy:hover { background: #dff5e9; }

.link-del {
  border: none; background: #fdeeee; color: #c0392b; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.link-del:hover { background: #f9dcdc; }
.link-del:disabled { opacity: .5; }

.pager {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding-top: 14px; color: #666; font-size: 14px;
}

@media (max-width: 480px) {
  .stat-num { font-size: 20px; }
  .link-item { gap: 8px; }
  .link-thumb { width: 44px; height: 44px; }
}
