/* ==========================================================================
   主题：猫娘面板（Neko Panel）
   在默认粉白玻璃主题上叠加插画层，不改变原有布局与配色体系
   ========================================================================== */

/* ---------- 侧栏吉祥物 ---------- */
.neko-mascot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 12px 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(217, 108, 134, .10), inset 0 1px 0 #fff;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.22, .61, .36, 1), box-shadow .18s ease;
}
.neko-mascot:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 108, 134, .16), inset 0 1px 0 #fff;
}
.neko-mascot img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 22%;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(31, 41, 55, .12);
}
.neko-mascot-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.neko-mascot-text strong { font-size: 12.5px; color: var(--text); font-weight: 600; }
.neko-mascot-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 仪表盘横幅（桌面） ---------- */
.neko-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 196px;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(217, 108, 134, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.neko-hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 26%;
  transform: scale(1.02);
}
.neko-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 仅用于保证文字可读性的遮罩，不是装饰性渐变 */
  background: linear-gradient(90deg, rgba(201, 88, 111, .94) 0%, rgba(210, 100, 123, .74) 42%, rgba(217, 108, 134, .12) 78%);
}
.neko-hero-body { position: relative; z-index: 1; padding: 26px 30px; max-width: 560px; }
.neko-hero-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
}
.neko-hero-body h2 { margin: 12px 0 6px; font-size: 23px; font-weight: 700; letter-spacing: .2px; color: #fff; }
.neko-hero-body p { font-size: 12.5px; opacity: .92; }
.neko-hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.neko-hero-actions .btn { height: 31px; }
.neko-hero-actions .btn-primary { background: #fff; border-color: #fff; color: var(--pink-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .10); }
.neko-hero-actions .btn-primary:hover { background: #fff; border-color: #fff; color: var(--pink-dark); }
.neko-hero-actions .btn {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  box-shadow: none;
}
.neko-hero-actions .btn:hover { background: rgba(255, 255, 255, .26); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* 隐藏默认的桌面用量卡以外的内容：保持原布局，仅在其上加横幅 */
@media (max-width: 960px) {
  .neko-hero { display: none; }
  .neko-mascot { display: none; }
}

/* ---------- 移动端横幅：图片作为背景纹理 ---------- */
.m-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: .38;
  z-index: 0;
  pointer-events: none;
}
/* 图片里的白色天空会形成亮块，用粉色薄层压一下，保持整体协调 */
.m-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(217, 108, 134, .30);
}

/* ---------- 空状态插画照片 ---------- */
.empty-neko {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 26px rgba(217, 108, 134, .20);
}

/* ---------- 登录页 ---------- */
.theme-neko .auth-aside { position: relative; overflow: hidden; }
.theme-neko .auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--neko-login);
  background-size: cover;
  background-position: center 16%;
  opacity: .22;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 52%, transparent 84%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .45) 52%, transparent 84%);
  pointer-events: none;
}
.theme-neko .auth-aside > * { position: relative; z-index: 1; }
/* 主题用照片时不再叠加线描插画，避免元素打架 */
.theme-neko .auth-illus { display: none; }
.theme-neko .auth-aside::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0));
  z-index: 0;
  pointer-events: none;
}

/* ---------- 后台图库 ---------- */
.neko-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.neko-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f8fa;
}
.neko-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.neko-gallery a:hover img { transform: scale(1.06); }
.neko-gallery span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10.5px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(31, 41, 55, .55);
  color: #fff;
}

/* ---------- 主题选择卡 ---------- */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.theme-option {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .7);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.theme-option:hover { border-color: var(--pink-line); box-shadow: 0 8px 20px rgba(217, 108, 134, .10); }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option:has(input:checked) {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 108, 134, .14);
}
.theme-option-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 10px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}
.theme-option-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.theme-option-text strong { font-size: 13px; display: block; }
.theme-option-text span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.theme-option-check {
  margin-left: auto;
  align-self: flex-start;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
}
.theme-option:has(input:checked) .theme-option-check {
  border-color: var(--pink);
  background: radial-gradient(circle at center, var(--pink) 0 4px, transparent 4.5px);
}

/* 移动端欢迎卡头像使用主题照片 */
.theme-neko .m-hello-avatar { overflow: hidden; background: var(--pink-soft); }
.theme-neko .m-hello-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }

/* 横幅按钮在窄屏内不被挤出卡片 */
.theme-neko .m-banner { padding: 18px 16px; }
.theme-neko .m-banner-body { flex: 1 1 0; min-width: 0; }
.theme-neko .m-banner-btn { flex: 0 0 auto; max-width: 46%; white-space: nowrap; }
