/* 移动端布局修正：收起横向导航，压缩卡片间距，避免页面横向溢出 */
@media (max-width: 768px) {
  html,
  body,
  #app,
  .layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .test-notice {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .test-notice-text {
    text-align: left;
  }

  .header {
    height: 56px !important;
    padding: 0 10px !important;
  }

  .header-inner {
    height: 56px !important;
    gap: 8px;
  }

  .logo {
    gap: 7px;
  }

  .logo-badge,
  .logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-badge {
    font-size: 18px;
  }

  .logo-title {
    font-size: 16px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }

  .logo-sub,
  .nav-menu {
    display: none !important;
  }

  .header-right {
    margin-left: auto;
    gap: 4px;
  }

  .header-right .el-button {
    margin-left: 0 !important;
    padding: 7px 11px;
  }

  .header-right .el-button + .el-button {
    display: none;
  }

  .user-name {
    max-width: 76px;
  }

  .main {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px 28px;
    overflow: hidden;
  }

  .page-card {
    width: 100%;
    padding: 14px;
  }

  .hero {
    padding: 24px 16px 20px !important;
    border-radius: 12px !important;
  }

  .hero-title {
    font-size: 22px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
  }

  .hero-sub {
    display: block !important;
    margin: 7px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hero-desc {
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .hero-actions .el-button {
    width: 100% !important;
    margin-left: 0 !important;
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 16px;
  }

  .chip {
    min-width: 0;
    padding: 8px 10px;
  }

  .ann-bar {
    gap: 8px;
    padding: 8px 10px;
  }

  .ann-label {
    padding: 4px 9px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stat-card {
    min-width: 0;
    padding: 14px 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .row,
  .community-row,
  .pick-row,
  .sd-grid,
  .work-grid {
    grid-template-columns: 1fr !important;
  }

  .row {
    display: grid !important;
    gap: 12px !important;
  }

  .community-row,
  .pick-row {
    gap: 12px;
    margin-top: 12px;
  }

  .sd-grid {
    grid-template-columns: 1fr !important;
  }

  .section-title {
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .el-dialog {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px);
    margin-top: 6vh !important;
  }

  .el-message-box {
    width: calc(100% - 32px) !important;
  }

  .el-table {
    font-size: 12px;
  }

  .footer {
    padding: 18px 14px;
  }

  .footer-inner {
    gap: 14px;
  }

  .footer-text {
    min-width: 0;
    font-size: 12px;
    line-height: 1.8;
  }

  .footer-qr img {
    width: 76px;
    height: 96px;
  }
}
