/* 网页版专用：窄窗口下的响应式适配（宽屏下与客户端完全一致，不生效） */

/* 顶栏凯迪软件链接 */
.kaidi-link {
  margin-left: 4px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.kaidi-link:hover {
  text-decoration: underline;
}

/* 中等宽度：四栏变两栏，允许页面滚动 */
@media (max-width: 1100px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }

  #app {
    min-height: 100vh;
  }

  .boxes {
    grid-template-columns: 1fr 1fr;
  }

  .box .list-wrap {
    min-height: 160px;
  }

  .box .editbox {
    min-height: 150px;
  }

  .bar-row {
    flex-wrap: wrap;
    padding: 3px 0;
  }

  .format-input {
    flex: 1 1 200px;
    width: auto;
  }

  .grow {
    display: none;
  }
}

/* 小窗口 / 手机：单栏 */
@media (max-width: 680px) {
  .boxes {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .product-path {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cond-grid {
    grid-template-columns: 1fr;
  }
}
