.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}




html {
  position: relative;
  min-height: 100%;
}

body {
  /* margin-bottom: 60px; */
}

html, body, div, textarea, section, aside,ul {
  scrollbar-width: thin !important;
  scrollbar-color: #e0d6c9 #f3f4f6 !important;
}

/* Webkit 滚动条样式 */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: #f3f4f6 !important;
}

::-webkit-scrollbar-thumb {
  background-color: #e0d6c9 !important;
  border-radius: 6px !important;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #d6c4b4 !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* 添加对AI分析按钮的样式支持 */
/* #ai-analyze-btn.analyzed {
     background-color: #bbf7d0;
    color: #166534;
    box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
} */

#ai-analyze-btn.not-analyzed svg, #save-btn.not-saved svg{
   /* background-color: #fee2e2;
    box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.2);*/
    color: #991b1b;
    animation: pulse 2s infinite;
}

/* 自定义颜色开始 */


/* 自定义颜色结束 */


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(153, 27, 27, 0.4);
    }
    70% {
        box-shadow: 0 0 0 3px rgba(153, 27, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(153, 27, 27, 0);
    }
}

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.highlight-element {
  animation: highlight-pulse 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  position: relative;
}
/* 添加工具栏按钮旋转过渡效果 */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* 自定义样式，用于覆盖默认字体大小 */
html {
  font-size: 14px;
  height: 100%;

}


/* 确保文本大小更加精细 */
/* .text-xl {
  font-size: 1.15rem;
}

.text-2xl {
  font-size: 1.35rem;
}

.text-3xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 1.75rem;
} */

/* 调整display类 */
.display-4 {
  font-size: 1.85rem;
  font-weight: 600;
}

/* 调整按钮和输入框的大小 */
input, select, textarea, button {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
}

/* 调整段落文本 */
p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 调整卡片和容器的内边距 */
.p-4 {
  padding: 0.9rem;
}

.p-6 {
  padding: 1.2rem;
}

/* 调整间距 */
.mb-4 {
  margin-bottom: 0.9rem;
}

.mb-6 {
  margin-bottom: 1.2rem;
}



/* 调整表单标签 */



textarea{
  scrollbar-width: thin;
  scrollbar-color: #e0d6c9 #f1f1f1;
}

/* 用户作品列表页面样式 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 悬浮菜单动画 */
.novel-menu-dropdown {
    transform-origin: top right;
    will-change: transform, opacity;
}

/* 卡片悬停效果进一步减弱 */
.userNovels-list:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 渐变文本效果 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* 毛玻璃效果 */
.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* 导出模态窗口样式 */
#export-modal .chapter-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#export-modal .chapter-checkbox:focus {
    ring-color: rgb(99 102 241);
    ring-width: 2px;
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 按钮状态 */
.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* 悬浮菜单增强 */
.novel-menu-dropdown {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-origin: top right;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 50 !important;
}

.novel-menu-dropdown button {
    word-break: break-word;
    line-height: 1.4;
    white-space: nowrap;
}

/* 确保菜单容器有正确的层级 */
.novel-menu-container {
    position: relative;
    z-index: 10;
}

/* 为了确保悬浮菜单不被遮挡，给容器也设置较高的z-index */
.userNovels-list {
    position: relative;
    z-index: 1;
}

.userNovels-list:hover {
    z-index: 10;
}

/* 菜单边界处理 */
.novel-menu-dropdown.menu-left {
    right: auto;
    left: 0;
    transform-origin: top left;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .novel-menu-dropdown {
        right: -10px;
        min-width: 200px;
        left: auto;
        transform-origin: top right;
    }

    #export-modal .bg-white {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    /* 移动端卡片布局优化 */
    .userNovels-list .h-20 {
        height: 4rem;
    }

    .userNovels-list .p-6 {
        padding: 1rem;
    }
}

/* 平滑过渡 */


/* 阴影效果 */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 变换效果 */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

/* 模态窗口背景 */
.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-opacity-90 {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 自定义滚动条 */
#chapters-container {
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e0d6c9 #f1f5f9;
    /* 强制显示滚动条 */
    scrollbar-gutter: stable;
}

#chapters-container::-webkit-scrollbar {
    width: 8px;
}

#chapters-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#chapters-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
}

#chapters-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#chapters-container::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

/* 进度条样式 */
#selection-progress {
    transition: width 0.3s ease-in-out;
}

/* 章节选择器样式 */
.chapter-checkbox {
    transition: all 0.2s ease-in-out;
}

.chapter-checkbox:checked {
    background-color: rgb(99 102 241);
    border-color: rgb(99 102 241);
}

/* 快速选择按钮组 */
.quick-select-btn:hover {
    transform: translateY(-1px);
}

/* 搜索框样式 */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 书架 */
.new-novel-card{
  border-width: 1px;
  border-color: #c8b69b; /* 古典书籍常见纸边色 */
  background-color: #fdfaf3; /* 类似羊皮纸的颜色 */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), 4px 4px 10px rgba(0,0,0,0.1);
  font-family: 'Georgia', serif;
}

/* 古典书籍风格封面外观 */
.book-card {
  position: relative;
  border-width: 1px;
  border-color: #c8b69b; /* 古典书籍常见纸边色 */
  background-color: #fdfaf3; /* 类似羊皮纸的颜色 */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), 4px 4px 10px rgba(0,0,0,0.1);
  font-family: 'Georgia', serif;
}

/* 模拟书脊的立体效果 */
.book-card::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: 0;
  left: -10px;
  width: 10px;
  background: linear-gradient(to right, #a0845c 0%, #d0bba3 100%);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  box-shadow: inset -1px 0 2px rgba(0,0,0,0.2);
  z-index: 0;
}



/* 菜单按钮圆角风格调整为老派质感 */
.novel-menu-trigger {
  border: 1px solid #ddd;
  background-color: #fefefe;
}

/* 小说菜单仿旧纸卡边框 */
.novel-menu-dropdown {
  border-color: #e4d6c2;
  background-color: #fffef9;
}



/* 通用古典按钮风格 */
.book-card a {
  @apply rounded-md text-sm font-semibold text-center transition duration-200;
  font-family: 'Georgia', serif;
  border: 1px solid #bfae9b;
  background-color: #f7f2e8;
  color: #5a4634;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03), 1px 1px 2px rgba(0,0,0,0.1);
}

/* 悬停效果 */
.book-card a:hover {
  background-color: #ede4d2;
  color: #3e2d1c;
  border-color: #a8937c;
}

/* "继续创作"按钮特殊样式（高亮） */
.book-card a.bg-indigo-600 {
  background-color: #a47149; /* 仿古铜色 */
  color: #fff;
  border-color: #8c5a36;
}

.book-card a.bg-indigo-600:hover {
  background-color: #8c5a36;
  color: #fffdf6;
}




/* 创建新作品卡片整体风格 */
.create-book-card {
  @apply rounded-2xl border border-yellow-200 shadow-md overflow-hidden bg-gradient-to-b from-yellow-50 to-white;
  font-family: 'Georgia', serif;
  position: relative;
  border-width: 2px;
  border-color: #d2bfa3;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.08);
}

/* 模拟左侧书脊效果 */
.create-book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
  background: linear-gradient(to right, #a0845c 0%, #d0bba3 100%);
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  box-shadow: inset -1px 0 2px rgba(0,0,0,0.2);
  z-index: 0;
}

/* 顶部渐变区保留，同时加边框分隔感 */
/* .create-book-card .h-48 {
  @apply rounded-t-2xl relative overflow-hidden;
  border-bottom: 1px solid #e0d6c9;
} */

/* 中间圆形按钮 */
.create-book-card .w-16 {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 卡片底部文本区 */
/* .create-book-card .p-6 {
  @apply text-gray-700 bg-gradient-to-b from-yellow-50 to-white;
} */

/* 古典按钮通用样式 */
.create-book-card a,
.create-book-card button {
  /* @apply rounded-md text-sm font-semibold text-center transition duration-200; */

  color: #5a4634;

}

/* 悬停效果 */
.create-book-card a:hover,
.create-book-card button:hover {

  color: #3e2d1c;
  border-color: #a8937c;
}

/* "创建新作品"主按钮特别高亮 */
.create-book-card a.bg-gradient-to-r {
  background-color: #a47149;
  color: #fff;
  border-color: #8c5a36;
  background-image: none !important;
}

.create-book-card a.bg-gradient-to-r:hover {
  background-color: #8c5a36;
  color: #fffdf6;
}



/*自定义颜色*/
/*
.bg-indigo-700{
  background-color: #8c5a36 !important;
}

.text-indigo-600{
  color: #a47149 !important;
}

.bg-indigo-600{
  background-color:#a0845c !important;
}

.text-indigo-800{
  color: rgba(107,114,128,var(--tw-text-opacity));
}

.text-indigo-700{
  color: rgba(107,114,128,var(--tw-text-opacity));
}

.hover\:bg-indigo-700:hover{
  background-color: #8c5a36 !important;
}

.hover\:text-indigo-600:hover{
  color: #a47149 !important;
}

.hover\:bg-indigo-600:hover{
  background-color:#a0845c !important;
}

.hover\:text-indigo-700:hover{
  color: #8c5a36 !important;
}

.hover\:bg-indigo-700:hover{
  background-color: #8c5a36 !important;
}

.bg-indigo-50{
  background-color: #e0d6c9 !important;
}

.border-indigo-500
{
  border-color:#8c5a36 !important;
}

.from-indigo-600{
  --tw-gradient-from:#a0845c !important
}
.from-indigo-700{
  --tw-gradient-from:#a0845c !important
} */

/* 全局AI助手样式 */
.typing-indicator {
    display: inline-flex;
    align-items: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #6366F1; /* Indigo-500 */
    border-radius: 50%;
    display: block;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    animation: pulse 1s infinite ease-in-out;
}
.typing-indicator span:nth-of-type(2) {
    animation: pulse 1s infinite ease-in-out 0.2s;
}
.typing-indicator span:nth-of-type(3) {
    animation: pulse 1s infinite ease-in-out 0.4s;
}

@keyframes pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 全局AI助手容器样式 */
#global-assistant-container {
    width: 90%;
    /* max-width: 1200px; */
    height: 90%;
    /* max-height: 800px; */
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: white;
}

/* 全局AI助手iframe样式 */
#global-assistant-iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}



/* 全局AI助手遮罩层 */
#global-assistant-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

#global-assistant-overlay.hidden {
    display: none;
}

#global-assistant-overlay:not(.hidden) {
    display: flex;
}

/* 全局AI工具容器样式 */
#global-ai-tools-container {
    width: 90%;
    /* max-width: 1200px; */
    height: 90%;
    /* max-height: 800px; */
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: white;
}

/* 全局AI工具iframe样式 */
#global-ai-tools-iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

/* 全局AI工具遮罩层 */
#global-ai-tools-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

#global-ai-tools-overlay.hidden {
    display: none;
}

#global-ai-tools-overlay:not(.hidden) {
    display: flex;
}





  .rotate-180 {
      -webkit-transform: rotate(180deg);
      -moz-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
      -o-transform: rotate(180deg);
      transform: rotate(180deg);
  }

  /* 确保在不支持flexbox的浏览器中均衡显示 */


  /* 增强焦点可见性 */
  .focus\:outline-none:focus {
      outline: 2px solid transparent;
      outline-offset: 2px;
  }

  .focus\:ring-2:focus {
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
  }



  /*备忘录开始*/
/* 主容器 */
#memo-pad-container {
  z-index: 1000;
  min-width: 400px;
  min-height: 300px;
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 增强 Tailwind `hidden` 的动画效果 */
@keyframes slideInFromLeft {
  from {
      transform: translateX(-100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

#memo-pad-container.animate-slide-in:not(.hidden) {
  animation: slideInFromLeft 0.3s ease-out forwards;
}

/* 控制按钮 */
.memo-control-btn {
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}
.memo-control-btn:hover {
  background-color: rgba(200, 200, 200, 0.5);
}
.dark .memo-control-btn:hover {
  background-color: rgba(90, 90, 90, 0.7);
}

/* 添加侧边栏切换图标过渡效果 */
#sidebar-toggle-icon {
  transition: transform 0.3s ease-in-out;
}

/* 调整尺寸的手柄 */
.resizer {
  position: absolute;
  background: transparent;
}

.resizer-r {
  cursor: col-resize;
  height: 100%;
  width: 10px;
  top: 0;
  right: -5px;
}

.resizer-b {
  cursor: row-resize;
  width: 100%;
  height: 10px;
  left: 0;
  bottom: -5px;
}

/* 最大化模式 */
#memo-pad-container.is-maximized {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1000;
}

/* 折叠状态 */
#memo-pad-container.is-collapsed #memo-list-pane {
  display: none;
}

#memo-pad-container.is-collapsed #sidebar-toggle-handle {
  left: 0 !important;
}

/* 备忘录列表面板 */
#memo-list-pane {
  width: 300px;
  min-width: 250px;
  max-width: 400px;
}

/* 编辑器面板 */
#memo-editor-pane {
  min-width: 300px;
}

/* 备忘录列表项 */
.memo-item {
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}

.memo-item:hover {
  border-color: #e5e7eb;
}

.memo-item.active {
  background-color: #dbeafe;
  border-color: #3b82f6;
}

/* 控制按钮样式 */
.memo-control-btn {
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  color: #6b7280;
}

.memo-control-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.memo-control-btn:hover.hover\:bg-red-500 {
  background-color: #ef4444;
  color: white;
}

/* 调整大小控制器 */
.resizer {
  position: absolute;
  background: transparent;
}

.resizer.resizer-r {
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: ew-resize;
}

.resizer.resizer-b {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  cursor: ns-resize;
}

.resizer.resizer-br {
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  cursor: nw-resize;
}

/* 调整大小时的视觉反馈 */
.resizer:hover::after {
  content: '';
  position: absolute;
  background-color: #3b82f6;
  opacity: 0.5;
}

.resizer.resizer-r:hover::after {
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
}

.resizer.resizer-b:hover::after {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

/* 拖拽时的样式 */
#memo-pad-container.dragging {
  cursor: move;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 动画效果 */
.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* 输入框样式优化 */
#memo-title {
  border: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

#memo-title:focus {
  border-bottom-color: #3b82f6;
  outline: none;
}

#memo-content {
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

#memo-content:focus {
  border-color: #3b82f6;
  outline: none;
}

/* 搜索框样式 */
#memo-search {
  transition: all 0.3s ease;
}

#memo-search:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 按钮样式优化 */
#add-new-memo {
  transition: all 0.3s ease;
  border: none;
}

#add-new-memo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#memo-save {
  transition: all 0.3s ease;
}

#memo-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

#memo-delete {
  transition: all 0.3s ease;
}

#memo-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* 标签输入框样式 */
#memo-tags {
  transition: all 0.3s ease;
}

#memo-tags:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 关联信息样式 */
#memo-association {
  color: #6b7280;
  font-size: 0.875rem;
}

/* 滚动条样式 */
#memo-list::-webkit-scrollbar {
  width: 6px;
}

#memo-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

#memo-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#memo-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  #memo-pad-container {
      width: 95vw !important;
      height: 85vh !important;
      top: 2rem !important;
      left: 2.5vw !important;
  }

  #memo-list-pane {
      width: 250px;
      min-width: 200px;
  }

  #sidebar-toggle-handle {
      left: 250px;
  }

  #memo-pad-container.is-collapsed #sidebar-toggle-handle {
      left: 0 !important;
  }
}

@media (max-width: 640px) {
  #memo-pad-container {
      width: 100vw !important;
      height: 100vh !important;
      top: 0 !important;
      left: 0 !important;
      border-radius: 0;
  }

  #memo-list-pane {
      width: 200px;
      min-width: 180px;
  }

  #sidebar-toggle-handle {
      left: 200px;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  #memo-pad-container {
      background-color: #1f2937;
      border-color: #374151;
  }

  .memo-control-btn {
      color: #9ca3af;
  }

  .memo-control-btn:hover {
      background-color: #374151;
      color: #f3f4f6;
  }

  #memo-list::-webkit-scrollbar-track {
      background: #374151;
  }

  #memo-list::-webkit-scrollbar-thumb {
      background: #6b7280;
  }

  #memo-list::-webkit-scrollbar-thumb:hover {
      background: #9ca3af;
  }
}

/* 自定义toast样式 */
.memo-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
      opacity: 0;
      transform: translateX(100%);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* 加载状态样式 */
.memo-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f4f6;
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* 空状态样式 */
.memo-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

.memo-empty-state svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* 高亮搜索结果 */
.memo-search-highlight {
  background-color: #fef3c7;
  padding: 0 2px;
  border-radius: 2px;
}

/* 列表面板分隔符 */
#memo-list-resizer {
  position: absolute;
  right: -2px;
  top: 0;
  width: 4px;
  height: 100%;
  cursor: ew-resize;
  background: transparent;
  z-index: 15;
}

#memo-list-resizer:hover {
  background: rgba(59, 130, 246, 0.3);
}

#memo-list-resizer::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: #e5e7eb;
  transform: translateX(50%);
}

#memo-list-resizer:hover::before {
  background: #3b82f6;
  width: 2px;
}
  /*备忘录结束*/



  .single-line-ellipsis{
    white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  }

  .payment-methods img{width: 20px;height: 20px;}
  #payment-method-name img{width: 20px;display: unset !important;}

/* 修复浏览器兼容性问题 - 统一响应式断点 */
/* 解决Edge浏览器(1528px)和Maxthon浏览器(1536px)的viewport差异 */
@media (min-width: 1520px) {
    .container {
        max-width: 1536px;
    }
}

/* 确保原有的断点仍然有效 */
@media (min-width: 1280px) and (max-width: 1519px) {
    .container {
        max-width: 1280px;
    }
}