/* 在 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;
  /* 全局柔光渐变背景，桌面像网站、移动端像 App */
  background: radial-gradient(1600px 800px at 75% -10%, #dff4ff 0%, transparent 45%), radial-gradient(1200px 720px at 10% 20%, #ffe7f3 0%, transparent 46%), linear-gradient(180deg, #f7fbff 0%, #fff8fc 28%, #ffffff 60%);
  color: #304156;
}
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;
}
/* —— 软萌猫事主题变量 —— */
:root {
  /* 主色：天蓝 + 淡粉 */
  --soft-blue: #6ac8ff;
  --soft-blue-deep: #2f9cf0;
  --soft-pink: #f7a8d1;
  --soft-pink-2: #fdd9ec;
  --soft-ink: #2f3a4a;
  --soft-shadow: 0 15px 40px rgba(111, 176, 255, 0.18);
  --soft-shadow-2: 0 10px 30px rgba(247, 168, 209, 0.22);
  --soft-border: rgba(247, 168, 209, 0.35);
  --soft-glass: rgba(255, 255, 255, 0.78);
  --soft-radius: 18px;
}
/* 选中文本高亮也使用品牌色 */
::selection {
  background: rgba(247, 168, 209, 0.3);
}
/* 链接色统一柔和蓝，悬停时轻微上浮 */
a {
  color: #2f9cf0;
  color: var(--soft-blue-deep);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}
a:hover {
  color: #ff8fc2;
  transform: translateY(-1px);
}
/* —— 毛玻璃卡片 & 页面容器 —— */
.soft-page-shell {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: clamp(12px, 2vw, 18px);
  overflow: hidden;
}
.soft-page-shell::before {
  /* 背景萌系渐变光影，营造高级感 */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(820px at 10% 10%, rgba(255, 218, 236, 0.55), transparent), radial-gradient(980px at 90% 20%, rgba(154, 214, 255, 0.42), transparent), radial-gradient(680px at 20% 90%, rgba(255, 246, 210, 0.4), transparent);
  filter: blur(4px);
  pointer-events: none;
}
.soft-page-shell > * {
  position: relative;
  z-index: 1;
}
.soft-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.soft-page-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e9f7ff, #fff3fa);
  border: 1px solid rgba(247, 168, 209, 0.35);
  border: 1px solid var(--soft-border);
  box-shadow: 0 15px 40px rgba(111, 176, 255, 0.18);
  box-shadow: var(--soft-shadow);
  color: #2f3a4a;
  color: var(--soft-ink);
  font-weight: 700;
}
.soft-card {
  background: rgba(255, 255, 255, 0.78);
  background: var(--soft-glass);
  border-radius: 18px;
  border-radius: var(--soft-radius);
  border: 1px solid rgba(247, 168, 209, 0.35);
  border: 1px solid var(--soft-border);
  box-shadow: 0 10px 30px rgba(247, 168, 209, 0.22);
  box-shadow: var(--soft-shadow-2);
  padding: clamp(12px, 2vw, 18px);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
          backdrop-filter: blur(10px) saturate(120%);
}
.soft-card + .soft-card {
  margin-top: 12px;
}
.soft-card--frosted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 252, 0.96));
}
/* —— 表单/表格的统一柔和样式 —— */
.soft-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 12px 16px;
  gap: 12px 16px;
}
.soft-filter .ant-form-item {
  margin-bottom: 8px;
}
.soft-filter .ant-input,
.soft-filter .ant-select-selector,
.soft-filter .ant-input-affix-wrapper {
  border-radius: 12px !important;
  border-color: rgba(247, 168, 209, 0.35) !important;
  border-color: var(--soft-border) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}
.soft-filter .ant-input:focus,
.soft-filter .ant-select-focused .ant-select-selector,
.soft-filter .ant-input-affix-wrapper-focused {
  box-shadow: 0 0 0 3px rgba(252, 231, 243, 0.6);
  border-color: #2f9cf0 !important;
  border-color: var(--soft-blue-deep) !important;
}
.soft-table-wrap {
  margin-top: 10px;
  border-radius: 18px;
  border-radius: var(--soft-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(111, 176, 255, 0.18);
}
.soft-table-wrap .ant-table-wrapper {
  border: 1px solid rgba(247, 168, 209, 0.35);
  border: 1px solid var(--soft-border);
  border-radius: 18px;
  border-radius: var(--soft-radius);
  overflow: hidden;
}
.soft-table-wrap .ant-table-thead > tr > th {
  background: linear-gradient(120deg, #f7f9ff, #fff2f7);
  border-bottom: 1px solid rgba(247, 168, 209, 0.35);
  border-bottom: 1px solid var(--soft-border);
}
.soft-table-wrap .ant-table-tbody > tr > td {
  border-color: rgba(143, 183, 255, 0.25);
}
.soft-table-wrap .ant-pagination {
  padding: 12px;
}
/* —— 统一按钮气泡效果 —— */
.ant-btn-primary {
  background: linear-gradient(135deg, #6ac8ff, #9edbff);
  background: linear-gradient(135deg, var(--soft-blue), #9edbff);
  border-color: #6ac8ff;
  border-color: var(--soft-blue);
  box-shadow: 0 14px 30px rgba(106, 200, 255, 0.35);
}
.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background: linear-gradient(135deg, #8dd9ff, #f7a8d1);
  border-color: #8dd9ff;
}
.ant-btn-default {
  border-radius: 12px;
  border-color: rgba(247, 168, 209, 0.35);
  border-color: var(--soft-border);
}
/* —— 滚动条也要软萌 —— */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(106, 200, 255, 0.45), rgba(247, 168, 209, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.7);
}
/* 移动端：软萌卡片保持空气感 */
@media (max-width: 768px) {
  .soft-page-shell {
    padding: 10px;
  }
  .soft-card {
    padding: 12px;
    border-radius: 16px;
  }
  .soft-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .soft-filter {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
/* 移动端将输入类组件的字号提升到 16px，避免 iOS 聚焦时触发页面自动放大 */
@media (max-width: 768px) {
  input,
  textarea,
  .ant-input,
  .ant-input-affix-wrapper input,
  .ant-input-password input {
    font-size: 16px;
  }
}
.header {
  padding: 10px;
  margin-bottom: 10px;
}
.content {
  padding: 10px;
}
/* —— 全局表单页面的响应式调整 —— */
@media (max-width: 1024px) {
  .header {
    padding: 8px 10px;
  }
  .header .ant-form.ant-form-inline {
    gap: 12px 16px;
    flex-wrap: wrap;
  }
  .header .ant-form-item {
    flex: 1 1 45%;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 8px;
  }
  .header .ant-form.ant-form-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .header .ant-form-item {
    width: 100%;
    margin-right: 0;
  }
  .content {
    padding: 8px;
  }
}

/* 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); }
}


.ai-manage-page {
  height: 100%;
  overflow: auto;
  padding: 18px;
  background: #f8fafc;
}
.ai-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}
.ai-metrics div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-metrics span {
  color: #6b7280;
  font-size: 13px;
}
.ai-metrics strong {
  font-size: 24px;
  color: #111827;
}
.ai-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 12px;
  gap: 0 12px;
}
@media (max-width: 768px) {
  .ai-manage-page {
    padding: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 软萌猫事·主题变量 ========== */
/* 估算值，可按实际微调 */
/* —— 背景 —— */
.soft-bg {
  min-height: 100dvh;
  height: 100dvh;
  /* 锁定页面高度，避免首页出现外层上下滚动 */
  overflow: hidden;
  /* 只允许内部 SimpleBar/内容区滚动，防止主体跟随滑动 */
  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;
  position: relative;
  /* 为移动端遮罩预留定位上下文 */
}
/* —— 左侧栏 —— */
.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);
  transition: width 0.24s ease;
}
/* antd 在 collapsedWidth=0 时会生成零宽度触发器，这里强制隐藏避免出现第二个汉堡图标 */
.soft-layout .ant-layout-sider-zero-width-trigger,
.soft-layout > .ant-layout-sider-zero-width-trigger {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* 侧栏 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;
  flex-wrap: nowrap;
  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 - 21px);
  /* ★ 高度确定，子项才能 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: 21px;
  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);
}
:where(.ant-layout-footer).soft-footer a {
  color: #999;
}
/* —— 右上角粉色用户胶囊 —— */
.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;
}
/* —— 移动端抽屉遮罩 —— */
.soft-sider-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  padding: 0;
  margin: 0;
  z-index: 40;
  cursor: pointer;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
/* —— 响应式调整：桌面（≥1200px）以下 —— */
@media (max-width: 1200px) {
  .contentStyle.soft-content {
    padding: 12px;
  }
  .contentInnerStyle.soft-content-inner {
    border-radius: 18px;
  }
}
/* —— 平板（≤1024px）布局优化 —— */
@media (max-width: 1024px) {
  .headerStyle.soft-header {
    flex-wrap: nowrap;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }
  .headerStyleRight {
    width: 100%;
  }
  .headerStyleRight .ant-tabs-nav {
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .headerStyleRight .ant-tabs-nav::-webkit-scrollbar {
    height: 4px;
  }
  .headerStyleRight .ant-tabs-nav-list {
    flex-wrap: nowrap;
  }
  .tabStyle.soft-tabs .ant-tabs-tab {
    flex: none;
  }
  .contentStyle.soft-content {
    padding: 10px 12px;
    height: auto;
    height: calc(100dvh - 21px - 79px);
  }
  .contentInnerStyle.soft-content-inner {
    padding: 12px;
  }
}
/* —— 手机（≤768px）抽屉化侧边栏 —— */
@media (max-width: 768px) {
  .soft-sider-mask {
    display: block;
    z-index: 45;
  }
  .siderStyle.soft-sider {
    position: fixed !important;
    inset: 0 auto 0 0;
    height: 100dvh;
    z-index: 60;
    box-shadow: 12px 0 24px rgba(0, 0, 0, 0.18);
  }
  .ant-layout-sider-collapsed.soft-sider {
    box-shadow: none;
  }
  .headerStyle.soft-header {
    padding: max(env(safe-area-inset-top, 0px), 6px) 10px 8px;
  }
  .headerStyleRight .ant-tabs-nav {
    gap: 6px;
  }
  .contentStyle.soft-content {
    padding: 10px;
  }
  .contentInnerStyle.soft-content-inner {
    padding: 10px;
  }
  .soft-user {
    width: 100%;
    justify-content: space-between;
  }
  .soft-user-name {
    max-width: none;
  }
}

[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}

.chat-window {
  height: 100vh;
  display: flex;
  background: #ffffff;
  color: #111827;
}
.chat-sidebar {
  flex: 0 0 280px;
  min-width: 0;
  width: 280px;
  border-right: 1px solid #e5e7eb;
  background: #f7f7f8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: flex-basis 0.16s ease, width 0.16s ease, opacity 0.16s ease;
}
.chat-sidebar.is-closed {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  border-right: 0;
  pointer-events: none;
  overflow: hidden;
}
.sidebar-head {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.sidebar-head .ant-btn {
  width: 100%;
  justify-content: flex-start;
}
.session-list {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}
.session-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1f2937;
}
.session-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-item small {
  color: #9ca3af;
  font-size: 11px;
}
.session-item:hover,
.session-item.is-active {
  background: #ececf1;
}
.chat-main {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.chat-topbar {
  height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #ececf1;
}
.model-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.model-picker span {
  color: #6b7280;
  font-size: 12px;
}
.chat-scroll {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  padding: 26px 16px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chat-scroll > .ant-spin,
.chat-scroll > .ant-empty {
  margin-top: 20vh;
}
.chat-row {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-gap: 14px;
  gap: 14px;
  padding: 18px 4px;
}
.chat-row.assistant {
  background: #f7f7f8;
  border-top: 1px solid #ececf1;
  border-bottom: 1px solid #ececf1;
  width: 100%;
  justify-content: center;
  grid-template-columns: minmax(0, 860px);
  padding-left: calc((100% - min(860px, 100%)) / 2);
  padding-right: calc((100% - min(860px, 100%)) / 2);
}
.chat-row.assistant .avatar,
.chat-row.assistant .message-block {
  grid-row: 1;
}
.chat-row.assistant .avatar {
  grid-column: 1;
}
.chat-row.assistant .message-block {
  grid-column: 1;
  margin-left: 48px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #10a37f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.chat-row.user .avatar {
  background: #f472b6;
}
.message-block {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  font-size: 15px;
}
.reasoning-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d9d9e3;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
}
.reasoning-box summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
}
.reasoning-box pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.typing {
  color: #9ca3af;
}
.composer {
  position: fixed;
  left: 280px;
  right: 0;
  bottom: 0;
  padding: 18px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  display: flex;
  justify-content: center;
  gap: 10px;
}
.composer .ant-input {
  max-width: 820px;
  border-radius: 12px;
  padding: 13px 48px 13px 14px;
  resize: none;
  box-shadow: 0 0 0 1px #d9d9e3, 0 8px 24px rgba(0, 0, 0, 0.08);
}
.composer .ant-btn {
  margin-top: 5px;
  flex: 0 0 auto;
}
.chat-window.sidebar-collapsed .composer {
  left: 0;
}
@media (max-width: 768px) {
  .chat-window {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    position: fixed;
    z-index: 5;
    inset: 0 auto 0 0;
    width: 82vw;
    max-width: 320px;
  }
  .composer {
    left: 0;
    padding: 14px;
  }
}

.couple-space-page {
  min-height: 100%;
  padding: 28px;
}
.couple-space-header {
  margin-bottom: 20px;
}
.couple-space-header h1 {
  margin: 0 0 8px;
  color: #3f3a4f;
  font-size: 32px;
}
.couple-space-header p {
  margin: 0;
  color: #756d82;
}
.couple-space-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.couple-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.couple-card {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(124, 99, 132, 0.12);
}
.couple-card.is-done {
  opacity: 0.62;
}
.couple-card__top,
.couple-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.couple-card h3 {
  margin: 14px 0 8px;
  color: #3f3a4f;
}
.couple-card p {
  min-height: 48px;
  color: #665f72;
}
.couple-card__mood {
  display: inline-block;
  margin-bottom: 14px;
  color: #d9468f;
  font-weight: 600;
}
@media (max-width: 640px) {
  .couple-space-page {
    padding: 16px;
  }
  .couple-space-toolbar {
    flex-direction: column;
  }
}

.developing-wrap {
  background-color: #f6f6f6;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.developing-wrap img {
  width: 100%;
  max-width: 960px;
  height: auto;
  max-height: calc(100dvh - 160px);
}
/* 小屏幕时避免图片被裁切，改为更紧凑的留白 */
@media (max-width: 768px) {
  .developing-wrap {
    padding: 16px;
  }
  .developing-wrap img {
    max-height: calc(100dvh - 120px);
  }
}

.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: no-repeat;
  background-size: cover;
  background-position: center;
  /* 顶层朦胧渐变，强化“App”感 */
  position: relative;
  /* 轻盈的浮动动画 */
}
.login::before,
.login::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login::before {
  /* 右上角天蓝光晕 */
  background: radial-gradient(640px at 80% 10%, rgba(144, 213, 255, 0.28), transparent);
  mix-blend-mode: screen;
  z-index: 0;
}
.login::after {
  /* 左下角淡粉猫爪光斑 */
  background: radial-gradient(720px at 15% 88%, rgba(255, 206, 232, 0.38), transparent), radial-gradient(380px at 25% 82%, rgba(255, 196, 228, 0.55), transparent 55%);
  z-index: 0;
}
.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: 0 20px 50px rgba(106, 200, 255, 0.25), 0 8px 20px rgba(247, 168, 209, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 4vh;
  justify-content: center;
  /* 猫爪浮动贴纸，增加可爱氛围 */
  /* 登录页输入框统一加粗字号，避免移动端聚焦时强制放大页面 */
}
.login .login-inner::after {
  content: "";
  position: absolute;
  inset: -12px;
  background: url(/webcode/static/media/cat-stop.80b1ff0863c87cea406c.png) center / 180px no-repeat;
  opacity: 0.15;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
}
.login .login-inner .ant-input,
.login .login-inner .ant-input-affix-wrapper,
.login .login-inner .ant-input-affix-wrapper input {
  font-size: 16px;
}
.login .verify-code {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.login .verify-code .input-part {
  flex: 1 1 auto;
  min-width: 0;
}
.login .verify-code .img-part {
  flex: 0 0 auto;
  width: 100px;
  height: 30px;
  background-repeat: round;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}
.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;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  position: fixed;
  bottom: 0;
  /* 永远吸底 */
  left: 0;
}
.login .footerStyle a {
  color: #999;
}
/* —— 响应式适配 —— */
@media (max-width: 1024px) {
  .login {
    padding: 24px 0 48px;
  }
  .login .login-inner {
    width: 320px;
    max-width: 88%;
  }
}
@media (max-width: 768px) {
  .login {
    padding: 16px 0 110px;
    background-size: cover;
  }
  .login .login-inner {
    width: min(320px, 92%);
    padding: 16px 18px 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    gap: 16px;
  }
  .login .verify-code {
    gap: 6px;
    align-items: center;
  }
  .login .verify-code .input-part {
    min-width: 0;
  }
  .login .verify-code .img-part {
    width: clamp(88px, 28vw, 120px);
    height: 30px;
  }
  .login .actions {
    width: 100%;
  }
  .login .actions .button-color {
    width: 100%;
    font-size: 16px;
  }
  .login .footerStyle {
    position: fixed;
    margin-top: 0;
    left: 0;
  }
}

.main-page.chat-launch-page {
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.main-page.chat-launch-page .ant-empty-description {
  color: #6b7280;
}

.night-light-page {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  grid-gap: 24px;
  gap: 24px;
  padding: 28px;
  color: #3f3a4f;
}
.night-light-scene,
.night-panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(124, 99, 132, 0.16);
  border-radius: 8px;
}
.night-light-scene {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.night-light-scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 42%, #ff8fab, transparent 34%), linear-gradient(140deg, #fff7fb 0%, #eef8ff 55%, #f7f1ff 100%);
  background: radial-gradient(circle at 50% 42%, var(--night-light-color, #ff8fab), transparent 34%), linear-gradient(140deg, #fff7fb 0%, #eef8ff 55%, #f7f1ff 100%);
  opacity: 0.7;
  opacity: var(--night-light-opacity, 0.7);
  transition: opacity 240ms ease, background 240ms ease;
}
.lamp {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lamp__glow {
  position: absolute;
  top: -20px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ff8fab;
  background: var(--night-light-color, #ff8fab);
  opacity: 0.16;
  filter: blur(36px);
  transform: scale(0.9);
  transition: opacity 240ms ease, transform 240ms ease;
}
.lamp.is-on .lamp__glow {
  opacity: 0.72;
  transform: scale(1.08);
}
.lamp__shade {
  position: relative;
  width: 190px;
  height: 138px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 52px;
  background: linear-gradient(180deg, #ff8fab, #f15bb5);
  border-radius: 90px 90px 28px 28px;
  box-shadow: inset 0 -14px 28px rgba(130, 45, 93, 0.16);
}
.lamp__stem {
  width: 18px;
  height: 140px;
  background: #7a6cf2;
}
.lamp__base {
  width: 170px;
  height: 38px;
  border-radius: 50%;
  background: #635b8f;
}
.night-copy {
  position: absolute;
  z-index: 1;
  left: 34px;
  bottom: 28px;
}
.night-copy h1 {
  margin: 0 0 8px;
  font-size: 34px;
}
.night-copy p {
  margin: 0;
  color: #716a82;
}
.night-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.night-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
}
.night-control--stack {
  display: block;
}
@media (max-width: 900px) {
  .night-light-page {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .night-light-scene {
    min-height: 420px;
  }
}

/* 让页面容器吃满父容器高度（右侧内容区） */
.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;
}
.sp-subtitle {
  flex: 0 0 auto;
  margin: 0 0 14px;
  text-align: center;
  color: #9f456c;
  font-size: 14px;
  line-height: 1.6;
}
/* 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;
}
/* —— 响应式适配 —— */
@media (max-width: 1200px) {
  .sp-page {
    padding: 10px 12px 18px;
  }
  .sp-panel {
    padding: 14px 16px 16px;
  }
}
@media (max-width: 1024px) {
  .sp-panel {
    border-radius: 18px;
  }
  .sp-tabs .ant-tabs-nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .sp-tabs .ant-tabs-nav::-webkit-scrollbar {
    height: 4px;
  }
  .sp-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .sp-item-left {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .sp-page {
    padding: 10px;
  }
  .sp-panel {
    padding: 12px;
    box-shadow: 0 12px 28px rgba(244, 114, 182, 0.16);
  }
  .sp-titlebar {
    flex-wrap: wrap;
    text-align: center;
  }
  .sp-composer {
    grid-auto-rows: auto;
  }
  .sp-composer > .ant-btn-primary {
    width: 100%;
  }
}

.tonight-dinner-page {
  position: relative;
  min-height: 100dvh;
  /* 使用动态视口高度，兼容移动端地址栏收缩 */
  padding: 56px 32px 48px;
  /* 缩短底部留白，让描边与内容关系更紧凑 */
  background: linear-gradient(160deg, #fff1f7 0%, #f9f8ff 45%, #fefefe 100%);
  color: hsl(316, 15%, 29%);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  /* 页面只允许内部列表滚动 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.tonight-dinner-page__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px at 20% 20%, rgba(255, 191, 216, 0.35), transparent), radial-gradient(260px at 80% 0%, rgba(169, 209, 255, 0.32), transparent), radial-gradient(300px at 50% 80%, rgba(255, 243, 179, 0.28), transparent);
  filter: blur(0px);
  animation: twinkle 12s linear infinite;
  z-index: 0;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.55;
  }
}
.tonight-dinner-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}
.tonight-dinner-header__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: 999px;
  background: rgba(255, 205, 229, 0.45);
  color: #ff5e9c;
  font-weight: 700;
  font-size: 20px;
}
.tonight-dinner-header__title h1 {
  margin: 0;
  font-size: 28px;
}
.tonight-dinner-header__title .anticon {
  font-size: 24px;
}
.tonight-dinner-header p {
  margin: 16px auto 0;
  max-width: 520px;
  color: #7b6873;
}
.tonight-dinner-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-gap: 32px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  /* 填满剩余高度，防止页面外层溢出 */
  flex: 1 1;
  min-height: 0;
  /* 允许内部面板正确收缩，避免撑出额外滚动条 */
  overflow: hidden;
}
.menu-panel {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  padding: 28px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(760px, calc(100vh - 160px));
  /* 控制面板高度，保证底部能看到柔和白边且不过度留空 */
  overflow: hidden;
  /* 超出部分不再溢出，防止视觉上贴边 */
  min-height: 0;
  /* 避免撑开父容器导致外层滚动 */
}
.menu-panel__toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.menu-panel__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.menu-panel__category {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  background: rgba(255, 195, 218, 0.32);
  color: #b25b84;
  cursor: pointer;
  transition: all 0.25s ease;
}
.menu-panel__category:hover {
  transform: translateY(-2px);
  background: rgba(255, 153, 194, 0.5);
}
.menu-panel__category--active {
  background: linear-gradient(120deg, #ff7ab8, #ff9ed0);
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 122, 184, 0.25);
}
.menu-panel__search {
  max-width: 320px;
}
.menu-panel__error {
  margin: 0 0 12px;
  color: #ff6f94;
  font-size: 14px;
}
.menu-panel__content {
  position: relative;
  min-height: 320px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* 内容区域跟随面板高度自动裁切 */
  min-height: 0;
  /* 与 flex 配合，让内部列表在固定高度内自适应 */
}
.menu-panel__list {
  position: relative;
  flex: 1 1;
  min-height: 0;
  /* 保证 flex 子项在可用高度内自由伸缩 */
  height: 100%;
  /* 与外层固定高度配合，只让列表产生滚动 */
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* 控制卡片间距，代替虚拟列表时期的额外外边距 */
}
.menu-panel__list::-webkit-scrollbar {
  width: 6px;
}
.menu-panel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 170, 206, 0.6);
}
.menu-panel__list::-webkit-scrollbar-track {
  background: transparent;
}
.menu-panel__skeletons {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}
.menu-panel__skeleton {
  height: 140px !important;
  border-radius: 24px !important;
}
.menu-panel__ribbon--hidden {
  display: contents;
}
.menu-panel__ribbon--hidden .ant-ribbon {
  display: none;
}
.menu-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 236, 247, 0.95));
  border-radius: 26px;
  padding: 20px 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 220, 0.3), 0 18px 38px rgba(255, 176, 205, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.menu-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 220, 0.4), 0 22px 42px rgba(255, 145, 199, 0.24);
}
.menu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.menu-card__header h3 {
  margin: 0;
  color: #ff5b9f;
  font-size: 20px;
}
.menu-card__price {
  color: #ff8fbf;
  font-weight: 600;
  font-size: 18px;
}
.menu-card__desc {
  margin: 12px 0 16px;
  color: #7c6c77;
  line-height: 1.6;
}
.menu-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.menu-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-card__tags .ant-tag {
  border-radius: 999px;
  background: rgba(255, 182, 213, 0.18);
  border: none;
  color: #c25c8a;
  padding: 4px 12px;
}
.menu-card__spicy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff8778;
}
.menu-card__spicy[data-level="0"] {
  color: #90b2ff;
}
.menu-card__spicy span {
  margin-left: 4px;
  font-size: 13px;
  color: #7b6c72;
}
.menu-card__footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.menu-card__calories {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5a86e;
}
.menu-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu-card__actions .ant-btn-primary {
  background: linear-gradient(120deg, #ff7ab8, #ffa9d6);
  border: none;
}
.menu-card__quantity {
  min-width: 48px;
  text-align: center;
  color: #ff5f9c;
  font-weight: 600;
}
.cart-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 28px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(760px, calc(100vh - 160px));
  /* 与左侧菜单保持同样高度上限，统一视觉节奏 */
  min-height: 0;
  /* 允许自身在栅格中自适应，保持双列等高 */
  overflow: hidden;
  /* 防止内容撑破容器导致外层滚动 */
}
.cart-panel__header h2 {
  margin: 0;
  font-size: 22px;
  color: #7a6cf2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-panel__header p {
  margin: 6px 0 18px;
  color: #8a7c8a;
}
.cart-panel__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1;
  /* 列表占满可用空间，保证底部对齐 */
  min-height: 0;
  overflow-y: auto;
  /* 当菜品较多时允许内部滚动 */
  padding-right: 6px;
  /* 与左侧滚动条保持一致的内边距 */
  scrollbar-width: thin;
  max-height: max(200px, calc(100% - 184px));
  /*
     * 预留头部与底部固定区域的高度，
     * 让中部列表拥有稳定的滚动空间，避免被新增菜品挤压。
     */
}
.cart-panel__list::-webkit-scrollbar {
  width: 6px;
}
.cart-panel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(170, 174, 255, 0.5);
}
.cart-panel__list::-webkit-scrollbar-track {
  background: transparent;
}
.cart-panel__empty {
  padding: 20px 0;
}
.cart-panel__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(244, 245, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(176, 184, 255, 0.2);
}
.cart-panel__item h4 {
  margin: 0 0 6px;
  color: #655be8;
}
.cart-panel__item-price {
  font-size: 13px;
  color: #a09adf;
}
.cart-panel__item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-panel__item-actions .ant-btn-primary {
  background: linear-gradient(120deg, #8b87ff, #aeaaff);
  border: none;
}
.cart-panel__item-quantity {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  color: #7a72ec;
}
.cart-panel__footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.cart-panel__total strong {
  font-size: 24px;
  color: #7a6cf2;
}
.dinner-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
@media (max-width: 1024px) {
  .tonight-dinner-page {
    padding: 48px 24px 40px;
  }
  .tonight-dinner-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .menu-panel {
    max-height: none;
  }
  .cart-panel {
    position: static;
  }
}
@media (max-width: 768px) {
  .tonight-dinner-page {
    padding: 40px 16px 56px;
  }
  .menu-panel {
    padding: 20px;
    border-radius: 24px;
  }
  .menu-panel__toolbar {
    gap: 14px;
  }
  .menu-panel__categories {
    gap: 10px;
  }
  .menu-card {
    padding: 16px 18px;
  }
  .cart-panel {
    border-radius: 24px;
  }
}
@media (max-width: 520px) {
  .tonight-dinner-page {
    padding: 32px 12px 48px;
  }
  .tonight-dinner-header__title {
    padding: 10px 20px;
    font-size: 18px;
  }
  .tonight-dinner-header__title h1 {
    font-size: 24px;
  }
  .menu-panel {
    padding: 16px;
  }
  .menu-panel__category {
    font-size: 13px;
    padding: 6px 14px;
  }
  .menu-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ① 登录页最小包：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;
}

