/* 2026.09.03 · khp · v106 手机端 header logo 双层叠图修复（基线保留）
   2026.09.22 · khp · Logo 换真透明版(裁边 1845x360) + 尺寸/位置对齐搜索框:
   - .sh-logo 高 = 搜索框高(移动36/桌面38)，顶底自然对齐；
   - 搜索框 order 提前到 Logo 右侧，间距约 6px(贴紧)；
   - 桌面搜索框 300→200px 给 Logo 让位，导航完整不裁；
   - 移动搜索框 min-width 110→80px。
   回滚: 恢复本文件 .bak + 换回 icons/logo-3d-*.png.bak-white-orig。 */
/* 2026.09.26 第四轮:khp 令 Logo 显示尺寸缩小——桌面 26px/移动 24px,宽度按 aspect-ratio 自动算;图源与 Header 其他内容不动 */
.sh-logo{
  position:relative;
  height:24px;
  min-height:24px;
  aspect-ratio:1750/345;
  min-width:0;
  padding:0;
  margin:0 2px;
  display:inline-flex;
  align-items:center;
}
.sh-logo > span{display:none;}
/* 2026.09.26 全站 Logo 统一:Logo 由 img.sh-logo-img 承载(源=Header.js),删除旧 display:none 隐藏规则与 .sh-logo 背景图,避免双图 */
/* 2026.09.26 第二轮:img 高度=容器高(=搜索框高 38/36/30),高 specificity 覆盖旧 bootstrap bundle 的 30px!important 锁死 */
.sh-logo .sh-logo-img { height: 100% !important; width: auto !important; display: block; }
/* 2026.09.26 第三轮:图换透明裁边版(1750x345,文字占满图高=搜索框高);.sh-logo 左右留白 2px,搜索框间距=2px(原 -4px 贴紧规则作废) */
.sh-search{margin-left:0;min-width:80px !important;}
@media (min-width:768px){
  .sh-logo{height:26px;min-height:26px;}
  /* 桌面顺序: Logo → 搜索框 → 导航 → 定位按钮 */
  .sh-search{order:1;flex:0 0 200px !important;max-width:200px !important;}
  .sh-links{order:2;}
  .sh-loc-btn{order:3;}
}
@media(max-width:480px){
  /* 2026-10-08 khp 令:移动端 logo 对齐小程序 170×34rpx(=85×17px),桌面不动 */
  .sh-logo{height:17px;width:85px;aspect-ratio:auto;min-height:17px;}
  .sh-search{height:30px !important;min-height:0 !important;flex:0 0 auto !important;width:min(135px, calc(100vw - 310px)) !important;max-width:calc(100vw - 310px) !important;align-items:center;}
}

/* 2026.09.27 khp 令:① Logo 左边留白≤2px(bar 左 padding 2px + logo margin-left 0,全局生效)
   ② 搜索框字体缩小(input 12px / placeholder 11px / 搜索图标 14px) */
.sh-bar{padding-left:2px !important;}
.sh-logo{margin-left:0 !important;}
.sh-input{font-size:12px !important;}
.sh-input::placeholder{font-size:11px !important;}
.sh-search .sh-ic-svg{width:14px !important;height:14px !important;}

/* 2026-09-22 工具区 4 旧图标 → 一张四图合一透明 PNG（tools-4in1.png）四等分显示；
   object-fit:cover 让正方形盒子裁出整图的 1/4，object-position 定位到第 n 格 */
.tools img.tool-ic{object-fit:cover !important;}
.tools .tool:nth-child(1) img.tool-ic{object-position:0% 50% !important;}
.tools .tool:nth-child(2) img.tool-ic{object-position:33.33% 50% !important;}
.tools .tool:nth-child(3) img.tool-ic{object-position:66.66% 50% !important;}
.tools .tool:nth-child(4) img.tool-ic{object-position:100% 50% !important;}
