/* _shared: /zuixin/ 顶栏手机/车牌查询条（与各站 top-query 视觉对齐） */
.top-query-anchor{display:block;height:0;width:0;overflow:hidden;pointer-events:none}
.top-query-slot{position:relative;width:var(--max,960px);max-width:calc(100% - 32px);margin:0 auto}
.top-query.panel-test{
  background:none;
  box-shadow:none;
  padding:20px 0 14px;
  border-radius:0;
  /* 叠层：.nav(20+) > 本条(4) > .crumb(1)。菜单在本条叠层内，不必打开时再抬。 */
  z-index:4;
  position:relative;
}
/* 压过各站 `.top-query.panel-test{z-index:1}`；吸底 .is-docked 仍走各站 60 */
#top-query.top-query:not(.is-docked){z-index:4}
.top-query.panel-test::before{display:none}
/* 条必须包在 .top-query-slot 里（slot 已是栏目宽）；内层铺满，不再套一层 max-width */
.top-query .top-inner{
  display:block;
  align-items:stretch;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  box-sizing:border-box;
}
.top-query.panel-test .query-row{
  display:flex;
  gap:0;
  align-items:center;
  flex-wrap:nowrap;
  width:100%;
  background:#fff;
  border:1px solid #654423;
  border-radius:12px;
  box-shadow:none;
  padding:4px;
  overflow:visible;
  box-sizing:border-box;
}
.top-query.panel-test .query-row:focus-within{
  border-color:#654423;
  box-shadow:none;
}
.top-query.panel-test .query-type{
  position:relative;
  z-index:2;
  align-self:stretch;
  margin:-4px 0 -4px -4px;
  display:flex;
  flex:0 0 auto;
}
.top-query.panel-test .query-type-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:auto;
  min-height:38px;
  align-self:stretch;
  padding:0 12px;
  font:inherit;
  font-size:14px;
  font-weight:600;
  letter-spacing:.08em;
  border:none;
  border-right:1px solid rgba(196,146,74,.28);
  border-radius:11px 0 0 11px;
  background:linear-gradient(160deg,#4A3726,#2E2218);
  color:#E8C98A;
  gap:8px;
  box-shadow:none;
  cursor:pointer;
}
.top-query.panel-test .query-type-btn:hover,
.top-query.panel-test .query-type.open .query-type-btn{
  background:linear-gradient(160deg,#553F2C,#342618);
  border-color:transparent;
  border-right-color:rgba(196,146,74,.28);
}
.top-query.panel-test .query-type-btn .caret{
  width:8px;height:8px;border:none;
  border-right:1.5px solid #E8C98A;
  border-bottom:1.5px solid #E8C98A;
  transform:rotate(45deg) translateY(-2px);
  background:transparent;
}
.top-query.panel-test .query-type.open .query-type-btn .caret{
  transform:rotate(225deg) translateY(-1px);
}
.top-query.panel-test .query-type-menu{
  display:none;
  position:absolute;left:0;right:auto;top:calc(100% + 6px);
  width:max-content;min-width:100%;margin:0;padding:6px;list-style:none;
  flex-direction:column;gap:4px;
  border:1px solid rgba(196,146,74,.4);border-radius:12px;
  background:linear-gradient(180deg,#3A2A1C,#2A1C12);
  box-shadow:0 12px 28px rgba(20,12,6,.45);
  overflow:visible;z-index:50;
}
/* 开合由 JS 同步 .open 与 [hidden]；有 .open 时 hidden 已去掉，不必 !important */
.top-query.panel-test .query-type.open .query-type-menu{display:flex}
.top-query.panel-test .query-type.is-drop-up .query-type-menu{
  top:auto;bottom:calc(100% + 6px);
}
.top-query.panel-test .query-type-menu li{
  padding:10px 12px;border-radius:8px;color:#F0E4D0;
  font-size:14px;font-weight:500;letter-spacing:.06em;cursor:pointer;
  transition:background .2s, color .2s;
}
.top-query.panel-test .query-type-menu li:hover,
.top-query.panel-test .query-type-menu li[aria-selected="true"]{
  background:rgba(166,107,46,.28);color:#E8C98A;
}
/* 车牌态：保留 padding:4；plate-field 负 margin 吃掉上下白边（对齐 query-type）；input 仍 38 居中 */
.top-query.panel-test .query-row:has(#plate-field){
  line-height:1.2;
}
.top-query.panel-test .plate-field{
  flex:1;min-width:0;align-self:center;
  height:46px;margin:-4px 0; /* 38 内容 + 上下各 4 padding */
  display:flex;align-items:center;
  background:transparent;border-radius:0;overflow:visible;
}
.top-query.panel-test .plate-select{
  position:relative;flex:0 0 auto;z-index:40;align-self:stretch;height:100%;
}
.top-query.panel-test .plate-select-btn{
  width:100%;min-width:44px;height:100%;
  display:flex;align-items:center;justify-content:center;
  gap:6px;border:none;border-right:1px solid rgba(166,107,46,.22);border-radius:0;
  background:transparent;color:var(--accent-deep,#654423);font:inherit;font-weight:700;
  font-size:15px;letter-spacing:.04em;padding:0 10px;cursor:pointer;
  transition:background .25s;box-shadow:none;box-sizing:border-box;
}
.top-query.panel-test .plate-select-btn:hover,
.top-query.panel-test .plate-select.open .plate-select-btn{
  background:rgba(166,107,46,.1);box-shadow:none;
}
.top-query.panel-test .plate-select-btn .caret{
  width:7px;height:7px;border-right:1.5px solid var(--accent,#A66B2E);
  border-bottom:1.5px solid var(--accent,#A66B2E);border-left:none;border-top:none;
  transform:rotate(45deg) translateY(-2px);transition:transform .25s;flex-shrink:0;
}
.top-query.panel-test .plate-select.open .plate-select-btn .caret{
  transform:rotate(225deg) translateY(-1px);
}
.top-query.panel-test .plate-select-menu{
  display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);margin:0;padding:4px;
  list-style:none;flex-direction:column;gap:2px;border:1px solid rgba(196,146,74,.4);
  border-radius:10px;background:#3A2A1C;box-shadow:0 12px 28px rgba(20,12,6,.45);
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  max-height:min(220px,42vh);width:auto;min-width:0;box-sizing:border-box;z-index:50;
  scrollbar-width:thin;scrollbar-color:rgba(196,146,74,.45) transparent;
}
.top-query.panel-test .plate-select.open .plate-select-menu{display:flex}
.top-query.panel-test .plate-select.is-drop-up .plate-select-menu{
  top:auto;bottom:calc(100% + 4px);
}
.top-query.panel-test .plate-select-menu li{
  padding:8px 4px;border-radius:6px;color:#F0E4D0;font-size:14px;font-weight:600;
  text-align:center;cursor:pointer;transition:background .2s,color .2s;white-space:nowrap;flex:0 0 auto;
}
.top-query.panel-test .plate-select-menu li:hover,
.top-query.panel-test .plate-select-menu li[aria-selected="true"]{
  background:rgba(166,107,46,.28);color:#E8C98A;
}
.top-query.panel-test .plate-field .input-box{
  border:none;border-radius:0;background:transparent;flex:1;min-width:0;
  align-self:center;height:38px;line-height:38px;padding:0 14px;box-sizing:border-box;
}
.top-query.panel-test .input-box{
  height:38px;padding:0 14px;line-height:38px;font-size:14px;
  background:#fff;color:var(--ink,#2C2118);border-radius:0;border:none;box-shadow:none;
  flex:1;min-width:0;outline:none;
  /* 勿 font:inherit —— shorthand 会冲掉上面的 line-height，中文 placeholder 顶齐 */
  font-family:inherit;font-weight:inherit;
}
.top-query.panel-test .query-btn{
  height:38px;padding:0 18px;font-size:14px;border-radius:9px;border:none;
  background:#A66B2E;color:#fff;box-shadow:none;margin:0 0 0 4px;
  cursor:pointer;font:inherit;font-weight:600;letter-spacing:.06em;white-space:nowrap;
}
.top-query.panel-test .query-btn:hover{filter:brightness(1.05)}
@media (max-width:900px){
  .top-query-slot{max-width:calc(100% - 12px)}
  .top-query.panel-test{padding:14px 0 10px}
  .top-query.panel-test .query-type-btn{padding:0 10px;font-size:13px;letter-spacing:.04em}
  .top-query.panel-test .input-box{font-size:13px;padding:0 10px}
  .top-query.panel-test .query-btn{padding:0 12px;font-size:13px}
}
