/* 添加移动端菜单样式 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;
  background-color: var(--background-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-menu-item:hover {
  background-color: var(--hover-background);
}

.mobile-menu-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mobile-menu-text {
  font-size: 16px;
}

/* 移动端样式优化 */
@media (max-width: 900px) {
  body {
    padding-top: 60px;
  }
  
  .hotpot-header {
    height: 60px;
  }
  
  .hotpot-header-container {
    height: 60px;
  }
  
  .notion-container {
    padding-top: 20px;
  }
  
  /* 确保内容不被头部遮挡 */
  .notion-toc-container {
    top: 70px;
  }
  
  /* 优化footer在移动端的布局 */
  .hotpot-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hotpot-footer-brand {
    margin-bottom: 1rem;
  }
  
  /* 移动端目录弹窗样式 */
  .notion-toc-popup {
    width: 220px;
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .notion-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .notion-container {
    padding: 16px;
  }
  
  /* 调整footer在中等屏幕的布局 */
  .hotpot-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* 移动端目录样式 */
  .notion-toc-container {
    right: 10px;
  }
  
  .notion-toc-popup {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hotpot-logo-text {
    font-size: 1rem;
  }
  
  .hotpot-logo-icon {
    font-size: 1.5rem;
  }
  
  .notion-container {
    padding: 12px;
  }
  
  .notion-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  /* 调整小屏幕下的footer布局 */
  .hotpot-footer {
    padding: 2rem 0 1rem;
  }
  
  .hotpot-footer-section {
    margin-bottom: 1.5rem;
  }
  
  .hotpot-footer-title {
    margin-bottom: 0.75rem;
  }
  
  /* 小屏幕目录样式 */
  .notion-toc-popup {
    width: 180px;
    right: 0;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --background-primary: #121212;
    --background-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --hover-background: rgba(255, 255, 255, 0.05);
    --active-background: rgba(255, 255, 255, 0.1);
  }
  
  .hotpot-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
  }
  
  .hotpot-btn-secondary {
    background: var(--background-secondary);
    border-color: var(--primary-light);
  }
}
