/* Python Editor - 整个文件作为一个编辑器 */
.python-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-color, #F7F9FC);
}

.python-editor-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-white, #ffffff);
}

/* Toolbar - 顶部工具栏 */
.python-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px;
  background: var(--bg-white, #ffffff);
  border-bottom: 1px solid var(--border-secondary, #B9CDF0);
  flex-shrink: 0;
}

.python-editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.python-editor-file-path {
  font-size: 14px;
  color: var(--secondary-blue, #547FB2);
  font-family: 'Monaco', 'Menlo', monospace;
}

.python-editor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.python-editor-toolbar-actions .ant-btn {
  border-radius: 0.75rem;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.python-editor-toolbar-actions .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(89, 145, 238, 0.3);
}

.python-editor-toolbar-actions .ant-btn-primary:hover {
  background: var(--primary-blue, #05245A);
  box-shadow: 0 4px 12px rgba(5, 36, 90, 0.4);
}

/* Code Editor Area */
.python-editor-code-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* Monaco Editor 样式 - 与 pth code block 一致 */
.python-editor-code-area > div {
  overflow: hidden;
}

.python-editor-code-area .monaco-editor,
.python-editor-code-area .monaco-editor-wrapper {
  overflow: hidden !important;
}

.python-editor-code-area .monaco-editor .overflow-guard,
.python-editor-code-area .monaco-editor .monaco-scrollable-element,
.python-editor-code-area .monaco-editor-background {
  overflow: hidden !important;
}

/* Terminal Output - 类似终端的输出面板 */
.python-editor-terminal {
  border-top: 1px solid var(--border-secondary, #B9CDF0);
  background: var(--bg-white, #ffffff);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.python-terminal-resize-handle {
  height: 8px;
  cursor: row-resize;
  background: transparent;
}

.python-terminal-resize-handle:hover {
  background: rgba(89, 145, 238, 0.12);
}

/* Terminal Header */
.python-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #eef3ff;
  border-bottom: 1px solid #dbe5ff;
}

.python-terminal-title {
  font-size: 13px;
  color: #05245A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.python-terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #657199;
}

.python-terminal-status.running {
  color: #0f8bff;
}

.python-terminal-status.success {
  color: #2a7d46;
}

.python-terminal-status.error {
  color: #d64545;
}

/* Terminal Content */
.python-terminal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #05245A;
  background: var(--bg-white, #ffffff);
}

.python-terminal-content.empty {
  color: #8c8c8c;
  font-style: italic;
}

.python-terminal-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Terminal Output Lines */
.python-terminal-line {
  margin-bottom: 6px;
  color: #05245A;
}

.python-terminal-line.stdout {
  color: #05245A;
}

.python-terminal-line.stderr {
  color: #d64545;
}

.python-terminal-line.info {
  color: #0f8bff;
}

.python-terminal-line.success {
  color: #2a7d46;
}

.python-terminal-line.error {
  color: #d64545;
}

.python-terminal-line.prompt {
  color: #3153c9;
}

/* Terminal Separator */
.python-terminal-separator {
  border-top: 1px solid #e3e8f4;
  margin: 8px 0;
}

/* Terminal Command Echo */
.python-terminal-command {
  color: #3153c9;
  margin-bottom: 8px;
}

.python-terminal-command::before {
  content: '$ ';
  color: #2a7d46;
}

/* Loading Indicator */
.python-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f8bff;
  font-size: 13px;
}

/* Scrollbar for terminal */
.python-terminal-content::-webkit-scrollbar {
  width: 8px;
}

.python-terminal-content::-webkit-scrollbar-track {
  background: transparent;
}

.python-terminal-content::-webkit-scrollbar-thumb {
  background: #c4cee8;
  border-radius: 4px;
}

.python-terminal-content::-webkit-scrollbar-thumb:hover {
  background: #9fb0db;
}
/* Markdown Editor - 白色背景主题 */
.markdown-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-color, #F7F9FC);
}

.markdown-editor-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-white, #ffffff);
}

/* Toolbar */
.markdown-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px;
  background: var(--bg-white, #ffffff);
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.markdown-editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.markdown-editor-file-path {
  font-size: 14px;
  color: var(--secondary-blue, #547FB2);
  font-family: 'Monaco', 'Menlo', monospace;
}

.markdown-editor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.markdown-editor-toolbar-actions .ant-btn {
  border-radius: 0.75rem;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.markdown-editor-toolbar-actions .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(89, 145, 238, 0.3);
}

.markdown-editor-toolbar-actions .ant-btn-primary:hover {
  background: var(--primary-blue, #05245A);
  box-shadow: 0 4px 12px rgba(5, 36, 90, 0.4);
}

/* Editor Area */
.markdown-editor-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* 允许子元素正确计算滚动 */
  overflow: hidden; /* 禁用外层滚动，让滚动发生在预览容器内部 */
}

/* Preview Area - 白色背景 */
.markdown-preview-container {
  flex: 1 1 auto;
  min-height: 0;
  height: 0; /* 关键：在 body/父级 overflow:hidden 时强制成为可滚动区域 */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px;
  background: var(--bg-white, #ffffff);
}

.markdown-preview-content {
  max-width: 800px;
  margin: 0 auto;
  color: #05245A;
  font-size: 15px;
  line-height: 1.7;
}

/* Markdown元素样式 - 浅色主题 */
.markdown-preview-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #05245A;
  border-bottom: 2px solid var(--accent-color, #5991EE);
  padding-bottom: 8px;
}

.markdown-preview-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 20px;
  color: #05245A;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.markdown-preview-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 16px;
  color: var(--primary-blue, #05245A);
}

.markdown-preview-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 12px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 12px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 8px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content p {
  margin-bottom: 16px;
  color: #05245A;
  line-height: 1.7;
}

.markdown-preview-content a {
  color: var(--accent-color, #5991EE);
  text-decoration: underline;
  transition: color 0.2s;
}

.markdown-preview-content a:hover {
  color: var(--primary-blue, #05245A);
}

.markdown-preview-content ul,
.markdown-preview-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #05245A;
}

.markdown-preview-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.markdown-preview-content code {
  background: #f5f7fa;
  color: #e83e8c;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}

.markdown-preview-content pre {
  margin: 16px 0;
  overflow: hidden;
  border-radius: 8px;
}

.markdown-preview-content pre code {
  display: block;
  background: #f8f9fa;
  color: #05245A;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
}

.markdown-preview-content blockquote {
  border-left: 4px solid var(--accent-color, #5991EE);
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 16px 0;
  color: var(--secondary-blue, #547FB2);
  background: #f7f9fc;
  border-radius: 0 4px 4px 0;
}

.markdown-preview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.markdown-preview-content thead {
  background: #f7f9fc;
}

.markdown-preview-content th {
  padding: 12px;
  text-align: left;
  color: #05245A;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.markdown-preview-content td {
  padding: 12px;
  color: #05245A;
  border-bottom: 1px solid #e5e7eb;
}

.markdown-preview-content tr:hover {
  background: #f7f9fc;
}

.markdown-preview-content hr {
  margin: 24px 0;
  border: none;
  border-top: 2px solid #e5e7eb;
}

.markdown-preview-content strong {
  font-weight: 700;
  color: #05245A;
}

.markdown-preview-content em {
  font-style: italic;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content del {
  text-decoration: line-through;
  color: #999999;
}

.markdown-preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
}
.conversation-list {
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.conversation-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: #8c8c8c;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.conversation-item {
  cursor: pointer;
  padding: 12px 16px !important;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.conversation-item:hover {
  background-color: #f5f5f5;
}

.conversation-item.active {
  background-color: #e6f7ff;
  border-left: 3px solid #1890ff;
}

.conversation-content {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.conversation-title {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.conversation-meta {
  font-size: 12px;
  color: #8c8c8c;
}

.conversation-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* DataMention - @ 提及数据文件组件样式 */

.data-mention-container {
  position: relative;
  width: 100%;
}

.data-mention-input {
  width: 100%;
}

.data-mention-input .ant-input {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  resize: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary, #05245A);
}

.data-mention-input .ant-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.data-mention-input .ant-input::-moz-placeholder {
  color: var(--secondary-blue, #547FB2);
  font-size: 0.9375rem;
}

.data-mention-input .ant-input::placeholder {
  color: var(--secondary-blue, #547FB2);
  font-size: 0.9375rem;
}

/* 下拉菜单 */
.data-mention-dropdown {
  position: absolute;
  z-index: 1000;
  width: 100%;
  background: #F8FAFC;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(5, 36, 90, 0.15);
  border: 1px solid var(--border-secondary, #B9CDF0);
  overflow: hidden;
}

.mention-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg-color, #F5F8FC);
  border-bottom: 1px solid var(--border-secondary, #B9CDF0);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-blue, #05245A);
}

.mention-dropdown-header .anticon {
  color: var(--accent-color, #5991EE);
}

.mention-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
}

.mention-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.mention-dropdown-item:hover {
  background: var(--bg-color, #F5F8FC);
}

.mention-dropdown-item.selected {
  background: #E6F0FF;
  border-left: 3px solid var(--accent-color, #5991EE);
  padding-left: calc(0.875rem - 3px); /* 补偿边框宽度 */
}

.mention-dropdown-item .anticon {
  font-size: 1rem;
  flex-shrink: 0;
}

.mention-file-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary, #05245A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-file-type {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  background: var(--border-secondary, #B9CDF0);
  color: var(--primary-blue, #05245A);
  border-radius: 0.25rem;
  font-weight: 500;
}

.mention-dropdown-footer {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-color, #F5F8FC);
  border-top: 1px solid var(--border-secondary, #B9CDF0);
  font-size: 0.6875rem;
  color: var(--secondary-blue, #547FB2);
}

.mention-dropdown-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--secondary-blue, #547FB2);
}

/* 滚动条样式 */
.mention-dropdown-list::-webkit-scrollbar {
  width: 4px;
}

.mention-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.mention-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--border-secondary, #B9CDF0);
  border-radius: 2px;
}

.mention-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue, #547FB2);
}
.document-ai-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg-white);
}

.chat-panel-header {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: var(--bg-white);
  flex-shrink: 0;
  gap: 16px;
  transition: padding 0.3s ease;
}

/* 当有header-content时增加底部padding */
.chat-panel-header:has(.header-content) {
  padding: 16px 20px 20px 20px;
}

.header-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.header-icon {
  width: 70px;
  height: 80px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
  color:#38bdf8;
}

.beta-badge-standalone {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  margin-top: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  border-radius: 12px;
  text-transform: uppercase;
  
  letter-spacing: 1px;
}

.main-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: 3;
}

.title-description {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 2;
  margin: 0;
}

.action-icon-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  color: #6B7280 !important;
  transition: all 0.2s ease !important;
}

.action-icon-btn:hover {
  color: #374151 !important;
  background: #F3F4F6 !important;
}

.action-icon-btn.active {
  color: #374151 !important;
  background: #E5E7EB !important;
}

.action-icon-btn .anticon {
  font-size: 16px;
}

.document-ai-chat-panel .chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.document-ai-chat-panel .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--bg-color);
}

.document-ai-chat-panel .message {
  margin-bottom: 12px;
  padding: 10px 20px;
  border-radius: 20px;
  max-width: 90%;
  width: -moz-fit-content;
  width: fit-content;
  box-shadow: none;
}

.document-ai-chat-panel .message-user {
  background: #F1F3F4;
  color: white;
  margin-left: auto;

}

.document-ai-chat-panel .message-assistant {
  background: var(--surface-color);
  border: 2px solid rgba(89, 119, 155, 0.1);
  margin-right: auto;
}

.document-ai-chat-panel .message.streaming {
  opacity: 0.9;
  border: 1px solid var(--accent-color);
}

.document-ai-chat-panel .message-content {
  margin-bottom: 6px;
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 15px;
  color: #05245A;
}

.document-ai-chat-panel .message-user .message-content {
  color: rgb(0, 0, 0);
}

.document-ai-chat-panel .message-assistant .message-content {
  color: #05245A;
}

.document-ai-chat-panel .message-content pre {
  margin: 12px 0;
  border-radius: 8px;
  overflow-x: auto;
  background: #ffffff;
  padding: 12px;
  border: 1px solid #000000;
}

.document-ai-chat-panel .message-content code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: #05245A;
}

.document-ai-chat-panel .message-time {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

.document-ai-chat-panel .message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.document-ai-chat-panel .message-copy-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
}

.document-ai-chat-panel .message-copy-btn:hover {
  color: #1F2937;
  background: #F3F4F6;
}

.document-ai-chat-panel .message-user .message-time {
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

.document-ai-chat-panel .chat-input-area {
  padding: 16px 20px;
  padding-bottom: 32px;
  background: var(--bg-white);
  flex-shrink: 0;
}

.document-ai-chat-panel .chat-input-container {
  border: 2px solid #E5E7EB;
  border-radius: 20px;
  padding: 12px 16px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.document-ai-chat-panel .chat-input-container:focus-within {
  border-color: #D1D5DB;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-ai-chat-panel .chat-input-container .ant-input {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 15px;
  color: #303133;
  box-shadow: none !important;
}

.document-ai-chat-panel .chat-input-container .ant-input::-moz-placeholder {
  color: #C0C4CC;
}

.document-ai-chat-panel .chat-input-container .ant-input::placeholder {
  color: #C0C4CC;
}

.document-ai-chat-panel .chat-input-container .ant-input:focus {
  box-shadow: none !important;
}

.document-ai-chat-panel .chat-input-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  
}

/* Edit模式按钮 */
.document-ai-chat-panel .edit-mode-btn {
  background: #F3F4F6 !important;

  border-radius: 12px !important;
  color: #1F2937 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.document-ai-chat-panel .edit-mode-btn:hover {
  background: #F9FAFB !important;
  border-color: #D1D5DB !important;
  color: #111827 !important;
}

.document-ai-chat-panel .edit-mode-btn .anticon {
  font-size: 10px;
  color: #9CA3AF;
}

.document-ai-chat-panel .mode-beta-label {
  display: inline-block;
  padding: 2px 8px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

/* AI MODE下拉菜单 */
.ai-mode-dropdown {
  background: #FFFFFF;
  border-radius: 15px;
  border: 2px solid #d8d9db;
  overflow: hidden;
  min-width: 150px;
}

.ai-mode-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
}

/* 模式菜单项样式 - 左右布局 */
.document-ai-chat-panel .mode-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}

.mode-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-item-right {
  display: flex;
  align-items: center;
}

.mode-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.mode-desc {
  font-size: 13px;
  color: #9CA3AF;
}

/* 选中状态的菜单项 */
.document-ai-chat-panel .ant-dropdown-menu-item-selected {
  background: #F5F3FF !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item-selected .mode-label {
  color: #8B5CF6 !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item:hover {
  background: #F9FAFB !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item {
  padding: 0 !important;
}

/* 圆形发送按钮 */
.document-ai-chat-panel .send-btn-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 75%;
  background: #F3F4F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.document-ai-chat-panel .send-btn-circle:hover:not(:disabled):not(.loading) {
  background: #E5E7EB;
}

.document-ai-chat-panel .send-btn-circle:active:not(:disabled):not(.loading) {
  background: #D1D5DB;
}

.document-ai-chat-panel .send-btn-circle:disabled {
  background: #F9FAFB;
  cursor: not-allowed;
  opacity: 0.5;
}

.document-ai-chat-panel .send-btn-circle .anticon {
  font-size: 14px;
  color: #1F2937;
  line-height: 1;
}

.document-ai-chat-panel .send-btn-circle:disabled .anticon {
  color: #D1D5DB;
}

/* Loading 状态 */
.document-ai-chat-panel .send-btn-circle.loading {
  background: #F3F4F6;
  cursor: pointer;
}

.document-ai-chat-panel .send-btn-circle.loading:hover {
  background: #FEE2E2;
}

.document-ai-chat-panel .send-btn-circle.loading .loading-icon {
  color: #6B7280;
  font-size: 14px;
}

.document-ai-chat-panel .send-btn-circle.loading:hover .loading-icon {
  color: #DC2626;
}

/* Loading 图标旋转动画 */
.document-ai-chat-panel .loading-icon {
  animation: spin 1s linear infinite;
}

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

/* Custom scrollbar for chat */
.document-ai-chat-panel .chat-messages::-webkit-scrollbar {
  width: 6px;
}

.document-ai-chat-panel .chat-messages::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.document-ai-chat-panel .chat-messages::-webkit-scrollbar-track {
  background-color: transparent;
}
.comments-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 320px;
}

.comments-panel--centered {
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.comments-panel__header {
    padding: 20px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.comments-panel__header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments-panel__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #05245a;
}

.comments-panel__body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.comments-panel__composer {
    background: #f9fbff;
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comments-panel__replying-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 12px;
    color: #657199;
}

.comments-panel__textarea {
    resize: none;
}

.comments-panel__composer-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-thread {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 8px;
}

.comment-thread__loading,
.comment-thread__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.comment-thread__list {
    padding-right: 8px;
}

.comment-item-wrapper {
    padding-bottom: 12px;
}

.comment-item {
    align-items: flex-start !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item .ant-list-item-meta {
    align-items: flex-start;
}

.comment-item__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-item__author {
    font-weight: 600;
    color: #05245a;
}

.comment-item__timestamp {
    font-size: 12px;
    color: #8c8c8c;
}

.comment-item__editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comment-item__editor-actions {
    display: flex;
    gap: 8px;
}

.comment-item__content {
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1f1f1f;
}

.comment-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.comment-replies {
    margin-left: 32px;
    padding-left: 16px;
    border-left: 1px solid #f0f0f0;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .comments-panel {
        min-width: auto;
    }

    .comment-replies {
        margin-left: 16px;
    }
}
/**
 * UnifiedSidebar Styles
 * 统一的右侧边栏样式
 */

.unified-sidebar {
  position: fixed;
  top: 5.5rem; /* GlobalHeader 高度 */
  right: 0;
  height: calc(100vh - 5.5rem);
  background: var(--bg-white, #ffffff);
  border-left: 1px solid #dbdbdb;
  /* box-shadow: -0.25rem 0 1.25rem rgba(6, 37, 91, 0.08); */
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease-out, visibility 0.2s ease-out;
  max-width: calc(100vw - 24px);
  /* min-width: 240px; */
}

/* 隐藏状态 - 保持渲染但不可见，以保留组件状态（如流式消息） */
.unified-sidebar.sidebar-hidden {
  opacity: 0;
  overflow: hidden;
}

/* 拖拽手柄 - 缩小一半 */
.resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  cursor: col-resize;
  background: transparent;
  z-index: 1;
  transition: background 0.2s;
}

.resize-handle:hover {
  background: var(--accent-color, #5991EE);
  opacity: 0.5;
}

.resize-handle:active {
  background: var(--accent-color, #5991EE);
  opacity: 0.8;
}

/* 内容区域 */
.unified-sidebar-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 自定义滚动条样式 */
.unified-sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.unified-sidebar-content::-webkit-scrollbar-track {
  background: var(--bg-white, #ffffff);
  border-radius: 4px;
}

.unified-sidebar-content::-webkit-scrollbar-thumb {
  background: var(--border-secondary, #B9CDF0);
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.unified-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* 伸缩按钮 - 圆形设计 */
.sidebar-toggle-button {
  position: fixed;
  bottom: 40px;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 250;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #6B7280;
}

.sidebar-toggle-button svg {
  width: 20px;
  height: 20px;
}

.sidebar-toggle-button:hover {
  background: #F9FAFB;
  color: #374151;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle-button:active {
  background: #F3F4F6;
  transform: scale(0.95);
}

/* 侧边栏关闭时的展开按钮 - 一半露出在屏幕右侧 */
.sidebar-toggle-button.sidebar-collapsed {
  right: -16px;
}

/* 侧边栏打开时的收起按钮 - 悬浮在侧边栏左边缘 */
.sidebar-toggle-button.sidebar-expanded {
  right: calc(var(--sidebar-width, 400px) - 16px);
}

@media (max-width: 900px) {
  .unified-sidebar {
    top: 3.25rem;
    height: calc(100vh - 3.25rem);
    max-width: calc(100vw - 16px);
    min-width: min(320px, calc(100vw - 16px));
  }

  /* 移动端隐藏伸缩按钮 */
  .sidebar-toggle-button {
    display: none;
  }
}
/* AI Code Panel 样式 - 紧贴在代码块下方，输出之前 */
.ai-code-panel {
  position: relative;
  width: 100%;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  margin-top: 8px;
  margin-bottom: 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 标题栏 */
.ai-code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
 /*  border-bottom: 1px solid #f0f0f0; */
}

.ai-icon {
  font-size: 16px;
  color: #20beff;
}

.ai-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.help-icon {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.close-icon {
  font-size: 14px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-icon:hover {
  color: #333;
}

/* 输入区域 */
.ai-code-input-section {
  padding: 12px;
}

.ai-code-input-section .ant-input {
  border-radius: 15px;
  margin-bottom: 12px;
  margin-top: -10px;
}

.ai-code-quick-actions {
  display: flex;
  gap: 8px;
  border-radius: 15px;
}

/* 生成中状态 */
.ai-code-generating {
  padding: 16px;
}

.generating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.generating-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e8e8e8;
  border-top-color: #20beff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Cell Diff View 样式 */
.cell-diff-view {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: visible; /* 改为 visible，避免裁剪 */
  flex: 1;
  min-height: 0; /* 重要：允许 flex item 收缩 */
}

.diff-pane {
  position: relative;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
}

.diff-pane:last-child {
  border-right: none;
}

.diff-pane-content {
  position: relative;
  overflow: visible; /* 改为 visible，让 Monaco Editor 完全显示 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Diff 覆盖层 */
.diff-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.diff-overlay-delete {
  background: repeating-linear-gradient(
    45deg,
    rgba(254, 202, 202, 0.3),
    rgba(254, 202, 202, 0.3) 10px,
    rgba(254, 226, 226, 0.3) 10px,
    rgba(254, 226, 226, 0.3) 20px
  );
}

.diff-overlay-add {
  background-color: rgba(187, 247, 208, 0.25);
}

/* 调整 Monaco Editor */
.diff-pane-content .monaco-editor {
  position: relative;
  z-index: 0;
}
.ocean-terminal-panel .react-terminal-wrapper {
  padding: 0;
  background: transparent;
  border-radius: 12px;
}

.ocean-terminal-panel .react-terminal-window-buttons {
  display: none;
}

.ocean-terminal-panel .react-terminal-wrapper:after {
  display: none;
}

.ocean-terminal-panel .react-terminal {
  height: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  gap: 2px;
}

.ocean-terminal-panel .react-terminal-line {
  white-space: pre-wrap;
  line-height: 1.4;
}

.ocean-terminal-panel .react-terminal-active-input {
  margin-top: auto;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  padding-bottom: 8px;
}

.ocean-terminal-panel .react-terminal-line:before {
  color: #6b7280;
}

/**
 * OceanAgent Document Editor Styles
 * Completely aligned with Figma UI
 */

.ocean-agent-document-editor-container,
.paithon-document-editor-container {
  display: flex;
  height: 99%; /* 使用父容器的100%高度 */
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.ocean-agent-document-editor,
.paithon-document-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%; /* 使用父容器的100%高度 */
  background: var(--bg-color);
  overflow: hidden;
  position: relative; /* 为浮窗提供定位上下文 */
  /* 为右侧边栏留出空间 */
  margin-right: var(--sidebar-width, 0px);
  transition: margin-right 0.1s ease-out;
  --ai-code-gen-reserve: 0px;
  --ai-code-gen-safe-gap: 16px;
}

.ocean-agent-document-editor.codegen-visible {
  /* Reserve vertical space so the live agent panel never gets covered by the floating code generator */
  --ai-code-gen-reserve: 240px;
}

/* 右侧AI对话侧边栏 - 固定位置，从header下面开始 */
.ai-chat-sidebar {
  position: fixed;
  top: 3.5rem; /* 56px - GlobalHeader的高度 */
  right: 0;
  width: 23.75rem; /* 380px - 默认值，会被内联样式覆盖 */
  height: calc(100vh - 3.5rem); /* 减去header高度 */
  background: var(--bg-white, #ffffff);
  border-left: 1px solid var(--border-secondary, #B9CDF0);
  box-shadow: -0.25rem 0 1.25rem rgba(6, 37, 91, 0.08); /* -4px 0 20px */
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: none !important; /* 禁用过渡效果，避免拖拽时延迟 */
}

/* 右侧边栏拖拽手柄 - 缩小一半 */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px; /* 居中在边界上 */
  width: 2px;
  cursor: col-resize;
  background: transparent;
  z-index: 100;
  transition: background 0.2s;
}

.sidebar-resize-handle:hover {
  background: var(--accent-color, #5991EE);
  opacity: 0.5;
}

.sidebar-resize-handle:active {
  background: var(--accent-color, #5991EE);
  opacity: 0.8;
}

/* 主内容区域自动留出右侧边栏空间（通过内联样式的 marginRight 控制） */

/* Floating AI Code Generator - Fixed display at bottom */
/* 相对于父容器定位，宽度与文档内容一致 */
.ai-code-gen-float {
  position: absolute;
  left: 32px; /* 与 document-content 的左 padding 一致 */
  right: 42px; /* 与 document-content 的右 padding 一致 */
  bottom: 24px;
  z-index: 100;
  /* 不需要额外shadow，因为 .ai-code-generator 已有 */
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Toolbar */
.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  background: #ffffff;
  border-bottom: none;
  position: relative;
  z-index: 250;
  min-height: 48px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-icon-btn {
  color: #5f6368;
  font-size: 15px;

  height: 32px;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 32px;
  justify-content: center;
}

.toolbar-icon-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

.toolbar-icon-btn:disabled {
  color: #dadce0;
  background: transparent;
}

.toolbar-run-all-btn {
  color: #9aa0a6 !important;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
}

.toolbar-run-all-btn:hover {
  color: #5f6368 !important;
  background: #f1f3f4;
}

.toolbar-code-type-btn {
  height: 32px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #202124;
  margin-left: 8px;
  
}

.toolbar-code-type-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #202124;
}

.toolbar-code-type-btn .anticon {
  font-size: 10px;
  color: #5f6368;
}

.toolbar-power-btn {
  color: #5f6368;
}

.toolbar-power-btn:hover {
  color: #d93025;
  background: #fce8e6;
}

.document-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: transparent;
  border-radius: 4px;
  flex-shrink: 0;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 13px;
  font-weight: 400;
  color: #5f6368;
  font-family: var(--font-family);
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem; /* 8px */
  align-items: center;
}

.toolbar-actions .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 4px 20px;
  height: auto;
}

.toolbar-actions .ant-btn-primary {
  background: #D4E5FF;
  color: #000000;
  border: 1px solid var(--border-secondary, #B9CDF0);
}

.toolbar-actions .ant-btn-primary:hover {
  background: var(--accent-color, #5991EE);
  color: var(--bg-white, #FFFFFF);
}

.toolbar-actions .ant-btn:not(.ant-btn-primary) {
  color: #020202;
  border: 1px solid var(--border-secondary, #B9CDF0);
}

/* Document Content Area */
.document-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 24px;
  padding-bottom: 100px;
  background: #ffffff;
}

.document-content-floating {
  padding-bottom: 500px;
}

/* Document Footer */
.document-footer {
  height: 24px;
  background: white;
  border-top: 1px solid #dbdbdb;
  display: flex;
  align-items: center;
  padding: 4px 10px;
  z-index: 100;
 
}

.ocean-console-drawer .ant-drawer-content-wrapper {
  border-top: 1px solid #e0e0e0;
}

.ocean-console-drawer .ant-drawer-header {
  position: relative;
}

.ocean-console-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ocean-console-resize-handle {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  cursor: row-resize;
}

.ocean-console-resize-handle::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #d0d7de;
}

  .footer-terminal-btn {
    font-size: 12px;  
    display: flex;
    align-items: center;
    transition: all 0.2s ease-out;
    height: 18px;
    min-height: 18px;
    color: #5f6368;
  }
  
  .footer-terminal-btn .anticon {
    font-size: 12px;
  }
  
  .footer-terminal-btn:hover {
    color: #202124;
    background: transparent;
  }

/* 自定义滚动条样式 */
.document-content::-webkit-scrollbar {
  width: 8px;
}

.document-content::-webkit-scrollbar-track {
  background: var(--bg-color, #F5F9FF);
  border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb {
  background: var(--accent-color, #5991EE);
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.document-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* Cell Common Styles */
.paithon-cell {
  margin-bottom: 32px;
  border: 2px solid var(--secondary-blue);
  border-radius: 44px;
  overflow: hidden;
  background: var(--surface-color);
  /* 移除阴影 */
  transition: border-color 0.3s;
}

.paithon-cell:hover {
  border-color: var(--accent-color, #5991EE);
}

/* Cell Header - 统一样式 */
.cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  min-height: 40px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Markdown Toolbar */
.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.markdown-toolbar-bottom {
  border-bottom-left-radius: 19px;
  border-bottom-right-radius: 19px;
  border-top: 1px solid #e0e0e0;
}

.markdown-toolbar-btn {
  color: #5f6368;
  font-size: 14px;
  height: 28px;
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.markdown-toolbar-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Cell Type Badge - 统一样式 */
.cell-type-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  text-transform: capitalize;
  padding: 2px 8px;
  background: #e8eaed;
  border-radius: 4px;
}

.cell-actions {
  display: flex;
  gap: 4px;
}

.cell-actions .ant-btn {
  color: #5f6368;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cell-actions .ant-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Thinking Chain */
.thinking-chain-container {
  background: transparent; /* 改为透明，与 cell 背景一致 */
  border-bottom: none; /* 移除边框 */
  padding: 20px 32px;
}

.thinking-chain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}

.thinking-chain-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
}

.thinking-chain-status {
  font-size: 14px;
  color: var(--secondary-blue);
}

.thinking-chain {
  padding-left: 8px;
}

.thinking-step {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.thinking-step:last-child {
  padding-bottom: 0;
}

/* Timeline line */
.thinking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.thinking-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
  background: var(--bg-color);
}

.dot-icon {
  font-size: 12px;
  color: var(--secondary-blue);
}

.thinking-step-success .thinking-step-icon {
  color: #52c41a;
}

.thinking-step-content {
  flex: 1;
}

.thinking-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.thinking-step-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-blue);
}

.thinking-step-details {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Execution Success */
.execution-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--surface-color);
  color: #10b981;
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid rgba(84, 127, 178, 0.1);
}

/* Output Area */
.cell-outputs-container {
  position: relative;
  background: var(--surface-color);
  border-top: 1px solid rgba(84, 127, 178, 0.1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cell-outputs-header {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

.cell-outputs-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(84, 127, 178, 0.2);
  transition: all 0.2s ease;
}

.cell-outputs-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--accent-color, #5991EE);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell-outputs {
  padding: 24px 32px;
  background: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cell-outputs::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cell-outputs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.cell-outputs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.cell-outputs::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.output-text {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.output-error {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  color: #ff4d4f;
  white-space: pre-wrap;
  background: #fff1f0;
  padding: 12px;
  border-radius: 8px;
}

.output-pdf {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #FFF8F0;
  border: 2px solid #FFD591;
  border-radius: 12px;
  margin-top: 12px;
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-filename {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 14px;
}

.pdf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Cell Editor */
.cell-editor {
  background: #F1F3F4;
  border-radius: 10px;
  overflow: hidden;
  padding:15px;
}

.cell-editor .monaco-editor {
  border-radius: 10px;
  background: #F1F3F4 !important;
}

.cell-editor .monaco-editor .monaco-editor-background {
  background-color: #F1F3F4 !important;
} 



/* Monaco编辑器内部所有区域背景色 */
/* 注释掉这些背景色覆盖，让主题控制 */
.cell-editor .monaco-editor .margin,
.cell-editor .monaco-editor .monaco-scrollable-element,
.cell-editor .monaco-editor .view-lines,
.cell-editor .monaco-editor .view-line, 
.cell-editor .monaco-editor .lines-content,
.cell-editor .monaco-editor .inputarea {
  background: #F1F3F4;
  background-color: #F1F3F4;
} 

/* Monaco编辑器横向滚动条 - Antd风格 */
/* 默认隐藏滚动条 */
.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  background: transparent !important;
  height: 6px !important;
  bottom: 0px !important;
}

/* 仅在单元格被选中时显示滚动条 */
.cell-selected .cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal {
  opacity: 1 !important;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal .slider {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 3px !important;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal:hover .slider {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 18px;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal .slider:active {
  background: rgba(0, 0, 0, 0.35) !important;
}

/* 禁用选中行的高亮背景 */
/* .cell-editor .monaco-editor .selected-text,
.cell-editor .monaco-editor .focused .selected-text,
.cell-editor .monaco-editor .line-numbers,
.cell-editor .monaco-editor .current-line {
  background: red !important;
  background-color: transparent !important;
} */

/* Markdown Preview - 统一与 pth 文件颜色 */
.markdown-preview {
  padding: 16px;
  line-height: 1.4;
  color: #202124;
  background: transparent;
  min-height: 60px;
  cursor: text;
}

.markdown-preview h1 {
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  margin-bottom: 20px;
}

.markdown-preview h2 {
  font-size: 26px;
  font-weight: 600;
  color: #000000;
  margin-top: 28px;
  margin-bottom: 16px;
}

.markdown-preview p {
  margin: 8px 0;
  color: #000000;
  font-size: 16px;
}

.markdown-preview code {
  padding: 4px 8px;
  background: var(--bg-color);
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
  color: #000000;
}

.markdown-preview pre {
  padding: 20px;
  background: var(--bg-color);
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}


/* Loading State */
.document-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-secondary);
}

/* Empty State */
.empty-document {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-document p {
  margin-bottom: 24px;
  font-size: 18px;
}

/* Status Bar Styles */
.document-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: #1a1a2e;
  border-bottom: 1px solid #2d2d44;
  font-size: 12px;
  color: #8892b0;
  min-height: 40px;
}

.status-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.status-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-label {
  color: #8892b0;
  font-weight: 500;
}

.status-value {
  color: #ccd6f6;
  font-weight: 600;
}

.status-running {
  color: #52c41a;
  animation: pulse 2s infinite;
}

.status-idle {
  color: #8892b0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 分析模块 - "分析上传的数据" - 按照设计稿样式 */
.analysis-module {
  margin: 0.75rem 2rem;
  background: #F8FAFC;
  border: 0.125rem solid #547FB2;
  border-radius: 2.75rem; /* 44px - 更圆润，匹配设计稿 */
  box-shadow: 0px 4px 4px rgba(6, 37, 91, 0.8);
  overflow: hidden;
}

.analysis-module-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-color, #F5F9FF);
  border-bottom: 0.0625rem solid var(--border-secondary, #B9CDF0);
  cursor: pointer;
  transition: background 0.2s ease;
}

.analysis-module-header:hover {
  background: #ECF3FF;
}

.analysis-module-icon {
  font-size: 1.25rem;
  color: #557EB2;
}

.analysis-module-icon.spinning {
  animation: spin 2s linear infinite;
}

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

.analysis-module-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  flex: 1;
}

.analysis-module-status {
  font-size: 0.875rem;
  color: #557EB2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-module-content {
  padding: 1rem 1.5rem;
}

.analysis-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.analysis-step-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #557EB2;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* 连接线 - 在bullet之间添加垂直线 */
.analysis-step:not(:last-child) .analysis-step-bullet::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.75rem;
  width: 0.125rem;
  height: calc(100% + 0.5rem);
  background: #557EB2;
  border-radius: 0.75rem;
  opacity: 0.3;
}

.analysis-step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #557EB2;
  margin-bottom: 0.25rem;
}

.analysis-step-detail {
  font-size: 0.875rem;
  color: #527DB0;
  line-height: 1.6;
}

/* Output Actions - PDF和邮件按钮区域 */
.cell-output-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cell-output-actions .ant-btn {
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #070707;
}

.cell-output-actions .ant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(89, 145, 238, 0.25);
  color: #05245A;
}

/* Output PDF display - 匹配设计稿 */
.output-pdf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #F1F5F8;
  border-radius: 2.75rem;
  margin: 0.5rem 0;
}

.output-pdf-icon {
  font-size: 2rem;
  color: #FF5540;
}

.output-pdf-info {
  flex: 1;
}

.output-pdf-name {
  font-size: 1rem;
  font-weight: 600;
  color: #05245A;
}

.output-pdf-actions {
  display: flex;
  gap: 0.5rem;
}

.output-pdf-actions .ant-btn {
  border-radius: 1.5rem;
}

/* Email confirmation section - 匹配设计稿 */
.email-confirmation {
  margin-top: 1rem;
  padding: 1rem;
  background: #F8FAFC;
  border-radius: 1rem;
}

.email-confirmation-text {
  font-size: 0.875rem;
  color: #ACACAC;
  margin-bottom: 1rem;
}

.email-confirmation-button {
  background: #C1E3FE;
  border: none;
  border-radius: 6.875rem;
  color: #05245A;
  font-weight: 500;
  padding: 0.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-confirmation-button:hover {
  background: #A8D5F7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Thinking Chain Collapse (legacy) */
.thinking-chain-collapse {
  margin: 12px 32px;
  background: #f0f5ff !important;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
}

.thinking-chain-collapse .ant-collapse-header {
  padding: 12px 16px !important;
  background: #e6f7ff;
  border-radius: 8px 8px 0 0;
}

.thinking-chain-collapse .ant-collapse-content-box {
  padding: 16px;
}

/* Ocean Agent Cell Styles */
.ocean-agent-cell {
  margin-bottom: 12px;
  background: transparent;
  /* Only transition specific properties for better performance */
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, background 0.15s ease-out;
  animation: cellFadeIn 0.3s ease-out;
  cursor: pointer;
  /* Hint browser to optimize these properties */
  will-change: transform, opacity;
}

.ocean-agent-cell:hover {
  background: transparent;
}

/* 选中态：通过左侧折叠条显示 */
.ocean-agent-cell.cell-selected .cell-left-bar {
  background: #1E1E1E !important;
}

/* 拖拽状态样式 */
.ocean-agent-cell.cell-dragging {
  opacity: 0.5;
  cursor: grabbing;
  /* Use GPU-accelerated transform with translate3d for better performance */
  transform: scale(0.98) translate3d(0, 0, 0);
  /* Use filter instead of box-shadow for better performance */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.ocean-agent-cell.cell-drop-target {
  border-top: 3px solid #5991EE;
  background: rgba(89, 145, 238, 0.05);
  transform: translateY(2px) translate3d(0, 0, 0);
}

/* Cell fade in animation */
@keyframes cellFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cell-container {
  display: flex;
  gap: 8px;
  position: relative;
  /* Optimize transition - only animate what's needed */
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  /* 为悬浮工具栏提供定位上下文 */
}

.cell-left-bar-area {
  width: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  cursor: grab;
}

.cell-left-bar-area:active {
  cursor: grabbing;
}

.cell-left-bar {
  width: 5px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  /* Only animate background color for hover effect */
  transition: background-color 0.15s ease-out;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: grab;
  flex: 1;
}

.cell-left-bar:active {
  cursor: grabbing;
}

.cell-left-bar:hover {
  background: #1E1E1E !important;
}

/* 非选中态隐藏折叠条，只在选中态和直接hover时显示 */
/* .ocean-agent-cell:hover .cell-left-bar {
  background: #1E1E1E;
} */

.cell-run-area {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: 8px;
  gap: 4px;
}

.cell-run-btn {
  color: #5f6368;
  font-size: 18px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
  background: white;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ocean-agent-cell:hover .cell-run-btn {
  opacity: 1;
}

.cell-run-btn:hover {
  background: #5991EE !important;
  color: white !important;
  border-color: #5991EE !important;
  transform: none;
}

.cell-run-btn:active {
  transform: none;
}

.cell-run-btn .anticon {
  font-size: 18px;
}

/* 运行图标样式 */
.cell-action-icon {
  flex-shrink: 0;
  transition: all 0.2s ease-out;
}

.cell-run-icon {
  opacity: 1;
  /* 将图标颜色转换为 #1E1E1E (深灰色，接近黑色) */
  filter: brightness(0) saturate(100%) invert(7%) sepia(7%) saturate(0%) hue-rotate(347deg) brightness(100%) contrast(87%);
}

.cell-run-icon:hover {
  opacity: 1;
  /* hover 时保持 #1E1E1E 颜色 */
  filter: brightness(0) saturate(100%) invert(7%) sepia(7%) saturate(0%) hue-rotate(347deg) brightness(100%) contrast(87%);
  transform: scale(1.4);  /* hover 时放大以补偿尺寸缩小 */
}

.cell-run-icon:active {
  transform: scale(1.0);
}

/* 执行顺序号显示样式 */
.cell-execution-count {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: #1E1E1E;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* 执行顺序号占位符样式 */
.cell-execution-count-placeholder {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 10px;
  color: #1E1E1E;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* 执行成功图标样式 */
.cell-execution-success-icon {
  font-size: 16px;
  color: #38bdf8;
  cursor: default;
}

/* 展开按钮样式 - 仅显示图标 */
.cell-expand-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: none !important;
  padding: 0 !important;
}

.cell-expand-btn:hover {
  background: transparent !important;
  border: none !important;
  transform: none !important;
}

.cell-expand-btn svg,
.cell-expand-btn img {
  width: 18px;
  height: 18px;
}

.cell-main-content {
  flex: 1;
  min-width: 0;
  border: 2px solid #dddddd;
  border-radius: 10px;
  overflow: visible;
  background: var(--bg-white, #ffffff);
  transition: all 0.2s ease-out;
  position: relative;
}

.ocean-agent-cell:hover .cell-main-content {
  border-color: #e5e7eb;
}

.cell-main-content .cell-header,
.cell-main-content .cell-editor,
.cell-main-content .markdown-toolbar,
.cell-main-content .markdown-preview,
.cell-main-content .execution-success {
  overflow: hidden;
}

/* AI Code Panel 和 cell-outputs 允许可见溢出，避免被裁切 */
.cell-main-content .cell-outputs {
  overflow: visible;
}

.cell-main-content .ai-code-panel {
  overflow: visible;
}

.cell-right-actions {
  position: absolute;
  top: -18px;
  right: 24px;
  display: flex;
  flex-direction: row;
  gap: 2px;
  background: white;
  padding: 4px 6px;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease-out;
  z-index: 110;
  border: 1px solid #e0e0e0;
}

.ocean-agent-cell:hover .cell-right-actions {
  opacity: 1;
  transform: translateY(0);
}

/* AI 生成内容时，工具栏一直显示 */
.cell-right-actions.ai-actions-visible {
  opacity: 1;
  transform: translateY(0);
  gap: 8px; /* 增加按钮间距 */
  padding: 6px 12px; /* 增加内边距 */
}

.cell-right-actions .ant-btn {
  color: #5f6368;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.2s ease-out;
}

/* AI 操作按钮（Done/Discard）特殊样式 */
.cell-right-actions.ai-actions-visible .ant-btn {
  width: auto !important;
  min-width: 70px;
  height: 28px;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-weight: 500;
  font-size: 13px;
}

.cell-right-actions.ai-actions-visible .ant-btn-primary {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  color: white !important;
}

.cell-right-actions.ai-actions-visible .ant-btn-primary:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cell-right-actions.ai-actions-visible .ant-btn-text {
  border: 1px solid #e0e0e0 !important;
  background: white !important;
  color: #5f6368 !important;
}

.cell-right-actions.ai-actions-visible .ant-btn-text:hover {
  background: #f5f5f5 !important;
  border-color: #d0d0d0 !important;
  color: #202124 !important;
  transform: translateY(-1px);
}

.cell-right-actions .ant-btn:hover {
  background: #f1f3f4;
  color: #202124;
  transform: scale(1.1);
}

.cell-right-actions .ant-btn-dangerous {
  color: #5f6368;
  background: transparent;
  border: none;
}

.cell-right-actions .ant-btn-dangerous:hover {
  background: #fce8e6;
  color: #d93025;
  transform: scale(1.1);
}

.cell-pin-btn {
  color: #20beff !important;
}

.cell-pin-btn:hover {
  background: #d4f2ff !important;
  color: #00adf7 !important;
  transform: scale(1.1) !important;
}

/* Cell Bottom Actions - 移到单元格外部，hover时显示但预留位置 */
.cell-bottom-actions {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  margin-left: 68px; /* 对齐到编辑器内容区域 */
  margin-top: 4px;
  margin-bottom: 12px;
  visibility: hidden; /* 隐藏但预留位置 */
  transition: visibility 0.15s ease-out;
}

.ocean-agent-cell:hover .cell-bottom-actions {
  visibility: visible; /* hover时显示 */
}

.cell-bottom-actions .ant-btn {
  color: #2b2a2a;
  font-size: 12px;
  font-weight: 500;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: white;
}

.cell-bottom-actions .ant-btn:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

/* Code Cell Specific Styles */
.ocean-agent-cell-code .cell-header {
  background: #f8f9fa;
}

.ocean-agent-cell-code .cell-type-badge {
  background: #e8eaed;
  color: #5f6368;
}

/* Markdown Cell Specific Styles */
.ocean-agent-cell-markdown .cell-header {
  background: #f8f9fa;
}

.ocean-agent-cell-markdown .cell-type-badge {
  background: #fef7e0;
  color: #856404;
}

/* Markdown预览模式：移除边框和阴影 */
.ocean-agent-cell-markdown .cell-main-content:not(:has(.cell-editor)) {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Markdown cell left indicator - 空白区域 */

/* 运行成功状态 */
.execution-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e6f4ea;
  color: #137333;
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid #c6e8cf;
}

/* 输出区域样式优化 */
.cell-outputs {
  padding: 16px;
  background: var(--bg-white, #ffffff);
  border-top: 1px solid #e0e0e0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* PDF输出样式 */
.output-pdf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color, #F5F9FF);
  border: 0.0625rem solid var(--border-secondary, #B9CDF0);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
}

.output-pdf-icon {
  font-size: 1.5rem;
  color: #ef4444;
}

.output-pdf-info {
  flex: 1;
}

.output-pdf-name {
  font-weight: 600;
  color: var(--primary-blue, #05245A);
  font-size: 0.9375rem;
}

.output-pdf-actions {
  display: flex;
  gap: 0.5rem;
}

.output-pdf-actions .ant-btn {
  border-radius: 0.5rem;
}

/* 文件输出样式 (支持预览的文件类型) */
.output-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color, #F5F9FF);
  border: 0.0625rem solid var(--border-secondary, #B9CDF0);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
}

.output-file-icon {
  font-size: 1.5rem;
}

.output-file-name {
  flex: 1;
  font-weight: 500;
  color: var(--primary-blue, #05245A);
  font-size: 0.9375rem;
}

.output-file-unsupported {
  color: #8c8c8c;
  font-size: 0.875rem;
  font-style: italic;
}

/* 确认输入框样式 */
.confirm-input-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fffbeb;
  border-top: 0.0625rem solid #fcd34d;
}

.confirm-input-section .ant-input {
  flex: 1;
  border-radius: 0.5rem;
}

.confirm-input-section .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  border-radius: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .document-toolbar {
    padding: 16px;
  }

  .document-content {
    padding: 16px;
  }

  .paithon-cell {
    border-radius: 24px;
  }

  .cell-header,
  .thinking-chain-container,
  .cell-outputs,
  .markdown-preview {
    padding: 16px 20px;
  }
}

/* 🔥 NEW: Live Agent Execution Styling */
.ocean-agent-cell-live {
  border: 2px dashed #1890ff;
  background: rgba(24, 144, 255, 0.05);
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes pulse {
  0%, 100% {
    border-color: #1890ff;
  }
  50% {
    border-color: #40a9ff;
  }
}

/* Markdown 内容样式 */
.markdown-content {
  line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 1.5em;
  border-bottom: 2px solid #547FB2;
  padding-bottom: 0.3em;
}

.markdown-content h2 {
  font-size: 1.3em;
  color: #06255B;
}

.markdown-content h3 {
  font-size: 1.1em;
  color: #527DB0;
}

.markdown-content p {
  margin: 0.8em 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0.5em 0;
  padding-left: 2em;
}

.markdown-content li {
  margin: 0.3em 0;
}

.markdown-content strong {
  font-weight: 600;
  color: #06255B;
}

.markdown-content code {
  background: #E8F1FF;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #F0F5FA;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 4px solid #547FB2;
  padding-left: 1em;
  margin: 1em 0;
  color: #527DB0;
  font-style: italic;
}

/* 🔥 NEW: Live Agent Execution Display */
.live-agent-execution {
  background: #FFFFFF;
  border: 2px solid #1890FF;
  border-radius: 8px;
  margin: 16px 20px;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Use remaining vertical space (with clamp) */
  flex: 2 1 0;
  height: auto;
  min-height: 360px;
  max-height: calc(100% - var(--ai-code-gen-reserve) - var(--ai-code-gen-safe-gap));
  position: relative;
  z-index: 120;
  overflow: hidden;
}

.live-agent-resize-handle {
  height: 10px;
  cursor: default;
  flex-shrink: 0;
  background: #F7FBFF;
  border-top: 1px solid #B3D8FF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-agent-resize-handle-bar {
  width: 24px;
  height: 100%;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.live-agent-resize-handle-bar::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #B3D8FF 0px,
    #B3D8FF 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.9;
}

.live-agent-resize-handle-bar:hover::before {
  background: repeating-linear-gradient(
    90deg,
    #5991EE 0px,
    #5991EE 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 1;
}

.live-agent-resize-handle:hover {
  background: #EEF6FF;
}

.live-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(90deg, #E8F4FF 0%, #F0F9FF 100%);
  border-bottom: 1px solid #B3D8FF;
  border-radius: 6px 6px 0 0;
}

.live-agent-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #06255B;
}

.thinking-icon {
  font-size: 18px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.user-request-section {
  padding: 8px 16px;
  background: #F5F7FA;
  border-bottom: 1px solid #E8ECF0;
}

.user-request-label {
  font-size: 10px;
  color: #8B8D98;
  margin-bottom: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-request-content {
  font-size: 12px;
  color: #06255B;
  line-height: 1.4;
  font-weight: 500;
}

.live-agent-split-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #E8ECF0;
  flex: 1;
  min-height: 0;
}

.thinking-chain-area,
.code-area {
  display: flex;
  flex-direction: column;
}

.thinking-chain-area {
  flex: 4;
  min-height: 0;
  border-bottom: 1px solid #E8ECF0;
}

.code-area {
  flex: 6;
  min-height: 0;
}

@media (max-height: 720px) {
  .ocean-agent-document-editor.codegen-visible {
    --ai-code-gen-reserve: 200px;
  }

  .live-agent-execution {
    min-height: 320px;
  }
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #06255B;
  padding: 6px 12px;
  background: #FAFBFC;
  border-bottom: 1px solid #E8ECF0;
}

.thinking-scroll,
.code-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scroll-behavior: smooth;
}

.thinking-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.step-content {
  flex: 1;
}

.step-message {
  font-size: 12px;
  color: #06255B;
  line-height: 1.5;
  margin-bottom: 3px;
}

.step-message.markdown-content > *,
.step-details.markdown-content > * {
  position: relative;
  padding-left: 14px;
  margin: 0 0 4px;
}

.step-message.markdown-content > *::before,
.step-details.markdown-content > *::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.step-message.markdown-content > *::before {
  background: #1890FF;
}

.step-details.markdown-content > *::before {
  background: #8FB5FF;
}

.step-details {
  font-size: 11px;
  color: #5A5C66;
  line-height: 1.4;
  padding-left: 8px;
  border-left: 2px solid #E8ECF0;
  margin-top: 4px;
}

.code-content {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #06255B;
  background: #F8F9FA;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #E8ECF0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-hint {
  text-align: center;
  color: #8B8D98;
  font-size: 11px;
  padding: 30px 16px;
  font-style: italic;
}

/* Scrollbar styling */
.thinking-scroll::-webkit-scrollbar,
.code-scroll::-webkit-scrollbar {
  width: 6px;
}

.thinking-scroll::-webkit-scrollbar-track,
.code-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.thinking-scroll::-webkit-scrollbar-thumb,
.code-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-color, #5991EE);
  border-radius: 3px;
}

.thinking-scroll::-webkit-scrollbar-thumb:hover,
.code-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* File output styles */
.output-file {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #F0F9FF;
  border: 2px solid #91D5FF;
  border-radius: 12px;
  margin-top: 12px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-filename {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 15px;
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Account Switch Modal Styles */

.account-switch-modal .account-list {
  max-height: 400px;
  overflow-y: auto;
}

.account-switch-modal .account-item {
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.account-switch-modal .account-item:hover {
  background-color: #f5f5f5;
}

.account-switch-modal .account-item.current-account {
  background-color: #f0f9ff;
  border: 1px solid #91caff;
}

.account-switch-modal .account-item.current-account:hover {
  background-color: #e6f4ff;
}

.account-switch-modal .ant-list-item-meta-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.account-switch-modal .ant-list-item-action {
  margin-left: 16px;
}

.account-switch-modal .ant-list-item-action > li {
  padding: 0 4px;
}
/* SaveVersionModal 样式 */
.save-version-modal .ant-modal-content {
  box-shadow: none !important;
  border-radius: 8px;
}

.save-version-modal .ant-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.save-version-modal .ant-modal-body {
  padding: 24px;
}

.save-version-modal .ant-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
}

/* 自定义标题栏 */
.save-version-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.save-version-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.save-version-modal-close {
  font-size: 16px;
  color: #8c8c8c;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-version-modal-close:hover {
  color: #1e1e1e;
}

/* 表单区域 */
.version-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* VERSION NAME 区域 */
.version-name-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-label {
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-input-wrapper {
  position: relative;
}

.version-input-wrapper .ant-input {
  padding-right: 50px;
  border-radius: 4px;
  border-color: #d9d9d9;
  font-size: 14px;
}

.version-input-wrapper .ant-input:hover,
.version-input-wrapper .ant-input:focus {
  border-color: #1E1E1E;
  box-shadow: none;
}

.char-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #8c8c8c;
  pointer-events: none;
}

/* VERSION TYPE 区域 */
.version-type-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-type-section .ant-select {
  width: 100%;
}

.version-type-section .ant-select-selector {
  border-radius: 4px;
  border-color: #d9d9d9;
}

.version-type-section .ant-select:hover .ant-select-selector,
.version-type-section .ant-select-focused .ant-select-selector {
  border-color: #1E1E1E;
  box-shadow: none;
}

.version-type-description {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.5;
  margin-top: 4px;
}

/* Advanced Settings 区域 */
.advanced-settings-section {
  margin-top: 8px;
}

.advanced-settings-section .ant-collapse {
  background: transparent;
  border: none;
}

.advanced-settings-section .ant-collapse-item {
  border: none;
}

.advanced-settings-section .ant-collapse-header {
  padding: 12px 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: #1E1E1E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advanced-settings-section .ant-collapse-header:hover {
  color: #1E1E1E;
}

.advanced-settings-section .ant-collapse-content-box {
  padding: 16px 0;
}

.advanced-settings-placeholder {
  font-size: 13px;
  color: #8c8c8c;
  font-style: italic;
}

/* 底部按钮区域 */
.save-version-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.save-version-modal-footer .ant-btn {
  min-width: 100px;
  border-radius: 24px;
  font-weight: 500;
  padding: 8px 28px;
  height: 40px;
  font-size: 14px;
}

.save-version-modal-footer .cancel-btn {
  border: none;
  background-color: transparent;
  color: #595959;
}

.save-version-modal-footer .cancel-btn:hover {
  background-color: #f5f5f5;
  color: #595959;
}

.save-version-modal-footer .save-btn {
  background-color: #1E1E1E;
  border-color: #1E1E1E;
  color: white;
}

.save-version-modal-footer .save-btn:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .save-version-modal .ant-modal-body {
    padding: 16px;
  }
}

.global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem; /* 16px - 和 sidebar-header 的 padding 保持一致 */
    background: #ffffff;
    border-bottom: 0.0625rem solid #dbdbdb;
    /* box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.08); 0 1px 4px */
    height: 5.5rem;
    line-height: 3.5rem; /* 56px */
    position: sticky;
    top: 0;
    z-index: 300; /* 高于侧边栏的z-index 200 */
}

/* Left Section - User & Navigation */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    gap:0;

    justify-content: center;
    padding-left: 0;         /* 去掉额外的左边距 */
}
.header-left .file-info-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-left: 0;         /* 去掉额外的左边距 */
    margin-top: 15px;
    margin-bottom: -5px;     /* 确保下方没有间距 */
    overflow-x: auto;        /* 允许横向滚动 */
    max-width: 100%;         /* 限制最大宽度 */
}
.header-left .file-info-wrapper .file-name {
    font-size: 24px;
    line-height: 0;          /* 恢复合理的行高，避免文字被裁剪 */
    color: #1E1E1E;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 2px 8px;        /* 和 sidebar-title 的 margin-left: 8px 保持一致 */
    border-radius: 4px;
    margin-left: 0;          /* 确保没有额外的左边距 */
    margin-top: 40px;        /* 添加这一行，数值越大下移越多 */
    white-space: nowrap;     /* 不换行，保持单行显示 */
    overflow: visible;       /* 不截断，完全显示 */
    text-overflow: clip;     /* 不显示省略号 */
}

.header-left .file-info-wrapper .file-name:hover {
    color: #1890ff;
    background-color: #f0f7ff;
}
.header-left .file-info-wrapper .file-status {
    font-size: 12px;
    line-height: 1.2;        /* 恢复合理的行高 */
    color: #999999;
}


.header-left .header_toolbar-items {
    display: flex;
    align-items: center;
   /*  margin-top: 10px; */           /* 确保上方没有间距 */
}

/* 菜单栏按钮样式 (File, Edit, View, Run, Settings, Add-ons, Help) */
.header_toolbar-items .ant-btn {
    font-size: 14px;          /* 调整这里修改字体大小 */
    font-weight: 450;         /* 字体粗细 */
    color: #1E1E1E;           /* 文字颜色 */
    height: auto;
    padding: 1px 5px;        /* 按钮内边距 */
}

.header_toolbar-items .ant-btn:hover {
    color: inherit;
    background: transparent;
    border: none;
}

.header_toolbar-items .ant-btn:focus,
.header_toolbar-items .ant-btn:active {
    color: inherit;
    background: transparent;
    border: none;
}
/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.user-section:hover {
    background: #f5f5f5;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.dropdown-icon {
    font-size: 12px;
    color: #8c8c8c;
    transition: transform 0.2s;
}

.user-section:hover .dropdown-icon {
    color: #595959;
}

/* Menu and Search Buttons */
.menu-button,
.search-button {
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    color: #05245A;
}

.menu-button:hover,
.search-button:hover {
    background: #f0f0f0 !important;
    color: #05245A !important;
}

/* Search Popup */
.search-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    z-index: 1000;
    min-width: 200px;
}

.search-popup-content p {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 13px;
    color: #262626;
}

.search-popup-content ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.search-popup-content li {
    font-size: 12px;
    color: #595959;
    line-height: 1.8;
}

/* Center Section - Breadcrumb */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    min-width: 0;
}

.home-button {
    height: 36px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
}

.home-button:hover {
    background: #e6f7ff !important;
    color: #1890ff !important;
}

.breadcrumb-separator {
    font-size: 12px;
    color: #bfbfbf;
    margin: 0 4px;
}

.path-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.path-breadcrumb .ant-breadcrumb-link {
    color: #595959;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.path-breadcrumb .ant-breadcrumb-link:hover {
    color: #1890ff;
    background: #f0f7ff;
}

/* 最后一个面包屑项（当前 notebook）加粗 */
.path-breadcrumb li:last-child .ant-breadcrumb-link {
    font-weight: 600;
    color: #05245A;
}

.path-breadcrumb .ant-breadcrumb-separator {
    color: #bfbfbf;
    margin: 0 4px;
}

/* Right Section - Action Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    /* flex: 0 0 auto; */
}


/* Dropdown Menu Styles */
.ant-dropdown-menu-item {
    padding: 8px 12px;
    font-size: 14px;
}

.ant-dropdown-menu-item-icon {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-center {
        padding: 0 12px;
    }
}

@media (max-width: 768px) {
    .global-header {
        padding: 0 12px;
    }

    .user-name {
        display: none;
    }

    .search-button span:not(.anticon) {
        display: none;
    }

    .header-center {
        padding: 0 8px;
    }

    .path-breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 4px;
    }

    .header-left .file-name {
        font-size: 24px;
        line-height: 1.5;
        color: #1E1E1E;
    }

    .user-section {
        padding: 4px 8px;
    }

    .breadcrumb-separator,
    .path-breadcrumb {
        display: none;
    }
}

/* ImportNotebookModal 样式 */
.import-notebook-modal .ant-modal-content {
  box-shadow: none !important;
}

.import-notebook-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 00;
  color: #1e1e1e;
}

.import-notebook-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.import-notebook-modal-content {
  width: 100%;
}

/* 拖放区域样式 */
.import-notebook-drop-zone {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.import-notebook-drop-zone:hover {
  border-color: #1890ff;
  background-color: #f0f7ff;
}

.import-notebook-drop-zone.dragging {
  border-color: #1890ff;
  background-color: #e6f7ff;
  border-style: solid;
}

/* 拖放区域内容 */
.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 拖放图标 */
.drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.import-notebook-drop-zone:hover .drop-icon,
.import-notebook-drop-zone.dragging .drop-icon {
  opacity: 0.8;
}

/* 拖放文本 */
.drop-text {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0;
}

/* 拖放提示 */
.drop-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* Browse Files 按钮 */
.browse-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.browse-button:hover {
  border-color: #1890ff;
  color: #1890ff;
  background-color: #f0f7ff;
}

.browse-button:active {
  transform: scale(0.98);
}

/* Browse 图标 */
.browse-icon {
  width: 16px;
  height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .import-notebook-modal {
    width: 90% !important;
  }

  .import-notebook-drop-zone {
    padding: 30px 15px;
  }

  .drop-icon {
    width: 40px;
    height: 40px;
  }

  .drop-text {
    font-size: 13px;
  }

  .drop-hint {
    font-size: 11px;
  }
}


/* AddInputModal 样式 */
.add-input-modal .ant-modal-content {
  box-shadow: none !important;
}


.add-input-modal .ant-modal-body {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
}

.add-input-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.add-input-modal-content {
  padding: 13px 2px;
}

/* 搜索框样式 */
.search-section {
  margin-bottom: 16px;
}

.search-input {
  border-radius: 20px;
}

.search-input .ant-input {
  font-size: 14px;
}

/* 分类标签样式 */
.category-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* 最近查看标题 */
.recently-viewed-header {
  font-size: 13px;
  font-weight: 400;
  color: #595959;
  margin-bottom: 12px;
  padding-bottom: 0;
}

/* 数据源列表区域 */
.data-sources-section {
  min-height: 200px;
}

.data-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 数据源项 */
.data-source-item {
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-source-item:hover {
  border-color: #1890ff;
  background-color: #f5f5f5;
}

.data-source-main {
  min-width: 0;
  flex: 1;
}

.data-source-action {
  flex: 0 0 auto;
  padding-top: 2px;
}

.data-source-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin-bottom: 4px;
  word-break: break-word;
}

.data-source-description {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.data-source-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999999;
}

.meta-author::before {
  content: '👤 ';
}

.meta-size::before {
  content: '📦 ';
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.empty-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 13px;
  font-weight: 400;
  color: #1e1e1e;
  margin-bottom: 6px;
}

.empty-description {
  font-size: 12px;
  color: #999999;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .add-input-modal {
    width: 90% !important;
  }

  .category-section {
    gap: 6px;
  }
}
/**
 * Machine Panel Styles - Aligned with Figma Design
 * Design scale: ~1:100 (13600px design → ~136px screen)
 */

.machine-panel {
  background: #ffffff;
  flex-shrink: 0;
}

.machine-config-section {
  padding: 0 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.machine-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 40px;
  position: relative;
  gap: 8px;
}

.config-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.config-label {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  max-width: 180px;
  min-width: 0;
}

.config-value {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.config-dropdown-btn {
  padding: 0 4px !important;
  height: 24px !important;
  color: #6b7280 !important;
  flex-shrink: 0;
}

.machine-action-section {
  padding: 0 20px 20px;
}

.btn-start-machine {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-start-machine:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
}

.machine-running-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #059669;
  font-weight: 500;
  padding: 8px 12px;
  background: #ecfdf5;
  border-radius: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.environment-progress {
  padding: 0 20px 12px;
}

.progress-message {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* UploadModal 样式 */
.upload-modal .ant-modal-content {
  box-shadow: none !important;
}

/* .upload-modal .ant-modal-body {
  padding: 24px;
} */

/* .upload-modal .ant-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
} */

.upload-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.upload-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.upload-modal-content {
  width: 100%;
}

/* 拖放区域样式 */
.upload-drop-zone {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-drop-zone:hover {
  border-color: #1890ff;
  background-color: #f0f7ff;
}

.upload-drop-zone.dragging {
  border-color: #1890ff;
  background-color: #e6f7ff;
  border-style: solid;
}

/* 拖放区域内容 */
.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 拖放图标 */
.drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.upload-drop-zone:hover .drop-icon,
.upload-drop-zone.dragging .drop-icon {
  opacity: 0.8;
}

/* 拖放文本 */
.drop-text {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0;
}

/* 拖放提示 */
.drop-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* Browse Files 按钮 */
.browse-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.browse-button:hover {
  border-color: #1890ff;
  color: #1890ff;
  background-color: #f0f7ff;
}

.browse-button:active {
  transform: scale(0.98);
}

/* Browse 图标 */
.browse-icon {
  width: 16px;
  height: 16px;
}

/* 文件列表（如果需要显示选中的文件） */
.selected-files-list {
  margin-top: 16px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
}

.selected-file-item:last-child {
  margin-bottom: 0;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e1e1e;
}

.file-size {
  margin-left: 8px;
  color: #8c8c8c;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .upload-modal {
    width: 90% !important;
  }

  .upload-drop-zone {
    padding: 30px 15px;
  }

  .drop-icon {
    width: 40px;
    height: 40px;
  }

  .drop-text {
    font-size: 13px;
  }

  .drop-hint {
    font-size: 11px;
  }
}

.project-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow-y: auto;
}

/* Collapse 样式覆盖 */
.sidebar-collapse.ant-collapse {
  border: none;
  background: transparent;
}

.sidebar-collapse .ant-collapse-item {
  border-bottom: 1px solid #f3f4f6 !important;
}

.sidebar-collapse .ant-collapse-item:last-child {
  border-bottom: none !important;
}

.sidebar-collapse .ant-collapse-header {
  padding: 12px 20px !important;
  align-items: center !important;
}

.sidebar-collapse .ant-collapse-content-box {
  padding: 0 !important;
}

.collapse-header-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px; /* 给折叠图标留点空间 */
}

.notebooks-title,
.files-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.action-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
}

.action-btn:hover {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

.section-label {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.05em;
}



/* No input state */
.no-input-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

.no-input-icon {
  margin-bottom: 16px;
  width: 80px;
  height: 80px;
  background: #f0f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-input-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.no-input-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.notebook-item {
  padding: 8px 12px !important;
  border-radius: 4px !important;
  margin-bottom: 2px !important;
  background: transparent !important;
  color: #374151 !important;
  font-weight: 500 !important;
  border-bottom: none !important;
}

.notebook-item:hover {
  background: #f3f4f6 !important;
}

.notebook-item.isSelected {
  background: #e6f7ff !important;
  border-radius: 30px !important;
  color: #20beff !important;
}

.notebook-item.isSelected span {
  color: #20beff !important;
}

.notebook-item span {
  font-size: 14px;
}

/* 移除 Ant Design List 默认分隔线 */
.notebooks-content .ant-list-item {
  border-bottom: none !important;
}

/* Dropdown 按钮悬浮显示效果 */
.notebook-item-actions {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.notebook-item:hover .notebook-item-actions {
  opacity: 1;
}

/* Tree 样式覆盖 */
.ant-tree {
  background: transparent !important;
}

.ant-tree .ant-tree-treenode {
  padding: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  display: flex !important;        /* 确保节点使用 flex 布局 */
  align-items: center !important;
}

.ant-tree-node-content-wrapper {
  padding: 4px 4px 4px 0 !important;
  border-radius: 4px !important;
  width: 100% !important;          /* 确保占满整行 */
  flex: 1 !important;              /* 占据剩余空间 */
  display: flex !important;
  align-items: center !important;
}

.ant-tree-node-content-wrapper:hover {
  background-color: #f3f4f6 !important;
}

/* 当 hover Tree 节点时显示文件操作按钮 */
.ant-tree-node-content-wrapper:hover .file-actions {
  opacity: 1 !important;
}

.ant-tree-node-selected {
  background-color: transparent !important;
}

.ant-tree-node-selected .ant-tree-node-content-wrapper {
  background-color: #f3f4f6 !important;
}

.ant-tree-title {
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  width: 100% !important;          /* 确保占满宽度 */
  flex: 1 !important;              /* 占据剩余空间 */
  display: block !important;       /* 确保是块级元素 */
}

.ant-tree-switcher {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  margin-right: 2px !important;
}

/* 隐藏 tree 默认图标的内边距 */
.ant-tree .ant-tree-indent-unit {
  width: 8px !important;
}

/* 调整 Tree 图标间距 */
.ant-tree .ant-tree-iconEle {
  width: 18px !important;
  margin-right: 4px !important;
}

/* 调整文件树的左侧padding */
.files-content .ant-tree,
.outputs-content .ant-tree {
  padding-left: 0 !important;
}

/* 调整第一层节点的左侧缩进 */
.ant-tree .ant-tree-treenode[data-level="0"] {
  padding-left: 0 !important;
}

/* Outputs 文件节点样式 */
.file-node-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
  flex: 1 !important;              /* 占据剩余空间 */
}

.file-node-name {
  overflow: visible;        /* 改为 visible，不截断 */
  text-overflow: clip;      /* 改为 clip，不显示省略号 */
  white-space: nowrap;      /* 保持单行 */
  flex-shrink: 0;           /* 防止被压缩 */
  /* flex: 1; */            /* 注释掉，让文件名自然宽度显示 */
  /* min-width: 0; */       /* 注释掉 */
  /* max-width: 150px; */   /* 注释掉最大宽度限制 */
  display: block;
}

.file-actions {
  flex-shrink: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.file-node-title:hover .file-actions {
  opacity: 1 !important;
}

.ocean-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #dbdbdb;
  transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow: hidden;
}
/* 正常状态 */
.sidebar-title-row{
    display: flex;
    align-items: center;
}

/* collapsed 收缩状态 */
.ocean-sidebar.collapsed {
  width: 64px;
}

.sidebar-header {
  padding: 16px 16px;
  /* border-bottom: 1px solid #f3f4f6; */
  /* flex-shrink: 0; */
  transition: background-color 0.2s ease-in-out;
}

.sidebar-header:hover {
  cursor: pointer;
}

.collapsed .sidebar-header {
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.collapsed .sidebar-title-row {
  display: flex;    
  justify-content: center;
}

.collapsed .sidebar-toggle-icon-btn {
  margin: 0 !important;
}

.sidebar-toggle-icon-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  margin-right: 2px;
}

.sidebar-toggle-icon-btn:hover {
  background: #f3f4f6 !important;
}

/* 图标大小 - 需要更高优先级的选择器 */
.sidebar-toggle-icon-btn .anticon {
  font-size: 19px !important;
}

.sidebar-title-icon {
  font-size: 20px !important;
  color: #1E1E1E;
}

.sidebar-title {
  font-size: 28px;
  font-weight: 600;
  color: #20beff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  margin-left: 8px;
  white-space: nowrap;
  transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  opacity: 1;
}

.sidebar-home-btn {
  margin-left: 8px;
  color: #20beff !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sidebar-home-btn .anticon {
  font-size: 24px;
}

.sidebar-home-btn:hover {
  color: #20beff !important;
  background: transparent !important;
}

.collapsed .sidebar-title,
.collapsed .sidebar-home-btn {
  opacity: 0;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-10px);
}

.sidebar-item-label {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  color: #4b5563;
}

.sidebar-item-text {
  transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  opacity: 1;
  white-space: nowrap;
  font-size: 19px;
}

.collapsed .sidebar-item-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-5px);
}

/* 收缩状态下隐藏 Collapse 的内容 */
.collapsed .ant-collapse-content {
  display: none !important;
}

.collapsed .ant-collapse-header {
  padding: 12px 0 !important;
  justify-content: center !important;
}

.collapsed .sidebar-item-label {
  justify-content: center;
  width: 100%;
  gap: 0;
  cursor: pointer;
}

/* 收缩状态下的增强悬停效果 */
.collapsed .ant-collapse-header {
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.collapsed .ant-collapse-header:hover {
  background: #f3f4f6 !important;
  border-radius: 8px;
}

.collapsed .ant-collapse-header:hover .sidebar-item-icon {
  transform: scale(1.15);
  color: #1f2937;
}

.sidebar-item-icon {
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sidebar-content-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* 为滚动条预留空间，防止挤压内容 */
  scrollbar-gutter: stable;
}

.sidebar-content-wrapper .ant-collapse-item {
  padding: 0 !important;
  border-bottom: 1px solid #dbdbdb !important;
}

/* 最后一个模块不需要底部边框 */
.sidebar-content-wrapper .ant-collapse-item:last-child {
  border-bottom: none !important;
}

/* 收起状态下隐藏分割线 */
.collapsed .sidebar-content-wrapper .ant-collapse-item {
  border-bottom: none !important;
}

/* Collapse面板头部样式 - 确保按钮对齐 */
.sidebar-content-wrapper .ant-collapse-header {
  padding: 12px 12px 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  /* 防止滚动条挤压 */
  min-width: 0;
}

/* 确保展开图标不会被滚动条挤压 */
.sidebar-content-wrapper .ant-collapse-expand-icon {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ant-collapse-content-box {
  padding: 12px !important;
}

/* 覆盖 ProjectPanel 的默认内边距 */
.ocean-sidebar .project-panel {
  padding: 0;
}

.ocean-sidebar .notebooks-header,
.ocean-sidebar .files-header,
.ocean-sidebar .machine-section-header {
  padding: 12px 20px;
  background: transparent;
}

.ocean-sidebar .notebooks-title,
.ocean-sidebar .files-title,
.ocean-sidebar .machine-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.ocean-sidebar .files-tabs {
  margin: 0 12px 8px;
  padding: 2px !important;
  background: #f3f4f6 !important;
  border-radius: 6px;
  border: none !important;
}

.ocean-sidebar .files-tabs .ant-btn {
  flex: 1;
  border: none;
  box-shadow: none;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
}

.ocean-sidebar .files-tabs .ant-btn-primary {
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* Notebook item 样式调整 */
.ocean-sidebar .notebook-item {
  padding: 6px 12px !important;
  margin-bottom: 2px !important;
  border-radius: 4px !important;
}

.ocean-sidebar .notebook-item:hover {
  background-color: #f3f4f6 !important;
}

.ocean-sidebar .notebook-item.isSelected {
  background-color: #eeeff0 !important;
  border-radius: 13px !important;
  color: #000000 !important;
}

.ocean-sidebar .notebook-item.isSelected span {
  color: #020202 !important;
  font-weight: 600;
}

/* Action buttons hover effect */
.sidebar-action-buttons {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 4px;
  height: 20px;
}

.sidebar-action-buttons svg {
  display: block;
  flex-shrink: 0;
}

.sidebar-panel-header {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0;
}

.sidebar-panel-header:hover .sidebar-action-buttons {
  opacity: 1;
}

/* Tree 组件样式调整 - 减小左侧间距 */
.sidebar-content-wrapper .ant-tree .ant-tree-indent-unit {
  width: 8px !important;
}

.sidebar-content-wrapper .ant-tree .ant-tree-treenode {
  padding: 0 !important;
  margin-left: 0 !important;
}

.sidebar-content-wrapper .ant-tree .ant-tree-iconEle {
  width: 18px !important;
  margin-right: 4px !important;
}

.sidebar-content-wrapper .ant-tree-node-content-wrapper {
  padding: 4px 4px 4px 0 !important;
}

.sidebar-content-wrapper .ant-tree-switcher {
  width: 20px !important;
  margin-right: 2px !important;
}

.sidebar-content-wrapper .files-content .ant-tree,
.sidebar-content-wrapper .outputs-content .ant-tree {
  padding-left: 0 !important;
}

/* ShareModal 样式 */
.share-modal .ant-modal-content {
  box-shadow: none !important;
  border-radius: 8px;
}

.share-modal .ant-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.share-modal .ant-modal-body {
  padding: 24px;
  max-height: 600px;
  overflow-y: auto;
}

.share-modal .ant-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
}

/* 自定义标题栏 */
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.share-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: #1e1e1e;
}

.share-modal-close {
  font-size: 16px;
  color: #8c8c8c;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal-close:hover {
  color: #1e1e1e;
}

/* Private/Public 卡片选择区域 */
.share-type-section {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.share-type-card {
  flex: 1;
  padding: 20px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  position: relative;
}

.share-type-card:hover {
  border-color: #1E1E1E;
  background-color: #f5f9ff;
}

.share-type-card.selected {
  border-color: #1E1E1E;
  background-color: #e6f7ff;
}

.share-type-card.selected::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background-color: #1E1E1E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-type-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.share-type-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.share-type-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 8px;
}

.share-type-description {
  font-size: 13px;
  color: #8c8c8c;
  line-height: 1.5;
}

/* 搜索框区域 */
.search-section {
  margin-bottom: 20px;
}

.search-section .ant-input-affix-wrapper {
  border-radius: 20px;
  padding: 8px 16px;
  border-color: #e8e8e8;
  background-color: #e8e8e8;
}

.search-section .ant-input-affix-wrapper:hover,
.search-section .ant-input-affix-wrapper:focus,
.search-section .ant-input-affix-wrapper-focused {
  border-color: #e8e8e8;
  background-color: #e8e8e8;
  box-shadow: none;
}

.search-section .ant-input {
  font-size: 14px;
  background-color: transparent;
}

.search-section .ant-input::-moz-placeholder {
  color: #bfbfbf;
}

.search-section .ant-input::placeholder {
  color: #bfbfbf;
}

/* 协作者列表区域 */
.collaborators-section {
  margin-bottom: 20px;
}

.collaborator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.collaborator-item:last-child {
  border-bottom: none;
}

.collaborator-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collaborator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1890ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.collaborator-name {
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 500;
}

.collaborator-permission {
  min-width: 120px;
}

.collaborator-permission .ant-select {
  width: 100%;
}

/* Allow Comments 区域 */
.comments-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.comments-label {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* 底部按钮区域 */
.share-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.share-modal-footer .ant-btn {
  min-width: 80px;
  border-radius: 4px;
  font-weight: 500;
}

.share-modal-footer .cancel-btn {
  border: 1px solid #e8e8e8;
  background-color: #e8e8e8;
  color: #595959;
}

.share-modal-footer .cancel-btn:hover {
  border-color: #d9d9d9;
  background-color: #d9d9d9;
  color: #595959;
}

.share-modal-footer .save-btn {
  background-color: #1E1E1E;
  border-color: #1E1E1E;
  color: white;
}

.share-modal-footer .save-btn:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
}

/* 空状态提示 */
.no-collaborators {
  padding: 20px;
  text-align: center;
  color: #8c8c8c;
  font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .share-type-section {
    flex-direction: column;
  }
  
  .share-modal .ant-modal-body {
    padding: 16px;
  }
}

.settings-modal .settings-content {
  padding: 8px 0;
}

.settings-modal .settings-section {
  margin-bottom: 24px;
}

.settings-modal .settings-section:last-child {
  margin-bottom: 0;
}

.settings-modal .theme-radio {
  width: 100%;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: all 0.3s;
}

.settings-modal .theme-radio:hover {
  border-color: #1890ff;
  background-color: #f5f9ff;
}

.settings-modal .theme-radio .ant-radio {
  align-self: flex-start;
  margin-top: 4px;
}

.settings-modal .theme-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-left: 8px;
}

.settings-modal .theme-preview {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  flex-shrink: 0;
}

.settings-modal .theme-preview .preview-header {
  height: 20%;
  border-bottom: 1px solid;
}

.settings-modal .theme-preview .preview-content {
  height: 80%;
  display: flex;
}

.settings-modal .theme-preview .preview-sidebar {
  width: 30%;
  border-right: 1px solid;
}

.settings-modal .theme-preview .preview-main {
  flex: 1;
}

/* Light Theme Preview */
.settings-modal .light-preview {
  background: #F8FAFC;
}

.settings-modal .light-preview .preview-header {
  background: #fafafa;
  border-bottom-color: #e8e8e8;
}

.settings-modal .light-preview .preview-sidebar {
  background: #f5f5f5;
  border-right-color: #e8e8e8;
}

.settings-modal .light-preview .preview-main {
  background: #F8FAFC;
}

/* Dark Theme Preview */
.settings-modal .dark-preview {
  background: #1f1f1f;
}

.settings-modal .dark-preview .preview-header {
  background: #141414;
  border-bottom-color: #303030;
}

.settings-modal .dark-preview .preview-sidebar {
  background: #262626;
  border-right-color: #303030;
}

.settings-modal .dark-preview .preview-main {
  background: #1f1f1f;
}

.settings-modal .theme-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Dark theme styles for the app */
[data-theme='dark'] {
  --bg-white: #1f1f1f;
  --bg-color: #141414;
  --surface-color: #262626;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --border-primary: #303030;
  --border-secondary: #404040;
  --accent-color: #1890ff;
  --light-blue: #1f3a5f;
  --primary-blue: #3d9bff;
}

[data-theme='dark'] body {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

[data-theme='dark'] .ant-layout {
  background: var(--bg-color);
}

[data-theme='dark'] .ant-modal-content {
  background: var(--surface-color);
  color: var(--text-primary);
}

[data-theme='dark'] .ant-modal-header {
  background: var(--surface-color);
  border-bottom-color: var(--border-primary);
}

[data-theme='dark'] .ant-modal-title {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-modal-close {
  color: var(--text-secondary);
}

[data-theme='dark'] .ant-modal-close:hover {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-radio-wrapper {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-radio-wrapper .ant-radio-disabled + span {
  color: var(--text-secondary);
}

[data-theme='dark'] .ant-divider {
  border-color: var(--border-primary);
}

[data-theme='dark'] .settings-modal .theme-radio {
  border-color: var(--border-primary);
  background-color: transparent;
}

[data-theme='dark'] .settings-modal .theme-radio:hover {
  border-color: var(--accent-color);
  background-color: rgba(24, 144, 255, 0.1);
}

[data-theme='dark'] .ant-typography {
  color: var(--text-primary);
}

[data-theme='dark'] .ant-typography-secondary {
  color: var(--text-secondary) !important;
}

/* ============================================
   Color Scheme Preview Styles
   ============================================ */

.settings-modal .color-scheme-radio {
  width: 100%;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: all 0.3s;
}

.settings-modal .color-scheme-radio:hover {
  border-color: #1890ff;
  background-color: #f5f9ff;
}

.settings-modal .color-scheme-radio .ant-radio {
  align-self: flex-start;
  margin-top: 4px;
}

.settings-modal .color-scheme-option {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.settings-modal .color-scheme-preview {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.settings-modal .color-scheme-preview .color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.settings-modal .color-scheme-radio:hover .color-dot {
  transform: scale(1.1);
}

.settings-modal .color-scheme-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Dark theme overrides for color scheme radio */
[data-theme='dark'] .settings-modal .color-scheme-radio {
  border-color: var(--border-primary);
  background-color: transparent;
}

[data-theme='dark'] .settings-modal .color-scheme-radio:hover {
  border-color: var(--accent-color);
  background-color: rgba(24, 144, 255, 0.1);
}

[data-theme='dark'] .settings-modal .color-scheme-preview {
  background: var(--surface-color);
  border-color: var(--border-primary);
}
.user-center-modal .ant-modal-body {
  padding: 24px;
}

.user-center-modal .ant-tabs {
  margin-top: 0;
}

.payment-tab {
  padding: 20px 0;
}

.billing-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.billing-summary {
  margin-bottom: 16px;
}

.billing-summary .ant-statistic-title {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.billing-summary .ant-statistic-content {
  font-size: 20px;
  font-weight: 600;
}

.billing-table {
  margin-top: 16px;
}

.billing-table .ant-table {
  font-size: 13px;
}

.billing-table .ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
  color: #262626;
}

.billing-table .ant-table-tbody > tr:hover > td {
  background: #f5f5f5;
}

/**
 * ResizableSider Styles
 */

.resizable-sider {
  position: relative;
  transition: none !important; /* 禁用 antd 默认的过渡效果 */
}

/* 拖拽手柄 - 缩小一半 */
.sider-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  cursor: col-resize;
  background: transparent;
  z-index: 100;
  transition: background 0.2s;
}

.sider-resize-handle:hover {
  background: var(--accent-color, #5991EE);
  opacity: 0.5;
}

.sider-resize-handle:active {
  background: var(--accent-color, #5991EE);
  opacity: 0.8;
}

/* 拖拽时的视觉反馈 */
.resizable-sider:has(.sider-resize-handle:active) {
  box-shadow: 0 0 10px rgba(89, 145, 238, 0.3);
}
.k-home {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  justify-content: center;
  color: #111111;
}

.k-home-shell {
  width: min(85%, 1040px);
  padding: 18px 0 72px;
}

.k-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.k-brand {
  font-size: 20px;
  font-weight: 600;
  color: #16a7e0;
  letter-spacing: 0.02em;
}

.k-navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.k-navlink {
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.k-navlink:hover {
  text-decoration: underline;
}

.k-user {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.k-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  -o-object-fit: cover;
     object-fit: cover;
}

.k-user-name {
  font-size: 14px;
  color: #222222;
}

.k-user-badge {
  font-size: 12px;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #666666;
}

.k-hero {
  padding: 20px 0 10px;
}

.k-welcome {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.k-subtitle {
  font-size: 14px;
  color: #777777;
}

.k-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.k-tabs {
  display: flex;
  gap: 26px;
}

.k-tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  padding: 6px 0;
  font-size: 22px;
  font-weight: 700;
  color: #888888;
  cursor: pointer;
}

.k-tab.is-active {
  color: #111111;
  border-bottom: 2px solid #111111;
}

.k-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.k-create:hover {
  background: #000000;
}

.k-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 14px 0 16px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #ffffff;
}

.k-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: #111111;
}

.k-search-input::-moz-placeholder {
  color: #a0a0a0;
}

.k-search-input::placeholder {
  color: #a0a0a0;
}

.k-table {
  border-top: 1px solid #eeeeee;
}

.k-thead,
.k-row {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 1fr 0.7fr;
  align-items: center;
}

.k-th,
.k-td {
  padding: 10px 8px;
  font-size: 13px;
}

.k-th {
  color: #666666;
  font-weight: 600;
}

.k-row {
  border-top: 1px solid #f1f1f1;
}

.k-row:hover {
  background: #fafafa;
}

.k-row-empty {
  display: block;
  padding: 16px 8px;
  color: #777777;
  font-size: 13px;
}

.k-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.k-th-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777777;
}

.k-checkbox {
  width: 14px;
  height: 14px;
  accent-color: #111111;
}

.k-title-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-title-link:hover {
  text-decoration: underline;
}

.k-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-col-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.k-action {
  border: none;
  background: transparent;
  color: #111111;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.k-action:hover {
  opacity: 1;
}

.k-sort {
  color: #888888;
  font-size: 12px;
  margin-left: 6px;
}

@media (max-width: 900px) {
  .k-welcome {
    font-size: 34px;
  }

  .k-navlinks {
    display: none;
  }

  .k-thead,
  .k-row {
    grid-template-columns: 1.7fr 0.8fr 1fr 0.8fr;
  }
}

@media (max-width: 560px) {
  .k-home-shell {
    width: min(92%, 1040px);
  }

  .k-tabs-row {
    gap: 10px;
    align-items: center;
  }

  .k-tab {
    font-size: 18px;
  }

  .k-create {
    padding: 8px 12px;
  }

  .k-thead,
  .k-row {
    grid-template-columns: 1.4fr 0.7fr 1fr 0.8fr;
  }
}

/**
 * FilePreviewModal Styles
 */

.file-preview-modal .ant-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow: auto;
}

.file-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: #8c8c8c;
}

.file-preview-error {
  padding: 40px 20px;
  text-align: center;
}

.file-preview-error .error-message {
  color: #ff4d4f;
  font-size: 14px;
}

.file-preview-empty {
  padding: 40px 20px;
  text-align: center;
  color: #8c8c8c;
}

.file-preview-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 16px;
}

.file-preview-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.file-preview-text {
  background: #1e1e1e;
  border-radius: 4px;
  padding: 16px;
  overflow: auto;
  max-height: 60vh;
}

.file-preview-text pre {
  margin: 0;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
:root {
  /* Colors - From Figma Design */
  --primary-blue: #05245A;
  --secondary-blue: #547FB2;
  --light-blue: #C1E3FE;
  /* --bg-color: #F8FAFC; */
  --bg-color: #FFFFFF;
  --bg-light: #ECF3FF;
  /* --bg-white: #F8FAFC; */
  --bg-white: #FFFFFF;
  --surface-color: #F8FAFC;
  --accent-color: #38bdf8;
  --text-primary: #05245A;
  --text-secondary: #557EB2;
  --text-tertiary: #527DB0;
  --text-placeholder: #AAAAAA;
  --text-gray: #ACACAC;
  --border-color: #B9CDF0;
  --border-secondary: #547FB2;
  --success-color: #73C491;
  --error-color: #FF5540;
  --warning-color: #FFA9A9;
  --tag-blue: #7B9CC9;

  /* Shadows - From Figma Design */
  --card-shadow: 2px 1px 4px 4px rgba(0, 0, 0, 0.25);
  --card-shadow-sm: 0px 4px 4px rgba(6, 37, 91, 0.8);
  --card-shadow-hover: 2px 4px 4px 3px rgba(0, 0, 0, 0.25);
  --button-shadow: 2px 4px 4px 2px rgba(0, 0, 0, 0.25);

  /* Border Radius - From Figma Design */
  --radius-xl: 50px;
  --radius-lg: 44px;
  --radius-md: 24px;
  --radius-sm: 12px;
  --radius-button: 20px;

  /* Typography - From Figma Design */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-cn: 'PingFang SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --font-size-xs: 80px;
  --font-size-sm: 90px;
  --font-size-base: 96px;
  --font-size-md: 100px;
  --font-size-lg: 120px;
  --font-size-xl: 125px;
  --font-size-2xl: 130px;
  --font-size-3xl: 150px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-color);
}

/* ============================================
   Color Scheme Variations
   ============================================ */

/* Ocean Color Scheme - 深海青绿 */
.color-scheme-ocean {
  --primary-blue: #0A4A5C;
  --secondary-blue: #2E8B9E;
  --light-blue: #B8E6F0;
  --accent-color: #4FB8CE;
  --text-primary: #0A4A5C;
  --text-secondary: #2E8B9E;
  --text-tertiary: #2A7B8D;
  --border-color: #9DD4E3;
  --border-secondary: #2E8B9E;
  --tag-blue: #62A8BA;
}

/* Forest Color Scheme - 森林绿 */
.color-scheme-forest {
  --primary-blue: #1B5E20;
  --secondary-blue: #4CAF50;
  --light-blue: #C8E6C9;
  --accent-color: #66BB6A;
  --text-primary: #1B5E20;
  --text-secondary: #4CAF50;
  --text-tertiary: #43A047;
  --border-color: #A5D6A7;
  --border-secondary: #4CAF50;
  --tag-blue: #66BB6A;
}

/* Sunset Color Scheme - 日落紫橙 */
.color-scheme-sunset {
  --primary-blue: #4A148C;
  --secondary-blue: #7B1FA2;
  --light-blue: #E1BEE7;
  --accent-color: #FF6F00;
  --text-primary: #4A148C;
  --text-secondary: #7B1FA2;
  --text-tertiary: #6A1B9A;
  --border-color: #CE93D8;
  --border-secondary: #7B1FA2;
  --tag-blue: #9C27B0;
}

/* Lavender Color Scheme - 薰衣草 */
.color-scheme-lavender {
  --primary-blue: #4A148C;
  --secondary-blue: #8E44AD;
  --light-blue: #D5C7E8;
  --accent-color: #9B59B6;
  --text-primary: #4A148C;
  --text-secondary: #8E44AD;
  --text-tertiary: #7D3C98;
  --border-color: #C39BD3;
  --border-secondary: #8E44AD;
  --tag-blue: #9B59B6;
}

/* Neutral Color Scheme - 中性灰 */
.color-scheme-neutral {
  --primary-blue: #263238;
  --secondary-blue: #546E7A;
  --light-blue: #CFD8DC;
  --accent-color: #607D8B;
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-tertiary: #455A64;
  --border-color: #B0BEC5;
  --border-secondary: #546E7A;
  --tag-blue: #607D8B;
}
/* OceanAgent App Styles with Figma Design */

/* Layout */
.app-layout {
  min-height: 100vh;
  background: var(--bg-white);
  overflow: hidden; /* 隐藏全局滚动条 */
}

/* 隐藏默认滚动条 - 全局设置 */
body {
  overflow: hidden;
}

html, body {
  height: 100%;
  overflow: hidden;
}

/* No longer needed - GlobalHeader has its own styles */

/* Content Area - Figma Design */
.app-content-layout {
  background: var(--bg-white);
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  height: calc(100vh - 56px); /* 固定高度：视窗高度减去 GlobalHeader 高度 */
}

/* Sider - Figma Design */
.app-sider {
  background: var(--bg-white) !important;
  /* border-right: 1px solid var(--border-secondary); */
  overflow: visible; /* Allow resize handle to be visible outside the sider */
  box-shadow: none;
  height: 100vh; /* Changed to full viewport height */
  position: sticky;
  top: 0;
}

/* Right Sidebar - for AI Chat, Comments, History */
.right-sider {
  border-left: 2px solid #dbdbdb;
  border-right: none;
  background: var(--bg-white) !important;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px) !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
}

/* Legacy class name support for AI chat */
.ai-chat-sider {
  border-left: 2px solid var(--border-secondary);
  border-right: none;
  background: var(--bg-white) !important;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px) !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
}

/* Editor Layout */
.editor-layout {
  display: flex;
  flex-direction: row; /* Change to row to support horizontal layout */
  height: 100%;
  overflow: hidden;
}

/* Main Content - Figma Design */
.app-main-content {
  flex: 1;
  background: var(--bg-color);
  padding: 0;
  overflow: hidden; /* 禁用外层滚动，让滚动发生在内部 document-content 上 */
  min-height: 0;
  height: 100%; /* 确保高度传递 */
}

/* Ant Design Customization */
.ant-layout-sider {
  background: #F8FAFC;
}

.ant-tree {
  background: transparent;
  color: #262626;
}

.ant-tree-node-content-wrapper {
  color: #262626;
}

.ant-tree-node-content-wrapper:hover {
  background-color: #f5f5f5;
}

.ant-tree-node-selected .ant-tree-node-content-wrapper {
  background-color: #e6f7ff !important;
}

.ant-tree-title {
  color: #262626;
}

/* Button Styles - Figma Design */
.ant-btn-primary {
  background-color: var(--light-blue);
  /* border-color: var(--border-color); */
  color: var(--text-primary);
  /* font-weight: 590;
  border-radius: 100px;
  box-shadow: 2px 1px 4px 4px rgba(0, 0, 0, 0.25);
  height: auto;
  padding: 10px 32px; */
  /* font-size: 16px;
  border: 2px solid var(--border-color); */
}

.ant-btn-primary:hover {
  background-color: var(--accent-color);
  /* border-color: var(--border-color); */
  color: var(--bg-white);
  /* box-shadow: 2px 4px 4px 2px rgba(0, 0, 0, 0.25); */
}

/* 选中/激活状态 - 浅蓝色背景，边框大小不变 */
.ant-btn-primary:active,
.ant-btn-primary.active,
.ant-btn-primary:focus {
  background-color: var(--light-blue) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: 2px 1px 4px 4px rgba(0, 0, 0, 0.25) !important;
}

/* Avatar - Figma Design */
.ant-avatar {
  background-color: var(--accent-color);
}

/* Dropdown */
.ant-dropdown-menu {
  border-radius: 8px;
  box-shadow: none !important;
}

.ant-dropdown-menu-item {
  color: #262626;
}

.ant-dropdown-menu-item:hover {
  background-color: #f5f5f5;
}

/* ============================================
   Popup / Overlay Shadows (Disable)
   ============================================ */

.ant-modal-content,
.ant-modal-confirm .ant-modal-content,
.ant-drawer-content,
.ant-drawer-content-wrapper,
.ant-dropdown-menu,
.ant-select-dropdown,
.ant-popover-inner,
.ant-popconfirm .ant-popover-inner,
.ant-tooltip-inner,
.ant-notification-notice,
.ant-message-notice-content,
.ant-picker-dropdown .ant-picker-panel-container {
  box-shadow: none !important;
}

/* Tooltip - 隐藏箭头 */
.ant-tooltip-arrow,
.ant-tooltip .ant-tooltip-arrow {
  display: none !important;
}

.ant-tooltip-inner {
  border-radius: 15px !important;
}

/* Scrollbar Styling - 移除全局样式，只在需要的地方自定义 */

/* Utility Classes */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.h-full {
  height: 100%;
}

.text-center {
  text-align: center;
}

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

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
/* OceanAgent Auth Pages - Kaggle Style */

.auth-page {
  /* 固定高度为视口高度，确保能触发滚动 */
  height: 100vh;
  display: flex;
  align-items: flex-start; /* 从顶部开始，支持滚动 */
  justify-content: center;
  background: #f5f5f5;
  padding: 40px 20px;
  position: relative;
  overflow-y: auto; /* 允许垂直滚动 */
  overflow-x: hidden; /* 隐藏水平溢出 */
  /* 确保滚动平滑 */
  -webkit-overflow-scrolling: touch;
  /* 确保滚动条始终可见（在有内容溢出时） */
  scrollbar-gutter: stable;
}

/* Decorative elements */
.auth-decoration {
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
}

.auth-decoration-circle {
  position: absolute;
  border-radius: 50%;
}

.auth-decoration-circle-1 {
  width: 200px;
  height: 200px;
  background: #20BEFF;
  bottom: 100px;
  right: 100px;
  opacity: 0.8;
}

.auth-decoration-circle-2 {
  width: 150px;
  height: 150px;
  background: #4CAF50;
  bottom: 50px;
  right: 200px;
  opacity: 0.7;
}

.auth-decoration-circle-3 {
  width: 100px;
  height: 100px;
  background: #FFC107;
  bottom: 150px;
  right: 50px;
  opacity: 0.6;
}

.auth-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-text {
  font-size: 32px;
  font-weight: 600;
  color: #20BEFF;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  bottom: -1px;
}

.auth-tab:hover {
  color: #000;
}

.auth-tab.active {
  color: #000;
  border-bottom-color: #000;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form-input {
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-form-input:focus {
  outline: none;
  border-color: #20BEFF;
  box-shadow: 0 0 0 3px rgba(32, 190, 255, 0.1);
}

.auth-form-input::-moz-placeholder {
  color: #999;
}

.auth-form-input::placeholder {
  color: #999;
}

.auth-form-hint {
  font-size: 12px;
  color: #666;
  margin-top: -4px;
}

.auth-password-wrapper {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.auth-password-toggle:hover {
  color: #000;
}

/* Checkbox */
.auth-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.auth-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-checkbox-label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  line-height: 1.5;
}

.auth-checkbox-hint {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 2px;
}

/* Buttons */
.auth-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.auth-button {
  flex: 1;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.auth-button-primary {
  background: #e8f4f8;
  color: #1a1a1a;
  border: 2px solid #20BEFF;
}

.auth-button-primary:hover {
  background: #d0e8f5;
  border-color: #1a9edf;
}

.auth-button-primary:disabled {
  background: #f0f0f0;
  color: #999;
  border-color: #d0d0d0;
  cursor: not-allowed;
}

.auth-button-secondary {
  background: white;
  color: #000;
  border: 1px solid #d0d0d0;
}

.auth-button-secondary:hover {
  background: #f5f5f5;
}

.auth-button-full {
  width: 100%;
}

/* Links */
.auth-link {
  color: #20BEFF;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-text-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #333;
}

.auth-footer-link {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

/* Messages */
.auth-error {
  padding: 12px 16px;
  background: #FFF5F5;
  border-left: 4px solid #f44336;
  border-radius: 4px;
  color: #c62828;
  font-size: 14px;
}

.auth-success {
  padding: 12px 16px;
  background: #F1F8F4;
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 14px;
}

.auth-info {
  padding: 12px 16px;
  background: #F5F5F5;
  border-left: 4px solid #666;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

/* Verification Code */
.verification-code-group {
  margin-top: 8px;
}

.verification-code-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 4px;
  text-align: center;
}

.verification-code-input:focus {
  outline: none;
  border-color: #20BEFF;
  box-shadow: 0 0 0 3px rgba(32, 190, 255, 0.1);
}

/* Privacy Terms */
.privacy-content {
  max-height: 320px;
  overflow-y: auto;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.privacy-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #000;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 12px;
}

.privacy-content ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.privacy-content li {
  margin-bottom: 6px;
}

/* Loading state */
.auth-loading {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
  .auth-card {
    padding: 32px 24px;
    max-width: 100%;
  }

  .auth-decoration {
    width: 300px;
    height: 300px;
  }
}

/* 高屏幕：垂直居中显示更美观 */
@media (min-height: 1000px) {
  .auth-page {
    align-items: center; /* 居中显示 */
    padding: 20px;
  }
}
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, Inter var, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.top-0 {
  top: 0px;
}
.top-2 {
  top: 0.5rem;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.-m-2 {
  margin: -0.5rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-8 {
  margin-left: 2rem;
}
.mr-8 {
  margin-right: 2rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.\!inline {
  display: inline !important;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.table {
  display: table;
}
.hidden {
  display: none;
}
.h-12 {
  height: 3rem;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.h-\[80vh\] {
  height: 80vh;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.max-h-32 {
  max-height: 8rem;
}
.w-12 {
  width: 3rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-96 {
  width: 24rem;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-full {
  min-width: 100%;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-\[80\%\] {
  max-width: 80%;
}
.max-w-full {
  max-width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-pointer {
  cursor: pointer;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.list-decimal {
  list-style-type: decimal;
}
.list-disc {
  list-style-type: disc;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-700 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-divide-opacity, 1));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-r {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-r {
  border-right-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-t-2 {
  border-top-width: 2px;
}
.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-green-400 {
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}
.border-pink-700 {
  --tw-border-opacity: 1;
  border-color: rgb(190 24 93 / var(--tw-border-opacity, 1));
}
.border-yellow-400 {
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}
.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}
.border-opacity-30 {
  --tw-border-opacity: 0.3;
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-gray-900\/60 {
  background-color: rgb(17 24 39 / 0.6);
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-orange-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1));
}
.bg-pink-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(131 24 67 / var(--tw-bg-opacity, 1));
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-red-900\/20 {
  background-color: rgb(127 29 29 / 0.2);
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.bg-yellow-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(113 63 18 / var(--tw-bg-opacity, 1));
}
.bg-opacity-10 {
  --tw-bg-opacity: 0.1;
}
.bg-opacity-40 {
  --tw-bg-opacity: 0.4;
}
.bg-opacity-5 {
  --tw-bg-opacity: 0.05;
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-80 {
  --tw-bg-opacity: 0.8;
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-600 {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-purple-600 {
  --tw-gradient-to: #9333ea var(--tw-gradient-to-position);
}
.fill-current {
  fill: currentColor;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.not-italic {
  font-style: normal;
}
.leading-6 {
  line-height: 1.5rem;
}
.leading-7 {
  line-height: 1.75rem;
}
.text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-green-300 {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-pink-300 {
  --tw-text-opacity: 1;
  color: rgb(249 168 212 / var(--tw-text-opacity, 1));
}
.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.decoration-2 {
  text-decoration-thickness: 2px;
}
.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
/* Import Inter font */
/* Import Figma-aligned styles */
body {
  margin: 0;
  font-family: 'Inter', -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;
}
/* 使用变量字体增强（如果浏览器支持） */
@supports (font-variation-settings: normal) {
  body {
    font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
  }
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
#root {
  height: 100vh;
}
/* Monaco Editor styles */
.monaco-editor {
  padding: 0 !important;
}
/* 移除 Monaco Editor 的焦点阴影 */
.monaco-editor .monaco-editor-background,
.monaco-editor .inputarea.ime-input,
.monaco-editor .cursors-layer,
.monaco-editor .view-line,
.monaco-editor,
.monaco-editor.focused {
  box-shadow: none !important;
}
/* 移除编辑器容器的阴影 */
.monaco-editor .overflow-guard {
  box-shadow: none !important;
}
/* Markdown prose styles for dark mode */
.prose-invert {
  color: #e5e7eb;
}
.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4,
.prose-invert h5,
.prose-invert h6 {
  color: #f3f4f6;
}
.prose-invert a {
  color: #60a5fa;
}
.prose-invert code {
  color: #fbbf24;
  background-color: #374151;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}
.prose-invert pre {
  background-color: #1f2937;
  color: #e5e7eb;
}
.prose-invert blockquote {
  border-left-color: #4b5563;
  color: #9ca3af;
}
/* 全局滚动条样式 - 默认隐藏，hover时显示主题色 */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover {
  scrollbar-color: #BFBFBF transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
*:hover::-webkit-scrollbar-thumb {
  background-color: #BFBFBF;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: #BFBFBF;
}
.last\:mb-0:last-child {
  margin-bottom: 0px;
}
.hover\:border-gray-600:hover {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.hover\:bg-orange-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(194 65 12 / var(--tw-bg-opacity, 1));
}
.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:bg-yellow-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}
.hover\:bg-opacity-30:hover {
  --tw-bg-opacity: 0.3;
}
.hover\:from-blue-700:hover {
  --tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-purple-700:hover {
  --tw-gradient-to: #7e22ce var(--tw-gradient-to-position);
}
.hover\:text-blue-300:hover {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-200:hover {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover\:decoration-blue-300:hover {
  text-decoration-color: #93c5fd;
}
.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:bg-gray-700:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
