/* =============================================================
   喵喵云少儿编程 · 全站版式层 (meow-layout.css)
   目标：统一栅格、压缩重复横幅、卡片成组排布、补齐空状态
   加载顺序：meow-theme.css 之后
   ============================================================= */

/* ---------- 全站画布 ---------- */
body:has(.container) {
  background:
    radial-gradient(1100px 560px at 8% -12%, #ffe8d8 0, rgba(255, 232, 216, 0) 62%),
    radial-gradient(900px 520px at 102% -6%, #e2f6ff 0, rgba(226, 246, 255, 0) 58%),
    radial-gradient(700px 480px at 50% 108%, #ffeef4 0, rgba(255, 238, 244, 0) 60%),
    #fff7f0 !important;
  background-attachment: fixed !important;
}

.container .ant-layout-header {
  height: auto !important;
  line-height: normal !important;
  padding: 0 !important;
  background: transparent !important;
}

/* 悬浮导航条：半透明奶油底 + 轻微云朵纹理，滚动时保持稳定 */
.container .ant-layout-header .header img.logo,
.container .ant-layout-header .header .logo {
  height: 46px !important;
  padding: 2px;
  border-radius: 15px;
}

.container .ant-layout-header .header {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 8px 16px !important;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background-color: #fff7f2;
  background-image:
    linear-gradient(105deg, rgba(255, 247, 241, 0.94) 0%, rgba(255, 240, 247, 0.9) 48%, rgba(236, 249, 255, 0.94) 100%),
    url("/img/meow-banner-web.jpg");
  background-repeat: no-repeat;
  background-position: center, center top;
  background-size: cover, cover;
  box-shadow: 0 10px 26px rgba(170, 110, 80, 0.12);
  backdrop-filter: blur(9px);
}

.container .ant-layout-header .header > a {
  flex: 0 0 auto;
  width: auto;
}

.container .ant-layout-header .header .menu {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: none !important;
  line-height: normal !important;
}

.container .ant-layout-header .header .header-avatar {
  flex: 0 0 auto;
  margin-left: auto !important;
  padding: 6px 0 6px 12px !important;
}

.container .ant-layout-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 24px 24px 0 !important;
  box-sizing: border-box;
}

.container .ant-layout-content > * + * {
  margin-top: 22px;
}

.container .ant-layout-footer {
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 24px 24px 28px !important;
  background: transparent !important;
  text-align: center;
  font-size: 13px;
  color: #9a6a4d !important;
}

/* ---------- 顶部导航：当前页胶囊高亮 ---------- */
.container .header .menu .ant-menu-item {
  padding: 0 16px !important;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 999px;
}

.container .header .menu .ant-menu-item:has(> a.router-link-active) {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 14px rgba(120, 80, 160, 0.16);
}

.container .header .menu .ant-menu-submenu-title,
.container .header .menu .ant-menu-submenu-title * {
  color: #4a2c72 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.container .header .menu .ant-menu-submenu-title {
  padding: 0 14px !important;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 999px;
}

.container .header .menu .ant-menu-submenu-title:hover,
.container .header .menu .ant-menu-submenu-title:hover * {
  color: #f0642e !important;
}

/* ---------- 用户卡：头像兜底 ---------- */
.user-enter .ant-avatar {
  background: #fff url("/logo-meow.png") center / 74% no-repeat !important;
  color: transparent !important;
  border-radius: 24px !important;
}

.user-enter .ant-avatar .ant-avatar-string {
  opacity: 0 !important;
}

.user-enter h3 {
  margin: 14px 0 18px !important;
  font-size: 17px !important;
  font-weight: 700;
  color: var(--meow-ink) !important;
}

/* ---------- 子页面骨架：收起重复用户卡、横幅铺满并压缩 ---------- */
body.meow-subpage .container .ant-layout-content > .ant-row-flex > .ant-col:first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

body.meow-subpage .container .ant-layout-content > .ant-row-flex > .ant-col:nth-child(2) {
  display: none !important;
}

body.meow-subpage .banner,
body.meow-subpage .meow-fallback-banner {
  height: 196px !important;
}

body.meow-subpage .meow-fb-mask {
  display: none !important;
}

body.meow-subpage .meow-fallback-banner h2 {
  font-size: 21px;
}

body.meow-subpage .meow-fallback-banner p {
  font-size: 13px;
}

/* ---------- 编辑器入口：竖排卡片 + 3+2 / 5 列栅格 ---------- */
.container .ant-layout-content .editor-nav.ant-row {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding: 0 8px !important;
  margin: 0 !important;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  float: none !important;
}

/* ant-row 的清除浮动伪元素会占掉一个栅格，必须先移除 */
.container .ant-layout-content .editor-nav.ant-row::before,
.container .ant-layout-content .editor-nav.ant-row::after {
  content: none !important;
  display: none !important;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(2) {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(3) {
  grid-column: 5 / span 2;
  grid-row: 1;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(4) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(5) {
  grid-column: 4 / span 2;
  grid-row: 2;
}

@media (min-width: 1240px) {
  .container .ant-layout-content .editor-nav.ant-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 700px) {
  .container .ant-layout-content .editor-nav.ant-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .container .ant-layout-content .editor-nav.ant-row > .ant-col:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 7px) !important;
    justify-self: center;
  }
}

.editor-card {
  height: 232px !important;
  padding: 18px 16px !important;
  box-sizing: border-box;
  border-radius: 24px !important;
}

.editor-card > .ant-row-flex {
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.editor-card .ant-col-10 {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  text-align: center;
}

.editor-card .ant-col-10 img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 92px !important;
  margin: 0 auto;
  object-fit: contain;
}

.editor-card .ant-col-14 {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
}

.editor-card h2 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #3f2b22 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: normal !important;
  text-align: center;
  word-break: break-word;
}

.editor-card .ant-btn {
  height: 34px !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  line-height: 32px !important;
}

.editor-sc h2 {
  color: #5b3400 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---------- 课程 / 作品卡片：统一封面与信息区 ---------- */
.container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start > .ant-col {
  flex: 0 0 33.3333% !important;
  width: 33.3333% !important;
  max-width: 33.3333% !important;
}

@media (max-width: 900px) {
  .container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start > .ant-col {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
}

@media (max-width: 640px) {
  .container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start > .ant-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 只有一张课程卡时居中放大，避免右侧整块空栅格 */
.container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start:has(> .ant-col:only-child) {
  justify-content: center;
}

.container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start:has(> .ant-col:only-child) > .ant-col {
  flex: 0 0 420px !important;
  width: 420px !important;
  max-width: 420px !important;
}

.container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start:has(> .ant-col:only-child) .work-cover {
  height: 220px !important;
}

@media (max-width: 640px) {
  .container .ant-layout-content .panel-works .ant-row-flex.ant-row-flex-start:has(> .ant-col:only-child) > .ant-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ---------- 课程页学习路径 ---------- */
.meow-path {
  margin-top: 24px;
  padding: 24px 26px 22px;
  background: #fff;
  border: 1px solid #ffe6d8;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(150, 96, 62, 0.1);
}

.meow-path-head {
  margin-bottom: 18px;
}

.meow-path-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--meow-ink);
  letter-spacing: 0.5px;
}

.meow-path-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9a6a4d;
}

.meow-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  .meow-path-grid {
    grid-template-columns: 1fr;
  }
}

.meow-path-step {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #fffaf6;
  border: 1px solid #ffe9dc;
}

.meow-path-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 10px;
  background: #fff0e6;
  color: var(--meow-primary-deep);
  font-size: 15px;
  font-weight: 800;
}

.meow-path-step h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--meow-ink);
}

.meow-path-step p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9a6a4d;
}

.meow-path-step a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--meow-primary-deep) !important;
}

.work-card {
  height: 100%;
  background: #fff !important;
  border: 1px solid #ffe9dc !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 26px rgba(150, 96, 62, 0.1) !important;
  overflow: hidden;
}

.work-card .ant-card-body {
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-card > .ant-card-body > a {
  display: block;
  position: relative;
  overflow: hidden;
  background: #fff3ea;
}

.container .ant-layout-content .panel-works .work-card .work-cover {
  display: block;
  width: 100%;
  height: 168px !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}

.work-info {
  padding: 14px 18px 18px !important;
  margin: 0 !important;
  flex: 1 1 auto;
}

.work-info p {
  margin: 0 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--meow-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card:hover .work-info p {
  color: var(--meow-primary-deep);
}

/* ---------- 课程筛选条 ---------- */
.search-card {
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(150, 96, 62, 0.08) !important;
}

.search-card .ant-card-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 16px 20px !important;
}

.search-card .ant-select {
  width: 176px !important;
}

.search-card input {
  min-width: 200px;
}

/* ---------- 资讯 / 列表条目 ---------- */
.ant-list-item {
  padding: 16px 18px !important;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.ant-list-item:hover {
  background: #fff8f3;
}

.ant-list-item-meta-title {
  font-weight: 700 !important;
  color: var(--meow-ink) !important;
}

/* ---------- 空状态 ---------- */
.ant-empty {
  padding: 28px 0 10px;
}

.ant-empty-description {
  color: #9a6a4d !important;
  font-size: 14px;
  font-weight: 600;
}

.ant-empty-image svg {
  filter: sepia(0.35) saturate(1.6) hue-rotate(-12deg);
  opacity: 0.8;
}

body[data-meow-path="/workList"] .ant-empty .ant-empty-image {
  display: none !important;
}

.meow-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.meow-empty-icon img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

/* 创作页作品墙的空状态 */
.meow-home-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 6px 8px 0;
  padding: 22px 26px;
  border: 1px dashed #ffd6c2;
  border-radius: 20px;
  background: #fffdfb;
  box-shadow: 0 6px 18px rgba(170, 110, 80, 0.06);
  box-sizing: border-box;
}

.meow-home-empty img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.meow-home-empty h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #4a2c72 !important;
}

.meow-home-empty p {
  margin: 5px 0 0 !important;
  font-size: 13px;
  color: #8a6b5d !important;
}

.meow-home-empty a {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff1ea;
  border: 1px solid #ffcdb6;
  color: #e85b28 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .meow-home-empty {
    flex-wrap: wrap;
    gap: 12px;
  }

  .meow-home-empty a {
    margin-left: 0;
  }
}

.meow-empty-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa45b, #ff6b6b);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 122, 69, 0.26);
}

/* ---------- 首页任务板 ---------- */
.meow-dash {
  padding: 4px 4px 6px;
}

.meow-dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.meow-dash-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--meow-ink);
  letter-spacing: 0.5px;
}

.meow-dash-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9a6a4d;
}

.meow-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .meow-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .meow-dash-grid {
    grid-template-columns: 1fr;
  }
}

.meow-dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ffe4d5;
  box-shadow: 0 10px 24px rgba(150, 96, 62, 0.09);
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.meow-dash-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--meow-tint, rgba(255, 122, 69, 0.1));
}

.meow-dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(150, 96, 62, 0.16);
}

.meow-dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--meow-tint, #fff0e6);
  font-size: 21px;
  line-height: 1;
}

.meow-dash-card h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--meow-ink);
}

.meow-dash-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #9a6a4d;
}

.meow-dash-go {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--meow-primary-deep);
}

.meow-dash-card.tone-course { --meow-tint: #ffe8dd; }
.meow-dash-card.tone-create { --meow-tint: #ffe1ea; }
.meow-dash-card.tone-quiz { --meow-tint: #e2f7f5; }
.meow-dash-card.tone-progress { --meow-tint: #e3f2ff; }

/* 首页指法闯关入口 */
.meow-typing-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 17px 22px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  background: linear-gradient(108deg, #fff4eb 0%, #ffe8d8 46%, #ffd8c2 100%);
  border: 1px solid #ffcdb1;
  box-shadow: 0 12px 28px rgba(196, 111, 63, 0.13);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.meow-typing-banner::before {
  content: "";
  position: absolute;
  right: 96px;
  top: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}
.meow-typing-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(196, 111, 63, 0.2);
}
.meow-tb-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meow-tb-kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fffaf6;
  border: 1px solid #ffcbb0;
  color: #b65b2d;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.meow-tb-copy strong {
  color: #59311d;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.meow-tb-copy > span:last-child {
  color: #8d5a3e;
  font-size: 12.5px;
  line-height: 1.5;
}
.meow-tb-keys {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: rotate(-3deg);
}
.meow-tb-keys kbd {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #f0c8b2;
  box-shadow: 0 3px 0 #e9b99c;
  color: #8a4f30;
  font: 700 12px/1 ui-monospace, Consolas, monospace;
}
.meow-tb-keys kbd:nth-child(2n) { transform: translateY(-7px); }
.meow-tb-keys kbd:nth-child(3n) { transform: translateY(3px); }
.meow-tb-keys kbd:nth-child(6) { border-color: #ff9a70; color: #d35420; }
.meow-tb-go {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #ff7a45;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 122, 69, 0.28);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .meow-tb-keys kbd:nth-child(n+6) { display: none; }
}
@media (max-width: 760px) {
  .meow-typing-banner { gap: 12px; padding: 14px 16px; }
  .meow-tb-keys { display: none; }
  .meow-tb-copy strong { font-size: 17px; }
  .meow-tb-copy > span:last-child { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .meow-typing-banner { flex-wrap: wrap; }
  .meow-tb-go { width: 100%; }
}

.meow-community-typing {
  margin: 0 0 18px;
  padding: 14px 18px;
}

.meow-community-typing .meow-tb-copy strong { font-size: 18px; }

@media (max-width: 760px) {
  .meow-community-typing { margin-bottom: 14px; padding: 13px 15px; }
  .meow-community-typing .meow-tb-copy strong { font-size: 16px; }
}

/* ---------- 页脚 ---------- */
.footer,
.footer p,
.meow-copy {
  color: #a06b4c !important;
  font-size: 13px;
  line-height: 1.8;
}

.meow-copy {
  padding: 0 !important;
}

/* ---------- 小屏收口 ---------- */
@media (max-width: 700px) {
  .container .ant-layout-content {
    padding: 16px 14px 0 !important;
  }

  body.meow-subpage .banner,
  body.meow-subpage .meow-fallback-banner {
    height: 150px !important;
  }

  .container .header .menu .ant-menu-item {
    padding: 0 10px !important;
  }

  .editor-card {
    height: 214px !important;
    padding: 14px 12px !important;
  }
}

/* ---------- 个人中心：后台式布局做轻量化与品牌统一 ---------- */
.layout.ant-layout.mobile.admin {
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(255, 226, 238, 0.5), transparent 68%),
    radial-gradient(900px 420px at 92% 4%, rgba(220, 244, 255, 0.55), transparent 70%),
    #fff8f2 !important;
}

.layout.ant-layout.mobile.admin .ant-layout,
.layout.ant-layout.mobile.admin .ant-layout-content,
.layout.ant-layout.mobile.admin .ant-layout-footer {
  background: transparent !important;
}

.layout.ant-layout.mobile.admin .header {
  background: linear-gradient(105deg, #fff7f1 0%, #ffeef5 52%, #eaf8ff 100%) !important;
  color: #4a2c72 !important;
  box-shadow: 0 4px 16px rgba(170, 110, 80, 0.12);
  border-bottom: 1px solid rgba(255, 226, 238, 0.9);
}

.layout.ant-layout.mobile.admin .header .trigger,
.layout.ant-layout.mobile.admin .header span,
.layout.ant-layout.mobile.admin .header .action,
.layout.ant-layout.mobile.admin .header .user-wrapper,
.layout.ant-layout.mobile.admin .header .user-wrapper i {
  color: #4a2c72 !important;
}

.layout.ant-layout.mobile.admin .header > .header span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.layout.ant-layout.mobile.admin .header .ant-avatar {
  background: #ffe8dc !important;
  color: #f0642e !important;
}

/* 隐藏后台式页面右下角的开发设置抽屉把手 */
.layout.ant-layout.mobile.admin .setting-drawer-index-handle {
  display: none !important;
}

.layout.ant-layout.mobile.admin .ant-layout-content > div:has(.page-header-index-wide) {
  max-width: 1240px;
  margin: 22px auto 0 !important;
  padding: 0 24px 12px !important;
  box-sizing: border-box;
}

.layout.ant-layout.mobile.admin .ant-layout-footer {
  color: #a06b4c !important;
  font-size: 13px;
  padding: 22px 16px 30px !important;
}

.meow-ac-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid #ffe8dd;
  background:
    radial-gradient(420px 180px at 88% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(115deg, #fff0e6 0%, #ffe7f1 55%, #eaf8ff 100%);
  box-shadow: 0 10px 26px rgba(170, 110, 80, 0.1);
  box-sizing: border-box;
}

.meow-ac-hero img {
  width: 76px;
  height: 76px;
  padding: 4px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(170, 110, 80, 0.14);
  flex: 0 0 auto;
}

.meow-ac-hero h2 {
  margin: 0 !important;
  font-size: 23px !important;
  line-height: 1.3 !important;
  color: #4a2c72 !important;
}

.meow-ac-hero p {
  margin: 6px 0 0 !important;
  color: #8a6b5d !important;
  font-size: 13.5px;
  line-height: 1.7;
}

.meow-ac-hero a {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f0642e;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(240, 100, 46, 0.28);
}

.meow-ac-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 4px;
}

.meow-ac-quick a {
  display: block;
  padding: 16px 18px 15px;
  border-radius: 18px;
  border: 1px solid #ffe8dd;
  background: #fffdfb;
  color: #3f2b22 !important;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(170, 110, 80, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.meow-ac-quick a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(170, 110, 80, 0.14);
}

.meow-ac-quick i {
  display: block;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 9px;
  font-style: normal;
}

.meow-ac-quick h3 {
  margin: 0 !important;
  font-size: 15px !important;
  color: #4a2c72 !important;
}

.meow-ac-quick p {
  margin: 4px 0 0 !important;
  font-size: 12px;
  color: #9a7e70 !important;
}

.layout.ant-layout.mobile.admin .ant-card {
  border-radius: 22px !important;
  overflow: hidden;
  border: 1px solid #ffe8dd !important;
  box-shadow: 0 10px 26px rgba(170, 110, 80, 0.1) !important;
}

.layout.ant-layout.mobile.admin .ant-card-head {
  border-bottom: 1px solid #ffeadd !important;
  background: #fffdfb;
  padding: 0 22px !important;
}

.layout.ant-layout.mobile.admin .ant-tabs-tab-active,
.layout.ant-layout.mobile.admin .ant-tabs-tab:hover {
  color: #e85b28 !important;
}

.layout.ant-layout.mobile.admin .ant-tabs-ink-bar {
  background: #f0642e !important;
}

.meow-ac-empty {
  width: 100%;
  flex: 1 1 100%;
  box-sizing: border-box;
  padding: 44px 20px 54px;
  text-align: center;
}

.meow-ac-empty img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  opacity: 0.9;
}

.meow-ac-empty h3 {
  margin: 12px 0 0 !important;
  font-size: 18px !important;
  color: #4a2c72 !important;
}

.meow-ac-empty p {
  margin: 7px 0 0 !important;
  color: #8a6b5d !important;
  font-size: 13px;
  line-height: 1.75;
}

.meow-ac-empty a {
  display: inline-block;
  margin-top: 18px;
  height: 38px;
  line-height: 38px;
  padding: 0 24px;
  border-radius: 999px;
  background: #f0642e;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(240, 100, 46, 0.28);
}

@media (max-width: 760px) {
  .meow-ac-hero {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
  }

  .meow-ac-hero h2 {
    font-size: 20px !important;
  }

  .meow-ac-hero a {
    margin-left: 0;
  }

  .meow-ac-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .layout.ant-layout.mobile.admin .ant-layout-content > div:has(.page-header-index-wide) {
    padding: 0 14px 10px !important;
  }
}


/* ---------- 预设头像 ---------- */
.meow-ac-avatar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 2px;
  padding: 16px 22px;
  border-radius: 20px;
  border: 1px solid #ffe4d6;
  background: linear-gradient(100deg, #fffdf9, #fff6ef);
  box-shadow: 0 8px 22px rgba(170, 110, 80, 0.08);
  box-sizing: border-box;
}
.meow-ac-avatar-img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 14px rgba(170, 110, 80, 0.16);
}
.meow-ac-avatar-copy { min-width: 0; flex: 1 1 auto; }
.meow-ac-avatar-copy h3 {
  margin: 0 !important;
  color: #4a2c72 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}
.meow-ac-avatar-copy p {
  margin: 4px 0 0 !important;
  color: #9a7e70 !important;
  font-size: 12.5px;
  line-height: 1.6;
}
.meow-ac-avatar-open {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid #f4b28c;
  background: #fff;
  color: #d95f28;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.meow-ac-avatar-open:hover { background: #f0642e; color: #fff; transform: translateY(-1px); }

.meow-avatar-mask {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(47, 31, 22, .46);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.meow-avatar-dialog {
  width: min(620px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(40, 24, 14, .3);
  box-sizing: border-box;
}
.meow-avatar-head { display: flex; align-items: flex-start; gap: 12px; }
.meow-avatar-head > div { flex: 1 1 auto; }
.meow-avatar-head h2 {
  margin: 0 !important;
  color: #4a2c72 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
}
.meow-avatar-head p {
  margin: 6px 0 0 !important;
  color: #977b6d !important;
  font-size: 12.5px;
  line-height: 1.6;
}
.meow-avatar-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #fff1e8;
  color: #9b6b50;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.meow-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.meow-avatar-item {
  position: relative;
  padding: 8px 8px 9px;
  border: 2px solid #f3e5d9;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.meow-avatar-item:hover { transform: translateY(-2px); border-color: #f2b48e; box-shadow: 0 7px 18px rgba(170, 110, 80, .12); }
.meow-avatar-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: #fffaf4;
}
.meow-avatar-item em {
  display: block;
  margin-top: 6px;
  color: #725243;
  font-size: 11.5px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meow-avatar-item.is-selected { border-color: #f0642e; box-shadow: 0 8px 20px rgba(240, 100, 46, .2); }
.meow-avatar-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0642e;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(160, 60, 20, .3);
}
.meow-avatar-item.is-selected .meow-avatar-check { display: block; }
.meow-avatar-foot { display: flex; align-items: center; gap: 10px; }
.meow-avatar-msg { flex: 1 1 auto; min-height: 18px; color: #9a7e70; font-size: 12px; }
.meow-avatar-msg.is-error { color: #d64531; }
.meow-avatar-cancel,
.meow-avatar-save {
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.meow-avatar-cancel { border: 1px solid #ead9cc; background: #fff; color: #7b5b48; }
.meow-avatar-save { border: 0; background: #f0642e; color: #fff; box-shadow: 0 7px 16px rgba(240, 100, 46, .25); }
.meow-avatar-save:disabled { opacity: .6; cursor: not-allowed; }
.meow-avatar-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 1600;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(63, 43, 34, .92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(40, 24, 14, .22);
}
body.meow-avatar-lock { overflow: hidden; }

@media (max-width: 640px) {
  .meow-ac-avatar-card { flex-wrap: wrap; padding: 16px 18px; }
  .meow-ac-avatar-copy { flex: 1 1 calc(100% - 80px); }
  .meow-ac-avatar-open { margin-left: 78px; }
  .meow-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meow-avatar-dialog { padding: 18px; border-radius: 20px; }
  .meow-avatar-head h2 { font-size: 18px !important; }
  .meow-avatar-foot { flex-wrap: wrap; }
  .meow-avatar-msg { flex-basis: 100%; }
  .meow-avatar-cancel, .meow-avatar-save { flex: 1 1 0; }
}

/* ---------- 账户设置里的预设头像 ---------- */
.meow-settings-avatar-row { margin-bottom: 24px; }
.meow-settings-avatar-panel {
  padding: 14px 16px 13px;
  border: 1px solid #ffe4d6;
  border-radius: 16px;
  background: #fffaf6;
  box-sizing: border-box;
}
.meow-settings-avatar-panel p {
  margin: 0 0 9px !important;
  color: #977b6d !important;
  font-size: 12px;
  line-height: 1.5;
}
.meow-settings-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.meow-settings-avatar-item {
  padding: 3px 3px 4px;
  border: 2px solid #f3e5d9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.meow-settings-avatar-item:hover { border-color: #f2b48e; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(170, 110, 80, .12); }
.meow-settings-avatar-item.is-current { border-color: #f0642e; box-shadow: 0 5px 12px rgba(240, 100, 46, .16); }
.meow-settings-avatar-item img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 9px; object-fit: cover; background: #fffaf4; }
.meow-settings-avatar-item span {
  display: block;
  margin-top: 4px;
  color: #725243;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .meow-settings-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- EV3 加入后：6 张编辑器卡片的栅格 ---------- */
@media (min-width: 701px) and (max-width: 1239px) {
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(4) { grid-column: 1 / span 2; grid-row: 2; }
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(5) { grid-column: 3 / span 2; grid-row: 2; }
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(6) { grid-column: 5 / span 2; grid-row: 2; }
}
@media (min-width: 1240px) {
  .container .ant-layout-content .editor-nav.ant-row.six-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
@media (max-width: 700px) {
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(5),
  .container .ant-layout-content .editor-nav.ant-row.six-cards > .ant-col:nth-child(6) {
    grid-column: auto !important;
    width: auto !important;
  }
}
.editor-card.editor-ev3 { color: #fff; }
.editor-card.editor-ev3 .ant-col-10 img { filter: drop-shadow(0 8px 14px rgba(10, 60, 58, .2)); }

.editor-card.editor-ev3 h2 { color: #fff !important; text-shadow: 0 1px 3px rgba(8, 54, 51, .28) !important; }
