/* ============================================================
   机器界 响应式重排 - 移动端优先
   平板：768px - 1024px
   手机：< 768px
   小屏：< 480px
   ============================================================ */

/* ============================================================
   全局移动端优化
   ============================================================ */
@media (max-width: 1024px) {
  body { font-size: 15px; }
  .wrap { width: 100%; padding: 0 16px; }
}

/* ============================================================
   平板端（768px - 1024px）
   ============================================================ */
@media (max-width: 1024px) {

  /* ---- 首页所有区块强制可见 ---- */
  .sidebar,
  .sidebar .group,
  .sidebar .group h4,
  .sidebar .group ul,
  .sidebar .group li,
  .section, .service, .bomtool, .news-wrap, .brands, .match,
  .section .goods, .section .rental, .used-list,
  .banner, .quicklinks {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }
  .brands { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: none !important; }
  .match { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-wrap { display: flex !important; flex-direction: column; gap: 12px; }
  .bomtool { display: flex !important; }
  .service { display: flex !important; flex-wrap: wrap; }
  .section .goods { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .section .rental { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ---- 顶部条 ---- */
  .topbar .wrap { height: auto; min-height: 32px; padding: 6px 0; font-size: 13px; }
  .topbar a { margin-left: 12px; }

  /* ---- 头部 ---- */
  .header .wrap { height: auto; padding: 12px 16px; gap: 12px; flex-wrap: wrap; box-sizing: border-box; }
  .logo { gap: 10px; flex-shrink: 0; }
  .logo .txt b { font-size: 19px; }
  .logo .txt span { font-size: 11px; }
  .searchbox { flex: 1; min-width: 150px; }
  .searchbar { height: 40px; }
  .searchbar input { font-size: 14px; padding: 0 12px; }
  .searchbar button { width: 70px; font-size: 14px; }
  .hotwords { font-size: 12px; margin-top: 4px; }
  .hotwords a { margin-right: 8px; }
  .head-actions { flex-shrink: 0; }
  .head-actions .btn { padding: 8px 12px; font-size: 13px; }

  /* ---- 导航：简化版 ---- */
  .nav { position: relative; z-index: 101; background: #123c82; }
  .nav .wrap {
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0 16px;
  }
  .nav .cat-entry {
    width: auto;
    min-width: 120px;
    font-size: 14px;
    height: 42px;
    flex-shrink: 0;
    background: #0a2a5e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding: 0 12px;
  }
  .nav .menu {
    margin-left: 0;
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
  }
  .nav .menu a {
    padding: 0 12px;
    font-size: 14px;
    line-height: 42px;
    white-space: nowrap;
    color: #d9e4ff;
    display: block;
  }
  .nav .menu a:hover, .nav .menu a.on { color: #fff; background: rgba(255,255,255,.08); }
  .nav .menu a.red { color: #5b9bff; font-weight: 600; }
  .cat-drop { width: 180px; z-index: 300; }

  /* ---- 首页布局 ---- */
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row !important;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }
  .sidebar .group {
    width: calc(50% - 4px);
    border: 1px solid #f0f1f4;
    border-radius: 6px;
    padding: 8px 10px;
  }
  .sidebar .group h4 { padding: 0 0 4px; font-size: 14px; }
  .sidebar .group ul { padding: 0; gap: 2px 8px; }
  .sidebar .group li { width: auto; }
  .sidebar .group li a { font-size: 13px; padding: 2px 0; white-space: normal; }

  /* ---- Banner ---- */
  .banner .slide {
    padding: 28px 24px; height: auto; min-height: 220px;
    background: linear-gradient(135deg, #0b1e46 0%, #123c82 50%, #1f6bff 100%);
    box-shadow: 0 4px 16px rgba(31,107,255,0.12);
  }
  .banner .slide h2 { font-size: 26px; font-weight: 800; }
  .banner .slide p { font-size: 15px; }
  .banner .slide .stats { display: none; }
  .banner .slide .robot { font-size: 72px; right: 20px; }
  .banner .quicklinks { flex-wrap: wrap; gap: 8px; }
  .banner .quicklinks a {
    min-width: calc(50% - 4px);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  /* ---- 商品卡 ---- */
  .goods { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .goods .card { border-radius: 10px; }
  .goods .pic { height: 130px; font-size: 48px; }
  .goods .info { padding: 8px 10px 10px; }
  .goods .name { font-size: 14px; height: 34px; }
  .goods .price { font-size: 16px; }

  /* ---- 租赁卡 ---- */
  .rental { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rental .rcard { border-radius: 10px; }
  .rental .cover { height: 140px; font-size: 56px; }
  .rental .body { padding: 12px 14px 14px; }
  .rental .body h4 { font-size: 16px; }

  /* ---- 二手列表 ---- */
  .used-item { padding: 14px 16px; gap: 12px; }
  .used-item .thumb { width: 100px; height: 75px; font-size: 36px; }
  .used-item .desc h4 { font-size: 16px; }
  .used-item .desc p { font-size: 13px; }
  .used-item .kv { gap: 16px; }
  .used-item .kv b { font-size: 15px; }

  /* ---- 品牌 ---- */
  .brands { grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: none !important; }

  /* ---- 供应商 ---- */
  .sup-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ---- 撮合服务 ---- */
  .match { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ---- BOM ---- */
  .bomtool {
    flex-direction: column; gap: 16px; text-align: center; padding: 22px 24px;
    background: linear-gradient(135deg, #0b1e46 0%, #123c82 50%, #1a4a9a 100%);
    box-shadow: 0 4px 16px rgba(31,107,255,0.12);
  }
  .bomtool .upload { margin-left: 0; }

  /* ---- 资讯 ---- */
  .news-wrap { flex-direction: column; }

  /* ---- 详情页 ---- */
  .detail-card { flex-direction: column; padding: 20px; }
  .detail-card .dpic { width: 100%; height: 280px; }
  .detail-card h1 { font-size: 20px; }

  /* ---- 店铺 ---- */
  .shop-body { flex-direction: column; }
  .shop-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .shop-side-card { flex: 1; min-width: 220px; }

  /* ---- 会员中心 ---- */
  .mem-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mem-tabs { gap: 4px; padding: 6px; }
  .mem-tabs a { padding: 8px 14px; font-size: 14px; }

  /* ---- 页脚 ---- */
  .footer .cols { flex-wrap: wrap; gap: 30px; }
  .footer .cols .about { width: 100%; }
  .footer .cols .about p { max-width: 100%; }
}

/* ============================================================
   手机端（< 768px）
   ============================================================ */
@media (max-width: 768px) {

  /* ---- 首页所有区块强制可见 ---- */
  .sidebar,
  .sidebar .group,
  .sidebar .group h4,
  .sidebar .group ul,
  .sidebar .group li,
  .section, .service, .bomtool, .news-wrap, .brands, .match,
  .section .goods, .section .rental, .used-list,
  .banner, .quicklinks {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }
  .brands { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: none !important; }
  .match { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  .news-wrap { display: flex !important; flex-direction: column; gap: 12px; }
  .bomtool { display: flex !important; flex-direction: column; }
  .service { display: flex !important; flex-wrap: wrap; }
  .section .goods { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section .rental { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  .used-list { display: block !important; }

  /* ---- 全局 ---- */
  body { font-size: 14px; background: #f5f7fa; }
  .wrap { padding: 0 14px; }

  /* ---- 顶部条 ---- */
  .topbar { display: none; }

  /* ---- 头部：紧凑布局 ---- */
  .header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 2px 12px rgba(15,23,42,0.06), 0 1px 0 rgba(31,107,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .header .wrap {
    height: auto;
    padding: 10px 12px;
    gap: 8px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    box-sizing: border-box;
  }
  .mobile-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 22px;
    color: #123c82;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .mobile-menu-toggle:active { background: #f0f6ff; }
  .logo { grid-column: 2; grid-row: 1; gap: 8px; }
  .logo .mark { width: 36px; height: 36px; font-size: 20px; border-radius: 8px; }
  .logo .txt b { font-size: 17px; letter-spacing: 0.5px; }
  .logo .txt span { display: none; }
  .head-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 6px;
  }
  .head-actions .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
  }
  .head-actions .btn.solid { display: none; }
  .searchbox {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .searchbar { height: 36px; border-width: 1.5px; }
  .searchbar input { font-size: 14px; padding: 0 12px; }
  .searchbar button { width: 60px; font-size: 13px; }
  .hotwords { display: none; }

  /* ---- 导航：横向滚动 ---- */
  .nav {
    background: linear-gradient(135deg, #0b1e46 0%, #123c82 50%, #1a4a9a 100%);
    position: relative; z-index: 101;
    box-shadow: 0 2px 8px rgba(15,23,42,0.15);
  }
  .nav .wrap {
    height: auto;
    flex-direction: column;
    padding: 0;
    display: flex;
  }
  .nav .cat-entry {
    width: 100%;
    height: 42px;
    font-size: 14px;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0a2a5e, #153570);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    letter-spacing: 0.5px;
  }
  .nav .cat-entry::after { content: "▾"; font-size: 12px; opacity: 0.7; }
  .nav .menu {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-shrink: 0;
  }
  .nav .menu::-webkit-scrollbar { display: none; }
  .nav .menu a {
    padding: 0 14px;
    line-height: 42px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #d9e4ff;
    display: block;
    position: relative;
    transition: color 0.2s;
  }
  .nav .menu a:hover, .nav .menu a.on {
    color: #fff;
  }
  .nav .menu a.on::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px;
    background: #5ea0ff;
    border-radius: 2px;
  }
  .nav .menu a.red { color: #7db4ff; font-weight: 600; }
  .cat-drop {
    width: 100%;
    position: static;
    max-height: 240px;
    border-radius: 0;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
    background: #fff;
  }
  .cat-drop a { padding: 10px 16px; font-size: 14px; }

  /* ---- 面包屑 ---- */
  .crumb { padding: 10px 0; font-size: 13px; }

  /* ---- 首页布局 ---- */
  .main { padding: 12px 0 0; }
  .layout { flex-direction: column; gap: 12px; }

  /* ---- 侧边栏分类：紧凑网格 ---- */
  .sidebar {
    width: 100%;
    flex-direction: row !important;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
    background: transparent;
    border-radius: 0;
  }
  .sidebar .group {
    width: calc(50% - 4px);
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eef1f5;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  }
  .sidebar .group h4 {
    padding: 0 0 8px;
    font-size: 13px;
    gap: 6px;
    font-weight: 700;
  }
  .sidebar .group h4 .tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
  }
  .sidebar .group ul {
    padding: 0;
    gap: 4px 8px;
    display: flex;
    flex-wrap: wrap;
  }
  .sidebar .group li { width: auto; }
  .sidebar .group li a {
    font-size: 12px;
    padding: 3px 0;
    color: #5c6470;
    font-weight: 500;
  }

  /* ---- Banner：紧凑版 ---- */
  .banner { gap: 12px; }
  .banner .slide {
    padding: 22px 18px;
    height: auto;
    min-height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b1e46 0%, #123c82 40%, #1f6bff 100%);
    box-shadow: 0 4px 16px rgba(31,107,255,0.15);
    position: relative;
    overflow: hidden;
  }
  .banner .slide::before {
    content: "";
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
  }
  .banner .slide h2 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
  }
  .banner .slide p { font-size: 13px; margin-bottom: 16px; opacity: 0.9; }
  .banner .slide .cta {
    padding: 9px 20px;
    font-size: 13px;
    border-radius: 22px;
    background: linear-gradient(135deg, #3d8dff, #5ea0ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: 600;
    display: inline-block;
  }
  .banner .slide .stats { display: none; }
  .banner .slide .robot { display: none; }
  .banner .quicklinks { flex-wrap: wrap; gap: 8px; }
  .banner .quicklinks a {
    min-width: calc(50% - 4px);
    padding: 12px 14px;
    gap: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .banner .quicklinks a:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .banner .quicklinks .ico {
    width: 36px; height: 36px;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .banner .quicklinks b { font-size: 13px; font-weight: 700; }
  .banner .quicklinks span { font-size: 11px; color: #8a919c; }

  /* ---- 服务条 ---- */
  .service {
    flex-wrap: wrap;
    padding: 14px 8px;
    gap: 8px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f6ff 100%);
    border-radius: 10px;
    border: 1px solid rgba(31,107,255,0.06);
  }
  .service .item {
    min-width: 33.33%;
    border: none;
    padding: 8px 4px;
    text-align: center;
  }
  .service b {
    font-size: 18px;
    background: linear-gradient(135deg, #1f6bff, #4d8bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
  }
  .service span { font-size: 11px; color: #8a919c; font-weight: 500; }

  /* ---- 区块标题 ---- */
  .section { margin-top: 24px; }
  .sec-head { margin-bottom: 12px; }
  .sec-head h3 { font-size: 17px; gap: 6px; font-weight: 700; }
  .sec-head h3 em {
    font-size: 11px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #e8f1ff, #dcecff);
    border-radius: 10px;
    color: #1f6bff;
    font-weight: 500;
  }
  .sec-head .more { font-size: 13px; color: #8a919c; }

  /* ---- 商品卡：双列 ---- */
  .goods {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .goods .card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
  }
  .goods .card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(15,23,42,0.08);
  }
  .goods .pic { height: 110px; font-size: 38px; }
  .goods .pic .stock { font-size: 11px; padding: 1px 5px; }
  .goods .pic .fav { font-size: 16px; }
  .goods .info { padding: 8px 10px 10px; }
  .goods .name {
    font-size: 12px;
    height: 30px;
    line-height: 1.35;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .goods .meta { font-size: 11px; margin-bottom: 4px; color: #8a919c; }
  .goods .price {
    font-size: 15px;
    font-weight: 700;
    color: #ff4d2e;
  }
  .goods .price small { font-size: 11px; color: #aab0bb; font-weight: 400; }
  .goods .btns { gap: 6px; margin-top: 8px; }
  .goods .btns a {
    font-size: 12px;
    padding: 5px 0;
    border-radius: 4px;
    font-weight: 500;
  }

  /* ---- 租赁卡：单列 ---- */
  .rental { grid-template-columns: 1fr; gap: 12px; }
  .rental .rcard {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .rental .rcard:active { transform: scale(0.98); }
  .rental .cover { height: 150px; font-size: 52px; }
  .rental .body { padding: 14px 16px; }
  .rental .body h4 { font-size: 15px; font-weight: 600; }
  .rental .specs { font-size: 13px; margin-bottom: 8px; }
  .rental .price-row .p {
    font-size: 18px;
    background: linear-gradient(135deg, #ff4d2e, #ff6b4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }
  .rental .price-row .book { font-size: 13px; padding: 7px 16px; border-radius: 6px; }

  /* ---- 二手列表：紧凑卡片 ---- */
  .used-list { border-radius: 10px; overflow: hidden; }
  .used-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  }
  .used-item:last-child { margin-bottom: 0; }
  .used-item .thumb {
    width: 80px;
    height: 60px;
    font-size: 30px;
    border-radius: 8px;
  }
  .used-item .desc { flex: 1; min-width: 0; }
  .used-item .desc h4 { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
  .used-item .desc h4 .cond { font-size: 11px; padding: 1px 6px; border-radius: 3px; }
  .used-item .desc p { font-size: 12px; line-height: 1.5; }
  .used-item .kv { display: none; }
  .used-item .op {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .used-item .op .p { font-size: 16px; margin-bottom: 0; font-weight: 700; }
  .used-item .op a { font-size: 13px; padding: 7px 18px; border-radius: 6px; }

  /* ---- 品牌：三列 ---- */
  .brands {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: none !important;
    overflow: visible !important;
  }
  .brands a { height: 48px; border-radius: 6px; }
  .brands b { font-size: 13px; }
  .brands span { font-size: 11px; }

  /* ---- 供应商：单列 ---- */
  .sup-grid { grid-template-columns: 1fr; gap: 10px; }
  .sup-card { padding: 14px; gap: 12px; }
  .sup-card .ava { width: 48px; height: 48px; font-size: 24px; }
  .sup-card h4 { font-size: 15px; }
  .sup-card .tags span { font-size: 12px; }
  .sup-card .st { font-size: 13px; }

  /* ---- 撮合服务：单列 ---- */
  .match { grid-template-columns: 1fr; gap: 12px; }
  .match .mcard {
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.08);
  }
  .match .mcard h4 { font-size: 16px; font-weight: 700; }
  .match .mcard p { font-size: 13px; margin-bottom: 12px; line-height: 1.7; }
  .match .mcard a {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 18px;
    font-weight: 500;
  }
  .match .num { font-size: 36px; opacity: 0.15; }

  /* ---- BOM ---- */
  .bomtool {
    padding: 20px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b1e46 0%, #123c82 50%, #1a4a9a 100%);
    box-shadow: 0 4px 16px rgba(31,107,255,0.15);
  }
  .bomtool h3 { font-size: 18px; font-weight: 700; }
  .bomtool p { font-size: 13px; opacity: 0.85; }
  .bomtool .upload { flex-direction: column; width: 100%; gap: 10px; }
  .bomtool .upload a {
    padding: 11px 20px;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
  }
  .bomtool .upload .u1 {
    background: linear-gradient(135deg, #3d8dff, #5ea0ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  /* ---- 资讯 ---- */
  .news-wrap { flex-direction: column; gap: 14px; }
  .news {
    padding: 18px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  }
  .news h3 { font-size: 16px; margin-bottom: 12px; font-weight: 700; }
  .news .feature { flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .news .feature .fpic {
    width: 100%; height: 110px;
    font-size: 38px;
    border-radius: 8px;
  }
  .news .feature h4 { font-size: 14px; font-weight: 600; }
  .news .feature p { font-size: 12px; }
  .news ol li { font-size: 13px; padding: 7px 0; }
  .news ol li span { font-size: 12px; }

  /* ---- 筛选 ---- */
  .filter-bar { padding: 8px 14px; border-radius: 6px; }
  .filter-row { flex-direction: column; gap: 6px; padding: 10px 0; font-size: 13px; }
  .filter-row .lab { width: auto; font-weight: 600; color: #123c82; }
  .filter-row .opts { gap: 4px; }
  .filter-row .opts a { padding: 4px 10px; font-size: 13px; }

  /* ---- 排序 ---- */
  .sort-bar { padding: 8px 14px; font-size: 13px; flex-wrap: wrap; gap: 4px; }
  .sort-bar a { padding: 4px 10px; }
  .sort-bar .total { font-size: 12px; }

  /* ---- 分页 ---- */
  .pager { flex-wrap: wrap; gap: 6px; padding: 20px 0 8px; }
  .pager a { min-width: 30px; height: 30px; line-height: 30px; font-size: 13px; padding: 0 8px; }

  /* ---- 详情页 ---- */
  .detail-card { padding: 16px; border-radius: 8px; }
  .detail-card .dpic { height: 200px; font-size: 72px; border-radius: 8px; }
  .detail-card h1 { font-size: 17px; }
  .detail-card .sub { font-size: 13px; }
  .price-panel { padding: 12px 14px; }
  .price-panel .p { font-size: 22px; }
  .ladder { gap: 14px; font-size: 13px; }
  .dkv { gap: 6px 16px; font-size: 13px; }
  .detail-btns { flex-wrap: wrap; gap: 8px; }
  .detail-btns button { padding: 10px 20px; font-size: 14px; flex: 1; min-width: 100px; }
  .tabs-panel { border-radius: 8px; }
  .tabs-panel .tp-head { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs-panel .tp-head::-webkit-scrollbar { display: none; }
  .tabs-panel .tp-head a { padding: 10px 14px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
  .tabs-panel .tp-body { padding: 14px; font-size: 13px; line-height: 1.8; }
  .spec-table td { padding: 8px 10px; font-size: 13px; }
  .spec-table td:first-child { width: 100px; }

  /* ---- 表单 ---- */
  .form-card { padding: 20px 16px; margin: 12px auto; border-radius: 8px; }
  .form-card h2 { font-size: 20px; margin-bottom: 16px; }
  .fgroup { margin-bottom: 12px; }
  .fgroup label { font-size: 13px; }
  .fgroup input, .fgroup select, .fgroup textarea { font-size: 14px; padding: 8px 10px; }
  .fbtn { font-size: 15px; padding: 10px; }
  .form-tip { font-size: 13px; }
  .wxbtn { font-size: 14px; padding: 10px; }

  /* ---- 会员中心 ---- */
  .mem-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mem-stat { padding: 14px 10px; }
  .mem-stat b { font-size: 20px; }
  .mem-stat span { font-size: 12px; }
  .mem-tabs {
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mem-tabs::-webkit-scrollbar { display: none; }
  .mem-tabs a {
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mem-panel { padding: 14px; border-radius: 8px; }
  .mem-panel h3 { font-size: 16px; }
  .mem-table { font-size: 13px; }
  .mem-table th, .mem-table td { padding: 8px; }
  .mem-table tr { display: block; border-bottom: 1px solid #f0f1f4; padding: 8px 0; }
  .mem-table thead { display: none; }
  .mem-table td { display: flex; justify-content: space-between; padding: 4px 0; border: none; }
  .mem-table td::before { content: attr(data-label); color: #8a919c; font-size: 12px; }

  /* ---- 询价车 ---- */
  .cart-table { font-size: 13px; border-radius: 8px; }
  .cart-table thead { display: none; }
  /* tbody 也要转为 block：否则 tr{display:block} 与 table-row-group 混用，
     部分移动浏览器会把行渲染成原生表格行，卡片式布局失效 */
  .cart-table tbody { display: block; }
  .cart-table tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f1f4;
    position: relative;
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border: none;
  }
  .cart-table td:first-child { padding-bottom: 8px; }
  .cart-table .pname { gap: 10px; }
  .cart-table .pthumb { width: 44px; height: 44px; font-size: 22px; }
  .cart-table .pthumb .thumb-fb { font-size: 20px; }
  .cart-table .del { position: absolute; top: 12px; right: 14px; }

  /* ---- 店铺 ---- */
  .shop-banner { height: 130px; border-radius: 8px; }
  .shop-banner-inner { padding: 14px 16px; }
  .shop-logo { width: 50px; height: 50px; font-size: 24px; }
  .shop-meta h2 { font-size: 17px; }
  .shop-slogan { font-size: 13px; }
  .shop-stats { gap: 10px; font-size: 12px; }
  .shop-stats b { font-size: 14px; }
  .shop-body { flex-direction: column; gap: 12px; }
  .shop-side { flex-direction: column; gap: 10px; }
  .shop-side-card { padding: 14px; }
  .shop-side-card h4 { font-size: 15px; }
  .shop-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .shop-info-grid > div { padding: 10px; }
  .shop-form-row { flex-direction: column; gap: 0; }

  /* ---- 页脚 ---- */
  .footer {
    margin-top: 28px;
    padding: 28px 0 0;
    padding-bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
    background: linear-gradient(135deg, #0a2a5e 0%, #0b1e46 100%);
  }
  .footer .cols { flex-direction: column; gap: 22px; }
  .footer .cols .about p { font-size: 13px; line-height: 1.9; }
  .footer dt { font-size: 14px; margin-bottom: 10px; font-weight: 600; }
  .footer dd { font-size: 13px; margin-bottom: 8px; }
  .copyright { font-size: 12px; padding: 14px 0; opacity: 0.7; }

  /* ---- 弹窗 ---- */
  .modal { width: 94vw; padding: 20px 16px; border-radius: 10px; }
  .modal h3 { font-size: 18px; }

  /* ---- 搜索页 ---- */
  .search-hero { padding: 20px 12px; }
  .search-hero .big { height: 44px; border-radius: 6px; }
  .search-hero .big input { font-size: 14px; padding: 0 12px; }
  .search-hero .big button { width: 70px; font-size: 14px; }
  .search-hero .hint { font-size: 12px; }
  .res-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .res-tabs::-webkit-scrollbar { display: none; }
  .res-tabs a { padding: 8px 12px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
  .res-section { padding: 14px; border-radius: 8px; }
  .res-section .sec-head h3 { font-size: 15px; }
  .res-row { padding: 8px 4px; }
  .res-row .icon { width: 36px; height: 36px; font-size: 18px; }
  .res-row .mid .t { font-size: 14px; }
  .res-row .mid .d { font-size: 12px; }
  .res-row .price { font-size: 14px; }

  /* ---- 新闻详情 ---- */
  .news-detail-layout { flex-direction: column; gap: 12px; }
  .news-content { padding: 18px 14px; border-radius: 8px; }
  .news-content h1 { font-size: 19px; }
  .news-content .meta { font-size: 12px; }
  .news-content p { font-size: 14px; line-height: 1.9; }
  .news-content .cover-big { height: 140px; font-size: 50px; }
  .news-content .summary { padding: 10px 14px; }
  .news-sidebar { width: 100%; }
  .sidebar-box { padding: 16px; }
  .sidebar-box h3 { font-size: 16px; }
  .cta-box button { width: 100%; }

  /* ---- 空状态 ---- */
  .empty { padding: 50px 0; }
  .empty .e { font-size: 44px; }

  /* ---- 搜索联想下拉 ---- */
  .sug {
    top: 40px;
    max-height: 60vh;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  }
  .sug-item { padding: 10px 14px; font-size: 13px; }
  .sug-kws a { font-size: 13px; }

  /* ---- 返回顶部按钮 ---- */
  .back-top {
    right: 16px;
    bottom: 76px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(31,107,255,0.25);
  }

  /* ---- 品牌：三列 ---- */
  .brands {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: none !important;
    overflow: visible !important;
  }
  .brands a {
    height: 52px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  }
  .brands b { font-size: 13px; }
  .brands span { font-size: 11px; }
}

/* ============================================================
   小屏手机（< 480px）
   ============================================================ */
@media (max-width: 480px) {

  /* ---- 首页所有区块强制可见 ---- */
  .sidebar,
  .sidebar .group,
  .sidebar .group h4,
  .sidebar .group ul,
  .sidebar .group li,
  .section, .service, .bomtool, .news-wrap, .brands, .match,
  .section .goods, .section .rental, .used-list,
  .banner, .quicklinks {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }
  .brands { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: none !important; }
  .match { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  .news-wrap { display: flex !important; flex-direction: column; gap: 12px; }
  .bomtool { display: flex !important; flex-direction: column; }
  .service { display: flex !important; flex-wrap: wrap; }
  .section .goods { display: grid !important; }
  .section .rental { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
  .used-list { display: block !important; }

  /* ---- 商品卡：单列超大图 ---- */
  .goods { grid-template-columns: 1fr; gap: 10px; }
  .goods .card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  }
  .goods .pic {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    font-size: 44px;
  }
  .goods .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .goods .name { height: auto; max-height: 36px; font-size: 13px; font-weight: 500; }
  .goods .meta { font-size: 11px; }
  .goods .price { font-size: 15px; font-weight: 700; }
  .goods .btns { flex-direction: row; gap: 8px; }
  .goods .btns a { padding: 6px 0; font-size: 12px; font-weight: 500; }

  /* ---- 品牌：双列 ---- */
  .brands { grid-template-columns: repeat(2, 1fr); }

  /* ---- 服务条：双列 ---- */
  .service .item { min-width: 50%; }

  /* ---- 会员统计：双列 ---- */
  .mem-stats { grid-template-columns: 1fr 1fr; }

  /* ---- 店铺信息：单列 ---- */
  .shop-info-grid { grid-template-columns: 1fr; }

  /* ---- 头部按钮：询价车改紧凑圆形图标 ----
     2026-10-04：底部 Tab 第 4 项由「购物车」换成「二手机器人」后，手机端
     询价车只剩侧滑菜单一层入口，用户加完车找不到车。这里不再整体隐藏
     ghost 按钮，而是收成 40×40 圆形图标（🛒 + 件数角标），保持一键可达。
     solid（发布采购需求）继续隐藏，避免挤压搜索框。 */
  .head-actions .btn.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
  }
  .head-actions .btn.ghost .cart-text { display: none; }
  .head-actions { align-items: center; }

  /* ---- Banner 快捷入口：单列 ---- */
  .banner .quicklinks a { min-width: 100%; }

  /* ---- 侧边栏分类：单列 ---- */
  .sidebar .group { width: 100%; }
}

/* ============================================================
   桌面端：确保移动端组件完全隐藏
   ============================================================ */
@media (min-width: 769px) {
  .mobile-bottom-nav,
  .mobile-menu-overlay,
  .mobile-menu-panel,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============================================================
   移动端底部导航栏（App 风格）
   ============================================================ */
.mobile-bottom-nav {
  display: none !important;
}
.mobile-menu-overlay {
  display: none !important;
}
.mobile-menu-panel {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(238,241,245,0.8);
    z-index: 999;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: #8a919c;
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.2s;
    position: relative;
  }
  .mobile-bottom-nav a .ico {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s;
  }
  .mobile-bottom-nav a.on { color: #1f6bff; font-weight: 600; }
  .mobile-bottom-nav a.on::before {
    content: "";
    position: absolute;
    top: -6px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px;
    background: linear-gradient(90deg, #1f6bff, #4d8bff);
    border-radius: 2px;
  }
  .mobile-bottom-nav a.on .ico { transform: scale(1.1); }
  .mobile-bottom-nav a:active { transform: scale(0.92); }

  /* 底部导航占位 */
  body { padding-bottom: max(56px, calc(56px + env(safe-area-inset-bottom))); }
}

/* ============================================================
   移动端汉堡菜单
   ============================================================ */
.mobile-menu-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 22px;
    color: #123c82;
    cursor: pointer;
    border-radius: 6px;
  }
  .mobile-menu-toggle:active { background: #f0f6ff; }

  /* 全屏菜单遮罩 */
  .mobile-menu-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* 全屏菜单面板 */
  .mobile-menu-panel {
    display: block !important;
    position: fixed;
    top: 0;
    right: -85vw;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #f8faff 0%, #fff 20%);
    z-index: 999;
    transition: right 0.25s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  }
  .mobile-menu-panel.show { right: 0; }
  .mobile-menu-panel .mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0b1e46, #123c82);
    color: #fff;
    border-bottom: none;
  }
  .mobile-menu-panel .mm-header .mm-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #fff; }
  .mobile-menu-panel .mm-header .mm-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer; color: #fff;
  }
  .mobile-menu-panel .mm-nav { padding: 8px 0; }
  .mobile-menu-panel .mm-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    color: #3c434f;
    text-decoration: none;
    border-bottom: 1px solid #f5f6f8;
    font-weight: 500;
  }
  .mobile-menu-panel .mm-nav a .ico { font-size: 18px; width: 24px; text-align: center; }
  .mobile-menu-panel .mm-nav a:active { background: #f0f6ff; }
  .mobile-menu-panel .mm-nav a.red { color: #1f6bff; }
  .mobile-menu-panel .mm-divider { height: 8px; background: #f4f5f7; }
  .mobile-menu-panel .mm-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8f1ff, #dcecff);
    border-top: 1px solid rgba(31,107,255,0.1);
  }
  .mobile-menu-panel .mm-user .ava {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f6bff, #4d8bff);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    box-shadow: 0 2px 8px rgba(31,107,255,0.3);
  }
  .mobile-menu-panel .mm-user .info { flex: 1; }
  .mobile-menu-panel .mm-user .info b { font-size: 15px; color: #0d2548; font-weight: 600; }
  .mobile-menu-panel .mm-user .info span { font-size: 12px; color: #8a919c; }
}

/* ============================================================
   移动端表格卡片化
   ============================================================ */
@media (max-width: 768px) {
  .table-card-mobile thead { display: none; }
  .table-card-mobile tr {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #eef1f5;
  }
  .table-card-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }
  .table-card-mobile td::before {
    content: attr(data-label);
    color: #8a919c;
    font-size: 12px;
    flex-shrink: 0;
  }
}

/* ============================================================
   移动端触摸优化
   ============================================================ */
@media (max-width: 768px) {
  /* 增大触摸目标 */
  .pager a,
  .sort-bar a,
  .filter-row .opts a,
  .tabs-panel .tp-head a,
  .mem-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 横向滚动提示 */
  .scroll-hint {
    position: relative;
  }
  .scroll-hint::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, #fff);
    pointer-events: none;
  }

  /* 图片懒加载占位 */
  img[loading="lazy"] {
    background: #f0f1f4;
  }
}

/* ============================================================
   横屏手机优化
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .header .wrap { padding: 8px 12px; }
  .banner .slide { min-height: 140px; padding: 16px; }
  .banner .slide h2 { font-size: 17px; }
  .goods { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   平板横屏优化
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .goods { grid-template-columns: repeat(4, 1fr); }
  .rental { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   首页：平台优势 / 客户案例 平板与手机单列重排
   ============================================================ */
@media (max-width: 900px) {
  .advantages, .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .advantages, .cases { grid-template-columns: 1fr; }
}

/* 广告栏响应式 */
.ad-banner { margin-bottom: 14px; }
.ad-banner img { max-width: 100%; height: auto; }
