.mai-mobile{display:none}#keyi-mobile-ai-sheet{border:0;border-radius:18px 18px 0 0;padding:20px;width:min(480px,100%);max-width:100%;margin:auto auto 0;max-height:85dvh;overflow:auto;color:#25364b;box-shadow:0 -10px 50px #17263825}#keyi-mobile-ai-sheet::backdrop{background:#17263888}#keyi-mobile-ai-sheet header{display:flex;justify-content:space-between;align-items:flex-start}#keyi-mobile-ai-sheet h2{font-size:21px;margin:0}#keyi-mobile-ai-sheet p{font-size:12px;color:#7b8793;margin:6px 0 16px}#keyi-mobile-ai-sheet header button{border:0;background:#f3f5f7;border-radius:50%;font-size:24px;width:36px;height:36px;color:#6a7786}.mai-choices{display:grid;gap:10px}.mai-choices a{display:flex;align-items:center;gap:12px;padding:14px 12px;border:1px solid #e8ecf0;border-radius:9px;text-decoration:none;color:#25364b;background:#fff}.mai-choices strong{display:block;font-size:15px}.mai-choices small{display:block;font-size:11px;color:#7b8793;margin-top:4px}.mai-choices .mai-arrow{margin-left:auto;font-size:22px;color:#9aa4b0}.mai-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#df0921;background:#fff0f3;border-radius:10px;flex-shrink:0}.mai-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:767px){
 body.mai-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}.mai-mobile{display:block}.mai-mobile[hidden]{display:none!important}#keyi-mobile-ai-nav{position:fixed;bottom:0;left:0;right:0;z-index:1500;display:flex;align-items:center;justify-content:space-around;height:calc(62px + env(safe-area-inset-bottom));padding:3px 8px calc(3px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e6eaf0;box-shadow:0 -3px 15px #25364b08}#keyi-mobile-ai-nav a,#keyi-mobile-ai-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:1;min-width:0;height:54px;color:#7b8796;text-decoration:none;font-size:11px;border:0;background:transparent;font-family:inherit}#keyi-mobile-ai-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#keyi-mobile-ai-nav .mai-launch{color:#df0921;font-weight:700}#keyi-mobile-ai-nav .mai-launch svg{width:30px;height:30px;padding:4px;border-radius:9px;background:#df0921;color:#fff}#keyi-mobile-ai-nav a[aria-current]{color:#df0921}#keyi-mobile-ai-sheet{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.mai-home{background:#fff;padding:15px 14px 18px;margin:0 10px 12px;border:1px solid #edf0f3;border-radius:10px}.mai-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.mai-heading h2{font-size:17px;margin:0;color:#25364b}.mai-heading>span{font-size:10px;color:#8994a1}.mai-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mai-home-grid a{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 3px 10px;background:#fff8f9;border:1px solid #fae8ec;border-radius:8px;text-decoration:none;min-width:0}.mai-home-grid strong{font-size:14px;color:#25364b}.mai-home-grid small{font-size:10px;color:#7c8997;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.mai-home-grid .mai-icon{background:white}.mai-search-strip{display:flex;align-items:center;gap:8px;padding:10px;margin:6px 0 10px;background:#fff5f6;border:1px solid #f8e0e5;border-radius:6px;min-height:47px}.mai-search-strip a{display:flex;align-items:center;gap:5px;color:#8b5a65;text-decoration:none;font-size:11px;min-height:28px}.mai-search-strip b{font-weight:500;color:#c50f2c}.mai-search-strip svg{width:18px;height:18px;fill:none;stroke:#df0921;stroke-width:1.6;flex-shrink:0}.mai-search-strip>a:nth-child(2){margin-left:auto}.mai-search-strip button{width:26px;height:30px;border:0;background:none;color:#9d8590;font-size:19px}.mai-page .search-form .photo-top{width:40px!important;min-width:40px!important;flex:0 0 40px!important;padding:0!important;justify-content:center}.mai-page .search-form .photo-top span{display:none!important}.mai-page .search-form .photo-top svg{width:21px;height:21px}.mai-page .search-form input{min-width:0}.mai-empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}.mai-empty-actions a{color:#c9112c;border:1px solid #efc0ca;border-radius:5px;padding:10px;font-size:12px;background:#fff}.mai-home-page .main-nav,.mai-home-page .header .search-extra,.mai-home-page .header .hot-search,.mai-page .header .cart-box{display:none!important}.mai-home-page .header{padding-bottom:12px!important}.mai-page #ml-compare-bar{bottom:calc(74px + env(safe-area-inset-bottom))!important}.mai-page .cart-bottom{margin-bottom:8px}.mai-page .toast-msg{bottom:calc(86px + env(safe-area-inset-bottom))!important}.mai-page .fixed-sidebar{display:none!important}.mai-page a:focus-visible,.mai-page button:focus-visible{outline:2px solid #df0921;outline-offset:3px}
}
@media(max-width:767px){.mai-home-page .ai-home-entry{display:none!important}}

@media(max-width:767px){
.mai-page .mai-context-strip{display:block;padding:10px 12px;background:#fff9fa}.mai-context-heading{display:flex;align-items:center;justify-content:space-between}.mai-context-heading>strong{font-size:12px;color:#7c3446}.mai-context-heading button{width:32px;min-height:30px}.mai-context-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mai-page .mai-context-links a{display:flex;flex-direction:column;gap:5px;text-align:center;padding:7px 0;min-width:0;min-height:74px}.mai-context-links svg{width:20px;height:20px}.mai-context-links strong{font-size:12px;color:#ba1833;font-weight:600;white-space:nowrap}.mai-context-links small{font-size:10px;color:#927d84;white-space:nowrap}.mai-bulk-prompt{display:block;background:#fff7f8;border:1px solid #f3d7df;border-radius:8px;padding:14px;margin:0 0 16px;grid-column:1/-1;width:100%;box-sizing:border-box}.mai-bulk-copy{display:flex;align-items:center;gap:10px}.mai-bulk-copy strong{font-size:14px;color:#3c3040}.mai-bulk-copy p{font-size:11px;color:#90737f;margin:5px 0 0}.mai-bulk-copy .mai-icon{background:white}.mai-bulk-prompt>a{display:flex;align-items:center;justify-content:center;gap:12px;min-height:42px;background:#df0921;color:#fff!important;border-radius:5px;font-size:13px;text-decoration:none;margin-top:12px}.mai-page .mai-bulk-prompt[hidden]{display:none!important}

}
/* Contextual AI entries are available on desktop as well as mobile. */
.mai-context-strip[hidden]{display:none!important}
.mai-context-strip.mai-collapsed .mai-context-links{display:none}
.mai-page .mai-context-heading button{width:auto;padding:0 8px;font-size:12px;cursor:pointer}
@media(min-width:768px){
 .mai-page .mai-context-strip{display:block;background:#fff8f9;border:1px solid #f3d7df;border-radius:8px;padding:12px 18px;margin:0 0 16px;box-sizing:border-box}
 .mai-context-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#783548;font-size:14px}
 .mai-context-heading button{border:0;background:transparent;color:#986773;min-height:28px}
 .mai-context-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .mai-context-links a{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 12px;background:white;border:1px solid #f3e5e9;border-radius:6px;text-decoration:none;color:#bd1735}
 .mai-context-links a:hover{border-color:#d71736;background:#fff1f4}
 .mai-context-links svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
 .mai-context-links strong{font-size:14px;white-space:nowrap}.mai-context-links small{font-size:12px;color:#897581}
 .mai-context-strip.mai-collapsed .mai-context-heading{margin-bottom:0}
 .mai-empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:18px}
 .mai-empty-actions a{color:#bf1736;border:1px solid #edbdc8;border-radius:5px;padding:10px 16px;background:white;text-decoration:none;font-size:13px}
 .mai-bulk-prompt{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff7f8;border:1px solid #f3d7df;border-radius:8px;padding:18px 22px;margin-bottom:18px;grid-column:1/-1;width:100%;box-sizing:border-box}
 .mai-bulk-copy{display:flex;align-items:center;gap:12px}.mai-bulk-copy strong{font-size:16px;color:#3c3040}.mai-bulk-copy p{font-size:13px;color:#90737f;margin:6px 0 0}
 .mai-bulk-prompt>a{display:flex;align-items:center;justify-content:center;gap:16px;min-height:44px;padding:0 24px;background:#df0921;color:white;border-radius:5px;text-decoration:none;font-size:15px;white-space:nowrap}
 .mai-bulk-prompt>a:hover{background:#bf0921}
}

/* =====================================================================
   移动端恢复「最近搜索」展示位（2026-09-30，方案A：胶囊 chip 横向滚动）
   ---------------------------------------------------------------------
   背景：站内「最近搜索」在手机端永远看不到，是本轮修复的核心 bug。原因是两条
   display:none!important 把它整块干掉：
     ① css/mobile-ai-entry.css  .mai-home-page .header .hot-search   (0,3,0)
     ② css/mobile-search-list.css  .ml-enabled .header .hot-search   (0,3,0)
   这里用带元素选择器的更高特异性选择器 body .header .search-box .hot-search (0,3,1)
   稳定压过上述两条（媒体查询不影响特异性），且不依赖 body 上的
   mobile-home / mai-page / ml-enabled 类，页面之间不会因为类名差异又失效。
   ===================================================================== */
@media (max-width:767px){
  body .header .search-box .hot-search{
    display:block!important;
    width:100%;
    max-width:100%;
    flex:0 0 100%;
    order:9;
    margin:6px 0 0!important;
    padding:0!important;
  }
  /* 没有历史记录时（populateAllHotSearch 输出空内容）不占位、不留白 */
  body .header .search-box .hot-search:empty{display:none!important}
  /* 胶囊行：单行横向滚动，隐藏滚动条 */
  body .header .search-box .hot-search .ks-row{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:6px;
    margin:0;
    padding:2px 0 4px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  body .header .search-box .hot-search .ks-row::-webkit-scrollbar{display:none;height:0;width:0}
  body .header .search-box .hot-search .ks-row strong{
    flex:0 0 auto;
    font-size:12px;
    line-height:20px;
    font-weight:400;
    color:#6c7d8e;
  }
  body .header .search-box .hot-search .ks-row a{
    flex:0 0 auto;
    max-width:44vw;
    padding:6px 12px;
    border-radius:16px;
    font-size:12px;
    line-height:20px;
    overflow:hidden;
    text-overflow:ellipsis;
    background:#f6f7f9;
    border-color:#eceff3;
  }
  body .header .search-box .hot-search .ks-row a:active{background:#fff1f2;border-color:#e60012;color:#d5001b}
  body .header .search-box .hot-search .ks-recent a{max-width:44vw}
  body .header .search-box .hot-search .ks-clear{
    flex:0 0 auto;
    font-size:12px;
    line-height:20px;
    padding:6px 8px;
  }
  /* 联想下拉展开时先让位，避免下拉被顶到胶囊行下面看不见 */
  body .header .search-box:has(.search-suggest.show) .hot-search{display:none!important}
}
