/* ========== 移动端覆盖样式 ========== */
@media (max-width: 768px) {

  /* 全局背景 */
  body {
    background: #fff !important;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    color: #333;
  }

  /* 布局调整，内容居中 */
  .layout {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
  }

  /* 主内容区：固定宽度 */
  .content {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 12px !important;
    border-radius: 0 !important;
    border-top: 3px solid #0e3862 !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  /* 顶部导航条 */
  .topbar {
    font-size: 16px !important;
    padding: 10px 14px !important;
    text-align: center;
    background: linear-gradient(90deg, #0a2342, #1a4d80, #2d6fb3) !important;
    border-bottom: 2px solid #133252;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
  }

  /* ✅ 顶部导航按钮：完全居中 + 均匀间距 */
  .mobile-nav {
    display: flex !important;
    justify-content: center !important;       /* ✅ 居中整个按钮组 */
    align-items: center !important;
    gap: 10px !important;                     /* 按钮之间的间距 */
    margin: 10px auto !important;
    padding: 0 !important;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
  }

  .mobile-nav button {
    flex: 1;
    max-width: 120px;                        /* ✅ 限制宽度防止左右不均 */
    padding: 8px 0;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0e3862, #1f5c94);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    font-weight: 500;
  }

  .mobile-nav button:active {
    background: linear-gradient(135deg, #154472, #2564a1);
  }

  /* 隐藏侧边栏 */
  .sidebar {
    display: none !important;
  }

  /*  筛选区抽屉按钮 */
  .filter-toggle {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0e3862, #1f5c94);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 12px 0 6px 0;
  }

  /*  抽屉内容默认收起 */
  .filters-panel {
    display: none;
    padding: 8px;
    background: #f9fafc;
    border: 1px solid #d0d7e0;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
  }
  .filters-panel.show {
    display: block;
  }

  /* 筛选区：两列紧凑布局 */
  .filters,
  .filter-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .filters input,
  .filters select {
    flex: 1 1 45% !important;
    max-width: 48%;
    height: 32px !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
  }

  .pill-input {
    flex: 1 1 100% !important;
    height: 32px !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    border: 1px solid #cfd4dc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
  }

  /* 按钮纵向堆叠 */
  .btn-group {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .btn-group button,
  .pill-actions button {
    width: 100% !important;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
  }

  .pill-actions {
    flex-direction: column !important;
    gap: 6px !important;
  }

  /* 表格横向滚动 */
  table.data-table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    font-size: 12px;
    border: 1px solid #e0e6ef;
    border-radius: 6px;
  }

  .data-table th,
  .data-table td {
    font-size: 12px;
    padding: 4px;
  }

  .data-table th {
    background: linear-gradient(to bottom, #f0f4fa, #e2e8f0) !important;
    color: #0e3862 !important;
  }

  /* 图片缩小显示 */
  img.preview {
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 4px;
  }

  /* 状态栏 */
  .status-bar {
    font-size: 12px !important;
    padding: 6px 10px !important;
    border-radius: 6px;
    border: 1px solid #d0d7e0;
    background: linear-gradient(90deg, #f8f9fb, #eef4fb);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
  }

  .status-bar .status-icon {
    font-size: 13px !important;
    color: #0e3862;
  }

  /* ✅ 移动端隐藏导出 CSV 按钮 */
  .export-btn {
    display: none !important;
  }

  /* ====== 注册页样式 ====== */
  .container {
    max-width: 420px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
  }

  .container h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: #0e3862;
  }

  .form-item {
    margin-bottom: 12px;
  }

  .form-item label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: bold;
  }

  .form-item input,
  .form-item select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
  }

  .container button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #0e3862, #1f5c94);
    color: #fff;
    cursor: pointer;
  }

  .message {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #444;
  }
}

/* PC 端隐藏移动端导航按钮 */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}