@media (max-width: 768px) {
  .top-right {
    display: none;
  }
  .top-bar h1 {
    display: none; /* 隐藏标题 */
  }
  .menu-toggle {
    display: flex;
  }

  /* 导航文字垂直居中 */
  .menu-bar > * {
    display: flex;
    align-items: center;
    height: 56px;
    width: 28px;
  }
  .dropdown:hover .dropdown-content {
    display: none !important;
  }
  .dropdown:hover span i {
    transform: rotate(180deg);
  }

  /* 核心：导航条和卡片同宽 + 居中 */
  .top-bar {
    max-width: calc(100% - 24px);
    margin: 0 auto;
    border-radius: 0;
  }

  .container {
    flex-direction: column;
    margin: 15px auto;
    padding: 0 12px;
    gap: 16px;
  }
  .left-section,
  .right-sticky-bar {
    width: 100%;
  }

  /* 顶部导航内边距缩小 */
  .top-content {
    padding: 0 14px;
    height: 56px;
  }

  /* 帖子区域内边距缩小 */
  .post-section {
    padding: 16px;
  }
  .post-list {
    gap: 14px;
  }

  /* 手机端有图卡片：16:9 正常比例 */
  .post-item:not(.no-img) {
    aspect-ratio: 16 / 9;
  }

  /* 手机端字体 */
  .post-title {
    font-size: 16px;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
  }
  
  /* 手机端时间：右下角 + 自动换行 */
  .post-info {
    font-size: 12px;
    bottom: 10px !important;
    right: 10px !important;
    padding: 6px 10px;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
    max-width: 200px;
    margin : -10px -10px;
  }

  /* 右侧抽屉菜单 */
  #rightBar {
    position: fixed;
    top: 56px;
    right: 0;
    width: 280px;
    height: calc(100vh - 56px);
    background: var(--panel);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 20px;
  }
  #rightBar.show {
    transform: translateX(0);
  }
  .menu-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(0,0,0,0.3);
    z-index: 998;
    display: none;
  }
  .menu-overlay.show {
    display: block;
  }
}