/* 全局样式 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 修复ReactECharts在ESC键按下后显示蓝色边框的问题 */
.echarts-for-react div {
  outline: none !important; 
}

.echarts-for-react canvas:focus {
  outline: none !important;
}

/* 增强防止图表获得焦点时显示蓝色边框的规则 */
.echarts-for-react div:focus,
.echarts-for-react canvas:focus,
.echarts-for-react div:focus-visible,
.echarts-for-react canvas:focus-visible,
.echarts-for-react div:focus-within,
.echarts-for-react canvas:focus-within,
.echarts-for-react * {
  outline: none !important;
  box-shadow: none !important;
}

/* 全局强制清除ECharts图表的焦点样式，包括ESC键场景 */
.echarts-for-react,
.echarts-for-react div,
.echarts-for-react canvas,
.echarts-for-react svg,
.echarts-for-react *,
canvas[data-zr-dom-id],
div[_echarts_instance_] {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 确保即使在键盘操作后也不显示焦点样式 */
:focus {
  outline-color: transparent !important;
}

/* 完全禁止元素获得焦点样式 */
.no-focus-outline,
.no-focus-outline:focus,
.no-focus-outline:focus-visible,
.no-focus-outline *,
.no-focus-outline *:focus,
.no-focus-outline *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 购物篮分析标签页样式 */
.tab-content {
  width: 100%;
  height: auto !important;
  position: relative;
  overflow: visible !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ant-tabs-tabpane {
  height: auto !important;
  overflow: visible !important;
}

.ant-tabs-content {
  height: auto !important;
  overflow: visible !important;
}

.basket-analysis-container .ant-tabs-tabpane,
.multi_item-analysis-container .ant-tabs-tabpane {
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

.basket-analysis-container .ant-tabs-tabpane-hidden,
.multi_item-analysis-container .ant-tabs-tabpane-hidden {
  display: none !important;
}

.basket-analysis-container .echarts-for-react,
.multi_item-analysis-container .echarts-for-react {
  height: 400px !important;
  min-height: 400px !important;
  width: 100% !important;
}

.basket-analysis-container .ant-tabs-content,
.multi_item-analysis-container .ant-tabs-content {
  height: auto !important;
  overflow: visible !important;
}

.basket-analysis-container .ant-tabs-content-holder,
.multi_item-analysis-container .ant-tabs-content-holder {
  overflow: visible !important;
}

/* 确保图表容器正确显示 */
.basket-analysis-container .echarts-for-react > div,
.multi_item-analysis-container .echarts-for-react > div {
  height: 100% !important;
}

/* 修复标签页切换问题 */
.ant-tabs-tab {
  cursor: pointer;
}

.ant-tabs-tab-active {
  font-weight: 500;
}

/* 确保标签内容不会延展卡片 */
.chart-card {
  overflow: visible !important;
}

.chart-card .ant-card-body {
  overflow: visible !important;
}

/* 布局样式 */
.app-layout {
  min-height: 100vh;
}

/* 侧边栏样式 */
.app-sider {
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  position: fixed !important;
  z-index: 11;
  height: 100vh;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
}

/* 为内容区域添加左侧边距，以适应固定侧边栏 */
.app-layout > .ant-layout {
  margin-left: 200px;
  transition: margin-left 0.2s;
}

.app-layout .ant-layout-sider-collapsed + .ant-layout {
  margin-left: 80px;
}

/* 侧边栏折叠按钮 */
.trigger-button {
  position: absolute;
  right: -14px;
  top: 72px;
  width: 14px;
  height: 48px;
  background-color: #fff;
  color: #4BA2F0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 100;
  border: 1px solid #f0f0f0;
  border-left: none;
  transition: color 0.3s;
}

.trigger-button:hover {
  color: #ffffff;
  background-color: #4BA2F0;
}

.sidebar-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.collapsed-logo,
.expanded-logo {
  display: block;
}

/* 当侧边栏折叠时，调整logo容器的padding */
.ant-layout-sider-collapsed .sidebar-logo {
  padding: 18px 0;
}

.logo-text {
  margin-left: 8px;
  color: #4BA2F0;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sider-menu {
  flex: 1 1;
  border-right: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.sider-footer {
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
}

.collapse-button {
  font-size: 16px;
}

.user-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
}

/* 侧边栏折叠时，用户按钮居中 */
.ant-layout-sider-collapsed .user-button {
  margin-left: 0;
}

.app-content {
  padding: 24px;
  background: #f0f2f5;
  min-height: calc(100vh - 70px); /* 仅减去底部的高度 */
}

/* 特定页面的内容区域样式 */
.content {
  padding: 0;
  margin-top: -24px;
}

.layout {
  background: #f0f2f5;
}

.app-footer {
  text-align: center;
  padding: 20px;
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.65);
}

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

.footer-main {
  font-size: 14px;
}

.footer-title {
  font-weight: 500;
}

.footer-copyright {
  color: rgba(0, 0, 0, 0.45);
}

.footer-licenses {
  font-size: 12px;
}

.footer-license-link {
  color: rgba(0, 0, 0, 0.45);
}

.footer-license-link:hover {
  color: #4BA2F0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .app-content {
    padding: 12px;
  }
  
  .logo-text {
    display: none;
  }
  
  .app-sider {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }
  
  .sider-footer {
    padding: 8px;
    justify-content: center;
  }
  
  .collapse-button {
    margin-right: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 卡片样式 */
.upload-card,
.chart-card,
.analysis-card,
.table-card {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.analysis-section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-header {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.product-count {
  font-size: 14px;
  color: #888;
  font-weight: normal;
}

.threshold-section .section-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.threshold-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.threshold-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  color: white;
}

.aa-badge {
  background-color: #ff4d4f;
}

.a-badge {
  background-color: #ff7a45;
}

.b-badge {
  background-color: #ffec3d;
  color: #333;
}

.c-badge {
  background-color: #40a9ff;
}

.threshold-desc {
  font-size: 14px;
}

.analysis-table {
  margin-top: 16px;
}

.nine-grid-container {
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

/* 认证页面样式 */
.auth-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f0f2f5;
  background-size: cover;
  background-position: center;
}

.auth-content {
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  height: 60px;
  margin-bottom: 16px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-footer-info {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.copyright {
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-link:hover {
  color: white;
}

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

/* 档案组件包装器样式 */
.archive-component-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.archive-component-wrapper .content-container {
  flex: 1 1;
  overflow: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 16px;
}

.archive-component-wrapper.dashboard-mode .content-container {
  padding: 8px;
  border-radius: 4px;
}

.archive-component-wrapper .section-controls {
  margin-bottom: 16px;
}

.archive-component-wrapper.dashboard-mode .section-controls {
  margin-bottom: 8px;
}

/* 确保档案项目内容可滚动 */
.archive-item-content {
  height: 100%;
  overflow: hidden;
}

/* 分析容器样式 - 适用于购物篮、多项组合、价格敏感度和时间序列分析 */
/* 初始显示样式，可以被JavaScript覆盖 */
.basket-analysis-container .ant-card,
.basket-analysis-container .ant-table-wrapper,
.basket-analysis-container .echarts-for-react,
.multi_item-analysis-container .ant-card,
.multi_item-analysis-container .ant-table-wrapper,
.multi_item-analysis-container .echarts-for-react,
.price_sensitivity-analysis-container .ant-card,
.price_sensitivity-analysis-container .ant-table-wrapper,
.price_sensitivity-analysis-container .echarts-for-react,
.time_series-analysis-container .ant-card,
.time_series-analysis-container .ant-table-wrapper,
.time_series-analysis-container .echarts-for-react {
  display: block;
  margin-bottom: 16px;
  visibility: visible;
  opacity: 1;
}

.basket-analysis-container .ant-tabs-tab,
.multi_item-analysis-container .ant-tabs-tab,
.price_sensitivity-analysis-container .ant-tabs-tab,
.time_series-analysis-container .ant-tabs-tab {
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

.basket-analysis-container .ant-tabs-tabpane,
.multi_item-analysis-container .ant-tabs-tabpane,
.price_sensitivity-analysis-container .ant-tabs-tabpane,
.time_series-analysis-container .ant-tabs-tabpane {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* 确保分析容器本身可见 */
.basket-analysis-container,
.multi_item-analysis-container,
.price_sensitivity-analysis-container,
.time_series-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 分析容器的基本样式 */
.analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
  transition: all 0.3s ease;
}

/* 购物篮分析容器 */
.basket-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 多项菜品组合分析容器 */
.multi_item-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 价格敏感度分析容器 */
.price_sensitivity-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 时间序列分析容器 */
.time_series-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 菜品价值分析容器 */
.dish-value-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 100px;
}

/* 所有内容隐藏时的样式 */
.all-hidden-container {
  background-color: #f0f2f5;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.all-hidden-message {
  color: #999;
  font-size: 16px;
}

/* 其他现有样式... */

/* 多项菜品组合分析样式 */
.multi_item-analysis-container {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* 隐藏样式 */
.hidden-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -9999 !important;
  width: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}

/* 确保多项菜品组合分析容器正确显示和隐藏 */
.multi_item-analysis-container.hidden-section,
.multi_item-analysis-container .hidden-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -9999 !important;
  width: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}

/* 确保卡片正确隐藏 */
.ant-card.hidden-section,
.chart-card.hidden-section,
.table-card.hidden-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -9999 !important;
  width: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
}

/* 仪表盘样式 */
.feature-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: transparent !important;
}

.feature-card .ant-card-body {
  position: relative;
}

.feature-card .ant-typography {
  margin-bottom: 0;
}

.feature-card .ant-progress-inner {
  background-color: #f5f5f5;
}

.feature-card .ant-avatar {
  transition: all 0.3s;
}

.feature-card:hover .ant-avatar {
  transform: scale(1.05);
}

/* 确保图表容器正确显示 */
.feature-card .echarts-for-react > div {
  height: 100% !important;
}

/* 聊天记录结果组件样式 */
.AIChatResult_chatResultCard__aSmr- {
  margin-bottom: 16px;
}

/* 聊天消息列表 */
.AIChatResult_chatList__hYgFA {
  padding: 0;
}

/* 聊天消息项 */
.AIChatResult_chatMessage__vwd6b {
  display: flex;
  margin-bottom: 16px;
  width: 100%;
}

/* 用户消息样式 */
.AIChatResult_userMessage__Vj-Oe {
  justify-content: flex-end;
}

/* AI消息样式 */
.AIChatResult_aiMessage__a-ond {
  justify-content: flex-start;
}

/* 消息容器 */
.AIChatResult_messageContainer__VW6s6 {
  display: flex;
  width: 100%;
  padding: 8px;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageContainer__VW6s6 {
  flex-direction: row-reverse;
}

.AIChatResult_aiMessage__a-ond .AIChatResult_messageContainer__VW6s6 {
  flex-direction: row;
}

/* 消息头像 */
.AIChatResult_messageAvatar__zPacM {
  flex-shrink: 0;
  margin-top: 4px;
}

.AIChatResult_aiMessage__a-ond .AIChatResult_messageAvatar__zPacM {
  margin-right: 12px;
}

.AIChatResult_aiMessage__a-ond .AIChatResult_messageAvatar__zPacM .anticon {
  font-size: 16px;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageAvatar__zPacM {
  margin-left: 12px;
}

/* 消息内容 */
.AIChatResult_messageContent__hx5lC {
  background-color: #f0f2f5;
  border-radius: 8px;
  padding: 12px;
  max-width: 80%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageContent__hx5lC {
  background-color: #1890ff;
  color: #fff;
  text-align: left;
}

.AIChatResult_aiMessage__a-ond .AIChatResult_messageContent__hx5lC {
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.85);
}

/* 消息头部 */
.AIChatResult_messageHeader__zNfmP {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageContent__hx5lC .ant-typography {
  color: inherit;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageContent__hx5lC .ant-typography-secondary {
  color: rgba(255, 255, 255, 0.7);
}

/* 消息正文 */
.AIChatResult_messageBody__DbiKU {
  word-break: break-word;
}

/* 思考过程 */
.AIChatResult_messageThinking__NQPI2 {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 8px;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_messageThinking__NQPI2 {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.AIChatResult_thinkingContent__38arA {
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_thinkingContent__38arA {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Markdown 内容样式 */
.AIChatResult_markdownContent__rA5vt {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.AIChatResult_markdownContent__rA5vt p {
  margin-bottom: 16px;
  margin-top: 0;
}

.AIChatResult_markdownContent__rA5vt p:last-child {
  margin-bottom: 0;
}

.AIChatResult_markdownContent__rA5vt pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 8px 0;
}

.AIChatResult_markdownContent__rA5vt code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

.AIChatResult_markdownContent__rA5vt ul, 
.AIChatResult_markdownContent__rA5vt ol {
  padding-left: 20px;
  margin: 8px 0;
}

.AIChatResult_markdownContent__rA5vt blockquote {
  margin: 8px 0;
  padding: 0 16px;
  border-left: 4px solid #ddd;
  color: #666;
}

.AIChatResult_markdownContent__rA5vt a {
  color: #1890ff;
  text-decoration: none;
}

.AIChatResult_markdownContent__rA5vt a:hover {
  text-decoration: underline;
}

.AIChatResult_markdownContent__rA5vt img {
  max-width: 100%;
  height: auto;
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_markdownContent__rA5vt pre {
  background-color: rgba(255, 255, 255, 0.1);
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_markdownContent__rA5vt code {
  background-color: rgba(255, 255, 255, 0.2);
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_markdownContent__rA5vt blockquote {
  border-left-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.AIChatResult_userMessage__Vj-Oe .AIChatResult_markdownContent__rA5vt a {
  color: #fff;
  text-decoration: underline;
}

/* 自适应宽度 */
@media (max-width: 768px) {
  .AIChatResult_messageContent__hx5lC {
    max-width: 90%;
  }
} 
/* 聊天记录结果移动端组件样式 */
.AIChatResult_Mobile_chatResultCard__H20oB {
  margin-bottom: 12px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 聊天消息列表 */
.AIChatResult_Mobile_chatList__D7Dip {
  padding: 0;
  width: 100%;
}

/* 聊天消息项 */
.AIChatResult_Mobile_chatMessage__TmUl4 {
  display: flex;
  margin-bottom: 12px;
  width: 100%;
}

/* 用户消息样式 */
.AIChatResult_Mobile_userMessage__sXX0f {
  justify-content: flex-end;
}

/* AI消息样式 */
.AIChatResult_Mobile_aiMessage__LN2Ku {
  justify-content: flex-start;
}

/* 消息容器 */
.AIChatResult_Mobile_messageContainer__jLrH- {
  display: flex;
  width: 100%;
  padding: 4px;
}

.AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageContainer__jLrH- {
  flex-direction: row-reverse;
}

.AIChatResult_Mobile_aiMessage__LN2Ku .AIChatResult_Mobile_messageContainer__jLrH- {
  flex-direction: row;
}

/* 消息头像 */
.AIChatResult_Mobile_messageAvatar__htvnE {
  flex-shrink: 0;
  margin-top: 4px;
}

.AIChatResult_Mobile_aiMessage__LN2Ku .AIChatResult_Mobile_messageAvatar__htvnE {
  margin-right: 8px;
}

.AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageAvatar__htvnE {
  margin-left: 8px;
}

/* 消息内容 */
.AIChatResult_Mobile_messageContent__dkCQa {
  background-color: #f0f2f5;
  border-radius: 12px;
  padding: 10px;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  word-break: break-word;
}

.AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageContent__dkCQa {
  background-color: #1890ff;
  color: #fff;
  text-align: left;
}

.AIChatResult_Mobile_aiMessage__LN2Ku .AIChatResult_Mobile_messageContent__dkCQa {
  background-color: #f0f2f5;
  color: rgba(0, 0, 0, 0.85);
}

/* 消息头部 */
.AIChatResult_Mobile_messageHeader__ALd7N {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageContent__dkCQa .ant-typography {
  color: inherit;
}

.AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageContent__dkCQa .ant-typography-secondary {
  color: rgba(255, 255, 255, 0.7);
}

/* 消息正文 */
.AIChatResult_Mobile_messageBody__F9Qik {
  word-break: break-word;
  font-size: 14px;
}

/* 消息操作按钮 */
.AIChatResult_Mobile_messageActions__5LASy {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Markdown内容 */
.AIChatResult_Mobile_markdownContent__Bo14P {
  overflow-x: auto;
}

.AIChatResult_Mobile_markdownContent__Bo14P pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px;
  border-radius: 4px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13px;
}

.AIChatResult_Mobile_markdownContent__Bo14P code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 13px;
}

.AIChatResult_Mobile_markdownContent__Bo14P img {
  max-width: 100%;
  height: auto;
}

.AIChatResult_Mobile_markdownContent__Bo14P table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}

.AIChatResult_Mobile_markdownContent__Bo14P th,
.AIChatResult_Mobile_markdownContent__Bo14P td {
  border: 1px solid #ddd;
  padding: 4px;
  text-align: left;
}

.AIChatResult_Mobile_markdownContent__Bo14P th {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 思考过程 */
.AIChatResult_Mobile_messageThinking__2TWVr {
  margin-top: 8px;
  font-size: 13px;
}

.AIChatResult_Mobile_thinkingContent__-2MS8 {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* 适配小屏幕 */
@media (max-width: 576px) {
  .AIChatResult_Mobile_chatResultCard__H20oB .ant-card-head {
    min-height: 40px;
    padding: 0 12px;
  }
  
  .AIChatResult_Mobile_chatResultCard__H20oB .ant-card-head-title {
    padding: 10px 0;
    font-size: 15px;
  }
  
  .AIChatResult_Mobile_chatResultCard__H20oB .ant-card-body {
    padding: 12px;
  }
  
  .AIChatResult_Mobile_messageContent__dkCQa {
    max-width: 90%;
    padding: 8px 10px;
  }
  
  .AIChatResult_Mobile_messageHeader__ALd7N {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .AIChatResult_Mobile_messageBody__F9Qik {
    font-size: 13px;
  }
  
  .AIChatResult_Mobile_thinkingContent__-2MS8 {
    font-size: 12px;
    padding: 6px;
  }
  
  .AIChatResult_Mobile_markdownContent__Bo14P pre,
  .AIChatResult_Mobile_markdownContent__Bo14P code,
  .AIChatResult_Mobile_markdownContent__Bo14P table {
    font-size: 12px;
  }
  
  .AIChatResult_Mobile_messageAvatar__htvnE .ant-avatar {
    width: 32px;
    height: 32px;
  }
  
  .AIChatResult_Mobile_aiMessage__LN2Ku .AIChatResult_Mobile_messageAvatar__htvnE {
    margin-right: 6px;
  }
  
  .AIChatResult_Mobile_userMessage__sXX0f .AIChatResult_Mobile_messageAvatar__htvnE {
    margin-left: 6px;
  }
}

.archive-detail-container {
  transition: all 0.3s;
}

.archive-detail-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  overflow: auto;
  padding: 20px;
}

.archive-detail-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.archive-detail-fullscreen .archive-detail-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.archive-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.archive-detail-title {
  margin-bottom: 0 !important;
}

.archive-detail-info {
  margin-bottom: 16px;
}

.archive-detail-actions {
  display: flex;
  gap: 8px;
}

.archive-detail-content {
  flex: 1 1;
  overflow: auto;
}

.archive-detail-fullscreen .archive-detail-content {
  height: calc(100% - 130px);
} 

/* 全屏模式样式 */
.fullscreen-mode {
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
}

/* 全屏模式下折叠的顶部信息栏样式 */
.report-header.collapsed {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  min-height: 40px;
  height: 40px !important;
}

.report-header {
  position: relative;
  min-height: 40px;
}

.report-header.collapsed .ant-space,
.report-header.collapsed .ant-typography,
.report-header.collapsed .ant-breadcrumb,
.report-header.collapsed .ant-tag,
.report-header.collapsed .ant-row,
.report-header.collapsed .ant-col {
  display: none;
}

.report-header.collapsed .header-title-content {
  display: flex !important;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 150px);
}

.report-header.collapsed .header-title-decoration {
  width: 4px;
  height: 16px;
  background-color: #1890ff;
  margin-right: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* 打印样式 */
@media print {
  .report-header button,
  .report-header .ant-space {
    display: none !important;
  }
  
  .tab-content-wrapper {
    overflow: visible !important;
  }
}

/* 对比模式样式 */
.compare-mode-container .ant-card {
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.compare-mode-container .ant-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 使卡片内容区域可调整高度 - 只针对主卡片 */
.compare-mode-container > .ant-col > .ant-card > .ant-card-body {
  padding: 12px 16px;
  resize: vertical;
  overflow: auto;
  min-height: 100px;
}

/* 设置上下卡片的默认高度 */
.compare-mode-container > .ant-col:first-child > .ant-card > .ant-card-body {
  height: 350px; /* 上方卡片默认高度 */
}

.compare-mode-container > .ant-col:last-child > .ant-card > .ant-card-body {
  height: 350px; /* 下方卡片默认高度 */
}

/* 防止内容溢出 */
.compare-mode-container .ant-card-body > div {
  overflow: auto;
}

/* 调整卡片内表格和图表的边距 */
.compare-mode-container .ant-table-wrapper,
.compare-mode-container .ant-chart-wrapper {
  margin-bottom: 0;
}

/* 优化卡片标题区域，减少占用空间 */
.compare-mode-container .ant-card-head {
  min-height: 40px;
  padding: 0 16px;
}

.compare-mode-container .ant-card-head-title {
  padding: 8px 0;
} 
/* 官网样式文件 */

/* 基础布局样式 */
.layout {
  min-height: 100vh;
}

.header {
  background-color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
  color: #4BA2F0;
  margin: 0;
  line-height: 64px;
  font-size: 20px;
}

/* Logo相关样式 */
.logo-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo {
  display: inline-block;
  margin-left: 80px;
  background-color: transparent;
  border-radius: 0;
  height: 35px;
  margin-right: 20px;
}

.logo-image {
  height: 25px;
  object-fit: contain;
}

.site-title {
  margin: 0;
  color: #4BA2F0;
  font-size: 20px;
  font-weight: 600;
}

.title {
  margin: 0;
  color: #4BA2F0;
  font-size: 20px;
}

.content {
  padding: 24px;
  background: #f0f2f5;
}

/* 高亮文本样式 */
.highlight-text {
  font-size: 160%;
  font-weight: 700;
  color: #4BA2F0;
  position: relative;
  display: inline-block;
}

/* 不换行样式 */
.no-wrap {
  white-space: nowrap;
}

/* Google Trends 风格样式 */
.trends-header {
  padding: 60px 24px 40px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
}

.trends-title {
  text-align: center;
  color: #202124;
  margin-bottom: 12px !important;
  font-weight: 500 !important;
}

.trends-subtitle {
  text-align: center;
  color: #5f6368;
  font-size: 16px;
  margin-bottom: 32px !important;
}

.trends-search-container {
  max-width: 800px;
  margin: 0 auto;
}

.trends-search {
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  height: 48px;
  margin-bottom: 24px;
}

.trends-search input {
  font-size: 16px;
}

.trends-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.trends-quick-links .ant-tag {
  cursor: pointer;
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 16px;
  margin-right: 0;
}

/* 功能区样式 - 现代网格布局 */
.trends-features {
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.1&auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.trends-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

/* 特色块样式 */
.feature-grid {
  position: relative;
  z-index: 1;
}

.feature-block {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.5;
}

.feature-block-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-block-content {
  flex: 1 1;
}

.feature-block-content h4.ant-typography {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #202124;
}

.feature-block-content .ant-typography {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.6;
}

/* 首页特定样式 */
.site-header {
  background-color: #fff;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 64px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

.site-layout-content {
  padding-top: 64px; /* 与header高度一致 */
  min-height: calc(100vh - 64px);
}

/* 轮播Banner样式 */
.banner-container {
  width: 100%;
  overflow: hidden;
}

.home-carousel {
  width: 100%;
}

.carousel-item {
  height: 500px;
  color: white;
  padding: 40px;
  display: flex;
  align-items: center;
}

.carousel-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.carousel-title {
  color: white !important;
  font-size: 48px !important;
  margin-bottom: 20px !important;
}

.carousel-desc {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 18px !important;
  max-width: 80%;
}

.carousel-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .home-banner {
    height: 500px;
  }
  
  .carousel-title {
    font-size: 32px !important;
  }
  
  .carousel-desc {
    font-size: 16px !important;
  }
  
  .site-header {
    padding: 0 20px;
  }
  
  .logo {
    margin-left: -15px;
  }
}

/* 底部版权信息样式 */
.site-footer {
  background-color: #f0f2f5;
  padding: 20px 0;
  text-align: center;
  color: #666;
  font-size: 12px;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer .copyright {
  margin-bottom: 10px;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.site-footer .footer-link {
  color: #666;
  text-decoration: none;
}

.site-footer .footer-link:hover {
  color: #1890ff;
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
}

.header {
  background-color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
  color: #4BA2F0;
  margin: 0;
  line-height: 64px;
  font-size: 20px;
}

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

.logo {
  display: inline-block;
  margin-left: 80px;
  background-color: transparent;
  border-radius: 0;
  height: 35px;
  margin-right: 20px;
}

.logo-image {
  height: 25px;
  object-fit: contain;
}

.site-title {
  margin: 0;
  color: #4BA2F0;
  font-size: 20px;
  font-weight: 600;
}

.title {
  margin: 0;
  color: #4BA2F0;
  font-size: 20px;
}

.content {
  padding: 24px;
  background: #f0f2f5;
}

/* 高亮文本样式 */
.highlight-text {
  font-size: 160%;
  font-weight: 700;
  color: #4BA2F0;
  position: relative;
  display: inline-block;
}

/* 不换行样式 */
.no-wrap {
  white-space: nowrap;
}

/* Google Trends 风格样式 */
.trends-header {
  padding: 60px 24px 40px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
}

.trends-title {
  text-align: center;
  color: #202124;
  margin-bottom: 12px !important;
  font-weight: 500 !important;
}

.trends-subtitle {
  text-align: center;
  color: #5f6368;
  font-size: 16px;
  margin-bottom: 32px !important;
}

.trends-search-container {
  max-width: 800px;
  margin: 0 auto;
}

.trends-search {
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  height: 48px;
  margin-bottom: 24px;
}

.trends-search input {
  font-size: 16px;
}

.trends-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.trends-quick-links .ant-tag {
  cursor: pointer;
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 16px;
  margin-right: 0;
}

/* 功能区样式 - 现代网格布局 */
.trends-features {
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.1&auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.trends-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

/* 特色块样式 */
.feature-grid {
  position: relative;
  z-index: 1;
}

.feature-block {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.5;
}

.feature-block-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-block-content {
  flex: 1 1;
}

.feature-block-content h4.ant-typography {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #202124;
}

.feature-block-content .ant-typography {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 功能区标题样式 */
.feature-heading {
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: 40px;
}

.feature-heading-title {
  color: #202124 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feature-heading-title span:not(.highlight-text) {
  font-size: 85% !important;
}

/* 使用通用的section-icon样式，不需要特定样式 */

.trends-tabs {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.trends-tabs .ant-tabs-nav::before {
  border-bottom: none;
}

.trends-tabs .ant-tabs-nav {
  margin-bottom: 30px;
}

.trends-tabs .ant-tabs-tab {
  font-size: 16px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
}

.trends-tabs .ant-tabs-tab-active {
  font-weight: 500;
  background-color: rgba(75, 162, 240, 0.08);
}

.trends-tabs .ant-tabs-ink-bar {
  background-color: #4BA2F0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.trends-section {
  padding: 10px 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.trends-card {
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(75, 162, 240, 0.08);
  border: 1px solid #e6f0ff;
  padding: 24px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.trends-card:hover {
  box-shadow: 0 15px 30px rgba(75, 162, 240, 0.12);
  transform: translateY(-5px);
  border-color: #c9e0ff;
}

.trends-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4BA2F0, #6ab5f3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.trends-card:hover::after {
  transform: scaleX(1);
}

.trends-card-icon {
  font-size: 32px;
  color: #4BA2F0;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(75, 162, 240, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(75, 162, 240, 0.1);
}

.trends-card:hover .trends-card-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: rgba(75, 162, 240, 0.15);
  box-shadow: 0 6px 15px rgba(75, 162, 240, 0.2);
}

.trends-card h4 {
  color: #202124;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 18px;
}

.trends-card-desc {
  color: #5f6368;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.trends-card a {
  color: #4BA2F0;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.trends-card a:hover {
  text-decoration: underline;
}

/* 交互式图表卡片样式 */
.trends-interactive-card {
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border: none;
  padding: 12px;
  height: 100%;
  transition: all 0.3s ease;
}

.trends-interactive-card:hover {
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 1px 6px 4px rgba(60, 64, 67, 0.1);
  transform: translateY(-2px);
}

.interactive-chart-container {
  margin-top: 16px;
  cursor: pointer;
}

.interactive-chart-placeholder {
  transition: all 0.3s ease;
}

.interactive-chart-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 优势区域样式 */
/* 顶部导航和LOGO */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.logo-icon {
  color: white;
  font-size: 24px;
}

.site-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #202124;
}

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

/* 轮播 Banner */
.banner-container {
  width: 100%;
  margin-bottom: 40px;
}

.home-carousel {
  width: 100%;
}

.carousel-item {
  height: 400px;
  color: white;
  padding: 40px 24px;
  display: flex;
  align-items: center;
}

.carousel-content {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-title {
  color: white !important;
  margin-bottom: 16px !important;
}

.carousel-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 500px;
}

.carousel-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 上传文件模拟动画 */
.upload-analysis-section {
  padding: 40px 24px 60px;
  background-color: #fff;
}

.upload-container {
  max-width: 800px;
  margin: 0 auto;
}

.upload-title {
  text-align: center;
  margin-bottom: 16px !important;
  color: #202124;
  font-size: 22px;
}

.upload-title span:not(.highlight-text) {
  font-size: 85%;
}

.section-icon,
.feature-heading-title .anticon.section-icon,
.anticon.section-icon {
  margin-right: 8px !important;
  color: #4BA2F0 !important;
  font-size: 25.5px !important;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-subtitle {
  text-align: center;
  color: #5f6368;
  margin-bottom: 32px !important;
}

.upload-steps-card {
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.analysis-steps {
  margin-bottom: 32px;
}

.steps-content {
  min-height: 200px;
  margin-top: 16px;
  padding: 20px;
  text-align: center;
  background-color: #fafafa;
  border-radius: 8px;
  margin-bottom: 24px;
}

.step-upload, .step-processing, .step-report {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.upload-dragger {
  width: 100%;
}

.processing-animation, .report-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  font-size: 48px;
  color: #1a73e8;
  margin-bottom: 16px;
}

.upload-text {
  text-align: center;
}

.processing-icon, .report-icon {
  font-size: 48px;
  color: #1a73e8;
  margin-bottom: 16px;
}

.processing-icon-animated {
  animation: spin 2s linear infinite;
}

.report-icon-animated {
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.processing-text, .report-text {
  text-align: center;
}

.steps-progress {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.progress-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-dots {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e0e0e0;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background-color: #1a73e8;
  transform: scale(1.2);
}

.progress-text {
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

.trends-advantages {
  padding: 70px 24px;
  background-color: #f0f7ff;
  background-image: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  border-top: 1px solid #d9e8ff;
  border-bottom: 1px solid #d9e8ff;
  position: relative;
}

.trends-advantages-overlay {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 60px 24px;
  border-radius: 16px;
}

.trends-advantages-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trends-advantages-grid {
  width: 100%;
  margin-top: 40px;
}

.trends-advantage-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(75, 162, 240, 0.08);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.trends-advantage-item:hover {
  box-shadow: 0 15px 30px rgba(75, 162, 240, 0.12);
  transform: translateY(-5px);
  border-bottom: 3px solid #4BA2F0;
}

.trends-advantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transform: rotate(-5deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.trends-advantage-content h4 {
  margin-bottom: 12px;
  color: #202124;
  font-weight: 500;
}

.trends-advantage-content p {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.5;
}

/* 适用场景样式 */
.trends-use-cases {
  padding: 60px 24px;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.trends-use-case-card {
  position: relative;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  height: 100%;
  transition: all 0.3s ease;
}

.trends-use-case-card:hover {
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 1px 6px 4px rgba(60, 64, 67, 0.1);
  transform: translateY(-2px);
}

.trends-use-case-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: rgba(26, 115, 232, 0.1);
}

.trends-use-case-card h4 {
  color: #202124;
  margin-bottom: 12px;
  font-weight: 500;
  margin-top: 12px;
  padding-right: 40px;
}

.trends-use-case-desc {
  color: #5f6368;
  font-size: 14px;
  line-height: 1.5;
}

/* CTA区域样式 */
.trends-cta {
  padding: 70px 24px;
  background-color: #1a73e8;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}

.trends-cta-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.trends-cta-title {
  color: #ffffff !important;
  margin-bottom: 16px !important;
  font-weight: 500 !important;
}

.trends-cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 32px !important;
}

.trends-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trends-cta-button {
  min-width: 150px;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
}

.trends-cta-button-secondary {
  background-color: white;
  color: #1a73e8;
  border: none;
}

.trends-cta-button-secondary:hover {
  background-color: #f8f9fa;
  color: #1a73e8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .trends-advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .trends-header {
    padding: 40px 16px 30px;
  }
  
  .trends-cta {
    padding: 50px 16px;
  }
  
  .trends-cta-title {
    font-size: 24px !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.upload-card,
.chart-card,
.table-card {
  margin-bottom: 24px;
}

.ant-upload-drag {
  padding: 24px;
}

.ant-upload-text {
  margin: 8px 0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 16px;
}

.ant-upload-hint {
  color: rgba(0, 0, 0, 0.45);
}

.chart-card .echarts-for-react {
  margin: 0 auto;
} 

/* 九宫格图表样式 */
.chart-card {
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chart-card .ant-card-head {
  border-bottom: 2px solid #f0f0f0;
  padding: 0 24px;
}

.chart-card .ant-card-head-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.chart-card .ant-card-body {
  padding: 24px;
  background-color: #fafafa;
}

/* 九宫格特殊样式 */
.nine-grid-container {
  background-color: #fff;
  border-radius: 4px;
  padding: 10px;
  color: #333;
  border: 1px solid #eee;
}

/* 菜品价值分析详情样式 */
.analysis-card {
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.analysis-card .ant-card-head {
  border-bottom: 2px solid #f0f0f0;
  padding: 0 24px;
}

.analysis-card .ant-card-head-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  margin-bottom: 30px;
}

.section-header {
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.threshold-section {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.threshold-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.threshold-item {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.threshold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.threshold-desc {
  font-size: 14px;
  color: #666;
}

.aa-badge {
  background-color: #ff4d4f;
  color: #fff;
}

.a-badge {
  background-color: #ff4d4f;
  color: #fff;
}

.b-badge {
  background-color: #ffec3d;
  color: #333;
}

.c-badge {
  background-color: #40a9ff;
  color: #fff;
}

.product-section {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.product-count {
  font-size: 14px;
  color: #999;
  font-weight: normal;
  margin-left: 8px;
}

.analysis-table {
  margin-top: 15px;
}

.analysis-table .ant-table-thead > tr > th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: 600;
}

.analysis-table .ant-table-tbody > tr:hover > td {
  background-color: #e6f7ff;
}

/* 首页样式 - 现代风格 */
.site-layout-content {
  padding: 0;
  background: #fff;
}

/* 顶部横幅 */
.home-banner {
  height: 600px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.home-banner .ant-carousel,
.home-banner .ant-carousel .slick-slider,
.home-banner .ant-carousel .slick-list,
.home-banner .ant-carousel .slick-track,
.home-banner .ant-carousel .slick-slide > div {
  height: 100%;
}

.home-banner .ant-carousel .slick-slide {
  text-align: center;
  height: 600px;
  line-height: 160px;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.home-banner .ant-carousel .slick-slide:nth-child(2) {
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
}

.carousel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-content h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 30px !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-content .ant-typography {
  font-size: 1.25rem !important;
  margin-bottom: 40px !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.carousel-content .ant-btn {
  height: 48px;
  padding: 0 30px;
  font-size: 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-content .ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
}

.carousel-content .ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

/* 内容区域 */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 20px !important;
  position: relative;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #333;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* 功能卡片 */
.feature-card {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 56px;
  color: #1890ff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  background: linear-gradient(135deg, #f6f9fe, #edf4ff);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: #fff;
  background: linear-gradient(135deg, #1890ff, #36cfc9);
}

.feature-card .ant-card-meta-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 10px;
  color: #333;
}

.feature-card .ant-card-meta-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
}

/* 背景区域 */
.bg-light {
  background: linear-gradient(135deg, #f6f9fe, #edf4ff);
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

.bg-light::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

/* 优势项 */
.advantage-item {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.advantage-item h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.advantage-item h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 24px;
  background: linear-gradient(180deg, #1890ff, #36cfc9);
  margin-right: 12px;
  border-radius: 4px;
}

.advantage-item .ant-typography {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* 场景卡片 */
.scenario-card {
  height: 100%;
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 30px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.scenario-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-color: #1890ff;
}

.scenario-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.scenario-card .ant-typography {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* 用户菜单 */
.user-menu {
  margin-left: auto !important;
  display: flex;
  align-items: center;
}

/* 登录注册页面样式 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f9fe, #edf4ff);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

.auth-content {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  overflow: hidden;
  border: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  height: 40px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.auth-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.auth-header .ant-typography {
  font-size: 1rem;
  color: #666;
}

.auth-card .ant-form-item {
  margin-bottom: 24px;
}

.auth-card .ant-input-affix-wrapper {
  padding: 12px;
  border-radius: 8px;
}

.auth-card .ant-input-affix-wrapper:hover {
  border-color: #1890ff;
}

.auth-card .ant-input-affix-wrapper-focused {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.auth-card .ant-btn {
  height: 48px;
  font-size: 16px;
  border-radius: 8px;
}

.auth-link {
  color: #1890ff;
  font-weight: 500;
  transition: all 0.3s;
}

.auth-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
}

.auth-footer .ant-typography {
  margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .home-banner {
    height: 500px;
  }
  
  .home-banner .ant-carousel .slick-slide {
    height: 500px;
  }
  
  .carousel-content h1 {
    font-size: 2.5rem !important;
  }
  
  .carousel-content .ant-typography {
    font-size: 1rem !important;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  .home-banner {
    height: 450px;
  }
  
  .home-banner .ant-carousel .slick-slide {
    height: 450px;
  }
  
  .carousel-content h1 {
    font-size: 2rem !important;
  }
  
  .section {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 40px !important;
  }
}
/* 登录和注册页面样式 */

.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f9fe, #edf4ff);
  padding: 40px 20px 80px 20px;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

.auth-container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(24, 144, 255, 0.05);
  z-index: 0;
}

.auth-content {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  overflow: hidden;
  border: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  height: 80px;
  margin-bottom: 20px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.auth-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.auth-header .ant-typography {
  font-size: 1rem;
  color: #666;
}

.auth-card .ant-form-item {
  margin-bottom: 24px;
}

.auth-card .ant-input-affix-wrapper {
  padding: 12px;
  border-radius: 8px;
}

.auth-card .ant-input-affix-wrapper:hover {
  border-color: #1890ff;
}

.auth-card .ant-input-affix-wrapper-focused {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.auth-card .ant-btn {
  height: 48px;
  font-size: 16px;
  border-radius: 8px;
}

.auth-link {
  color: #1890ff;
  font-weight: 500;
  transition: all 0.3s;
}

.auth-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
}

.auth-footer .ant-typography {
  margin-bottom: 8px;
}

/* 底部版权信息样式 */
.auth-footer-info {
  margin-top: 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
  width: 100%;
  position: absolute;
  bottom: 20px;
  left: 0;
}

.auth-footer-info .copyright {
  margin-bottom: 5px;
}

.auth-footer-info .footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.auth-footer-info .footer-link {
  color: #666;
  text-decoration: none;
}

.auth-footer-info .footer-link:hover {
  color: #1890ff;
  text-decoration: underline;
}

/* 验证码样式 */
.captcha-container {
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  transition: all 0.3s;
}

.captcha-container:hover {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.captcha-container svg {
  max-width: 100%;
  max-height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .auth-content {
    max-width: 95%;
  }
  
  .auth-card {
    padding: 20px;
  }
  
  .auth-header h3 {
    font-size: 1.5rem;
  }
}

/* AI聊天组件样式 */

/* AI聊天容器样式 */
.ai-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  height: 600px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  resize: none;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 最小化状态 */
.ai-chat-container.minimized {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  cursor: pointer;
}

/* 最大化状态 */
.ai-chat-container.maximized {
  width: 90vw;
  height: 90vh;
  bottom: 5vh;
  right: 5vw;
}

/* 聊天头部样式 */
.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-user-select: none;
          user-select: none;
}

.chat-header-title {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
}

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

.chat-control-button {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-control-button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chat-control-button.minimize {
  background: #ffd60a;
}

.chat-control-button.maximize {
  background: #ffd60a;
  color: white;
}

.chat-control-button.close {
  background: #32d74b;
  color: white;
}

/* 聊天历史侧边栏 */
.chat-history {
  position: absolute;
  right: 100%; /* 从主窗口的左侧滑出 */
  top: 0;
  width: 280px;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px 0 0 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transition: transform 0.3s ease;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-history.visible {
  transform: translateX(100%);
}

/* 历史记录头部 */
.history-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-title {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 历史记录内容 */
.history-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 12px 0;
}

/* 历史条目样式 */
.history-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.history-item:hover {
  background-color: rgba(75, 162, 240, 0.1);
}

.history-item.active {
  background-color: rgba(75, 162, 240, 0.15);
  border-left: 3px solid #4BA2F0;
}

.history-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.history-item-info {
  flex: 1 1;
  min-width: 0;
}

.history-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.history-item-date {
  font-size: 12px;
  color: #86868b;
}

.history-item-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.history-item-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.history-item-action-btn:hover {
  background: rgba(75, 162, 240, 0.1);
}

.history-item-action-btn.delete:hover {
  background: rgba(255, 59, 48, 0.1);
  color: #FF3B30;
}

/* 空历史记录提示 */
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  color: #86868b;
  text-align: center;
}

.history-empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  color: #BDBDBD;
}

/* 创建新对话按钮 */
.new-conversation-btn {
  margin: 16px 20px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background: #4BA2F0;
  color: white;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-conversation-btn:hover {
  background: #3b8cd9;
}

/* 聊天消息区域样式 */
.chat-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.5);
}

/* 消息样式 */
.chat-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: messageAppear 0.3s ease;
}

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

.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.message-content {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.user-message .message-content {
  background: #4BA2F0;
  color: white;
}

.assistant-message .message-content {
  background: rgba(255, 255, 255, 0.8);
  color: #1d1d1f;
}

/* 思考过程样式 */
.thinking-section {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 12px;
}

.thinking-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #86868b;
  font-size: 13px;
  -webkit-user-select: none;
          user-select: none;
}

.thinking-content {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #86868b;
}

/* 输入区域样式 */
.chat-input-container {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
}

.chat-input-container textarea {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  resize: none;
  max-height: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-input-container textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(75, 162, 240, 0.2);
}

.chat-input-container button {
  border: none;
  background: #4BA2F0;
  color: white;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-input-container button:hover {
  background: #3b8cd9;
}

.chat-input-container button:disabled {
  background: #999;
  cursor: not-allowed;
}

/* 系统消息样式 */
.system-message {
  text-align: center;
  color: #86868b;
  font-size: 13px;
  margin: 8px 0;
}

/* 空状态样式 */
.empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #86868b;
  text-align: center;
  padding: 20px;
}

.empty-chat .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #4BA2F0;
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar,
.history-content::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.history-content::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.history-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.history-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 最小化时的图标样式 */
.minimized .chat-header-title,
.minimized .chat-header-controls,
.minimized .chat-messages,
.minimized .chat-input-container {
  display: none;
}

.minimized {
  background: white;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimized .chat-header {
  display: none;
}

.minimized::after {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url(/static/media/AI.9509c81d0ae6cb60d7dc.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  filter: brightness(0) saturate(100%) invert(49%) sepia(82%) saturate(1371%) hue-rotate(189deg) brightness(96%) contrast(98%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-chat-container {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  
  .ai-chat-container.maximized {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  
  .chat-history {
    right: auto;
    left: -280px;
    border-radius: 0 20px 20px 0;
  }
  
  .chat-history.visible {
    transform: translateX(280px);
  }
}

/* Markdown内容样式 */
.message-text a {
  color: #4BA2F0;
  text-decoration: none;
}

.user-message .message-text a {
  color: white;
  text-decoration: underline;
}

.message-text a:hover {
  text-decoration: underline;
}

.message-text ul, .message-text ol {
  padding-left: 20px;
  margin: 8px 0;
}

.message-text blockquote {
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  padding-left: 12px;
  color: #86868b;
  margin: 8px 0;
}

.message-text table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.message-text th, .message-text td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px;
  text-align: left;
}

.message-text th {
  background-color: rgba(0, 0, 0, 0.05);
}

.chat-window-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chat-window-container.minimized {
  display: none;
}

/* 添加可拖动的边框区域 */
.ai-chat-container .draggable-border {
  position: absolute;
  background: transparent;
  z-index: 1;
}

/* 上边框 */
.ai-chat-container .draggable-border.top {
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  cursor: n-resize;
}

/* 下边框 */
.ai-chat-container .draggable-border.bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  cursor: s-resize;
}

/* 左边框 */
.ai-chat-container .draggable-border.left {
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  cursor: w-resize;
}

/* 右边框 */
.ai-chat-container .draggable-border.right {
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: e-resize;
}

/* 左上角 */
.ai-chat-container .draggable-border.top-left {
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  cursor: nw-resize;
}

/* 右上角 */
.ai-chat-container .draggable-border.top-right {
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  cursor: ne-resize;
}

/* 左下角 */
.ai-chat-container .draggable-border.bottom-left {
  bottom: 0;
  left: 0;
  width: 8px;
  height: 8px;
  cursor: sw-resize;
}

/* 右下角 */
.ai-chat-container .draggable-border.bottom-right {
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  cursor: se-resize;
}

/* 新增深度分析相关样式 */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 聊天消息区域样式 */
.chat-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* 聊天输入区域 */
.chat-input {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid #f0f0f0;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* 聊天操作按钮 */
.chat-actions {
  display: flex;
  margin-bottom: 8px;
  width: 100%;
}

.action-button {
  color: #595959;
  font-size: 16px;
  margin-right: 8px;
}

.action-button:hover {
  color: #1890ff;
}

/* 输入框容器 */
.input-container {
  display: flex;
  width: 100%;
  position: relative;
  align-items: center;
}

/* 文本输入区域 */
.input-container .ant-input {
  flex: 1 1;
  width: 100%;
  border-radius: 24px 0 0 24px;
  padding: 8px 12px;
  box-sizing: border-box;
  resize: none;
}

/* 发送按钮 */
.input-container .ant-btn {
  border-radius: 0 24px 24px 0;
  flex-shrink: 0;
  height: 100%;
}

/* 加载消息样式 */
.loading-message {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 12px;
  width: fit-content;
}

/* 旧版输入容器样式覆盖 */
.chat-input-container {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.chat-input-container textarea {
  width: 100%;
  flex: 1 1;
  border-radius: 24px 0 0 24px;
  padding: 8px 12px;
  resize: none;
  margin-right: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .chat-input, 
  .chat-input-container,
  .input-container {
    padding: 8px;
  }
  
  .chat-messages {
    padding: 8px;
  }
}

/* 分析档案标签颜色 */
.analysis-type-tag.dish_value_analysis {
  color: #1677ff;
  background: #e6f4ff;
  border-color: #91caff;
}

.analysis-type-tag.basket_analysis {
  color: #52c41a;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.analysis-type-tag.time_series_analysis {
  color: #722ed1;
  background: #f9f0ff;
  border-color: #d3adf7;
}

.analysis-type-tag.price_sensitivity_analysis {
  color: #faad14;
  background: #fffbe6;
  border-color: #ffe58f;
}

.analysis-type-tag.multi_item_analysis {
  color: #eb2f96;
  background: #fff0f6;
  border-color: #ffadd2;
}

/* 深度分析模态框内部样式 */
.archive-item {
  cursor: pointer;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.archive-item:hover {
  background-color: #f0f0f0;
}

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

.archive-detail-card {
  height: 100%;
  overflow-y: auto;
}

.data-preview-list {
  margin: 0;
  padding-left: 20px;
}

.data-preview-item {
  margin-bottom: 4px;
}

/* 分析结果样式 */
.analysis-result-message {
  background-color: #f6ffed;
  border-left: 3px solid #52c41a;
} 
