/* 基础样式 */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  /* 确保页面加载时的稳定性 */
  position: relative;
}

/* 导航栏样式 */
.main-nav {
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  left: 0;
  right: 0;
  /* 确保导航栏在页面加载时立即正确定位 */
  transform: translateZ(0);
  will-change: transform;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 3px;
}

.logo-text {
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-link:hover {
  color: #2563eb;
  transition: color 0.2s;
}

/* 导航菜单 */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #4b5563;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
  font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: block;
}

.mobile-menu-btn button {
  color: #4b5563;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn button:hover {
  color: #1f2937;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  padding: 0.5rem 0;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.75rem;
}

.mobile-nav-link {
  display: block;
  color: #4b5563;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: #2563eb;
}

.mobile-nav-link.active {
  color: #2563eb;
  background-color: #eff6ff;
  font-weight: 600;
}

/* 主要内容区域 */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.125rem 0.25rem 0.25rem 0.25rem;
  margin-top: 0;
}

.content-container {
  width: 100%;
  max-width: 56rem;
  text-align: center;
  margin: 0 auto; /* 确保水平居中 */
}

/* 确保输入框内的文本左对齐 */
.content-container .textarea-container,
.content-container .textarea-container textarea,
.content-container .textarea-container .rich-textarea {
  text-align: left;
}

.page-title {
  color: #1f2937;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

/* 功能按钮区域 */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.action-button {
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  color: #1f2937;
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background-color: #f3f4f6;
  transition: background-color 0.2s;
}

.action-button:active {
  transform: scale(0.95);
  transition: transform 0.15s;
}



/* 任务输入区域 */
.task-input-container {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.task-input-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.task-input-container:hover::before {
  opacity: 1;
}

.task-input-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.task-input-container.active {
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.task-input-container.active::before {
  opacity: 1;
}

.textarea-container {
  position: relative;
}

.textarea-container {
  position: relative;
  min-height: 4rem;
}

.textarea-container textarea,
.textarea-container .rich-textarea {
  width: 100%;
  height: 100%;
  max-width: 100%;
  color: #1f2937;
  font-size: 0.875rem;
  border: none;
  outline: none;
  resize: none;
  min-height: 3.5rem;
  max-height: 20rem;
  margin-bottom: 0.375rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  text-align: left;
}

/* 富文本输入框样式 */
.rich-textarea {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-y: auto;
  font-family: inherit;
  text-align: left;
  min-height: 4rem;
  max-height: 24rem;
  transition: all 0.2s ease;
}

.rich-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-textarea:empty:before {
  content: attr(placeholder);
  color: #9ca3af;
  pointer-events: none;
}

/* 文件名引用样式 - 已删除高亮效果 */

.file-info {
  position: absolute;
  right: 0.5rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #10b981;
  display: none;
}

.file-info span {
  font-size: 0.875rem;
  max-width: 6.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info button {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.25rem;
}

.file-info button:hover {
  color: #ef4444;
}

#fileUpload {
  display: none;
}

/* 文件上传按钮样式 */
#attachmentBtn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d1d5db;
  background: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#attachmentBtn:hover {
  background-color: #f3f4f6;
}

.input-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submit-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-assistant-btn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
}

.ai-assistant-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

.ai-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.control-buttons {
  display: flex;
  gap: 0.5rem; /* 增加按钮之间的间距 */
}

.control-buttons button {
  width: 2rem;
  height: 2rem;
  color: #9ca3af;
  background: none;
  border: 1px solid #d1d5db;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-buttons button:last-child {
  margin-right: 0; /* 移除最后一个按钮的右边距 */
}

.control-buttons button:hover {
  color: #6b7280;
  background-color: #f3f4f6;
}




#submitBtn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: none;
  color: #4b5563;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

}

#submitBtn:hover {
  background-color: #f3f4f6;
  transition: background-color 0.2s;
}

/* 结果区域 */
.result-container {
  margin-top: 1rem;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
  display: none;
  border: 1px solid #e2e8f0;
}

.result-container h3 {
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.result-container p {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.result-container a {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}

.result-container a:hover {
  color: #2563eb;
}

/* 加载状态 */
.loading-container {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  position: relative;
  z-index: 10;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}



/* 紧凑布局模式 - 当内容过多时自动启用 */
.compact-layout .main-content {
  padding: 0.0625rem 0.125rem 0.125rem 0.125rem;
}

.compact-layout .page-title {
  margin-top: 0.5rem;
  margin-bottom: 0.125rem;
}

.compact-layout .action-buttons {
  margin-bottom: 0.125rem;
}

.compact-layout .task-input-container {
  padding: 0.375rem;
}

.compact-layout .file-display-section {
  max-height: 220px; /* 从187px增加到220px，为2行文件提供更多空间 */
  min-height: 100px; /* 从90px增加到100px，保持与其他布局的一致性 */
  margin-bottom: 0.25rem;
  padding: 0.25rem;
}

.compact-layout .textarea-container textarea,
.compact-layout .rich-textarea {
  max-height: 3rem;
  margin-bottom: 0.25rem;
  min-height: 3rem;
}

.compact-layout .loading-container {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  min-height: 60px;
}





.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid #bfdbfe;
  border-top: 4px solid #3b82f6;
  border-radius: 9999px;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

.loading-container p {
  color: #4b5563;
  font-size: 0.875rem;
}

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

/* 旋转类 */
.rotate-neg-90 {
  transform: rotate(-90deg);
}

/* 函数页面样式 */
.functions-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem;
}

.functions-header {
  text-align: center;
  margin-bottom: 3rem;
}

.functions-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.functions-header .subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.function-category {
  margin-bottom: 2rem;
}

.function-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.function-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.functions-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.function-category {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.function-category h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.function-category i {
  margin-right: 0.75rem;
  color: #3b82f6;
}
.function-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.function-card {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.function-card:hover {
  background-color: #f3f4f6;
}

@media (max-width: 767px) {
  .function-card {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }
  
  .function-card > * {
    width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }
  
  .function-card h3,
  .function-card p {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }
  
  .function-example {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 0.5rem 0.75rem;
    margin: 0 0.75rem;
    width: calc(100% - 1.5rem);
    box-sizing: border-box;
  }
}

.function-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.function-card p {
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.function-example {
  background-color: #e5e7eb;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 1px solid transparent;
}

.function-example::after {
  content: '点击复制';
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.625rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.function-example:hover::after {
  opacity: 1;
}

.function-example:hover {
  border-color: #10b981;
  background-color: #f0f9ff;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
}

/* 使用说明页面样式 */
.instructions-container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem;
}

.instructions-header {
  text-align: center;
  margin-bottom: 3rem;
}

.instructions-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.instructions-header p {
  color: #4b5563;
  font-size: 1.125rem;
}

.instructions-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.instruction-step {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
}

.instruction-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.instruction-step p {
  color: #4b5563;
  margin-bottom: 1rem;
}

.examples {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.example {
  background-color: #f9fafb;
  padding: 0.75rem;
  border-left: 4px solid #3b82f6;
  border-radius: 0.25rem;
}

.example p {
  font-size: 0.875rem;
  color: #1f2937;
  margin: 0;
}

/* 功能特性 */
.features-section {
  margin-top: 3rem;
}

.features-section h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1f2937;
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feature-header i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.feature-header h3 {
  font-weight: 600;
  color: #1f2937;
}

.feature-card p {
  color: #4b5563;
  font-size: 0.875rem;
}

.blue-feature {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
}

.blue-feature i {
  color: #3b82f6;
}

.green-feature {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.green-feature i {
  color: #10b981;
}

.purple-feature {
  background-color: #f5f3ff;
  border: 1px solid #c4b5fd;
}

.purple-feature i {
  color: #8b5cf6;
}

.orange-feature {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
}

.orange-feature i {
  color: #f97316;
}

/* 快捷话术页面样式 */
.shortcuts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.shortcuts-header {
  text-align: center;
  margin-bottom: 2rem;
}

.shortcuts-header h1 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.shortcuts-header p {
  color: #6b7280;
  font-size: 1.125rem;
}

.shortcuts-category {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shortcuts-category h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shortcuts-category h2 i {
  color: #3b82f6;
}

.built-in-shortcuts,
.user-shortcuts {
  margin-bottom: 3rem;
}

.add-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.add-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.add-btn:active {
  transform: translateY(0);
}

/* 快捷话术卡片微交互 */
.shortcut-card {
  animation: cardFadeIn 0.5s ease-out;
}

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

.shortcut-card:nth-child(1) { animation-delay: 0.1s; }
.shortcut-card:nth-child(2) { animation-delay: 0.2s; }
.shortcut-card:nth-child(3) { animation-delay: 0.3s; }
.shortcut-card:nth-child(4) { animation-delay: 0.4s; }
.shortcut-card:nth-child(5) { animation-delay: 0.5s; }
.shortcut-card:nth-child(6) { animation-delay: 0.6s; }

/* 快捷话术按钮脉冲效果 */
.add-btn {
  position: relative;
  overflow: hidden;
}

.add-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add-btn:active::before {
  width: 300px;
  height: 300px;
}

/* 快捷话术标签动画 */
.shortcut-tag {
  position: relative;
  overflow: hidden;
}

.shortcut-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.shortcut-tag:hover::before {
  left: 100%;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* 确保桌面端显示4列 */
@media (min-width: 1024px) {
  .shortcuts-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1200px) {
  .shortcuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .shortcuts-container {
    padding: 1rem;
  }
  
  .shortcuts-header h1 {
    font-size: 1.875rem;
  }
  
  .shortcuts-category {
    padding: 1rem;
  }
  
  .shortcut-card {
    padding: 0.75rem;
    min-height: 90px;
  }
  
  .shortcut-text {
    font-size: 0.85rem;
  }
  
  .shortcut-desc {
    font-size: 0.75rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .shortcuts-container {
    padding: 0.75rem;
  }
  
  .shortcuts-header h1 {
    font-size: 1.5rem;
  }
  
  .shortcuts-header p {
    font-size: 1rem;
  }
  
  .shortcuts-category {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .shortcuts-category h2 {
    font-size: 1.25rem;
  }
  
  .shortcut-card {
    padding: 0.5rem;
    min-height: 80px;
  }
  
  .shortcut-text {
    font-size: 0.8rem;
  }
  
  .shortcut-desc {
    font-size: 0.7rem;
  }
  
  .shortcuts-search input {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    font-size: 0.8rem;
  }
  
  .shortcuts-search-icon {
    left: 0.5rem;
    font-size: 0.875rem;
  }
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

/* 确保话术编辑模态框正确显示 */
#shortcutEditModal {
  z-index: 1001;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-form-group {
  margin-bottom: 1.5rem;
}

.modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

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

.modal-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

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

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.modal-btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.modal-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.modal-btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.modal-btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
}

.modal-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.modal-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}

#saveEditBtn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

#saveEditBtn:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

#cancelEditBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

#cancelEditBtn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.blue-icon {
  color: #3b82f6;
}

.green-icon {
  color: #10b981;
}

.purple-icon {
  color: #8b5cf6;
}

.orange-icon {
  color: #f97316;
}

.red-icon {
  color: #ef4444;
}

.shortcut-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shortcut-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shortcut-card:hover::before {
  opacity: 1;
}

.shortcut-card::after {
  content: '点击复制';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.shortcut-card:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}

.shortcut-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.shortcut-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.shortcut-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.shortcut-card-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shortcut-card:hover .shortcut-card-actions {
  opacity: 1;
}

.shortcut-action-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.shortcut-action-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.shortcut-action-btn.edit:hover {
  color: #3b82f6;
}

.shortcut-action-btn.delete:hover {
  color: #ef4444;
}

.shortcut-text {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.shortcut-desc {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  word-wrap: break-word;
}

.shortcut-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.shortcut-tag {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.shortcut-tag.built-in {
  background: linear-gradient(135deg, #10b981, #059669);
}

.shortcut-tag.user {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.shortcut-time {
  color: #9ca3af;
  font-size: 0.75rem;
}

.blue-hover:hover {
  background-color: #eff6ff;
}

.green-hover:hover {
  background-color: #ecfdf5;
}

.purple-hover:hover {
  background-color: #f5f3ff;
}

.orange-hover:hover {
  background-color: #fff7ed;
}

.red-hover:hover {
  background-color: #fef2f2;
}

/* 使用提示 */
.usage-tips {
  margin-top: 3rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.usage-tips h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.usage-tips i {
  margin-right: 0.5rem;
}

.usage-tips ul {
  color: #1e40af;
  list-style-type: none;
  padding-left: 0;
}

.usage-tips li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* 复制提示 */
.copy-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 20px;
  border-radius: 0.75rem;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  display: block;
  animation: toastSlideIn 0.3s ease-out;
  max-width: 300px;
  word-wrap: break-word;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-toast.fade-out {
  animation: toastSlideOut 0.3s ease-in;
}

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

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

/* 快捷话术加载动画 */
.shortcuts-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: #6b7280;
}

.shortcuts-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: shortcutsSpin 1s linear infinite;
  margin-right: 0.75rem;
}

@keyframes shortcutsSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 快捷话术空状态 */
.shortcuts-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.shortcuts-empty-icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.shortcuts-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.shortcuts-empty p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* 快捷话术搜索框 */
.shortcuts-search {
  margin-bottom: 1.5rem;
  position: relative;
}

.shortcuts-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: white;
}

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

.shortcuts-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

/* 深色模式下的搜索框 */
.dark-mode .shortcuts-search input {
  background-color: #404040;
  border: 1px solid #555;
  color: #e5e5e5;
}

.dark-mode .shortcuts-search input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .shortcuts-search-icon {
  color: #6b7280;
}

/* 深色模式下的空状态 */
.dark-mode .shortcuts-empty-icon {
  color: #4b5563;
}

.dark-mode .shortcuts-empty h3 {
  color: #e5e5e5;
}

.dark-mode .shortcuts-empty p {
  color: #d1d5db;
}

.dark-mode .shortcuts-loading {
  color: #9ca3af;
}

.dark-mode .shortcuts-loading-spinner {
  border: 3px solid #4b5563;
  border-top: 3px solid #60a5fa;
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .main-content {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
  }
  
  .content-container {
    padding: 0 5px !important;
  }
  
  .page-title {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .action-buttons {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .action-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .task-input-container {
    width: 100%;
    padding: 1rem;
    margin: 0 auto 1rem auto;
    box-sizing: border-box;
  }
  
  .textarea-container textarea {
    min-height: 3rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .input-controls {
    margin-top: 1rem;
    gap: 0.75rem;
  }
  
  .control-buttons {
    gap: 0.75rem;
  }
  
  .control-buttons button {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  #attachmentBtn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .ai-assistant-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  #submitBtn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .submit-section {
    gap: 0.75rem;
  }
  
  .file-display-section {
    max-height: 210px; /* 从180px增加到210px，为2行文件提供更多空间 */
    min-height: 100px; /* 从90px增加到100px，保持与其他屏幕尺寸的一致性 */
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .file-display-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .file-card {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .file-card-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .file-card-icon i {
    font-size: 0.75rem;
  }
  
  .file-card-name {
    font-size: 0.625rem;
  }
  
  .file-card-meta {
    font-size: 0.5rem;
  }
  
  /* 移动端加载容器优化 */
  .loading-container {
    padding: 0.75rem;
    min-height: 70px;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 0.75rem 0.75rem 1.25rem 0.75rem;
  }
  
  .content-container {
    padding: 0 8px !important;
  }
  
  .page-title {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .action-buttons {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .action-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .textarea-container textarea {
    width: 100%;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    min-height: 3.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .task-input-container {
    margin: 0 auto 1rem auto;
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
  }
  
  .input-controls {
    margin-top: 1.25rem;
    gap: 1rem;
  }
  
  .control-buttons {
    gap: 1rem;
  }
  
  .control-buttons button {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  #attachmentBtn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .ai-assistant-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  #submitBtn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .submit-section {
    gap: 1rem;
  }
  
  .file-display-section {
    max-height: 240px; /* 从207px增加到240px，为2行文件提供更多空间 */
    min-height: 110px; /* 从100px增加到110px，保持与桌面端的一致性 */
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .function-grid {
    grid-template-columns: 1fr !important;
  }
  
  .file-display-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .file-card {
    padding: 0.75rem;
    min-width: auto;
    max-width: none;
    gap: 0.75rem;
  }
  
  .file-card-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .file-card-icon i {
    font-size: 0.875rem;
  }
  
  .file-card-name {
    font-size: 0.75rem;
  }
  
  .file-card-meta {
    font-size: 0.625rem;
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .function-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-menu {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .page-title {
    font-size: 2.25rem;
    margin-top: 2rem;
  }
  
  .action-buttons {
    gap: 0.75rem;
  }
}

/* 中等屏幕优化 */
@media (min-width: 1024px) {
  .main-content {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  .action-buttons {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .task-input-container {
    padding: 1.25rem;
  }
  
  .file-display-section {
    max-height: 380px; /* 从353px增加到380px，为2行文件提供更多空间 */
  }
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
  .main-content {
    padding: 2rem;
  }
  
  .page-title {
    font-size: 3rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
  
  .action-buttons {
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }
  
  .task-input-container {
    padding: 1.5rem;
  }
  
  .file-display-section {
    max-height: 450px; /* 从420px增加到450px，为2行文件提供更多空间 */
  }
}


/* 个人中心页面专用样式 */
/* ====================== */
.profile-container {
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.profile-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.profile-subtitle {
  color: #4b5563;
  font-size: 1.125rem;
}

.profile-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.profile-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.profile-section-title i {
  margin-right: 0.5rem;
}

.profile-avatar {
  width: 6rem;
  height: 6rem;
  background-color: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.profile-avatar i {
  font-size: 1.75rem;
  color: #3b82f6;
}

.profile-form-group {
  margin-bottom: 1rem;
}

.profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-form-row .profile-form-group {
  margin-bottom: 0;
}

.profile-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.profile-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.profile-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #dbeafe;
  color: #1e40af;
}

.profile-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1.5rem;
}

.profile-btn:hover {
  background-color: #2563eb;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.profile-stat-item {
  text-align: center;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.profile-stat-label {
  font-size: 0.875rem;
  color: #4b5563;
}

.profile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.profile-list-link {
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-top: 1rem;
}

.profile-list-link:hover {
  color: #2563eb;
}

.profile-toggle {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
}

.profile-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .4s;
  border-radius: 9999px;
}

.profile-toggle-slider:before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.25rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.profile-toggle input:checked + .profile-toggle-slider {
  background-color: #3b82f6;
}

.profile-toggle input:checked + .profile-toggle-slider:before {
  transform: translateX(1.125rem);
}

.profile-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.profile-setting-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.profile-setting-description {
  font-size: 0.75rem;
  color: #6b7280;
}

.profile-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.profile-security-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.profile-security-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.profile-security-description {
  font-size: 0.75rem;
  color: #6b7280;
}

.profile-list-content {
  display: flex;
  align-items: center;
}

.profile-list-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.profile-list-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.profile-text {
  font-size: 0.875rem;
  color: #6b7280;
}

/* 新增颜色样式类 */
.blue-text {
  color: #3b82f6;
}

.green-text {
  color: #10b981;
}

.purple-text {
  color: #8b5cf6;
}

.orange-text {
  color: #f97316;
}

.red-text {
  color: #ef4444;
}

.gray-icon {
  color: #6b7280;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.success-badge {
  background-color: #d1fae5;
  color: #065f46;
}



/* 聊天助手样式 */
.chat-container {
  max-width: 800px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
}

.chat-messages {
  padding: 16px;
  background: #f9f9f9;
  height: 400px;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  line-height: 1.5;
}

.ai-message {
  background: white;
  border-bottom-left-radius: 4px;
  margin-right: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.4rem 0.6rem;
  line-height: 1.3;
  min-height: auto;
  height: auto;
  max-width: 80%;
  width: fit-content;
  margin-bottom: 0.5rem; /* 添加底部间距 */
}

.ai-message p {
  margin-bottom: 1rem;
}

.ai-message pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.ai-message code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: rgba(175,184,193,0.2);
  border-radius: 6px;
  padding: 0.2em 0.4em;
  font-size: 85%;
}

.ai-message table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.ai-message table th,
.ai-message table td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
}

.ai-message table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.ai-message table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.ai-message blockquote {
  border-left: 4px solid #dfe2e5;
  color: #6a737d;
  padding: 0 1em;
  margin: 1rem 0;
}

.user-message {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  line-height: 1.3;
  min-height: auto;
  height: auto;
  max-width: 80%;
  width: fit-content;
  margin-bottom: 0.5rem; /* 添加底部间距 */
}

/* 移除.message-time样式 */

.chat-input {
  display: flex;
  padding: 12px;
  background: white;
  border-top: 1px solid #eee;
}

#messageInput {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 24px;
  resize: none;
  outline: none;
  transition: border 0.3s;
  font-size: 16px;
}

#messageInput:focus {
  border-color: #a777e3;
}

#sendButton {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  border-radius: 24px;
  padding: 0 20px;
  margin-left: 12px;
  cursor: pointer;
  transition: opacity 0.3s;
}

#sendButton:hover {
  opacity: 0.9;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: white;
  border-bottom: 1px solid #eee;
}

.suggestion-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.suggestion-btn:hover {
  background: #e5e7eb;
}

/* 加载指示器 */
.typing-indicator {
  display: flex;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  margin-bottom: 16px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

@media (min-width: 768px) {
  .profile-content {
    max-width: 900px;
  }
  
  .profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .profile-content {
    max-width: 1000px;
  }
}

/* 多文件处理样式 */
.file-list {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.file-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

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

.file-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.file-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.file-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

.file-item-name i {
  color: #10b981;
  font-size: 1.1rem;
}

.file-name {
  font-size: 0.95rem;
  word-break: break-all;
}

/* 文件名引用样式 - 已删除 */

/* 文件展示区域样式 - 紧凑深色主题 */
.file-display-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem; /* 增加内边距 */
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-height: 350px !important; /* 增大2行文档的高度，使用!important确保优先级 */
  min-height: 65px; /* 增大1行文档的高度，从55px增加到65px */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.file-display-section::-webkit-scrollbar {
  width: 6px;
}

.file-display-section::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.file-display-section::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.file-display-section::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.file-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.125rem; /* 减小底部间距 */
  padding-bottom: 0.125rem; /* 减小底部内边距 */
  border-bottom: 1px solid #e2e8f0;
}

.file-display-title {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.file-display-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.125rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-display-remove-btn:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.file-display-remove-btn i {
  font-size: 0.75rem;
}

.file-display-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.125rem; /* 减小网格间距 */
}

.file-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
  position: relative;
  min-width: 0;
  max-width: none;
  min-height: 1.75rem; /* 减小卡片高度 */
}

.file-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-card-icon {
  width: 1.125rem; /* 减小图标尺寸 */
  height: 1.125rem; /* 减小图标尺寸 */
  background: #fbbf24;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-card-icon i {
  color: #1f2937;
  font-size: 0.5625rem; /* 减小图标字体大小 */
}

.file-card-content {
  flex: 1;
  min-width: 0;
}

.file-card-name {
  color: #1f2937;
  font-size: 0.625rem; /* 减小文件名字体大小 */
  font-weight: 500;
  margin-bottom: 0.0625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-meta {
  color: #64748b;
  font-size: 0.5rem; /* 减小元信息字体大小 */
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}



.file-card-remove {
  position: absolute;
  top: 0.125rem; /* 调整位置 */
  right: 0.125rem; /* 调整位置 */
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  width: 1rem; /* 减小删除按钮尺寸 */
  height: 1rem; /* 减小删除按钮尺寸 */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem; /* 减小删除按钮字体大小 */
  transition: all 0.2s;
}

.file-card-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* 文件操作按钮 */
.file-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  justify-content: center;
}





.file-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.6rem;
}

.file-size {
  color: #6b7280;
  font-size: 0.8rem;
  background-color: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.file-number {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 500;
}

.file-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.file-item-remove:hover {
  background-color: #fef2f2;
}

.file-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.requirement-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
}

.requirement-label i {
  color: #2563eb;
}

.file-item-requirement {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 3rem;
  outline: none;
  transition: all 0.2s;
  background-color: #f9fafb;
}

.file-item-requirement:focus {
  border-color: #2563eb;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.file-item-requirement::placeholder {
  color: #9ca3af;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.file-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-upload-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.file-list-title i {
  color: #2563eb;
  font-size: 1.1rem;
}

.file-count {
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.file-list-description {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #eff6ff;
  border-radius: 0.375rem;
  border-left: 4px solid #2563eb;
}

.file-list-description p {
  margin: 0;
  color: #1e40af;
  font-size: 0.875rem;
  line-height: 1.4;
}

.add-file-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.add-file-btn:hover {
  background-color: #1d4ed8;
}

.batch-upload-btn {
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.batch-upload-btn:hover {
  background-color: #059669;
}

@media (max-width: 767px) {
  .file-item {
    padding: 1rem;
  }
  
  .file-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .file-item-info {
    width: 100%;
  }
  
  .file-item-meta {
    margin-left: 0;
    gap: 0.5rem;
  }
  
  .file-name {
    font-size: 0.875rem;
  }
  
  .file-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .file-list-title {
    width: 100%;
    justify-content: space-between;
  }
  
  .file-upload-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .add-file-btn,
  .batch-upload-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 认证页面样式 */
.auth-container {
  background-color: #f8fafc;
  min-height: 100vh;
}

.auth-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
}

.auth-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-help {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.auth-feedback {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.auth-feedback-success {
  color: #059669;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
}

.auth-feedback-error {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.auth-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.auth-checkbox-text {
  user-select: none;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn-primary {
  background-color: #2563eb;
  color: white;
}

.auth-btn-primary:hover {
  background-color: #1d4ed8;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e7eb;
}

.auth-divider span {
  background-color: white;
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  text-align: center;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* 个人中心新增样式 */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-actions-row .profile-action-btn {
  flex: 1;
  min-width: 120px;
}

/* 用户信息卡片内的后台管理按钮样式 */
.profile-setting-item .profile-actions-row {
  margin-top: 0.5rem;
}

.profile-setting-item .profile-actions-row .profile-action-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  width: auto;
  min-width: 120px;
}

.profile-action-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dc2626;
  border-radius: 0.375rem;
  background-color: white;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-action-btn:hover {
  background-color: #dc2626;
  color: white;
}

.profile-admin-btn {
  background-color: #059669;
  border-color: #059669;
  color: white;
  text-decoration: none;
}

.profile-admin-btn:hover {
  background-color: #047857;
  border-color: #047857;
  color: white;
}

@media (max-width: 767px) {
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .auth-main {
    padding: 1rem;
  }
  
  .profile-actions-row {
    flex-direction: column;
  }
  
  .profile-actions-row .profile-action-btn {
    width: 100%;
    min-width: auto;
  }
  
  .profile-form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* 导航栏用户菜单样式 */
.nav-user-menu,
.nav-auth-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.nav-logout-btn:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.mobile-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  color: #4b5563;
  transition: all 0.2s;
}

.mobile-logout-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

/* 登录模态框样式 */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-modal-content {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.login-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.login-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.login-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.login-modal-body {
  padding: 1.5rem;
}

.login-modal-body p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.login-modal-btn-primary {
  background-color: #2563eb;
  color: white;
}

.login-modal-btn-primary:hover {
  background-color: #1d4ed8;
}

.login-modal-btn-secondary {
  background-color: white;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.login-modal-btn-secondary:hover {
  background-color: #eff6ff;
}

@media (min-width: 768px) {
  .login-modal-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* 使用指南区域样式 */
.usage-guide-container {
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
}

.usage-guide-header {
  text-align: center;
  margin-bottom: 2rem;
}

.usage-guide-header h2 {
  color: #1f2937;
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.usage-guide-header p {
  color: #6b7280;
  font-size: 1.125rem;
}

.usage-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.usage-guide-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.usage-guide-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.usage-guide-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.usage-guide-icon i {
  color: white;
  font-size: 1rem;
}

.usage-guide-card h3 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.usage-guide-content p {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.usage-guide-content p:last-child {
  margin-bottom: 0;
}

.usage-guide-content strong {
  color: #1f2937;
  font-weight: 600;
}

/* 用户反馈区域样式 */
.feedback-container {
  max-width: 800px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
}

.feedback-header {
  text-align: center;
  margin-bottom: 2rem;
}

.feedback-header h2 {
  color: #1f2937;
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.feedback-header p {
  color: #6b7280;
  font-size: 1.125rem;
}

.feedback-form {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feedback-form-group {
  margin-bottom: 1.5rem;
}

.feedback-form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.feedback-select,
.feedback-input,
.feedback-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.feedback-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.feedback-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-btn-primary {
  background: #3b82f6;
  color: white;
}

.feedback-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.feedback-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.feedback-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* 个人中心用户反馈样式 */
.profile-card .feedback-form {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  margin-top: 1rem;
}

.profile-card .feedback-form-group {
  margin-bottom: 1.25rem;
}

.profile-card .feedback-form-group label {
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.profile-card .feedback-select,
.profile-card .feedback-input,
.profile-card .feedback-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  background: white;
}

.profile-card .feedback-select:focus,
.profile-card .feedback-input:focus,
.profile-card .feedback-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-card .feedback-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.profile-card .feedback-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.profile-card .feedback-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card .feedback-btn-primary {
  background: #3b82f6;
  color: white;
}

.profile-card .feedback-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.profile-card .feedback-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.profile-card .feedback-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* 深色模式下的用户反馈样式 */
.dark-mode .profile-card .feedback-form-group label {
  color: #d1d5db;
}

.dark-mode .profile-card .feedback-select,
.dark-mode .profile-card .feedback-input,
.dark-mode .profile-card .feedback-textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark-mode .profile-card .feedback-select:focus,
.dark-mode .profile-card .feedback-input:focus,
.dark-mode .profile-card .feedback-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .profile-card .feedback-btn-secondary {
  background: #4b5563;
  color: #f9fafb;
}

.dark-mode .profile-card .feedback-btn-secondary:hover {
  background: #6b7280;
}

/* 修改个人信息图标样式 */
.profile-edit-icon {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.profile-edit-icon:hover {
  background-color: #f3f4f6;
  color: #3b82f6;
}

/* 修改个人信息模态框样式 */
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.edit-modal-content {
  background: white;
  border-radius: 0.75rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.edit-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.edit-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.edit-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.edit-modal-body {
  padding: 1.5rem;
}

.edit-form-group {
  margin-bottom: 1.5rem;
}

.edit-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.edit-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

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

.edit-feedback {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.edit-feedback-success {
  color: #059669;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
}

.edit-feedback-error {
  color: #dc2626;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

/* 确保验证码输入框正确显示 */
#editVerificationGroup {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.edit-phone-verification-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.edit-phone-input {
  flex: 1;
}

.edit-send-code-btn {
  white-space: nowrap;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.edit-help {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.edit-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.edit-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-btn-primary {
  background: #3b82f6;
  color: white;
}

.edit-btn-primary:hover {
  background: #2563eb;
}

.edit-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.edit-btn-secondary:hover {
  background: #e5e7eb;
}

/* 深色模式下的模态框样式 */
.dark-mode .edit-modal-content {
  background: #1f2937;
}

.dark-mode .edit-modal-header {
  border-bottom-color: #374151;
}

.dark-mode .edit-modal-header h3 {
  color: #f9fafb;
}

.dark-mode .edit-form-group label {
  color: #d1d5db;
}

.dark-mode .edit-input {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark-mode .edit-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .edit-btn-secondary {
  background: #4b5563;
  color: #f9fafb;
}

.dark-mode .edit-btn-secondary:hover {
  background: #6b7280;
}

/* 深色模式下的修改图标样式 */
.dark-mode .profile-edit-icon {
  color: #9ca3af;
}

.dark-mode .profile-edit-icon:hover {
  background-color: #374151;
  color: #60a5fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .usage-guide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .usage-guide-card {
    padding: 1rem;
  }
  
  .usage-guide-card h3 {
    font-size: 1.125rem;
  }
  
  .usage-guide-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.5rem;
  }
  
  .usage-guide-icon i {
    font-size: 0.875rem;
  }
  
  .feedback-form {
    padding: 1.5rem;
  }
  
  .feedback-form-actions {
    flex-direction: column;
  }
  
  .feedback-btn {
    width: 100%;
    justify-content: center;
  }
  
  .profile-card .feedback-form-actions {
    flex-direction: column;
  }
  
  .profile-card .feedback-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .usage-guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* AI助手弹出卡片样式 */
.assistant-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.assistant-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: assistantSlideIn 0.3s ease-out;
}

@keyframes assistantSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.assistant-header {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assistant-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-title i {
  font-size: 20px;
}

.assistant-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.assistant-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.assistant-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  max-height: 400px;
}

.assistant-message {
  max-width: 85%;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  line-height: 1.5;
  word-wrap: break-word;
}

.assistant-message.ai-message {
  background: white;
  border-bottom-left-radius: 4px;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333;
}

.assistant-message.user-message {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.assistant-message.ai-message p {
  margin-bottom: 1rem;
}

.assistant-message.ai-message pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid #e1e4e8;
}

.assistant-message.ai-message code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 6px;
  padding: 0.2em 0.4em;
  font-size: 85%;
}

.assistant-message.ai-message table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.assistant-message.ai-message table th,
.assistant-message.ai-message table td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
  text-align: left;
}

.assistant-message.ai-message table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.assistant-message.ai-message table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.assistant-message.ai-message blockquote {
  border-left: 4px solid #dfe2e5;
  color: #6a737d;
  padding: 0 1em;
  margin: 1rem 0;
  font-style: italic;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  margin-top: 8px;
}

.assistant-suggestion-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.assistant-suggestion-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.assistant-input {
  display: flex;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e5e7eb;
  gap: 12px;
  align-items: flex-end;
}

#assistantMessageInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  font-size: 14px;
  line-height: 1.4;
  max-height: 120px;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
}

#assistantMessageInput:focus {
  border-color: #6e8efb;
  box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.1);
}

#assistantSendBtn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#assistantSendBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(110, 142, 251, 0.3);
}

#assistantSendBtn:active {
  transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .assistant-modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 20px;
  }
  
  .assistant-messages {
    max-height: 300px;
    padding: 16px;
  }
  
  .assistant-message {
    max-width: 90%;
    font-size: 14px;
  }
  
  .assistant-suggestions {
    gap: 6px;
  }
  
  .assistant-suggestion-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .assistant-input {
    padding: 12px 16px;
  }
  
  #assistantMessageInput {
    font-size: 16px; /* 防止iOS缩放 */
  }
}

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

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

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

.assistant-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}





/* 代码展示 */
.code-display {
  padding: 20px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.code-header h4 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.code-controls {
  display: flex;
  gap: 8px;
}

.code-btn {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.code-btn:active {
  background: #e5e7eb;
}

.code-content {
  background: #1f2937;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}

.generated-code {
  color: #f9fafb;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.generated-code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.generated-code::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 3px;
}

.generated-code::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 3px;
}

.generated-code::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}




/* 深色模式样式 */
.dark-mode {
  background-color: #1a1a1a;
  color: #e5e5e5;
}

.dark-mode .main-nav {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.dark-mode .logo-link {
  color: #e5e5e5;
}

.dark-mode .logo-link:hover {
  color: #60a5fa;
}

.dark-mode .nav-link {
  color: #d1d5db;
}

.dark-mode .nav-link:hover {
  color: #60a5fa;
}

.dark-mode .nav-link.active {
  color: #60a5fa;
  background-color: #1e3a8a;
}

.dark-mode .mobile-menu-btn button {
  color: #d1d5db;
}

.dark-mode .mobile-menu {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode .mobile-nav-link {
  color: #d1d5db;
}

.dark-mode .mobile-nav-link:hover {
  color: #60a5fa;
}

.dark-mode .profile-main {
  background-color: #1a1a1a;
}

.dark-mode .profile-card {
  background-color: #2d2d2d;
  border: 1px solid #404040;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark-mode .profile-section-title {
  color: #e5e5e5;
}

.dark-mode .profile-label {
  color: #d1d5db;
}

.dark-mode .profile-input {
  background-color: #404040;
  border: 1px solid #555;
  color: #e5e5e5;
}

.dark-mode .profile-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .profile-text {
  color: #d1d5db;
}

.dark-mode .profile-toggle-slider {
  background-color: #404040;
}

.dark-mode .profile-toggle-slider:before {
  background-color: #d1d5db;
}

.dark-mode .profile-toggle input:checked + .profile-toggle-slider {
  background-color: #60a5fa;
}

.dark-mode .profile-toggle input:checked + .profile-toggle-slider:before {
  background-color: #ffffff;
}

.dark-mode .profile-action-btn {
  background-color: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .profile-action-btn:hover {
  background-color: #555;
  border-color: #60a5fa;
}

.dark-mode .profile-admin-btn {
  background-color: #059669;
  border-color: #059669;
  color: white;
}

.dark-mode .profile-admin-btn:hover {
  background-color: #047857;
  border-color: #047857;
  color: white;
}

.dark-mode .profile-stat-value {
  color: #e5e5e5;
}

.dark-mode .profile-stat-label {
  color: #d1d5db;
}

.dark-mode .blue-text {
  color: #60a5fa;
}

.dark-mode .green-text {
  color: #34d399;
}

.dark-mode .purple-text {
  color: #a78bfa;
}

.dark-mode .orange-text {
  color: #fbbf24;
}

.dark-mode .red-text {
  color: #f87171;
}

.dark-mode .blue-icon {
  color: #60a5fa;
}

.dark-mode .green-icon {
  color: #34d399;
}

.dark-mode .purple-icon {
  color: #a78bfa;
}

.dark-mode .orange-icon {
  color: #fbbf24;
}

.dark-mode .red-icon {
  color: #f87171;
}

.dark-mode .gray-icon {
  color: #9ca3af;
}

/* 深色模式下的其他页面元素 */
.dark-mode .main-content {
  background-color: transparent;
}

.dark-mode .content-container {
  background-color: transparent;
  border: none;
}

.dark-mode .page-title {
  color: #e5e5e5;
}

.dark-mode .action-button {
  background-color: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .action-button:hover {
  background-color: #555;
  border-color: #60a5fa;
}

.dark-mode .textarea-container textarea,
.dark-mode .rich-textarea {
  background-color: #374151;
  border: 1px solid #4b5563;
  color: #e5e5e5;
}

.dark-mode .textarea-container textarea:focus,
.dark-mode .rich-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .file-info {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .file-info span {
  color: #d1d5db;
}

.dark-mode .file-info button {
  background-color: #555;
  color: #e5e5e5;
}

.dark-mode .file-info button:hover {
  background-color: #666;
}

.dark-mode #submitBtn {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode #submitBtn:hover {
  background-color: #1d4ed8;
}

.dark-mode .result-container {
  background-color: #374151;
  border: 1px solid #4b5563;
}

.dark-mode .result-container h3 {
  color: #e5e5e5;
}

.dark-mode .result-container p {
  color: #d1d5db;
}

.dark-mode .result-container a {
  color: #60a5fa;
}

.dark-mode .result-container a:hover {
  color: #93c5fd;
}

.dark-mode .loading-container {
  background-color: #374151;
  border: 1px solid #4b5563;
}

.dark-mode .loading-container p {
  color: #e5e5e5;
}

/* 深色模式下的文件展示区域 */
.dark-mode .file-display-section {
  background: transparent;
  border: 1px solid #555;
}

.dark-mode .file-display-header {
  border-bottom: 1px solid #555;
}

.dark-mode .file-display-title {
  color: #d1d5db;
}

.dark-mode .file-display-remove-btn {
  color: #94a3b8;
}

.dark-mode .file-display-remove-btn:hover {
  background: #404040;
  color: #ef4444;
}

.dark-mode .file-card {
  background: transparent;
  border: 1px solid #555;
}

.dark-mode .file-card:hover {
  border-color: #666;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-mode .file-card-name {
  color: #e5e5e5;
}

.dark-mode .file-card-meta {
  color: #9ca3af;
}

/* 深色模式下的任务输入容器 */
.dark-mode .task-input-container {
  background-color: #1f2937;
  border-color: #374151;
}

.dark-mode .task-input-container:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.dark-mode .task-input-container.active {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.dark-mode .task-input-container.active {
  border: 2px solid #60a5fa;
  box-shadow: 0 2px 5px 0 rgba(96, 165, 250, 0.2);
}

/* 深色模式下的聊天界面 */
.dark-mode .chat-container {
  background-color: #1a1a1a;
}

.dark-mode .chat-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.dark-mode .chat-messages {
  background-color: #1a1a1a;
}

.dark-mode .ai-message {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode .user-message {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode .chat-input {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode #messageInput {
  background-color: #404040;
  color: #e5e5e5;
}

.dark-mode #messageInput:focus {
  border-color: #60a5fa;
}

.dark-mode #sendButton {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode #sendButton:hover {
  background-color: #1d4ed8;
}

/* 深色模式下的认证页面 */
.dark-mode .auth-container {
  background-color: #1a1a1a;
}

.dark-mode .auth-card {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode .auth-title {
  color: #e5e5e5;
}

.dark-mode .auth-subtitle {
  color: #d1d5db;
}

.dark-mode .auth-label {
  color: #d1d5db;
}

.dark-mode .auth-input {
  background-color: #404040;
  border: 1px solid #555;
  color: #e5e5e5;
}

.dark-mode .auth-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .auth-btn {
  background-color: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .auth-btn:hover {
  background-color: #555;
}

.dark-mode .auth-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode .auth-btn-primary:hover {
  background-color: #1d4ed8;
}

.dark-mode .auth-link {
  color: #60a5fa;
}

.dark-mode .auth-link:hover {
  color: #93c5fd;
}

/* 深色模式下的其他组件 */
.dark-mode .function-card,
.dark-mode .shortcut-card,
.dark-mode .usage-guide-card,
.dark-mode .feature-card {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .function-card:hover,
.dark-mode .shortcut-card:hover,
.dark-mode .usage-guide-card:hover,
.dark-mode .feature-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark-mode .function-card h3,
.dark-mode .shortcut-card h3,
.dark-mode .usage-guide-card h3,
.dark-mode .feature-card h3 {
  color: #ffffff;
}

.dark-mode .function-card p,
.dark-mode .shortcut-card p,
.dark-mode .usage-guide-card p,
.dark-mode .feature-card p {
  color: #ffffff;
}

/* 深色模式下的使用指南图标 */
.dark-mode .usage-guide-icon {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.dark-mode .usage-guide-icon i {
  color: #ffffff;
}

/* 深色模式下的使用指南标题 */
.dark-mode .usage-guide-header h2 {
  color: #ffffff;
}

.dark-mode .usage-guide-header p {
  color: #ffffff;
}

/* 深色模式下的使用指南内容强调文字 */
.dark-mode .usage-guide-content strong {
  color: #ffffff;
}

/* 深色模式下的模态框 */
.dark-mode .login-modal,
.dark-mode .assistant-modal {
  background-color: rgba(0, 0, 0, 0.8);
}

.dark-mode .login-modal-content,
.dark-mode .assistant-modal-content {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode .login-modal-header,
.dark-mode .assistant-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.dark-mode .login-modal-header h3,
.dark-mode .assistant-title {
  color: #e5e5e5;
}

.dark-mode .login-modal-close,
.dark-mode .assistant-close-btn {
  color: #d1d5db;
}

.dark-mode .login-modal-close:hover,
.dark-mode .assistant-close-btn:hover {
  color: #e5e5e5;
}

.dark-mode .login-modal-body {
  color: #d1d5db;
}

.dark-mode .login-modal-btn {
  background-color: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .login-modal-btn:hover {
  background-color: #555;
}

.dark-mode .login-modal-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode .login-modal-btn-primary:hover {
  background-color: #1d4ed8;
}

/* 深色模式下的反馈表单 */
.dark-mode .feedback-container {
  background-color: transparent;
}

.dark-mode .feedback-header h2 {
  color: #ffffff;
}

.dark-mode .feedback-header p {
  color: #ffffff;
}

.dark-mode .feedback-form-group label {
  color: #ffffff;
}

.dark-mode .feedback-select,
.dark-mode .feedback-textarea,
.dark-mode .feedback-input {
  background-color: transparent;
  border: 1px solid #555;
  color: #ffffff;
}

.dark-mode .feedback-select:focus,
.dark-mode .feedback-textarea:focus,
.dark-mode .feedback-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .feedback-btn {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #555;
}

.dark-mode .feedback-btn:hover {
  background-color: #555;
}

.dark-mode .feedback-btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.dark-mode .feedback-btn-primary:hover {
  background-color: #1d4ed8;
}

/* 深色模式下的反馈表单背景 */
.dark-mode .feedback-form {
  background: transparent;
  border: 1px solid #555;
}

/* 深色模式下的使用说明页面 */
.dark-mode .instructions-header h1 {
  color: #ffffff;
}

.dark-mode .instructions-header p {
  color: #ffffff;
}

.dark-mode .instruction-step {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .instruction-step h3 {
  color: #ffffff;
}

.dark-mode .instruction-step p {
  color: #ffffff;
}

.dark-mode .example {
  background-color: transparent;
  border-left: 4px solid #60a5fa;
}

.dark-mode .example p {
  color: #ffffff;
}

.dark-mode .features-section h2 {
  color: #ffffff;
}

.dark-mode .feature-card {
  background-color: transparent;
  border: 1px solid #555;
}

/* 深色模式下的注意事项 */
.dark-mode .usage-tips {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .usage-tips h3 {
  color: #ffffff;
}

.dark-mode .usage-tips ul {
  color: #ffffff;
}

.dark-mode .usage-tips li {
  color: #ffffff;
}

/* 自定义话术样式 */
.user-shortcut-category {
  margin-bottom: 2rem;
  transition: margin-bottom 0.3s ease;
}

/* 折叠状态下的分类间距控制 */
.user-shortcut-category.collapsed {
  margin: 0 !important;
  padding: 0 !important;
}

/* 确保折叠的分类之间完全挨着 */
.user-shortcut-category.collapsed + .user-shortcut-category.collapsed {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 只保留分类标题的间距 */
.user-shortcut-category.collapsed .category-header {
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* 强制覆盖所有可能的间距 */
.user-shortcut-category.collapsed {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 确保折叠分类之间无任何间距 */
.user-shortcut-category.collapsed + .user-shortcut-category.collapsed {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.user-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-category-title i {
  color: #8b5cf6;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-shortcut-category:hover .category-actions {
  opacity: 1;
}

.category-action-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.category-action-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.category-action-btn.edit:hover {
  color: #3b82f6;
}

.category-action-btn.delete:hover {
  color: #ef4444;
}

.user-hover:hover {
  background-color: #f5f3ff;
}

/* 深色模式下的快捷话术页面 */
.dark-mode .shortcuts-header h1 {
  color: #ffffff;
}

.dark-mode .shortcuts-header p {
  color: #ffffff;
}

.dark-mode .shortcuts-category {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .shortcuts-category h2 {
  color: #ffffff;
}

.dark-mode .shortcuts-category h2 i {
  color: #60a5fa;
}

.dark-mode .user-category-title {
  color: #ffffff;
}

.dark-mode .user-category-title i {
  color: #a78bfa;
}

.dark-mode .user-hover:hover {
  background-color: #2d1b69;
}

.dark-mode .category-action-btn {
  color: #9ca3af;
}

.dark-mode .category-action-btn:hover {
  background-color: #374151;
  color: #d1d5db;
}

.dark-mode .category-action-btn.edit:hover {
  color: #60a5fa;
}

.dark-mode .category-action-btn.delete:hover {
  color: #f87171;
}

/* 自定义话术响应式样式 */
@media (max-width: 768px) {
  .user-category-title {
    font-size: 1.125rem;
  }
  
  .user-shortcut-category {
    margin-bottom: 1.5rem;
  }
  
  /* 确保折叠状态下的间距不受媒体查询影响 */
  .user-shortcut-category.collapsed {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .user-category-title {
    font-size: 1rem;
  }
  
  .user-shortcut-category {
    margin-bottom: 1rem;
  }
  
  /* 确保折叠状态下的间距不受媒体查询影响 */
  .user-shortcut-category.collapsed {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.dark-mode .shortcut-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border: 1px solid #555;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .shortcut-card::before {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
}

.dark-mode .shortcut-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

.dark-mode .shortcut-card::after {
  background: rgba(52, 211, 153, 0.9);
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.dark-mode .shortcut-text {
  color: #ffffff;
}

.dark-mode .shortcut-desc {
  color: #d1d5db;
}

.dark-mode .shortcut-meta {
  border-top: 1px solid #555;
}

.dark-mode .shortcut-action-btn {
  color: #9ca3af;
}

.dark-mode .shortcut-action-btn:hover {
  background-color: #404040;
  color: #e5e5e5;
}

.dark-mode .shortcut-action-btn.edit:hover {
  color: #60a5fa;
}

.dark-mode .shortcut-action-btn.delete:hover {
  color: #f87171;
}

.dark-mode .shortcut-time {
  color: #6b7280;
}

/* 深色模式下的模态框 */
.dark-mode .modal-content {
  background: #2d2d2d;
  border: 1px solid #555;
}

.dark-mode .modal-header {
  border-bottom: 1px solid #555;
}

.dark-mode .modal-title {
  color: #ffffff;
}

.dark-mode .modal-close {
  color: #9ca3af;
}

.dark-mode .modal-close:hover {
  background-color: #404040;
  color: #e5e5e5;
}

.dark-mode .modal-label {
  color: #d1d5db;
}

.dark-mode .modal-input,
.dark-mode .modal-textarea {
  background-color: #404040;
  border: 1px solid #555;
  color: #e5e5e5;
}

.dark-mode .modal-input:focus,
.dark-mode .modal-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark-mode .modal-btn-secondary {
  background: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .modal-btn-secondary:hover {
  background: #555;
}

/* 深色模式下的常用函数页面 */
.dark-mode .functions-header h1 {
  color: #ffffff;
}

.dark-mode .functions-header .subtitle {
  color: #ffffff;
}

.dark-mode .function-category {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .function-category h2 {
  color: #ffffff;
}

.dark-mode .function-card {
  background-color: transparent;
  border: 1px solid #555;
}

.dark-mode .function-card h3 {
  color: #ffffff;
}

.dark-mode .function-card p {
  color: #ffffff;
}

/* 深色模式下的个人中心页面 */
.dark-mode .profile-title {
  color: #ffffff;
}

.dark-mode .profile-section-title {
  color: #ffffff;
}

.dark-mode .profile-setting-title {
  color: #ffffff;
}

.dark-mode .profile-setting-description {
  color: #ffffff;
}

/* 深色模式下的代码显示 */
.dark-mode .code-display {
  background-color: #2d2d2d;
  border: 1px solid #404040;
}

.dark-mode .code-header h4 {
  color: #e5e5e5;
}

.dark-mode .code-btn {
  background-color: #404040;
  color: #e5e5e5;
  border: 1px solid #555;
}

.dark-mode .code-btn:hover {
  background-color: #555;
}

.dark-mode .generated-code {
  background-color: #1a1a1a;
  color: #e5e5e5;
  border: 1px solid #404040;
}

/* 深色模式下的滚动条 */
.dark-mode ::-webkit-scrollbar {
  width: 8px;
}

.dark-mode ::-webkit-scrollbar-track {
  background-color: #2d2d2d;
}

.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}



/* 深色模式下的滚动条 */




/* Dark mode styles for AI assistant popup */
.dark-mode .assistant-modal-content {
  background: #1a1a1a;
}

.dark-mode .assistant-messages {
  background: #1a1a1a;
}

.dark-mode .assistant-message.ai-message {
  background: #2d2d2d;
  color: #e5e5e5;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.dark-mode .assistant-message.ai-message pre {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.dark-mode .assistant-message.ai-message code {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .assistant-message.ai-message table th,
.dark-mode .assistant-message.ai-message table td {
  border: 1px solid #444;
}

.dark-mode .assistant-message.ai-message table th {
  background-color: #333;
}

.dark-mode .assistant-message.ai-message table tr:nth-child(2n) {
  background-color: #2a2a2a;
}

.dark-mode .assistant-message.ai-message blockquote {
  border-left: 4px solid #444;
  color: #aaa;
}

.dark-mode .assistant-input {
  background: #1a1a1a;
  border-top: 1px solid #333;
}

.dark-mode #assistantMessageInput {
  background: #2d2d2d;
  color: #e5e5e5;
  border: 1px solid #444;
}

.dark-mode .assistant-suggestion-btn {
  background: #2d2d2d;
  border: 1px solid #444;
  color: #e5e5e5;
}

.dark-mode .assistant-suggestion-btn:hover {
  background: #3a3a3a;
  border-color: #555;
}

/* 搜索结果样式 */
.search-results {
  margin-top: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  animation: searchResultsSlideIn 0.3s ease-out;
}

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

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.search-results-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-results-header h3::before {
  content: '\f002';
  font-family: 'FontAwesome';
  color: #3b82f6;
}

.search-count {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.search-result-content {
  flex: 1;
  margin-right: 1rem;
}

.search-result-text {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.search-result-desc {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
}

.search-result-category {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.search-result-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-result-item:hover .search-result-actions {
  opacity: 1;
}

.search-result-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.search-result-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.search-result-btn.edit:hover {
  color: #3b82f6;
}

.search-result-btn.delete:hover {
  color: #ef4444;
}

.search-result-btn.copy {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.search-result-btn.copy:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
}

/* 搜索高亮样式 */
.search-highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* 暗色模式搜索结果样式 */
.dark-mode .search-results {
  background: #1f2937;
  border-color: #374151;
}

.dark-mode .search-results-header {
  background: linear-gradient(135deg, #374151, #4b5563);
  border-bottom-color: #4b5563;
}

.dark-mode .search-results-header h3 {
  color: #f9fafb;
}

.dark-mode .search-result-item {
  background: #374151;
  border-color: #4b5563;
}

.dark-mode .search-result-item:hover {
  background: #4b5563;
  border-color: #3b82f6;
}

.dark-mode .search-result-text {
  color: #f9fafb;
}

.dark-mode .search-result-desc {
  color: #d1d5db;
}

.dark-mode .search-result-btn {
  color: #9ca3af;
}

.dark-mode .search-result-btn:hover {
  background-color: #4b5563;
  color: #f9fafb;
}

.dark-mode .search-result-btn.edit:hover {
  color: #60a5fa;
}

.dark-mode .search-result-btn.delete:hover {
  color: #f87171;
}

/* 响应式搜索样式 */
@media (max-width: 768px) {
  .search-results-header {
    padding: 0.75rem 1rem;
  }
  
  .search-results-header h3 {
    font-size: 1rem;
  }
  
  .search-results-list {
    max-height: 300px;
  }
  
  .search-result-item {
    padding: 0.5rem 0.75rem;
  }
  
  .search-result-text {
    font-size: 0.85rem;
  }
  
  .search-result-desc {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .search-results-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .search-result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .search-result-actions {
    opacity: 1;
    width: 100%;
    justify-content: flex-end;
  }
}

/* 折叠功能样式 */
.user-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.user-shortcuts-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.toggle-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.toggle-all-btn:hover::before {
  left: 100%;
}

.toggle-all-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.toggle-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.toggle-all-btn i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.category-title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-toggle-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.category-toggle-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.category-toggle-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.shortcuts-grid-container {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 1000px;
  opacity: 1;
}

.shortcuts-grid-container.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

/* 暗色模式折叠样式 */
.dark-mode .toggle-all-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.dark-mode .toggle-all-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.dark-mode .category-toggle-btn {
  color: #9ca3af;
}

.dark-mode .category-toggle-btn:hover {
  background-color: #4b5563;
  color: #f9fafb;
}

/* 响应式折叠样式 */
@media (max-width: 768px) {
  .user-shortcuts-header {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }
  
  .user-shortcuts-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.125rem;
  }
  
  .toggle-all-btn {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .category-title-section {
    gap: 0.5rem;
  }
  
  .category-toggle-btn {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 480px) {
  .user-shortcuts-header {
    gap: 0.5rem;
  }
  
  .toggle-all-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .toggle-all-btn i {
    font-size: 0.75rem;
  }
}

/* 后台管理页面样式 */
.admin-body {
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
}

.admin-wrapper {
  display: flex;
  width: 100%;
}

.admin-sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 2rem;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

.nav-link.active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.admin-main {
  flex: 1;
  padding: 2rem;
  margin-left: 250px;
}

.admin-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.admin-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }
}

/* 后台表格样式 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th, .admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 600;
}

/* 日志预览 */
.log-pre {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

/* 表单样式 */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

/* 首页话术管理样式 */
.shortcuts-action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-shortcuts-btn {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
}

.home-shortcuts-btn:hover {
  background-color: #7c3aed;
  border-color: #7c3aed;
}

.home-shortcuts-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.home-shortcuts-content {
  padding: 1.5rem;
}

.home-shortcuts-desc {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.home-shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-shortcut-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: #f9fafb;
}

.home-shortcut-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.home-shortcut-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.home-shortcut-type {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.home-shortcut-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-shortcut-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-shortcut-form label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.home-shortcut-form .modal-input,
.home-shortcut-form .modal-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-shortcut-form .modal-input:focus,
.home-shortcut-form .modal-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.home-shortcut-form .modal-textarea {
  min-height: 80px;
  resize: vertical;
}

/* 深色模式支持 */
.dark-mode .home-shortcut-item {
  background-color: #1f2937;
  border-color: #374151;
}

.dark-mode .home-shortcut-header h4 {
  color: #f9fafb;
}

.dark-mode .home-shortcut-type {
  background-color: #3730a3;
  color: #e0e7ff;
}

.dark-mode .home-shortcut-form label {
  color: #d1d5db;
}

.dark-mode .home-shortcut-form .modal-input,
.dark-mode .home-shortcut-form .modal-textarea {
  background-color: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.dark-mode .home-shortcut-form .modal-input:focus,
.dark-mode .home-shortcut-form .modal-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .shortcuts-action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .home-shortcuts-modal {
    max-width: 95vw;
    margin: 1rem;
  }
  
  .home-shortcuts-content {
    padding: 1rem;
  }
  
  .home-shortcut-item {
    padding: 1rem;
  }
  
  .home-shortcut-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 网站介绍板块样式 */
.site-intro-container {
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
  padding: 0 1rem;
}

.site-intro-header {
  text-align: center;
  margin-bottom: 3rem;
}

.site-intro-header h2 {
  color: #1f2937;
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.site-intro-header h2 i {
  color: #3b82f6;
  font-size: 2rem;
}

.site-intro-header p {
  color: #6b7280;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.site-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.site-intro-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.site-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-intro-card:hover::before {
  opacity: 1;
}

.site-intro-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.site-intro-card.highlight-card {
  grid-column: span 2;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-height: auto;
}

.site-intro-card.highlight-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.site-intro-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.site-intro-icon i {
  color: white;
  font-size: 1.25rem;
}

.site-intro-card h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.site-intro-content p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.site-intro-content p:last-child {
  margin-bottom: 0;
}

.site-intro-content strong {
  color: #1f2937;
  font-weight: 600;
}

/* 示例框样式 */
.example-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1rem 0;
  position: relative;
}

.example-box::before {
  content: '💡';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.example-text {
  background: white;
  border: 1px solid #e0f2fe;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1f2937;
  margin-bottom: 0.75rem;
  position: relative;
}

.example-result {
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid #10b981;
}

/* 功能表格样式 */
.feature-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.feature-row:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateX(4px);
}

.feature-name {
  font-weight: 600;
  color: #1f2937;
  min-width: 120px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.feature-desc {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
}

/* 模板示例样式 */
.template-examples {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.template-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.template-item:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
}

.template-tag {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.template-text {
  color: #4b5563;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  flex: 1;
}

/* 应用场景样式 */
.scenario-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

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

.scenario-item:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateX(4px);
}

.scenario-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.scenario-content {
  flex: 1;
}

.scenario-content p {
  margin-bottom: 0.5rem;
}

.scenario-content p:last-child {
  margin-bottom: 0;
}

.scenario-text {
  background: white;
  border: 1px solid #e0f2fe;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #1f2937;
  margin: 0.5rem 0;
}

.scenario-result {
  color: #059669;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 2px solid #10b981;
}

/* 优势网格样式 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.advantage-item:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.advantage-item i {
  color: #3b82f6;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.advantage-content strong {
  display: block;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.advantage-content p {
  color: #4b5563;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* 用户网格样式 */
.user-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.user-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.user-item:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.user-item i {
  color: #8b5cf6;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.user-content strong {
  display: block;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.user-content p {
  color: #4b5563;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* 标语区域样式 */
.slogan-section {
  text-align: center;
  padding: 0.5rem 0;
}

.slogan {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.brand {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .site-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .site-intro-card.highlight-card {
    grid-column: span 1;
  }
  
  .advantage-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-intro-container {
    margin: 2rem auto 1.5rem auto;
    padding: 0 0.75rem;
  }
  
  .site-intro-header h2 {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .site-intro-header h2 i {
    font-size: 1.5rem;
  }
  
  .site-intro-header p {
    font-size: 1rem;
  }
  
  .site-intro-card {
    padding: 1.5rem;
  }
  
  .site-intro-card h3 {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .site-intro-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0;
  }
  
  .site-intro-icon i {
    font-size: 1rem;
  }
  
  .example-box {
    padding: 1rem;
  }
  
  .example-text {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
  
  .feature-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .feature-name {
    min-width: auto;
  }
  
  .scenario-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .scenario-icon {
    width: auto;
  }
  
  .advantage-item,
  .user-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .advantage-item i,
  .user-item i {
    margin-top: 0;
  }
  
  .slogan {
    font-size: 1.125rem;
  }
  
  .brand {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .site-intro-container {
    padding: 0 0.5rem;
  }
  
  .site-intro-header h2 {
    font-size: 1.5rem;
  }
  
  .site-intro-header p {
    font-size: 0.9rem;
  }
  
  .site-intro-card {
    padding: 1rem;
  }
  
  .site-intro-card h3 {
    font-size: 1.125rem;
  }
  
  .site-intro-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .site-intro-icon i {
    font-size: 0.875rem;
  }
  
  .example-box {
    padding: 0.75rem;
  }
  
  .example-text {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .template-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .template-tag {
    align-self: flex-start;
  }
  
  .slogan {
    font-size: 1rem;
  }
  
  .brand {
    font-size: 0.8rem;
  }
}

/* 深色模式支持 */
.dark-mode .site-intro-container {
  background-color: transparent;
}

.dark-mode .site-intro-header h2 {
  color: #ffffff;
}

.dark-mode .site-intro-header p {
  color: #d1d5db;
}

.dark-mode .site-intro-card {
  background-color: #1f2937;
  border-color: #374151;
}

.dark-mode .site-intro-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.dark-mode .site-intro-card.highlight-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.dark-mode .site-intro-card.highlight-card {
  background: #1f2937;
  border-color: #374151;
}

.dark-mode .site-intro-card h3 {
  color: #ffffff;
}

.dark-mode .site-intro-content p {
  color: #d1d5db;
}

.dark-mode .site-intro-content strong {
  color: #ffffff;
}

.dark-mode .example-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #3b82f6;
}

.dark-mode .example-text {
  background-color: #1f2937;
  border-color: #3b82f6;
  color: #f9fafb;
}

.dark-mode .feature-row,
.dark-mode .template-item,
.dark-mode .scenario-item,
.dark-mode .advantage-item,
.dark-mode .user-item {
  background-color: #374151;
  border-color: #4b5563;
}

.dark-mode .feature-row:hover,
.dark-mode .template-item:hover,
.dark-mode .scenario-item:hover,
.dark-mode .advantage-item:hover,
.dark-mode .user-item:hover {
  background-color: #4b5563;
  border-color: #3b82f6;
}

.dark-mode .feature-name,
.dark-mode .advantage-content strong,
.dark-mode .user-content strong {
  color: #ffffff;
}

.dark-mode .feature-desc,
.dark-mode .template-text,
.dark-mode .advantage-content p,
.dark-mode .user-content p {
  color: #d1d5db;
}

.dark-mode .scenario-text {
  background-color: #1f2937;
  border-color: #3b82f6;
  color: #f9fafb;
}

.dark-mode .slogan {
  color: #ffffff;
}

.dark-mode .brand {
  color: #9ca3af;
}



.dark-mode .slogan-divider {
  background-color: #374151;
}

.dark-mode .slogan-copyright,
.dark-mode .slogan-icp a {
  color: #9ca3af;
}

.dark-mode .slogan-icp a:hover {
  color: #3b82f6;
}

/* 标语区域样式 */
.slogan-section {
  text-align: center;
  padding: 1rem 0;
}

.slogan-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.75rem 0;
}

.slogan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.slogan-copyright {
  color: #6b7280;
  font-size: 0.875rem;
}

.slogan-copyright p {
  margin: 0;
}

.slogan-icp a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.slogan-icp a:hover {
  color: #2563eb;
}



/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .logo-slogan {
    justify-content: center;
  }
  
  .slogan {
    text-align: center;
  }
  
  .slogan-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}