/* ================= 前台站点样式 ================= */
body { background: #f5f6f8; }

/* 导航 */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.site-navbar .container-fluid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-logo { font-size: 20px; font-weight: 700; color: #333; display: inline-flex; align-items: center; gap: 8px; }
.site-logo img { height: 32px; }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #555; padding: 8px 14px; border-radius: 20px; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.site-nav a:hover { background: #eef4ff; color: #1a76d2; text-decoration: none; }
.site-nav a.active { background: #1a76d2; color: #fff; }

.site-main { min-height: calc(100vh - 200px); padding: 24px 0 48px; }
.site-footer { background: #fff; border-top: 1px solid #e8e8e8; color: #999; font-size: 12px; padding: 16px 0; text-align: center; }

/* 标签筛选条 */
.tpl-tags-tag {
  background: #fff; border: 1px solid #dde3ea; color: #556; border-radius: 16px;
  padding: 4px 14px; font-size: 13px;
}
.tpl-tags-tag:hover { border-color: #1a76d2; color: #1a76d2; text-decoration: none; }
.tpl-tags-tag.on { background: #1a76d2; border-color: #1a76d2; color: #fff; }

/* 模板卡片 */
.tpl-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: all .25s;
  display: flex; flex-direction: column; height: 100%;
}
.tpl-card:hover { box-shadow: 0 8px 24px rgba(26,118,210,.16); transform: translateY(-3px); }
.tpl-cover { position: relative; padding-top: 133%; background: #f0f2f5; overflow: hidden; }
.tpl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.tpl-card:hover .tpl-cover img { transform: scale(1.04); }
.tpl-cover .tpl-more {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff;
  border-radius: 12px; padding: 2px 10px; font-size: 12px;
}
.tpl-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-info h3 { margin: 0; font-size: 16px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-tags .tag {
  background: #eef4ff; color: #1a76d2; border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer;
}
.tpl-tags .tag:hover { background: #1a76d2; color: #fff; }
.tpl-actions { margin-top: auto; display: flex; gap: 8px; }
.tpl-actions .btn { flex: 1; }

/* 预览弹层 */
.preview-modal .modal-dialog { max-width: 860px; }
.preview-stage { background: #3b4350; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.preview-frame { width: 794px; min-height: 500px; background: #fff; border: 0; box-shadow: 0 4px 20px rgba(0,0,0,.4); transform-origin: center; }
.preview-ctrl { padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: #2b323d; }
.preview-ctrl .zoom-label { font-size: 13px; min-width: 46px; text-align: center; }

/* 我的简历卡片 */
.resume-card { position: relative; }
.resume-card .cover-empty {
  padding-top: 133%; position: relative; background: #f0f2f5;
  display: flex; align-items: center; justify-content: center;
}
.resume-card .cover-empty i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 56px; color: #ccd5df; }
.resume-meta { font-size: 12px; color: #999; }

.empty-box {
  background: #fff; border: 2px dashed #dde3ea; border-radius: 10px;
  padding: 60px 20px; text-align: center; color: #98a3af;
}
.empty-box i { font-size: 64px; display: block; margin-bottom: 12px; }

@media (max-width: 767.98px) {
  .site-main { padding: 14px 0 40px; }
  .site-logo { font-size: 17px; }
  .site-logo img { height: 26px; }
  .preview-frame { width: 100%; }
}
