/* ============ 游戏避难所 · flysheep 二次元风格 ============ */
:root {
  --pink: #e91e63;
  --blue: #3a4cb4;
  --blue-light: #0088cc;
  --gold: #f5a623;
  --grad: linear-gradient(90deg, #3a4cb4 0%, #e91e63 100%);
  --shadow-sm: 0 2px 10px rgba(58, 76, 180, 0.08);
  --shadow-md: 0 6px 24px rgba(58, 76, 180, 0.14);
  --radius: 14px;
}

body {
  background: #f6f7fc;
  font-family: "Segoe UI", "Microsoft YaHei", -apple-system, sans-serif;
  color: #333;
}

/* ---------- 顶部渐变条 & Header ---------- */
.top-gradient {
  height: 4px;
  background: var(--grad);
}

.site-header {
  background: #fff;
  padding: 26px 0 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.site-logo { text-decoration: none; }

.site-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-subtitle {
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin: 4px 0 0;
}

/* ---------- 圆角毛玻璃导航 ---------- */
.nav-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  flex-wrap: wrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link-custom {
  display: block;
  padding: 7px 14px;
  border-radius: 20px;
  color: #555;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link-custom:hover { color: var(--pink); background: rgba(233, 30, 99, 0.07); }

.nav-link-custom.active {
  color: #fff;
  background: var(--grad);
}

/* 圆形搜索框 */
.search-form {
  display: flex;
  align-items: center;
  margin-left: auto;
  border: 2px solid transparent;
  border-radius: 50px;
  background: #eef0f8;
  transition: border 0.2s, background 0.2s;
  overflow: hidden;
}

.search-form:focus-within { border-color: var(--pink); background: #fff; }

.search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 7px 6px 7px 16px;
  width: 160px;
  font-size: 0.88rem;
  transition: width 0.25s;
}

.search-input:focus { width: 200px; }

.search-btn {
  border: none;
  background: transparent;
  color: #888;
  padding: 7px 14px 7px 4px;
  cursor: pointer;
}

.search-btn:hover { color: var(--pink); }

/* 用户区 */
.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.user-chip:hover .user-name { color: var(--pink); }

.user-chip i { font-size: 1.4rem; color: #b9c0d8; }

.point-chip {
  background: rgba(245, 166, 35, 0.12);
  color: #c77d00;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-login, .btn-register, .btn-admin, .btn-logout {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-login { color: var(--blue); border: 1.5px solid var(--blue); }
.btn-login:hover { background: var(--blue); color: #fff; }

.btn-register {
  background: var(--grad);
  color: #fff;
  border: none;
}
.btn-register:hover { color: #fff; opacity: 0.9; transform: translateY(-1px); }

.btn-admin {
  background: rgba(58, 76, 180, 0.1);
  color: var(--blue);
}
.btn-admin:hover { background: var(--blue); color: #fff; }

.btn-logout { color: #999; padding: 7px 10px; }
.btn-logout:hover { color: var(--pink); }

.badge-vip {
  background: linear-gradient(90deg, #f5a623, #ff7849);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 6px;
  letter-spacing: 1px;
}

.badge-vip-expired {
  background: #ccc;
  color: #fff;
  font-size: 0.68rem;
  border-radius: 6px;
  padding: 2px 6px;
}

.badge-admin-role {
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- 主区 & 通用 ---------- */
.site-main { padding: 28px 0 60px; min-height: 60vh; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

.section-head h2 i { color: var(--pink); }

.head-line {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(233,30,99,0.25), rgba(58,76,180,0.06));
}

.card-glass {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.empty-state {
  text-align: center;
  padding: 70px 0;
  color: #b8bed4;
}

.empty-state i { font-size: 3.2rem; margin-bottom: 14px; display: block; }

.link-pink { color: var(--pink); text-decoration: none; font-weight: 600; }
.link-pink:hover { color: #c2185b; }

.link-blue { color: var(--blue-light); text-decoration: none; }
.link-blue:hover { color: var(--blue); }

/* ---------- 游戏卡片 ---------- */
.game-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }

.card-cover {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #eef0f8;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.game-card:hover .card-cover img { transform: scale(1.06); }

.cover-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccd2e6;
  font-size: 2.4rem;
}

.cover-placeholder.big { border-radius: var(--radius); height: 100%; min-height: 300px; }

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.badge-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.badge-free { background: linear-gradient(90deg, #00b09b, #96c93d); }
.badge-cost { background: linear-gradient(90deg, #e91e63, #ff6090); }
.badge-vipfree { background: linear-gradient(90deg, #f5a623, #ff7849); }

.card-body { padding: 14px 16px 16px; }

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: #9aa0b8;
  font-size: 0.8rem;
}

/* ---------- Banner 轮播 ---------- */
.featured-banner .carousel-item { border-radius: var(--radius); overflow: hidden; }

.featured-item {
  display: block;
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: rgba(255,255,255,0.5);
  font-size: 4rem;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(-90deg, rgba(0,0,0,0.65), rgba(0,0,0,0) 60%);
  color: #fff;
}

.featured-cat {
  align-self: flex-start;
  background: var(--pink);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.featured-overlay h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.featured-overlay p {
  margin: 6px 0 0;
  opacity: 0.88;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 详情页 ---------- */
.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-cover img { width: 100%; display: block; }

.detail-title { font-size: 1.5rem; font-weight: 800; }

.detail-meta {
  display: flex;
  gap: 20px;
  color: #9aa0b8;
  font-size: 0.88rem;
}

.chip-cat {
  background: rgba(58, 76, 180, 0.1);
  color: var(--blue);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  text-decoration: none;
}

.chip-cat:hover { background: var(--blue); color: #fff; }

.chip-featured {
  background: rgba(233, 30, 99, 0.1);
  color: var(--pink);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
}

.badge-price-lg {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 24px;
  padding: 8px 20px;
  color: #fff;
}

.badge-owned {
  color: #00b09b;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.desc-text {
  line-height: 1.9;
  color: #555;
  white-space: pre-wrap;
}

/* ---------- 富文本渲染（资源介绍） ---------- */
.rich-text :where(img) { max-width: 100%; height: auto; border-radius: 8px; }
.rich-text :where(h2, h3, h4) { font-weight: 700; margin: 1em 0 0.4em; color: #333; }
.rich-text :where(h2) { font-size: 1.35rem; }
.rich-text :where(h3) { font-size: 1.15rem; }
.rich-text :where(h4) { font-size: 1rem; }
.rich-text :where(p) { margin-bottom: 0.6em; white-space: normal; }
.rich-text :where(ul, ol) { padding-left: 1.6em; margin-bottom: 0.6em; }
.rich-text :where(blockquote) {
  border-left: 4px solid var(--pink);
  background: rgba(233, 30, 99, 0.05);
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0.6em 0;
  color: #666;
}
.rich-text :where(table) {
  border-collapse: collapse;
  margin: 0.8em 0;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.rich-text :where(th, td) {
  border: 1px solid #e3e6f0;
  padding: 6px 12px;
  white-space: normal;
}
.rich-text :where(th) { background: #f5f6fa; font-weight: 600; }
.rich-text :where(figure) { margin: 0.8em 0; text-align: center; }
.rich-text :where(figcaption) { font-size: 0.85rem; color: #999; margin-top: 4px; }
.rich-text :where(figure.image-style-side) {
  float: right;
  max-width: 50%;
  margin: 0 0 0.8em 1em;
}
.rich-text :where(a) { color: var(--blue-light); }
.rich-text :where(pre) {
  background: #f5f6fa;
  border-radius: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  white-space: pre;
}
.rich-text :where(code) { background: #f5f6fa; padding: 2px 6px; border-radius: 4px; }

/* ---------- 留言板 ---------- */
.comment-form .comment-nick { max-width: 260px; }
.comment-item {
  padding: 14px 0;
  border-top: 1px dashed #e3e6f0;
}
.comment-item:first-of-type { border-top: none; }
.comment-author {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}
.comment-time { font-size: 0.8rem; color: #aab; }
.comment-content {
  margin-top: 6px;
  color: #555;
  line-height: 1.8;
  word-break: break-word;
}

/* 楼中楼回复 */
.btn-reply {
  margin-top: 6px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: #8892a6;
  background: none;
  border: none;
  border-radius: 12px;
}
.btn-reply:hover { color: var(--pink, #ff6b9d); background: rgba(255, 107, 157, .08); }
.comment-replies {
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(136, 146, 166, .07);
  border-left: 2px solid #d8dce8;
  border-radius: 0 8px 8px 0;
}
.comment-reply { padding: 8px 0; }
.comment-reply + .comment-reply { border-top: 1px dashed #e3e6f0; }
.comment-reply .comment-content { margin-top: 4px; font-size: 0.92rem; }
.reply-to { font-size: 0.8rem; color: var(--pink, #ff6b9d); }
.reply-hint {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.85rem;
  color: #667;
  background: rgba(255, 193, 7, .12);
  border-radius: 8px;
}

/* 未登录查看资源介绍提示 */
.login-required-box {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.04), rgba(33, 150, 243, 0.04));
  border: 1px dashed #d8dbe6;
  border-radius: 12px;
}
.login-required-box > i {
  font-size: 2rem;
  color: var(--pink, #e91e63);
  margin-bottom: 10px;
  display: block;
}
.login-required-box p {
  color: #667;
}

/* ---------- 按钮 ---------- */
.btn-download {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-download:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.35);
}

.btn-download:disabled { opacity: 0.5; transform: none; box-shadow: none; }

.btn-vip {
  background: linear-gradient(90deg, #f5a623, #ff7849);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-vip:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,166,35,0.4); }
.btn-vip:disabled { opacity: 0.5; transform: none; }

.btn-ghost {
  border: 1.5px solid #d8dcea;
  color: #667;
  border-radius: 50px;
  padding: 9px 24px;
  font-weight: 600;
  background: #fff;
  transition: all 0.2s;
}

.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- 下载结果页 ---------- */
.download-result { max-width: 720px; margin: 30px auto; text-align: center; }

.result-icon { font-size: 3.4rem; color: #00b09b; margin-bottom: 8px; }

.download-result h2 { font-weight: 800; }

.result-paid {
  background: rgba(245, 166, 35, 0.1);
  color: #a06a00;
  border-radius: 12px;
  padding: 12px;
  margin: 18px 0;
}

.link-box {
  background: #f6f7fc;
  border: 1px dashed #ccd2e6;
  border-radius: 12px;
  padding: 6px 18px;
  margin: 18px 0;
  text-align: left;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.link-row + .link-row { border-top: 1px solid #e4e7f2; }

.link-label { color: #888; font-size: 0.88rem; white-space: nowrap; }

.pan-url {
  color: var(--blue-light);
  word-break: break-all;
  font-size: 0.92rem;
}

.pan-code {
  background: var(--pink);
  color: #fff;
  border-radius: 8px;
  padding: 3px 14px;
  font-weight: 800;
  letter-spacing: 3px;
}

.btn-copy {
  margin-left: auto;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 4px 14px;
  transition: all 0.2s;
}

.btn-copy:hover { background: var(--blue); color: #fff; }

.result-tips { color: #999; font-size: 0.85rem; margin: 14px 0 22px; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 认证页 ---------- */
.auth-wrap, .redeem-wrap {
  max-width: 420px;
  margin: 40px auto;
}

.auth-title { font-weight: 800; text-align: center; margin-bottom: 24px; }

.code-input {
  font-size: 1.25rem;
  letter-spacing: 3px;
  font-weight: 700;
  padding: 12px;
}

/* ---------- 会员中心 ---------- */
.member-avatar { font-size: 3.4rem; color: #b9c0d8; }

.stat-box { text-align: center; }

.stat-box .stat-num { font-size: 2rem; font-weight: 800; color: var(--pink); margin: 0; }

.stat-box.vip .stat-num { color: var(--gold); }
.stat-box.gray .stat-num { color: #ccc; }

.stat-label { color: #999; font-size: 0.82rem; margin: 2px 0 0; }

.member-entry {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #444;
  font-weight: 700;
  padding: 26px 16px;
  transition: transform 0.2s;
}

.member-entry:hover { transform: translateY(-4px); color: var(--pink); }

.entry-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.icon-pink { color: var(--pink); }
.icon-blue { color: var(--blue); }
.icon-green { color: #00b09b; }
.icon-orange { color: var(--gold); }

.vip-benefits { list-style: none; padding: 0; margin: 0; }

.vip-benefits li { padding: 9px 0; color: #555; }

.vip-benefits i { color: #00b09b; }

.vip-plan {
  background: linear-gradient(135deg, #fff8ec, #fff);
  border: 1.5px solid #ffe3b3;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.plan-name { font-size: .95rem; font-weight: 700; color: #b8860b; margin: 0 0 2px; }

.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--gold); margin: 0; }

.plan-days { color: #999; margin: 4px 0 16px; }

/* ---------- 分页 ---------- */
.pagination-glass .page-link {
  border: none;
  border-radius: 10px !important;
  margin: 0 3px;
  color: #667;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pagination-glass .page-item.active .page-link {
  background: var(--grad);
  color: #fff;
}

/* ---------- 管理后台 ---------- */
.admin-body { background: #f0f2f8; }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: #23273d;
  color: #cfd4e8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.admin-brand {
  padding: 20px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--grad);
}

.admin-nav { display: flex; flex-direction: column; padding: 14px 10px; gap: 3px; flex: 1; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aeb4cc;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-nav a i { width: 18px; text-align: center; }

.admin-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }

.admin-nav a.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233,30,99,0.3);
}

.admin-sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-footer a {
  color: #8a90ab;
  text-decoration: none;
  font-size: 0.85rem;
}

.admin-sidebar-footer a:hover { color: #fff; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  background: #fff;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-user { color: #888; font-size: 0.88rem; }

.admin-content { padding: 24px 28px 50px; }

/* 后台统计卡 */
.stat-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  overflow: hidden;
}

.stat-card .stat-num { font-size: 1.7rem; font-weight: 800; margin: 0; }

.stat-card .stat-label { color: #999; font-size: 0.85rem; margin: 2px 0 0; }

.stat-bg {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 3.2rem;
  opacity: 0.12;
}

.icon-blue .stat-num, .icon-blue i { color: var(--blue); }
.icon-pink .stat-num, .icon-pink i { color: var(--pink); }
.icon-orange .stat-num, .icon-orange i { color: var(--gold); }
.icon-green .stat-num, .icon-green i { color: #00b09b; }
.icon-cyan .stat-num, .icon-cyan i { color: #0088cc; }

/* 后台表格缩略图 */
.table-cover {
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.small-ph { display: flex; align-items: center; justify-content: center; color: #ccd2e6; font-size: 1rem; background: #eef0f8; }

/* 封面上传 */
.cover-upload {
  border: 2px dashed #ccd2e6;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
  overflow: hidden;
  position: relative;
  aspect-ratio: 460 / 650;
  max-height: 340px;
}

.cover-upload:hover { border-color: var(--pink); }

.cover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-tip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aab2cf;
  gap: 8px;
}

.cover-tip i { font-size: 2.2rem; }

.code-text { letter-spacing: 1px; font-size: 0.88rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 26px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .admin-sidebar { width: 64px; }
  .admin-brand { text-align: center; padding: 18px 6px; font-size: 0; }
  .admin-nav a span, .admin-brand span { display: none; }
  .admin-nav a { justify-content: center; }
  .admin-sidebar-footer { align-items: center; }
}

@media (max-width: 767.98px) {
  .search-form { order: 5; width: 100%; margin: 8px 0 0; }
  .search-input { width: 100%; flex: 1; }
  .search-input:focus { width: 100%; }
  .featured-item { height: 220px; }
  .site-title { font-size: 1.5rem; }
  .card-cover { height: 170px; }
  .admin-content { padding: 16px 12px 40px; }
}
