/* 下载中心 - 手机端适配（屏幕宽度 ≤ 767px 时生效） */
@media only screen and (max-width: 767px) {

  /* ── 整体：改为整页滚动（桌面端是内容区内部滚动）────────── */
  html, body {
    height: auto;
    overflow: auto;
  }
  .container {
    height: auto;
    min-height: 100vh; /* 内容不足一屏时 footer 仍贴底 */
  }

  /* ── 头部 ─────────────────────────────────────────────── */
  .header {
    height: 52px;
    margin-bottom: 10px;
  }
  .header-content {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
  }
  .header-content img {
    max-height: 30px;
    max-width: 70%;
  }

  /* ── 主体：侧边菜单改为顶部横向滑动菜单 ────────────────── */
  .main {
    width: 100%;
    flex-direction: column;
    overflow: visible;
  }
  .menu {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .menu::-webkit-scrollbar {
    display: none; /* 隐藏横向滚动条 */
  }
  .menu-header {
    display: none; /* 手机端隐藏菜单标题，节省空间 */
  }
  .menu-item {
    flex-shrink: 0;
    height: 34px;
    font-size: 13px;
    padding: 0 14px;
    margin: 0 8px 0 0;
    border-radius: 17px;
    background-color: #fff;
    white-space: nowrap;
  }
  /* 当前选中 tab：蓝底（文字白色沿用 style.css 中 .menu-item-active .menu-item-txt）*/
  .menu-item.menu-item-active {
    background-color: #1A73E8;
  }
  .menu-item img {
    height: 16px;
    width: auto;
  }
  .menu-item-txt {
    padding-left: 5px;
  }

  /* ── 内容区 ───────────────────────────────────────────── */
  .content-div {
    overflow: visible;
  }
  .content {
    padding: 12px 12px 16px;
  }
  .content-list {
    max-height: none;
    overflow: visible;
  }
  .content-top .title {
    font-size: 15px;
    margin-bottom: 12px;
  }
  .content-top .tips {
    height: auto;
    line-height: 1.6;
    padding: 8px 12px;
    align-items: flex-start;
    font-size: 12px;
    margin-bottom: 12px;
  }
  .content-top .tips img {
    padding: 3px 8px 0 0;
  }

  /* ── 版本条目：一行放不下，改为多行布局 ────────────────── */
  .content-item-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    font-size: 13px;
  }
  .content-item .number {
    width: auto;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .content-item .banben {
    width: auto;
    flex: 1;
    font-weight: bold;
  }
  .content-item .date {
    width: auto;
    text-align: right;
    flex-shrink: 0;
  }
  .content-item .use {
    width: 100%;
    flex: none;
    order: 3;
    margin-top: 6px;
    color: #666;
  }
  .content-item .download {
    width: 100%;
    order: 4;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-right: 0;
    margin-top: 8px;
    text-decoration: none;
  }
  /* 下载链接改为按钮样式，增大点击区域 */
  .content-item .download .download-link {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 8px 8px 0;
    background-color: #E8F0FE;
    color: #1A73E8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
  }

  /* ── 更新内容 ─────────────────────────────────────────── */
  .update {
    padding: 5px 12px;
    font-size: 12px;
  }
  .update p {
    height: auto;
    line-height: 1.6;
    padding: 3px 0;
  }

  /* ── 底部 ─────────────────────────────────────────────── */
  .footer {
    height: auto;
    padding: 12px 10px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
  }

  /* ── 手机端无 hover，隐藏二维码浮层 ────────────────────── */
  .download-link-qrcode {
    display: none !important;
  }
}
