/* 手机端终极修复：文件名显示 + 横向滚动 */
@media (max-width:768px) {
  body {
    padding: 8px;
  }

  #app {
    flex-direction: column !important;
  }

  .sidebar {
    width: 100% !important;
  }

  /* 表格允许横向滚动（最关键！） */
  .card {
    overflow-x: auto !important;
    display: block !important;
  }

  /* 固定表格最小宽度，不让内容被压扁 */
  .list-header,
  .item {
    min-width: 600px !important;
  }

  /* 文件名正常显示 */
  .file-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  /* 日志弹窗适配 */
  #logWindow {
    width: 92% !important;
    left: 4% !important;
    right: 4% !important;
  }
}

#logWindow {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 340px;
  max-height: 280px;
  background: #fff8fb;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  border: 1px solid #f8d7e3;
  z-index: 9999;
  overflow-y: auto;
}