/* 在 src/index.css 或 src/App.css 中加入 */
body {
  margin: 0;
  font-family: CatFont, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}
input:-webkit-autofill {
  box-shadow: 0 0 0 1000px rgba(255, 244, 251, 0.95) inset !important;
  -webkit-text-fill-color: #000 !important;
}
/* 入口样式里一起加上，避免组件库覆盖 */
html,
body,
button,
input,
select,
textarea {
  font-family: CatFont, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
/* 占位符默认不会继承，需要显式指定 */
input::placeholder,
textarea::placeholder {
  font-family: CatFont, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
}
.header {
  padding: 10px;
  margin-bottom: 10px;
}
.content {
  padding: 10px;
}

/* ========== 软萌猫事·主题变量 ========== */
/* 估算值，可按实际微调 */
/* —— 背景 —— */
.soft-bg {
  min-height: 100dvh;
  background: radial-gradient(1100px 520px at 70% -120px, rgba(245, 208, 254, 0.55), transparent), linear-gradient(180deg, #fff, rgba(255, 240, 245, 0.62));
}
.soft-layout {
  background: transparent;
}
/* —— 左侧栏 —— */
.siderStyle.soft-sider {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(244, 114, 182, 0.2);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
          backdrop-filter: saturate(120%) blur(8px);
}
/* 侧栏 LOGO 容器 + 图片 */
.soft-logo {
  height: 56px;
  /* 比原来 52px 稍高一点，更清晰 */
  margin: 8px 12px;
  border-radius: 16px;
  background: #fff;
  /* 纯白底衬托图像 */
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  /* 给图片留点内边距 */
}
.soft-logo-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
  /* 轻微立体感 */
}
/* —— 顶部 —— */
.headerStyle.soft-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
          backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
/* 让 extraContent 永远在最右 */
.headerStyleLeft {
  flex: 0 0 auto;
}
.headerStyleRight {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}
.headerStyleRight .ant-tabs {
  width: 100%;
}
.headerStyleRight .ant-tabs-nav {
  width: 100%;
  display: flex;
  align-items: center;
}
.buttonStyle.soft-trigger {
  border-radius: 12px;
}
.buttonStyle.soft-trigger:hover {
  background: #fdf2f8;
}
/* Tabs 外观 */
.tabStyle.soft-tabs .ant-tabs-nav {
  margin: 0;
}
.tabStyle.soft-tabs .ant-tabs-tab {
  border-radius: 12px;
  transition: all 0.2s ease;
}
.tabStyle.soft-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  font-weight: 600;
}
.tabStyle.soft-tabs .ant-tabs-tab-remove {
  color: rgba(0, 0, 0, 0.35);
}
.tabStyle.soft-tabs .ant-tabs-tab-remove:hover {
  color: #38bdf8;
}
/* —— 内容区（给出确定高度） —— */
.contentStyle.soft-content {
  padding: 12px 16px;
  background: transparent;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 64px - 20px);
  /* ★ 高度确定，子项才能 100% */
  min-height: 0;
}
/* 卡片容器（SimpleBar 根） */
.contentInnerStyle.soft-content-inner {
  flex: 1 1;
  min-height: 0;
  height: 100%;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, rgba(252, 231, 243, 0.6), rgba(245, 208, 254, 0.55)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.1);
}
.simplebar-content {
  height: 100% !important;
}
.simplebar-content > div {
  height: 100% !important;
  /* 覆盖第一层匿名 div */
}
.keepaliveDiv {
  display: contents;
  height: 100%;
}
.keepaliveDiv > div {
  height: 100%;
}
.ant-layout-header {
  padding: 0 5px;
}
/* —— 页脚（避免 antd dev-only 覆盖） —— */
:where(.ant-layout-footer).soft-footer {
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: rgba(244, 114, 182, 0.9);
  border-top: 1px solid rgba(244, 114, 182, 0.2);
}
/* —— 右上角粉色用户胶囊 —— */
.soft-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fdf2f8;
  border: 1px solid rgba(244, 114, 182, 0.2);
  color: #444;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.soft-user:hover {
  background: rgba(253, 242, 248, 0.7);
}
.soft-user:active {
  transform: scale(0.98);
}
.soft-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f472b6;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.25);
}
.soft-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #333;
}
.soft-user-caret {
  color: rgba(0, 0, 0, 0.45);
}
/* 非激活项加了 hidden 属性 → 强制完全隐藏（避免某些浏览器对 contents 的差异） */
[data-alive-item][hidden] {
  display: none !important;
}

[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}

.developing-wrap {
  background-color: #f6f6f6;
}
.developing-wrap img {
  width: 100%;
  height: calc(100vh - 160px);
}

.login {
  width: 100vw;
  min-height: 100vh;
  /* 回退 */
  min-height: 100svh;
  /* 现代浏览器稳定高度 */
  display: grid;
  place-items: center;
  overflow: clip;
  /* 防止幽灵滚动 */
  background-image: url(/webcode/static/media/backgroundSmaller.c70eecdda5a74e161d7e.webp);
  background-repeat: round;
}
.login .login-title {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: clamp(5px, 1vw, 10px);
  font-size: 22px;
  background: linear-gradient(90deg, #ff94c4, #9f86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.login .login-inner {
  position: relative;
  width: 360px;
  max-width: 80%;
  padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 28px) clamp(16px, 3vw, 20px) clamp(16px, 3vw, 28px);
  background: linear-gradient(120deg, rgba(251, 188, 213, 0.5) 0%, /* 左上角：樱花粉 */ rgba(254, 224, 237, 0.5) 30%, /* 中间偏淡粉 */ rgba(213, 236, 251, 0.5) 70%, /* 淡淡天空蓝 */ rgba(185, 226, 250, 0.5) 100% /* 右下角：奶蓝天色 */);
  border-radius: 16px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 4vh;
  justify-content: center;
}
.login .verify-code {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login .verify-code .input-part {
  flex: 1 1 auto;
  min-width: 10px;
}
.login .verify-code .img-part {
  flex: 0 0 auto;
  width: 80px;
  height: 32px;
  background-repeat: round;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.login .actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  color: #999;
}
.login .actions .register-row {
  font-size: 14px;
  margin-top: 5px;
}
.login .actions .register-link {
  color: #ff94c4;
  cursor: pointer;
}
.login .actions .register-link:hover {
  color: #ff4397;
  transition: 0.5s linear;
}
.login .actions .button-color {
  font-size: 18px;
  background: linear-gradient(90deg, #ff94c4, #9f86ff);
  color: #fff;
}
.login .actions .button-color:hover {
  background: linear-gradient(90deg, #ff79b6, #896bff);
}
.login .footerStyle {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 10px 0;
  background: transparent;
  position: fixed;
  bottom: 0;
  /* 永远吸底 */
  left: 0;
}

/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #29d;

  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #29d, 0 0 5px #29d;
  opacity: 1.0;
  transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #29d;
  border-left-color: #29d;
  border-radius: 50%;
  animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}
@keyframes nprogress-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* —— 软萌猫事 · 对话页 —— */
.main-page {
  /* 关键：页面自身占满父级卡片，并作为竖直 flex 容器 */
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 消息区：内部滚动 */
.content-part {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, rgba(253, 242, 248, 0.7), rgba(244, 114, 182, 0.4)) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.1);
  /* 空状态占位（可选） */
}
.content-part .msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.content-part .msg .label {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: #fdf2f8;
  color: #f472b6;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 114, 182, 0.2);
}
.content-part .msg .bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  background: #fff;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  max-width: min(860px, 92%);
}
.content-part .msg.user {
  flex-direction: row-reverse;
}
.content-part .msg.user .label {
  background: #f472b6;
  color: #fff;
  border-color: transparent;
}
.content-part .msg.user .bubble {
  background: #f472b6;
  color: #fff;
  border-color: transparent;
}
.content-part:not(:has(.msg))::before {
  content: "开始聊天吧～";
  display: block;
  text-align: center;
  padding: 24px 0 12px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}
/* 输入区：短内容“撑底”，长内容“吸底固定” */
.search-part {
  margin-top: auto;
  /* 撑底：内容少时把输入区推到最底 */
  /* 注：此处无需 sticky，因为我们的滚动在 .content-part 内部，输入区天然固定可见 */
  padding: 6px 0 2px;
}
.search-part .ta-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box, linear-gradient(180deg, rgba(253, 242, 248, 0.7), rgba(244, 114, 182, 0.4)) border-box;
  border: 1px solid transparent;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.1);
  padding-right: 74px;
  /* 右侧按钮预留 */
}
.search-part .textarea-with-icons {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 12px 14px;
  resize: none;
}
.search-part .textarea-with-icons:focus {
  box-shadow: none !important;
}
.search-part .ta-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-part .ta-actions .img-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  padding: 3px;
}
.search-part .ta-actions .img-btn:hover {
  background: #fdf2f8;
}
.search-part .ta-actions .img-btn:active {
  transform: scale(0.97);
}
.search-part .ta-actions .img-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.search-part .ta-actions .img-btn img {
  max-width: 22px;
  max-height: 22px;
}
.search-part .helper {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

/* 让页面容器吃满父容器高度（右侧内容区） */
.sp-page {
  height: 100%;
  padding: 12px 16px 20px;
  background: radial-gradient(1200px 600px at 70% 10%, #ffe6ee 0%, #ffeef5 40%, #ffd6e6 90%);
  /* 中央白色面板：填满可用高度，内部用列式弹性布局 */
}
.sp-page .sp-panel {
  height: 100%;
  max-height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(244, 114, 182, 0.18);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  /* 修复子元素滚动被挤压的问题 */
  min-height: 0;
}
/* 面包屑 + 标题（不参与拉伸） */
.sp-titlebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d05582;
  margin-bottom: 8px;
}
.sp-titlebar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.sp-titlebar .emoji {
  font-size: 20px;
}
/* Tabs（不参与拉伸） */
.sp-tabs {
  flex: 0 0 auto;
}
.sp-tabs .ant-tabs-ink-bar {
  display: none !important;
}
.sp-tabs .ant-tabs-nav {
  padding: 6px 0 5px;
}
.sp-tabs .ant-tabs-tab {
  background: #fdf2f8;
  border-radius: 999px;
  padding: 6px 14px;
}
.sp-tabs .ant-tabs-tab.ant-tabs-tab-active {
  background: #ffe6ee;
  border: 1px solid #fbc4d8;
}
/* 列表区域：占满剩余空间、可滚动 */
.sp-list {
  flex: 1 1 auto;
  /* 关键：吃满剩余高度 */
  min-height: 0;
  /* 关键：允许内部滚动 */
  overflow: auto;
  /* 关键：内容超出时滚动 */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-list .sp-item {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.12);
}
.sp-list .sp-item .ant-card-body {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-list .sp-item.is-done {
  opacity: 0.75;
}
.sp-list .sp-item.is-done .sp-item-text {
  text-decoration: line-through;
  color: #9ca3af;
}
.sp-list .sp-item .sp-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sp-list .sp-item .sp-thumb {
  border-radius: 12px;
}
.sp-list .sp-item .sp-item-text {
  font-size: 16px;
  color: #333;
}
/* 底部输入条：固定在面板底部（不滚），自适应宽度 */
.sp-composer {
  flex: 0 0 auto;
  /* 固定高度，停在底部 */
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}
.sp-composer .ant-input-affix-wrapper {
  height: 44px;
  border-radius: 14px;
  border: 1px solid #ffd3e3;
}
.sp-composer .sp-img-added {
  color: #f472b6;
}
/* 主按钮主题色 */
.ant-btn-primary {
  background: #f472b6;
  border-color: #f472b6;
}
/* 自适应：窄屏时把输入条拆列 */
@media (max-width: 520px) {
  .sp-composer {
    grid-template-columns: auto 1fr;
    grid-auto-rows: 44px;
  }
  .sp-composer > .ant-btn-primary {
    grid-column: span 2;
  }
}
/* 可选：更细的滚动条（按需留用） */
.sp-list::-webkit-scrollbar {
  width: 8px;
}
.sp-list::-webkit-scrollbar-thumb {
  background: #fbc4d8;
  border-radius: 999px;
}
/* 列表行：左右布局，垂直居中 */
.sp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  /* 若有粉色外阴影可保留你的原样式 */
}
.sp-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1;
}
/* 图片固定列（统一宽度/高度，保证整齐） */
.sp-thumb-box {
  flex: 0 0 48px;
  /* 列宽 */
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(244, 114, 182, 0.15);
}
/* AntD Image 有一层包裹，这里用 class 选到内部 img */
.sp-thumb-img .ant-image-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 不变形，完整显示 */
  display: block;
}
/* 没图时的占位 */
.sp-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.7;
}
/* 文本列：单行省略 + 粉色主题可自定义 */
.sp-item-text {
  flex: 1 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}
/* 选中态（完成的待办）可做灰显/划线） */
.sp-item.is-done .sp-item-text {
  color: #b9b9b9;
  text-decoration: line-through;
}

/* ① 登录页最小包：ASCII 可见字符 + 下面这些中文码点（精确到字） */
@font-face {
  font-family: "CatFont";
  src: url(/webcode/static/media/cat.min.13658e0a0f997e8e9e62.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  /* 覆盖 100–900，避免 600/700 不匹配 */
  font-display: swap;
  unicode-range: U+0020-007E, /* 页脚中的 © 符号 */ U+00A9, /* 全角问号：没有账号？ */ U+FF1F, /* —— 登录页中文（精确码点） —— */ U+8BF7, /* 请 */ U+8F93, /* 输 */ U+5165, /* 入 */ U+7528, /* 用 */ U+6237, /* 户 */ U+540D, /* 名 */ U+5BC6, /* 密 */ U+7801, /* 码 */ U+9A8C, /* 验 */ U+8BC1, /* 证 */ U+767B, /* 登 */ U+5F55, /* 录 */ U+6CA1, /* 没 */ U+6709, /* 有 */ U+8D26, /* 账 */ U+53F7, /* 号 */ U+53BB, /* 去 */ U+6CE8, /* 注 */ U+518C, /* 册 */ U+6CAA, /* 沪 */ U+5907, /* 备 */ U+4E8B, /* 事 */ U+732B, /* 猫 */ U+840C, /* 萌 */ /* 可选：你的标题“软萌猫事”四字（已覆盖） */ U+8F6F;
  /* 软 */
}
/* ② 常用中文扩展（3500 包）——除上面那些字外的其他中文都走它 */
@font-face {
  font-family: "CatFont";
  src: url(/webcode/static/media/cat.3500.f48c3057b35597a93f7d.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
}
/* ③ 兜底全量（基本区）——极少出现的生僻字再命中它 */
@font-face {
  font-family: "CatFont";
  src: url(/webcode/static/media/cat.subset.all.a4b733525bc4a1e20751.woff2) format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+4E00-9FFF;
}

