.footer-bar {
  position: fixed;
  /* 固定在视口底部 */
  bottom: 0;
  left: 0;
  width: 100%;
  /* 宽度100% */
  background-color: #fff;
  /* 背景颜色 */
  color: #fff;
  /* 字体颜色 */
  padding: 10px 20px;
  /* 内边距 */
  display: flex;
  /* 使用flex布局 */
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  /* 上阴影效果 */
  z-index: 1000;
  /* 确保在最上层 */
}
@media screen and (max-width: 768px) {
  .footer-bar {
    padding: 8px 6px;
  }
}
.footer-bar .footer-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-time {
  font-size: 18px;
  /* 时钟字体大小 */
}
.footer-buttons {
  display: flex;
  /* 水平排列按钮 */
  width: 100%;
  justify-content: center;
  /* 左右两端对齐 */
  align-items: center;
  position: relative;
}
.footer-buttons .button-group-left {
  position: absolute;
  left: 0;
}
.footer-buttons .button-group-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
@media screen and (max-width: 768px) {
  .footer-buttons .button-group-center {
    gap: 4px;
  }
}
.footer-buttons button {
  margin-left: 12px;
}
@media screen and (max-width: 768px) {
  .footer-buttons button {
    margin-left: 4px;
  }
}
.footer-button {
  background-color: #ffa500;
  /* 橙色背景 */
  color: #fff;
  /* 按钮字体颜色 */
  border: none;
  /* 去掉边框 */
  border-radius: 5px;
  /* 圆角 */
  padding: 10px 15px;
  /* 内边距 */
  margin-left: 10px;
  /* 按钮间距 */
  cursor: pointer;
  /* 鼠标指针样式 */
  transition: background-color 0.3s;
  /* 背景颜色过渡效果 */
}
.footer-button:hover {
  background-color: #ff8c00;
  /* 悬停时颜色变化 */
}
.footer-buttons .ant-btn.crayon-button {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 8px 20px !important;
  cursor: pointer !important;
  transition: none !important;
  position: relative !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.footer-buttons .ant-btn.crayon-button:hover,
.footer-buttons .ant-btn.crayon-button:focus,
.footer-buttons .ant-btn.crayon-button:active,
.footer-buttons .ant-btn.crayon-button:focus-within {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.footer-buttons .ant-btn.crayon-button::before,
.footer-buttons .ant-btn.crayon-button::after {
  display: none !important;
}
.footer-buttons .ant-btn.crayon-button::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 1px, rgba(255, 255, 255, 0.3) 1px, rgba(255, 255, 255, 0.3) 2px);
  pointer-events: none;
  z-index: 1;
}
.footer-buttons .ant-btn.crayon-button.crayon-again {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #f05759 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-again:hover,
.footer-buttons .ant-btn.crayon-button.crayon-again:focus,
.footer-buttons .ant-btn.crayon-button.crayon-again:active,
.footer-buttons .ant-btn.crayon-button.crayon-again:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #f05759 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-hard {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #f77039 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-hard:hover,
.footer-buttons .ant-btn.crayon-button.crayon-hard:focus,
.footer-buttons .ant-btn.crayon-button.crayon-hard:active,
.footer-buttons .ant-btn.crayon-button.crayon-hard:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #f77039 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-good {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #44b459 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-good:hover,
.footer-buttons .ant-btn.crayon-button.crayon-good:focus,
.footer-buttons .ant-btn.crayon-button.crayon-good:active,
.footer-buttons .ant-btn.crayon-button.crayon-good:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #44b459 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-easy {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #1c71d6 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-easy:hover,
.footer-buttons .ant-btn.crayon-button.crayon-easy:focus,
.footer-buttons .ant-btn.crayon-button.crayon-easy:active,
.footer-buttons .ant-btn.crayon-button.crayon-easy:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #1c71d6 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-show-answer {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #1c71d6 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-show-answer:hover,
.footer-buttons .ant-btn.crayon-button.crayon-show-answer:focus,
.footer-buttons .ant-btn.crayon-button.crayon-show-answer:active,
.footer-buttons .ant-btn.crayon-button.crayon-show-answer:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #1c71d6 !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-suspend {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #57606f !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-suspend:hover,
.footer-buttons .ant-btn.crayon-button.crayon-suspend:focus,
.footer-buttons .ant-btn.crayon-button.crayon-suspend:active,
.footer-buttons .ant-btn.crayon-button.crayon-suspend:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #57606f !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-next {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #5352ed !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button.crayon-next:hover,
.footer-buttons .ant-btn.crayon-button.crayon-next:focus,
.footer-buttons .ant-btn.crayon-button.crayon-next:active,
.footer-buttons .ant-btn.crayon-button.crayon-next:focus-within {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #5352ed !important;
  border-color: transparent !important;
}
.footer-buttons .ant-btn.crayon-button > span {
  position: relative;
  z-index: 2;
}

.dictionary-popup {
  position: fixed;
  max-width: 450px;
  max-height: 350px;
  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 10000;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  word-wrap: break-word;
  animation: fadeIn 0.2s ease-in-out;
}

.dictionary-popup .close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.dictionary-popup .close-button:hover {
  background: #f5f5f5;
  color: #666;
}

.dictionary-popup .content {
  margin-right: 30px;
  white-space: normal;
}

/* HTML内容样式 */
.dictionary-popup .content h1,
.dictionary-popup .content h2,
.dictionary-popup .content h3 {
  margin: 12px 0 8px 0;
  font-weight: bold;
  color: #333;
}

.dictionary-popup .content h1 {
  font-size: 20px;
}

.dictionary-popup .content h2 {
  font-size: 18px;
}

.dictionary-popup .content h3 {
  font-size: 16px;
}

.dictionary-popup .content strong {
  font-weight: bold;
  color: #333;
}

.dictionary-popup .content em {
  font-style: italic;
  color: #555;
}

.dictionary-popup .content code {
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  color: #d73a49;
}

.dictionary-popup .content ul {
  margin: 8px 0;
  padding-left: 0;
}

.dictionary-popup .content li {
  margin: 4px 0;
  list-style: disc;
  margin-left: 20px;
  padding-left: 4px;
}

.dictionary-popup .content ol {
  margin: 8px 0;
  padding-left: 0;
}

.dictionary-popup .content ol li {
  list-style: decimal;
}

.dictionary-popup .content p {
  margin: 8px 0;
}

/* 滚动条样式 */
.dictionary-popup::-webkit-scrollbar {
  width: 6px;
}

.dictionary-popup::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dictionary-popup::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.dictionary-popup::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .dictionary-popup {
    max-width: 90vw;
    max-height: 60vh;
    left: 5vw !important;
    right: 5vw;
    padding: 16px;
  }

  .dictionary-popup .content {
    margin-right: 24px;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .dictionary-popup {
    background: #1f1f1f;
    border-color: #404040;
    color: #e0e0e0;
  }

  .dictionary-popup .close-button {
    color: #999;
  }

  .dictionary-popup .close-button:hover {
    background: #333;
    color: #ccc;
  }

  .dictionary-popup .content h1,
  .dictionary-popup .content h2,
  .dictionary-popup .content h3,
  .dictionary-popup .content strong {
    color: #fff;
  }

  .dictionary-popup .content em {
    color: #ccc;
  }

  .dictionary-popup .content code {
    background: #333;
    color: #ff6b6b;
  }

  .dictionary-popup::-webkit-scrollbar-track {
    background: #333;
  }

  .dictionary-popup::-webkit-scrollbar-thumb {
    background: #666;
  }

  .dictionary-popup::-webkit-scrollbar-thumb:hover {
    background: #777;
  }
}

/* 字典查询按钮loading状态 */
.dictionary-loading {
  position: relative;
  pointer-events: none;
}

.dictionary-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #1890ff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: dictionary-spin 0.8s linear infinite;
  z-index: 1;
}

.dictionary-loading svg {
  opacity: 0.3;
}

@keyframes dictionary-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.draggable-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* 让背景可以被点击 */
  z-index: 1000;
}
.draggable-modal {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  /* 让Modal内容可以被点击 */
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}
.draggable-modal.dragging,
.draggable-modal.resizing {
  user-select: none;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12), 0 6px 16px -4px rgba(0, 0, 0, 0.16), 0 16px 48px 16px rgba(0, 0, 0, 0.08);
}
.draggable-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 1;
  min-height: 56px;
}
.draggable-modal-header:hover {
  background: #fafafa;
}
.draggable-modal-header:active {
  background: #f0f0f0;
}
.draggable-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draggable-modal-close {
  color: rgba(0, 0, 0, 0.45);
  border: none;
  background: transparent;
}
.draggable-modal-close:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.06);
}
.draggable-modal-content {
  flex: 1;
  padding: 24px;
  overflow: auto;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
}
.draggable-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 0 0 8px 8px;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .draggable-modal {
    margin: 0;
    max-width: 100%;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
  }
  .draggable-modal-header {
    border-radius: 0;
  }
  .draggable-modal-footer {
    border-radius: 0;
  }
}
/* 滚动条样式 */
.draggable-modal-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.draggable-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.draggable-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
.draggable-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* 动画效果 */
.draggable-modal {
  transition: box-shadow 0.2s ease;
}
.draggable-modal-header {
  transition: background-color 0.2s ease;
}
.draggable-modal-close {
  transition: color 0.2s ease, background-color 0.2s ease;
}
/* 调整大小控制点样式 */
.resize-handle {
  position: absolute;
  background: transparent;
  z-index: 10;
}
.resize-handle:hover {
  background: rgba(24, 144, 255, 0.1);
}
/* 角落控制点 */
.resize-handle-nw {
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  cursor: nw-resize;
}
.resize-handle-ne {
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  cursor: ne-resize;
}
.resize-handle-sw {
  bottom: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  cursor: sw-resize;
}
.resize-handle-se {
  bottom: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  cursor: se-resize;
}
/* 边缘控制点 */
.resize-handle-n {
  top: -4px;
  left: 8px;
  right: 8px;
  height: 8px;
  cursor: n-resize;
}
.resize-handle-e {
  top: 8px;
  right: -4px;
  bottom: 8px;
  width: 8px;
  cursor: e-resize;
}
.resize-handle-s {
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 8px;
  cursor: s-resize;
}
.resize-handle-w {
  top: 8px;
  left: -4px;
  bottom: 8px;
  width: 8px;
  cursor: w-resize;
}
/* 调整大小时的视觉反馈 */
.draggable-modal.resizing::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px dashed #1890ff;
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}

.notes-modal .ant-modal-body {
  padding: 0;
  height: 500px;
  overflow: hidden;
}
.notes-modal .notes-container {
  display: flex;
  height: 100%;
  overflow: hidden;
}
.notes-modal .notes-sidebar {
  width: 300px;
  background-color: #f9f9f9;
  border-right: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notes-modal .notes-sidebar .notes-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}
.notes-modal .notes-sidebar .notes-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.notes-modal .notes-sidebar .notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 0;
  margin: 0;
  transition: background-color 0.2s;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item:hover {
  background-color: #f0f0f0;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item.active {
  background-color: #e8f0fe;
  border-left: 3px solid #4285f4;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item.active .note-item-content {
  padding-left: 17px;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content {
  width: 100%;
  padding: 12px 20px;
  cursor: pointer;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-item-header .note-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
  margin-right: 8px;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-item-header .note-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-item-header .note-actions .ant-btn {
  padding: 0 4px;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
  font-size: 12px;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-preview {
  font-size: 12px;
  color: #777;
  margin-bottom: 5px;
  line-height: 1.4;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-meta .note-date {
  font-size: 11px;
  color: #999;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content .note-meta .ant-tag {
  margin: 0;
  font-size: 10px;
  padding: 2px 6px;
  height: auto;
  line-height: 1;
}
.notes-modal .notes-sidebar .notes-list .ant-list .ant-list-item .note-item-content:hover .note-actions {
  opacity: 1;
}
.notes-modal .notes-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notes-modal .notes-content .content-header {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}
.notes-modal .notes-content .content-header .note-title-input {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  margin-right: 20px;
}
.notes-modal .notes-content .content-header .note-title-input.ant-input {
  border: none;
  box-shadow: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
}
.notes-modal .notes-content .content-header .note-title-input:focus {
  box-shadow: none;
  border: none;
  outline: none;
}
.notes-modal .notes-content .content-header .note-title-input[disabled] {
  background: transparent;
  color: #333;
  cursor: default;
}
.notes-modal .notes-content .content-header .note-title-display {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-right: 20px;
  padding: 0;
  line-height: 1.5;
}
.notes-modal .notes-content .content-header .note-title-display * {
  margin: 0;
  padding: 0;
}
.notes-modal .notes-content .content-header .content-actions {
  display: flex;
  gap: 8px;
}
.notes-modal .notes-content .content-header .reference-text {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f0f8ff;
  border-left: 4px solid #1890ff;
  border-radius: 4px;
}
.notes-modal .notes-content .content-header .reference-text .reference-label {
  font-size: 12px;
  font-weight: 600;
  color: #1890ff;
  margin-bottom: 4px;
}
.notes-modal .notes-content .content-header .reference-text .reference-content {
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}
.notes-modal .notes-content .content-header .reference-text .reference-content * {
  margin: 0;
  padding: 0;
}
.notes-modal .notes-content .content-header .reference-text .reference-content p {
  margin-bottom: 4px;
}
.notes-modal .notes-content .content-header .reference-text .reference-content p:last-child {
  margin-bottom: 0;
}
.notes-modal .notes-content .content-header .reference-text .reference-content code {
  padding: 1px 3px;
  background: #e6f7ff;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
}
.notes-modal .notes-content .note-content-textarea {
  flex: 1;
  margin: 20px;
  border: none;
  box-shadow: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 0;
}
.notes-modal .notes-content .note-content-textarea.ant-input {
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
}
.notes-modal .notes-content .note-content-textarea:focus {
  box-shadow: none;
  border: none;
  outline: none;
}
.notes-modal .notes-content .note-content-textarea[disabled] {
  background: transparent;
  color: #333;
  cursor: default;
}
.notes-modal .notes-content .note-editor-container {
  flex: 1;
  margin: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.notes-modal .notes-content .note-editor-container .w-e-toolbar {
  display: none !important;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container {
  border: none !important;
  border-radius: 0 !important;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text {
  padding: 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  min-height: 400px !important;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text:focus {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text p {
  margin-bottom: 12px;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text p:last-child {
  margin-bottom: 0;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h1,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h2,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h3,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h4,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h5,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h6 {
  margin-bottom: 8px;
  margin-top: 16px;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h1:first-child,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h2:first-child,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h3:first-child,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h4:first-child,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h5:first-child,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text h6:first-child {
  margin-top: 0;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text ul,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text li {
  margin-bottom: 4px;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 4px solid #e8e8e8;
  background: #f9f9f9;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text code {
  padding: 2px 4px;
  background: #f5f5f5;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text pre code {
  padding: 0;
  background: none;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text a {
  color: #1890ff;
  text-decoration: none;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text a:hover {
  text-decoration: underline;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text table th,
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text table td {
  border: 1px solid #e8e8e8;
  padding: 8px;
  text-align: left;
}
.notes-modal .notes-content .note-editor-container .w-e-text-container .w-e-text table th {
  background: #f5f5f5;
  font-weight: 600;
}
.notes-modal .notes-content .note-content-display {
  flex: 1;
  margin: 20px;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  overflow-y: auto;
}
.notes-modal .notes-content .note-content-display * {
  max-width: 100%;
}
.notes-modal .notes-content .note-content-display p {
  margin-bottom: 12px;
}
.notes-modal .notes-content .note-content-display p:last-child {
  margin-bottom: 0;
}
.notes-modal .notes-content .note-content-display h1,
.notes-modal .notes-content .note-content-display h2,
.notes-modal .notes-content .note-content-display h3,
.notes-modal .notes-content .note-content-display h4,
.notes-modal .notes-content .note-content-display h5,
.notes-modal .notes-content .note-content-display h6 {
  margin-bottom: 8px;
  margin-top: 16px;
}
.notes-modal .notes-content .note-content-display h1:first-child,
.notes-modal .notes-content .note-content-display h2:first-child,
.notes-modal .notes-content .note-content-display h3:first-child,
.notes-modal .notes-content .note-content-display h4:first-child,
.notes-modal .notes-content .note-content-display h5:first-child,
.notes-modal .notes-content .note-content-display h6:first-child {
  margin-top: 0;
}
.notes-modal .notes-content .note-content-display ul,
.notes-modal .notes-content .note-content-display ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
.notes-modal .notes-content .note-content-display li {
  margin-bottom: 4px;
}
.notes-modal .notes-content .note-content-display blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 4px solid #e8e8e8;
  background: #f9f9f9;
}
.notes-modal .notes-content .note-content-display code {
  padding: 2px 4px;
  background: #f5f5f5;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}
.notes-modal .notes-content .note-content-display pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
}
.notes-modal .notes-content .note-content-display pre code {
  padding: 0;
  background: none;
}
.notes-modal .notes-content .note-content-display img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.notes-modal .notes-content .note-content-display a {
  color: #1890ff;
  text-decoration: none;
}
.notes-modal .notes-content .note-content-display a:hover {
  text-decoration: underline;
}
.notes-modal .notes-content .note-content-display table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.notes-modal .notes-content .note-content-display table th,
.notes-modal .notes-content .note-content-display table td {
  border: 1px solid #e8e8e8;
  padding: 8px;
  text-align: left;
}
.notes-modal .notes-content .note-content-display table th {
  background: #f5f5f5;
  font-weight: 600;
}
.notes-modal .notes-content .empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #999;
  font-size: 16px;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .notes-modal .notes-container {
    flex-direction: column;
  }
  .notes-modal .notes-sidebar {
    width: 100%;
    height: 40%;
    border-right: none;
    border-bottom: 1px solid #eaeaea;
  }
  .notes-modal .notes-content {
    height: 60%;
  }
}
@keyframes highlight-pulse {
  0% {
    background-color: #fff3cd;
    border-left-color: #ffc107;
  }
  50% {
    background-color: #ffecb3;
    border-left-color: #ff9800;
  }
  100% {
    background-color: #fff3cd;
    border-left-color: #ffc107;
  }
}

.language-switcher {
  min-width: 120px;
}
.language-switcher .ant-select-selector {
  border-radius: 6px;
}
.language-switcher-buttons {
  display: flex;
  gap: 8px;
}
.language-switcher-buttons .language-button {
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.language-switcher-buttons .language-button.active {
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}
.language-switcher-buttons .language-button .anticon {
  font-size: 14px;
}

.reading-layout {
  height: 100vh;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
}
.reading-layout .reading-layout-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding: 0 60px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.reading-layout .reading-layout-header .header-left {
  display: flex;
  align-items: center;
}
.reading-layout .reading-layout-header .header-left .header-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #2c3e50;
  margin: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.reading-layout .reading-layout-header .header-left .header-logo:hover {
  opacity: 0.7;
}
.reading-layout .reading-layout-header .header-right {
  display: flex;
  align-items: center;
  gap: 48px;
}
.reading-layout .reading-layout-header .header-right .header-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.reading-layout .reading-layout-header .header-right .header-menu .header-menu-item {
  font-size: 14px;
  font-weight: 500;
  color: #7f8c8d;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  padding: 8px 0;
}
.reading-layout .reading-layout-header .header-right .header-menu .header-menu-item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2c3e50;
  transition: width 0.2s;
}
.reading-layout .reading-layout-header .header-right .header-menu .header-menu-item:hover {
  color: #2c3e50;
}
.reading-layout .reading-layout-header .header-right .header-menu .header-menu-item:hover:after {
  width: 0;
}
.reading-layout .reading-layout-header .header-right .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: 24px;
  border-left: 1px solid #ebeef5;
}
.reading-layout .reading-layout-header .header-right .header-actions .header-language-switcher {
  color: #7f8c8d;
  font-size: 13px;
  cursor: pointer;
}
.reading-layout .reading-layout-header .header-right .header-actions .header-language-switcher:hover {
  color: #2c3e50;
}
.reading-layout .reading-layout-header .header-right .header-actions .header-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  transition: opacity 0.2s;
}
.reading-layout .reading-layout-header .header-right .header-actions .header-user-name .anticon {
  font-size: 16px;
}
.reading-layout .reading-layout-header .header-right .header-actions .header-user-name:hover {
  opacity: 0.7;
}
.reading-layout .reading-layout-content {
  background: #f7f8fa;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .reading-layout .reading-layout-header {
    padding: 0 24px;
  }
  .reading-layout .reading-layout-header .header-right {
    gap: 24px;
  }
  .reading-layout .reading-layout-header .header-right .header-menu {
    gap: 16px;
  }
  .reading-layout .reading-layout-header .header-right .header-menu .header-menu-item {
    font-size: 13px;
  }
  .reading-layout .reading-layout-header .header-right .header-actions {
    gap: 16px;
    padding-left: 16px;
  }
  .reading-layout .reading-layout-header .header-right .header-actions .header-user-name span:first-child {
    display: none;
  }
}

:root {
  --primary-color: #1890ff;
  --background-color: #ffffff;
  --text-color: #333333;
}
[data-theme='dark'] {
  --primary-color: #177ddc;
  --background-color: #141414;
  --text-color: #ffffff;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: all 0.3s;
}
.button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.button:hover {
  opacity: 0.9;
}
.container {
  min-height: 100vh;
  padding: 20px;
  background-color: var(--background-color);
}
.card {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

