/* 顶栏样式：原样取自 public/tools/repair-quote/index.html 的顶栏段（.topbar/.brand/.btn 等） */
.topbar{background:rgba(22,24,27,.97);border-bottom:1px solid #2b2e33;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0;z-index:50}
.topbar-inner{max-width:1320px;margin:0 auto;height:64px;padding:0 24px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-mark{display:flex;align-items:center}
.brand-logo{display:block;height:36px;width:auto;max-width:180px}
.brand-text{min-width:0}
.brand-text strong{display:block;font-size:16px;font-weight:700;color:#f2f4f6;line-height:1.2}
.brand-sub{display:block;font-size:11.5px;color:#989ea5;line-height:1.3;margin-top:1px}
.brand-sub b{color:#e7e9ec;font-weight:600;font-size:10.5px;letter-spacing:.12em}
.top-actions{margin-left:auto;display:flex;gap:8px;align-items:center}
.btn{height:38px;padding:0 14px;border-radius:9px;border:1px solid #3a3e44;background:#26292e;color:#e7e9ec;display:inline-flex;align-items:center;gap:7px;font-size:13px;font-family:inherit;cursor:pointer;white-space:nowrap}
.btn:hover{border-color:#4b5057}
.btn-ghost{background:transparent;border-color:#3a3e44;color:#dfe2e6}
.btn-ghost:hover{background:#26292e;border-color:#4b5057}
.btn svg{width:16px;height:16px;flex:0 0 auto;opacity:.92}
.count{min-width:18px;height:18px;border-radius:999px;background:#33373d;color:#dfe2e6;font-size:11px;line-height:18px;text-align:center;padding:0 4px}
.account-btn{max-width:220px}
.account-btn .btn-label{overflow:hidden;text-overflow:ellipsis}
/* 语言切换并入 top-actions 后同款 ghost 胶囊 */
.top-actions .lang-switch{display:inline-flex;gap:6px;align-items:center}
.top-actions .lang-btn{height:36px;padding:0 12px;border-radius:9px;border:1px solid #3a3e44;background:transparent;color:#dfe2e6;font-size:13px;font-family:inherit;cursor:pointer;white-space:nowrap}
.top-actions .lang-btn:hover{background:#26292e;border-color:#4b5057}
.top-actions .lang-btn.active{background:#26292e;border-color:#4b5057;color:#f2f4f6;font-weight:600}
/* platform-tool 自注入的顶栏不再展示（功能由本顶栏按钮调用） */
.pt-topbar{display:none!important}
@media (max-width:760px){
  .topbar-inner{height:56px;padding:0 12px;gap:10px}
  .brand-logo{height:30px}
  .brand-text strong{font-size:14px}
  .brand-sub{font-size:10.5px}
  .top-actions{gap:6px}
  .top-actions .btn,.top-actions .lang-btn{height:34px;padding:0 10px;font-size:12px}
  .top-actions .btn .btn-label{display:none}
  .top-actions .btn .count{min-width:16px;height:16px;font-size:10px;line-height:16px}
}
@media (max-width:430px){
  .brand-text{display:none}
  .top-actions .lang-switch{display:none}
  .topbar-inner{padding:0 10px}
}

/* 压过页面绿主题：顶栏按钮恢复报价工具灰胶囊 */
.topbar .btn{background:transparent!important;border:1px solid #3a3e44!important;border-radius:9px!important;height:38px!important;padding:0 14px!important;color:#e7e9ec!important;font-size:13px!important}
.topbar .btn:hover{background:#26292e!important;border-color:#4b5057!important}
.topbar .btn .btn-label{color:inherit!important}
.topbar .count{background:#33373d!important;color:#dfe2e6!important}
.topbar .lang-btn{background:transparent!important;border:1px solid #3a3e44!important;border-radius:9px!important;height:36px!important;padding:0 12px!important;color:#dfe2e6!important}
.topbar .lang-btn.active{background:#26292e!important;border-color:#4b5057!important;color:#f2f4f6!important}
@media(max-width:760px){.topbar .btn{height:34px!important;padding:0 10px!important}.topbar .btn .btn-label{display:none!important}}
/* 最高优先级：压过工具页绿主题（导出按钮） */
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #newBtn,
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #historyBtn,
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #accountBtn{
  background:transparent!important;border:1px solid #3a3e44!important;border-radius:9px!important;
  height:38px!important;padding:0 14px!important;color:#e7e9ec!important;font-size:13px!important;box-shadow:none!important
}
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #newBtn:hover,
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #historyBtn:hover,
body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #accountBtn:hover{
  background:#26292e!important;border-color:#4b5057!important
}
/* 顶栏占位：避免 hero 被 sticky 顶栏压住 */
body[class*="tool-"]:not(.tool-quote):not(.tool-susp){padding-top:65px}
@media(max-width:760px){
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp){padding-top:57px}
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #newBtn,
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #historyBtn,
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #accountBtn{height:34px!important;padding:0 10px!important}
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #newBtn .btn-label,
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #historyBtn .btn-label,
  body[class*="tool-"]:not(.tool-quote):not(.tool-susp) .topbar #accountBtn .btn-label{display:none!important}
}
/* 最高权重：导出按钮描边、按钮文字可见 */
html body[class*="tool-"] .topbar .top-actions #newBtn{background:transparent!important;border:1px solid rgba(255,255,255,.16)!important;color:#e6ebf2!important;box-shadow:none!important;height:38px!important;border-radius:9px!important;padding:0 14px!important;font-size:13px!important}
html body[class*="tool-"] .topbar .top-actions #newBtn:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.28)!important}
html body[class*="tool-"] .topbar .btn .btn-label{display:inline-flex!important}
@media(max-width:520px){html body[class*="tool-"] .topbar .btn .btn-label{display:none!important}}
html body[class*="tool-"] .topbar .top-actions #newBtn{border-color:rgba(255,255,255,.16)!important}
html body[class*="tool-"] .topbar .top-actions #newBtn:hover{border-color:rgba(255,255,255,.28)!important}
.topbar .btn .btn-label{display:inline-flex!important;color:#e7e9ec!important;opacity:1!important;visibility:visible!important}
.topbar .btn{color:#e7e9ec!important}
/* 顶栏内部样式隔离：先清空页面带来的继承/覆盖 */
.topbar, .topbar *{ box-sizing:border-box; }
.topbar .topbar-inner, .topbar .brand, .topbar .brand-mark, .topbar .brand-logo,
.topbar .brand-text, .topbar .brand-text strong, .topbar .brand-sub,
.topbar .top-actions, .topbar .btn, .topbar .btn *{
  all: unset !important;
}
/* 清空后按报价工具重建 */
.topbar .btn{ display:inline-flex!important; align-items:center; gap:6px!important;
  height:32px!important; padding:0 12px!important; border-radius:999px!important;
  border:1px solid rgba(255,255,255,.16)!important; background:transparent!important;
  color:#e6ebf2!important; font:500 12.5px/1 "HarmonyOS Sans SC","MiSans","Noto Sans SC",system-ui,sans-serif!important;
  cursor:pointer!important; white-space:nowrap!important; }
.topbar .btn:hover{ background:rgba(255,255,255,.07)!important; }
.topbar .btn svg{ width:15px!important; height:15px!important; stroke:#b9c2cc!important; fill:none!important; }
.topbar .brand-text{ display:block!important; }
.topbar .brand-text strong{ display:block!important; color:#fff!important; font:700 16px/1.2 "HarmonyOS Sans SC","MiSans","Noto Sans SC",system-ui,sans-serif!important; }
.topbar .brand-sub{ display:block!important; color:#8f98a3!important; font:400 11px/1.2 "HarmonyOS Sans SC","MiSans","Noto Sans SC",system-ui,sans-serif!important; margin-top:1px!important; }
.topbar #historyCount{ min-width:17px!important; height:17px!important; border-radius:999px!important;
  background:rgba(255,255,255,.12)!important; color:#fff!important; font-size:10.5px!important;
  line-height:17px!important; text-align:center!important; padding:0 5px!important; }
body .aqx-launch{display:none!important}

/* 统一工具页顶栏（内联 style 版配套：仅隐藏旧浮标与 pt 注入） */
body .aqx-launch{display:none!important}
.pt-topbar,.pt-brand{display:none!important}
/* yiti 语言胶囊对比度修正 */
html body[class*="tool-"] .topbar .lang-switch,
html body[class*="tool-"] .topbar .lang-bar{
  display:inline-flex!important; align-items:center!important; gap:2px!important;
  background:#f3f4f6!important; border-radius:999px!important; padding:2px!important;
}
html body[class*="tool-"] .topbar .lang-switch button,
html body[class*="tool-"] .topbar .lang-bar button,
html body[class*="tool-"] .topbar .lang-switch a,
html body[class*="tool-"] .topbar .lang-bar a{
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  height:26px!important; min-width:44px!important; padding:0 10px!important;
  border:0!important; border-radius:999px!important; background:transparent!important;
  color:#4b5563!important; -webkit-text-fill-color:#4b5563!important;
  font:500 12px/1 inherit!important; white-space:nowrap!important; cursor:pointer!important;
}
html body[class*="tool-"] .topbar .lang-switch .active,
html body[class*="tool-"] .topbar .lang-bar .active,
html body[class*="tool-"] .topbar .lang-switch [aria-pressed="true"],
html body[class*="tool-"] .topbar .lang-bar [aria-pressed="true"]{
  background:#fff!important; color:#14161a!important; -webkit-text-fill-color:#14161a!important;
  font-weight:600!important; box-shadow:0 1px 2px rgba(0,0,0,.12)!important;
}