/* 易紧通标准查询 PWA — brand navy #122156 + light content */

:root {
  --brand: #122156;
  --brand-soft: #1a2d6e;
  --brand-rgb: 18, 33, 86;
  --accent: #2f6bff;
  --accent-soft: rgba(47, 107, 255, 0.12);
  --bg: #f3f5f9;
  --bg2: #ffffff;
  --bg3: #eef1f7;
  --bg4: #e2e7f0;
  --border: #d7dde8;
  --border2: #b8c0d0;
  --text: #1a2236;
  --text2: #5a6578;
  --text3: #8a93a5;
  --amber: #c98512;
  --green: #1f8a4c;
  --red: #c0392b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --dur: 160ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-bottom: constant(safe-area-inset-bottom, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sat-fallback: 0px;
  --safe-top: var(--sat-fallback);
  --safe-top: max(constant(safe-area-inset-top), var(--sat-fallback));
  --safe-top: max(env(safe-area-inset-top, 0px), var(--sat-fallback));
  --topbar-h: 56px;
  --topbar-stack: calc(var(--safe-top) + var(--topbar-h));
  --ph-pad-y: 10px;
  --ph-inner-h: 44px;
  /* Detail sticky header height: safe-area + vertical pads + button row */
  --ph-stack-h: calc(var(--safe-top) + var(--ph-pad-y) + var(--ph-inner-h) + var(--ph-pad-y));
  --ph-bar-h: 64px;
  --bnav-h: 62px;
  --shadow-1: 0 2px 10px rgba(18, 33, 86, 0.06);
  --shadow-2: 0 10px 28px rgba(18, 33, 86, 0.12);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: #122156;
  --bs-primary-rgb: 18, 33, 86;
  --bs-secondary-color: var(--text2);
  --bs-border-color: var(--border);
  --bs-link-color: var(--accent);
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  :root { --sat-fallback: 32px; }
}

/* 横屏：缩小冻结头高度，避免占太多内容区 */
@media (orientation: landscape) {
  :root {
    --sat-fallback: 8px;
    --topbar-h: 48px;
    --ph-bar-h: 44px;
    --ph-pad-y: 4px;
    --bnav-h: 52px;
  }
}
@media (orientation: landscape) and (display-mode: standalone),
       (orientation: landscape) and (display-mode: fullscreen),
       (orientation: landscape) and (display-mode: minimal-ui) {
  :root { --sat-fallback: 10px; }
}
@media (orientation: landscape) {
  .app-navbar {
    padding-top: calc(var(--safe-top) + 0.2rem) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  .ph {
    padding-left: max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
  }
  .ph .back { min-height: 26px; padding-top: .08rem !important; padding-bottom: .08rem !important; }
  .ph-logo-img {
    height: 24px;
    max-width: 84px;
    padding: 2px 6px;
  }
  .ph-fav-btn, .ph-act-btn {
    width: 36px !important;
    height: 36px !important;
  }
  .ptitle { font-size: .9rem; }
  .sd-jumps { padding-bottom: 8px; }
  .sd-jump { min-height: 32px; padding: 4px 10px; }
  /* Safari 横屏底栏会挡内容，加大详情底部留白 */
  .pbody {
    padding-bottom: calc(56px + var(--safe-bottom));
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .panel {
    -webkit-overflow-scrolling: touch;
  }
}

html { height: 100%; font-size: 16px; }
.app-body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(18, 33, 86, 0.08), transparent 55%),
    linear-gradient(180deg, #e9eef8 0%, var(--bg) 220px);
}
/* App chrome: full-bleed on phone / installed PWA */
.app-shell {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  padding-bottom: calc(var(--bnav-h) + var(--safe-bottom) + 8px);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(18, 33, 86, 0.08), transparent 55%),
    linear-gradient(180deg, #e9eef8 0%, var(--bg) 220px);
}

/* 电脑端宽屏：默认手机宽度居中界面 */
@media (min-width: 768px) {
  .app-body {
    background:
      radial-gradient(80% 60% at 50% -10%, rgba(47, 107, 255, 0.22), transparent 55%),
      linear-gradient(165deg, #0c142c 0%, #162448 42%, #1a2a55 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px;
    box-sizing: border-box;
  }
  .app-shell {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 28px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 24px 64px rgba(0, 0, 0, 0.45);
    /* 不用 transform：与 overflow 叠用时，祖先会劫持 fixed，底栏跟着列表滚 */
    transform: none;
  }
  /*
   * 底栏相对视口 fixed，并水平对齐手机框（body padding 28px 16px）。
   * 这样滚动 .app-shell 内容时底栏不再跟动。
   */
  .app-shell > .bnav.fixed-bottom {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 28px !important;
    width: min(430px, calc(100vw - 32px)) !important;
    max-width: 430px;
    transform: translateX(-50%);
    border-radius: 0 0 28px 28px;
    overflow: hidden;
  }
  .app-shell > .app-toast-wrap {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(28px + var(--bnav-h) + var(--safe-bottom) + 16px);
  }
  /* 详情/更多层也限制在手机框内，避免电脑端全屏 */
  .app-shell > .panel,
  .app-shell > .more-sheet,
  .app-shell > .share-sheet {
    inset: auto;
    top: 28px;
    bottom: 28px;
    left: calc(50% - min(215px, (100vw - 32px) / 2));
    width: min(430px, calc(100vw - 32px));
    max-width: 430px;
    border-radius: 28px;
    overflow-x: hidden;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 24px 64px rgba(0, 0, 0, 0.45);
  }
  .app-shell > .panel {
    /* 关闭态仍用 translateX(100%) 滑出框外；打开态 transform:none，靠 left 居中 */
    height: auto;
  }
  .app-shell > .more-sheet,
  .app-shell > .share-sheet {
    overflow: hidden;
  }
}

/* 真机 / 已安装 PWA：铺满（覆盖上方电脑端手机框；依赖 body.is-ios / is-android） */
body.is-ios.app-body,
body.is-android.app-body {
  display: block;
  padding: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(18, 33, 86, 0.08), transparent 55%),
    linear-gradient(180deg, #e9eef8 0%, var(--bg) 220px);
}
body.is-ios .app-shell,
body.is-android .app-shell {
  max-width: none;
  width: 100%;
  min-height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
body.is-ios .app-shell > .bnav.fixed-bottom,
body.is-android .app-shell > .bnav.fixed-bottom {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  max-width: none;
  transform: none;
  border-radius: 0;
}
body.is-ios .app-shell > .app-toast-wrap,
body.is-android .app-shell > .app-toast-wrap {
  left: 50%;
  right: auto;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  bottom: calc(var(--bnav-h) + var(--safe-bottom) + 16px);
}
body.is-ios .app-shell > .panel,
body.is-android .app-shell > .panel,
body.is-ios .app-shell > .more-sheet,
body.is-android .app-shell > .more-sheet,
body.is-ios .app-shell > .share-sheet,
body.is-android .app-shell > .share-sheet {
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .app-body {
    display: block;
    padding: 0;
    background:
      radial-gradient(120% 80% at 0% 0%, rgba(18, 33, 86, 0.08), transparent 55%),
      linear-gradient(180deg, #e9eef8 0%, var(--bg) 220px);
  }
  .app-shell {
    max-width: none;
    width: 100%;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .app-shell > .bnav.fixed-bottom {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none;
    transform: none;
    border-radius: 0;
  }
  .app-shell > .panel,
  .app-shell > .more-sheet,
  .app-shell > .share-sheet {
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.app-status-fill {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--safe-top);
  background: var(--brand);
  z-index: 1100;
  pointer-events: none;
}

.app-navbar {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-soft) 100%) !important;
  color: #fff;
  z-index: 120;
  box-sizing: border-box;
  padding-top: calc(var(--safe-top) + 0.45rem) !important;
  min-height: var(--topbar-stack);
  border-bottom: none !important;
  box-shadow: 0 4px 16px rgba(18, 33, 86, 0.25);
}
.app-navbar.sticky-top { top: 0 !important; }
.app-logo {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 120px);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.app-logo:focus-visible {
  outline: 2px solid rgba(255,255,255,.7);
  outline-offset: 3px;
  border-radius: 8px;
}
.app-logo-tag {
  display: none !important;
}
/* Website horizontal logo on navy bar — white plate for contrast */
.app-logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.about-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-width: 220px;
  width: 100%;
  object-fit: contain;
}
.menu-btn {
  width: 42px; height: 42px;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  padding: 0 !important;
  font-size: 1.15rem;
  color: var(--brand) !important;
  background: rgba(255,255,255,.92) !important;
  border-color: transparent !important;
}
.install-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; font-size: .9rem; font-weight: 600;
  color: #fff !important;
  border-color: rgba(255,255,255,.55) !important;
}
.install-pill:hover { background: rgba(255,255,255,.12) !important; }
.app-menu { min-width: 220px; }

.search-hero {
  z-index: 110;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-1);
}
.search-hero.sticky-top { top: var(--topbar-stack) !important; }
.search-label { font-size: .95rem; font-weight: 600; color: var(--text); }
.sbar .form-control, .sbar .input-group-text {
  background: var(--bg);
  border-color: var(--border2);
  color: var(--text);
  min-height: 46px;
  font-size: 1.02rem;
}
.sbar .form-control:focus {
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15);
  border-color: var(--brand);
}
.sbar-go {
  min-width: 72px;
  font-weight: 600;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}
.sbar-clear { min-width: 44px; }

.chips { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip, .bchip {
  min-height: 36px; font-size: .88rem !important; font-weight: 600;
  padding: .3rem .7rem !important; white-space: nowrap;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  background: transparent !important;
  color: var(--text2) !important;
  box-shadow: none !important;
}
.chip:hover, .bchip:hover {
  background: rgba(18, 33, 86, .06) !important;
  color: var(--text) !important;
}
.chip.on, .chip.active, .bchip.on {
  background: rgba(18, 33, 86, .1) !important;
  color: var(--brand) !important;
}
/* 浏览页：参考「一级图标网格 + 二级描边标签」 */
#v-browse .sec-sub {
  margin-top: 1px;
  font-size: .75rem !important;
}
#v-browse .result-count-main {
  font-size: .9rem;
}
.browse-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: #eef1f7;
  border: 1px solid var(--border);
}
.browse-seg-btn {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font-size: .92rem;
  font-weight: 700;
  padding: .35rem .5rem;
}
.browse-seg-btn.on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(18, 33, 86, .22);
}
.browse-sec-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--brand);
}
.browse-sec-title .bi {
  font-size: 1.05rem;
}
.browse-path {
  color: var(--text2);
  font-weight: 600;
  font-size: .86rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 380px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 420px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.product-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 86px;
  padding: 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.product-grid-item:hover {
  border-color: rgba(18, 33, 86, .35);
  background: #f7f9fd;
}
.product-grid-item.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(18, 33, 86, .28);
}
.product-grid-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.product-grid-item.on .product-grid-img {
  filter: brightness(0) invert(1);
}
.product-grid-ph {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: inherit;
  opacity: .85;
}
.product-grid-name {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}
.product-child-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-child-chip {
  min-height: 36px;
  padding: .35rem .85rem;
  border: 1px solid rgba(47, 107, 255, .35);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.product-child-chip:hover {
  background: rgba(47, 107, 255, .06);
  border-color: rgba(47, 107, 255, .55);
}
.product-child-chip.on {
  background: rgba(18, 33, 86, .1);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--brand);
}
.head-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.head-chip {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 52px;
  padding: 4px 4px !important;
  line-height: 1.15;
  border-radius: 10px !important;
}
.head-chip-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.head-chip-ph {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 1rem;
}
.head-chip-name {
  font-size: .68rem;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.result-count-main { font-size: 1rem; color: var(--text); }
.result-count-main.active { color: var(--brand); }

.view { display: none; }
.view.active { display: block; animation: viewIn var(--dur-slow) var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sec-lbl { font-size: .88rem; font-weight: 700; color: var(--text2); letter-spacing: .02em; }
.hdr-action-btn { margin-right: 10px; }
.sec-sub { margin-top: 2px; }
.view-header { margin-bottom: 4px; }
#v-browse .view-header { margin-bottom: 2px; }

.empty-icon {
  color: var(--text3); width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.empty-title { font-size: 1.05rem; }

.mcard {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
  box-shadow: var(--shadow-1);
  display: flex; gap: 12px; align-items: flex-start;
}
.mcard:active { transform: scale(.99); }
.mcard:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow-2); }
.mcard-thumb {
  width: 64px; height: 64px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  object-fit: contain; flex-shrink: 0;
}
.mcard-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 1.4rem;
}
.mcard-thumb.type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: linear-gradient(180deg, #eef2f9 0%, #e4eaf4 100%);
  color: var(--brand);
  text-align: center;
}
.mcard-thumb.type-label span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-all;
}
.mcard-info { flex: 1; min-width: 0; }
.mname { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.mstd { font-size: .88rem; color: var(--text2); margin-top: 3px; }
.kw-hl, mark.kw-hl {
  color: #d32f2f;
  background: transparent;
  font-weight: 800;
  padding: 0;
}
.mename { font-size: .82rem; color: var(--text3); margin-top: 2px; }
.mbadge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--brand); background: rgba(var(--brand-rgb), .08);
  border-radius: 6px; padding: 2px 6px; margin-right: 4px;
}
/* 收藏页：按类别区分卡片底色 */
#fav-list .mcard[data-kind="standard"] {
  background: linear-gradient(135deg, #eef2fb 0%, #f7f9fd 100%);
  border-color: #c8d2e8;
}
#fav-list .mcard[data-kind="standard"] .mbadge {
  color: #122156;
  background: rgba(18, 33, 86, .1);
}
#fav-list .mcard[data-kind="material"] {
  background: linear-gradient(135deg, #eaf7ef 0%, #f6fbf8 100%);
  border-color: #b9dcc7;
}
#fav-list .mcard[data-kind="material"] .mbadge {
  color: #1f8a4c;
  background: rgba(31, 138, 76, .12);
}
#fav-list .mcard[data-kind="show"] {
  background: linear-gradient(135deg, #fff6e8 0%, #fffaf2 100%);
  border-color: #e8cf9a;
}
#fav-list .mcard[data-kind="show"] .mbadge {
  color: #a56b0c;
  background: rgba(201, 133, 18, .14);
}
#fav-list .mcard[data-kind="supplier"] {
  background: linear-gradient(135deg, #e8f5fa 0%, #f4fafc 100%);
  border-color: #b5d6e4;
}
#fav-list .mcard[data-kind="supplier"] .mbadge {
  color: #176a8c;
  background: rgba(23, 106, 140, .12);
}
#fav-list .mcard[data-kind="toubiao"] {
  background: linear-gradient(135deg, #f8efef 0%, #fcf6f6 100%);
  border-color: #e0c4c4;
}
#fav-list .mcard[data-kind="toubiao"] .mbadge {
  color: #a04545;
  background: rgba(160, 69, 69, .12);
}
.mcard-actions { flex-shrink: 0; }
.mcard-no-thumb { align-items: center; }
.fav-btn {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.fav-btn.on { color: var(--amber); border-color: #e2b458; background: rgba(201,133,18,.1); }

.panel {
  position: fixed; inset: 0; z-index: 200;
  overflow-x: hidden;
  overflow-y: auto;
  /* Closed: slide away then fully hide (avoid stuck visible strip on the right) */
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--dur-slow) var(--ease),
    visibility 0s linear var(--dur-slow);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: var(--bg);
}
.panel.open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  /* Show immediately on open; hide delay only when closing */
  transition:
    transform var(--dur-slow) var(--ease),
    visibility 0s linear 0s;
}
.ph {
  background: var(--brand);
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  min-height: var(--ph-stack-h);
  padding-top: calc(var(--safe-top) + var(--ph-pad-y, 10px));
  padding-bottom: var(--ph-pad-y, 10px);
  border-bottom: none !important;
  box-sizing: border-box;
}
.ptitle { color: #fff; font-size: .98rem; font-weight: 700; }
.ph .back {
  min-height: 28px;
  padding-top: .12rem !important;
  padding-bottom: .12rem !important;
  line-height: 1.2;
  font-size: .86rem;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(255,255,255,.08) !important;
}
.ph-logo-btn {
  flex: 0 0 auto;
  line-height: 0;
  opacity: .98;
}
.ph-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  background: #fff;
  padding: 3px 7px;
  border-radius: 6px;
}
.ph-fav-btn, .ph-act-btn {
  color: rgba(255,255,255,.9) !important; width: 42px !important; height: 42px !important;
}
.ph-fav-btn.on { color: #ffd166 !important; }
.pbody {
  padding: 14px;
  padding-bottom: calc(24px + var(--safe-bottom));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Detail page (skill IA) */
.standard-detail-page { max-width: 100%; }
.sd-hero .sd-code {
  font-size: 1.25rem; font-weight: 800; color: var(--brand); line-height: 1.3;
  word-break: break-word;
}
.sd-hero .sd-name {
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-top: 4px; line-height: 1.4;
}
.sd-hero .sd-ename {
  font-size: .88rem; color: var(--text2); margin-top: 4px; line-height: 1.4;
}
.sd-hero { margin-bottom: 10px; }

.sd-grade-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-grade-item {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(var(--brand-rgb), .14);
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 36px 12px 14px;
  color: inherit;
}
.sd-grade-item:active { background: rgba(var(--brand-rgb), .06); }
.sd-grade-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.sd-grade-alias {
  margin-top: 4px;
  font-size: .86rem;
  color: var(--muted, #6b7280);
}
.sd-grade-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b5;
  font-size: .95rem;
}
.sd-meta { margin-top: 4px; }
.sd-jumps {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 0 10px;
  margin: 0 0 4px;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  /* Sit fully below sticky .ph (JS may override --ph-stack-h with measured height) */
  top: var(--ph-stack-h);
  z-index: 9;
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(18, 33, 86, 0.08);
}
.sd-jump {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); font-size: .82rem; font-weight: 600;
  border-radius: 999px; padding: 6px 12px; min-height: 36px;
}
.sd-jump:active { background: rgba(var(--brand-rgb), .08); color: var(--brand); }
/* Anchor offset: detail header + jump chips */
.standard-detail-page .dsec[id],
.standard-detail-page [id^="sd-"] {
  scroll-margin-top: calc(var(--ph-stack-h) + 52px);
}
/* 图示：三维居中 + 尺寸图通栏，无 Tab */
.sd-media-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-bottom: 12px;
}
.sd-media-center .sd-media-item {
  display: block; width: auto; max-width: 72%;
  pointer-events: none; user-select: none;
}
.sd-media-center img {
  display: block; width: 100%; max-width: 260px; max-height: 220px;
  margin: 0 auto; object-fit: contain;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.sd-media-3d {
  width: 100%;
  align-items: stretch;
}
.sd-3d-entry {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sd-3d-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sd-3d-open img {
  display: block;
  width: 100%;
  max-width: 260px;
  max-height: 220px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
  user-select: none;
}
.sd-3d-open-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #122156, #1e3a8a);
}
.sd-3d-open.is-open .sd-3d-open-label {
  background: #f4510b;
}
.sd-3d-panel {
  width: 100%;
  max-width: none;
  margin: 4px 0 0;
  padding: 10px 10px 12px;
  border-radius: 10px;
  background: #eef2f8;
  border: 1px solid rgba(18, 33, 86, .16);
  box-shadow: none;
}
.sd-3d-panel[hidden] { display: none !important; }
.sd-3d-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.sd-3d-frame-wrap {
  width: 100%;
  /* 与 /3d/index.php embed #ctrl(400px) 一致，避免裁掉底部视角按钮 */
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid rgba(18, 33, 86, .1);
  /* 两侧留白：手指可在边缘滑动翻页，避免误触 3D */
  margin: 0 auto;
  max-width: calc(100% - 28px);
}
.sd-3d-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f7fa;
}
.sd-media-drawing {
  display: flex; flex-direction: column; gap: 10px;
  margin-left: -14px; margin-right: -14px;
  width: calc(100% + 28px);
}
.sd-media-drawing .sd-media-item {
  display: block; width: 100%;
  pointer-events: none; user-select: none;
}
.sd-media-drawing img {
  display: block; width: 100%; height: auto; max-height: none;
  object-fit: contain; background: #fff;
  border: none; border-radius: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sd-empty {
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: 10px; padding: 14px; color: var(--text2); font-size: .9rem;
}
.sd-link-list { display: flex; flex-direction: column; gap: 8px; }
.sd-link-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: 1px solid var(--border); background: var(--bg2);
  border-radius: 10px; padding: 8px 10px; color: inherit; min-height: 56px;
}
.sd-link-item:active { background: rgba(var(--brand-rgb), .06); }
.sd-link-thumb {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px;
  background: #fff; border: 1px solid var(--border); flex-shrink: 0;
}
.sd-link-thumb.placeholder {
  display: flex; align-items: center; justify-content: center; color: var(--text3);
}
.sd-link-name { font-weight: 700; font-size: .92rem; color: var(--brand); }
.sd-link-sub { font-size: .82rem; color: var(--text2); margin-top: 2px; }
.sd-foot { border-top: 1px solid var(--border); padding-top: 12px; }

.dsec { margin-bottom: 16px; }
.dsec-title {
  font-size: .88rem; color: var(--text2); font-weight: 700;
  margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
}
.dimg-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.dimg-row img {
  max-height: 160px; max-width: 220px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border); object-fit: contain;
}
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.dp-lbl { font-size: .78rem; color: var(--text2); font-weight: 600; }
.dp-val { font-size: 1rem; font-weight: 700; color: var(--brand); margin-top: 2px; word-break: break-all; }
.tool-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btns .btn { font-weight: 600; }
.tool-btns-main {
  justify-content: center;
  gap: 12px;
  margin: 4px 0 8px;
}
.tool-main-btn {
  min-width: 42%;
  min-height: 44px;
  padding: .55rem 1.2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), .22);
}
.gb-form-wrap { margin-top: 4px; }
.gb-form {
  border-radius: 12px;
}
/* 留言询价：蓝色底 */
.gb-form--message {
  background: #dcebff !important;
  border: 1px solid #7eb0ef !important;
  box-shadow: 0 4px 14px rgba(37, 99, 180, .12);
}
/* 我要采购：浅蓝底 */
.gb-form--purchase {
  background: #e8f1ff !important;
  border: 1px solid #8eb6ef !important;
  box-shadow: 0 4px 14px rgba(37, 99, 180, .12);
}
/* 我也能供货：琥珀底 */
.gb-form--supply {
  background: #fff4e5 !important;
  border: 1px solid #f0c48a !important;
  box-shadow: 0 4px 14px rgba(180, 120, 40, .12);
}
/* 纠错与意见：绿色底 */
.gb-form--correction {
  background: #ddf7e6 !important;
  border: 1px solid #6fc48a !important;
  box-shadow: 0 4px 14px rgba(25, 135, 84, .12);
}
.mat-gb-sec { margin-top: 12px; margin-bottom: 6px; }
.mat-gb-btns {
  gap: 8px !important;
  margin: 2px 0 4px !important;
}
.mat-gb-btns .tool-main-btn {
  min-width: 0;
  flex: 1 1 42%;
  min-height: 34px;
  padding: .28rem .7rem !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  box-shadow: none;
  white-space: nowrap;
}
.mat-gb-btns .btn-outline-primary.tool-main-btn {
  box-shadow: none;
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.mat-gb-btns .btn-outline-primary.tool-main-btn:hover,
.mat-gb-btns .btn-outline-primary.tool-main-btn:focus,
.mat-gb-btns .btn-outline-primary.tool-main-btn:active,
.mat-gb-btns .btn-outline-primary.tool-main-btn:focus-visible {
  background: rgba(var(--brand-rgb), .08) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: none !important;
}
.gb-form .form-control {
  border-radius: 8px; min-height: 40px;
  background: #fff;
}
.gb-form textarea.form-control { min-height: 96px; }
.gb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .86rem; font-weight: 600; color: var(--text2);
  background: #fff; border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px; padding: 6px 10px; min-height: 36px;
}
.gb-tag input { margin: 0; }
.hist-chain { display: flex; flex-direction: column; gap: 8px; }
.hist-link, .equ-row, .sup-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.hist-link.current { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); font-weight: 700; }
.hist-link.tap { color: var(--accent); cursor: pointer; }
.equ-row .equ-cate { font-size: .8rem; color: var(--text3); }
.equ-row .equ-info { font-weight: 700; color: var(--text); }
.sd-ads {
  margin-bottom: 12px;
}
.sd-ad-item {
  display: block;
  margin: 0 -14px 8px;
  width: calc(100% + 28px);
  line-height: 0;
  overflow: hidden;
  background: #fff;
}
.sd-ad-item:last-child { margin-bottom: 0; }
.sd-ad-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  vertical-align: top;
}
.sup-sec-bar {
  display: flex; align-items: center;
  margin: 0 -14px 10px;
  padding: 10px 14px;
  font-size: .95rem; font-weight: 800; letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(90deg, var(--brand) 0%, #1e3a8a 100%);
  border-top: 1px solid rgba(18, 33, 86, .25);
  border-bottom: 1px solid rgba(18, 33, 86, .25);
}
.sup-promo-tip {
  text-align: center;
  color: #d32f2f;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}
.sup-card .sup-name { font-weight: 700; font-size: 1rem; }

/*
 * 联系人 / 手机 / 电话 / 邮箱 / QQ：统一行高与行距
 * 标准详情、牌号详情、公司栏目共用同一套节奏
 */
.sup-card,
.sup-contact {
  --sup-field-gap: 6px;
  --sup-field-lh: 1.45;
  --sup-field-min-h: 22px;
  --sup-field-size: .9rem;
}
.sup-card .sup-line,
.sup-contact .sup-line,
.sup-card .sup-contact-group,
.sup-contact .sup-contact-group {
  font-size: var(--sup-field-size);
  color: var(--text2);
  line-height: var(--sup-field-lh);
  min-height: var(--sup-field-min-h);
  margin: 0;
  box-sizing: border-box;
}
/* 公司名 / 联系人名之后、各字段之间：等距 */
.sup-card > .sup-name + .sup-line,
.sup-card > .sup-name + .sup-contact-group,
.sup-card > .sup-line + .sup-line,
.sup-card > .sup-line + .sup-contact-group,
.sup-card > .sup-contact-group + .sup-line,
.sup-card > .sup-contact-group + .sup-contact-group {
  margin-top: var(--sup-field-gap);
}
.sup-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sup-field-gap);
}
.sup-contact > .sup-line,
.sup-contact > .sup-contact-group {
  margin-top: 0 !important;
}
/* 手机/邮箱多值：标签只出现一次；单值已改走 .sup-line，与电话行高一致 */
.sup-contact-group {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 0;
  /* 避免 group 再叠一层 min-height，把与下一字段的间距撑大 */
  min-height: 0 !important;
}
.sup-contact-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: var(--sup-field-min-h);
  line-height: var(--sup-field-lh);
  white-space: nowrap;
  padding: 0;
}
.sup-contact-values {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sup-field-gap);
}
.sup-contact-values .sup-line {
  margin: 0 !important;
  min-height: var(--sup-field-min-h);
  line-height: var(--sup-field-lh);
}
/* 手机/电话单行：标签+号码+复制同一基线，不因复制按钮撑高行距 */
.sup-line-phone,
.sup-line-copy {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 6px;
  min-height: var(--sup-field-min-h);
}
.sup-line-phone .sup-line-main,
.sup-line-copy .sup-line-main {
  min-width: 0;
  line-height: var(--sup-field-lh);
  display: inline;
}
.sup-line-main .sup-tel,
.sup-line-main .sup-mail {
  line-height: inherit;
  vertical-align: baseline;
}
.sup-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  padding: 0;
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  min-height: 1.15em;
  line-height: 1;
  color: rgba(91, 100, 122, .55) !important;
  border: 0;
  background: transparent;
  text-decoration: none !important;
  box-shadow: none !important;
}
.sup-copy-btn:hover,
.sup-copy-btn:focus {
  color: rgba(91, 100, 122, .9) !important;
  background: transparent;
}
.sup-copy-btn .bi { font-size: .92rem; }
.param-unit { font-size: .9rem; color: var(--text2); margin-bottom: 10px; }
.param-l-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.param-l-row label { font-size: .9rem; font-weight: 600; color: var(--text); margin: 0; }
.param-lid { width: auto; min-width: 96px; max-width: 160px; display: inline-block; }
.param-l-hint { font-size: .78rem; color: var(--text3); }
.param-hint {
  font-size: .8rem; color: var(--text3); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
/* 规格分段选择（对齐 m/biaozhun btn-group） */
.param-seg {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 4px 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border);
}
.param-seg-item {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 4px 2px 8px;
  border: 0;
  background: transparent;
  color: #996;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.param-seg-item::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background .2s ease;
}
.param-seg-item.on {
  color: #09f;
}
.param-seg-item.on::after {
  background: #09f;
}
.param-scroll,
.standard-table-scroll {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg2);
  isolation: isolate;
  scrollbar-gutter: stable;
  position: relative;
}
/* 横向可滑提示：由 JS 切换 is-scrollable / at-start / at-end */
.standard-table-scroll.is-scrollable:not(.at-end)::after,
.param-scroll.is-scrollable:not(.at-end)::after {
  content: '';
  position: sticky;
  float: right;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  margin-left: -18px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(18, 33, 86, 0.12));
}
.standard-table-scroll.is-scrollable:not(.at-start)::before,
.param-scroll.is-scrollable:not(.at-start)::before {
  content: '';
  position: sticky;
  float: left;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  margin-right: -18px;
  pointer-events: none;
  background: linear-gradient(270deg, transparent, rgba(18, 33, 86, 0.12));
}
.param-table {
  /* separate 比 collapse 更利于 sticky 首列遮挡横向滚动内容 */
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: .82rem; white-space: nowrap;
}
.param-table th, .param-table td {
  border: 1px solid var(--border);
  border-top-width: 0;
  border-left-width: 0;
  padding: 8px 10px; text-align: center; vertical-align: middle;
  background-color: var(--bg2);
}
.param-table tr > *:first-child { border-left-width: 1px; }
.param-table thead tr:first-child > * { border-top-width: 1px; }
.param-table thead th {
  background-color: #e8eef8;
  font-weight: 700; color: var(--text);
  position: sticky; top: 0; z-index: 1;
}
.param-table tbody th, .param-table .param-corner {
  /* 必须用不透明底，否则横向滑动时右侧数字会叠在首列文字上 */
  background-color: #eef1f7;
  font-weight: 600; text-align: left;
  position: sticky; left: 0; z-index: 3; min-width: 88px;
  box-shadow: 2px 0 0 var(--border);
}
.param-table thead .param-corner {
  z-index: 5;
  background-color: #dde6f4;
  box-shadow: 2px 0 0 var(--border);
}
.param-table tbody td { z-index: 0; }
.param-table .param-extra td { background-color: #fbf6eb; }
.param-table .param-extra th {
  background-color: #f5ebd4;
  box-shadow: 2px 0 0 var(--border);
}
/*
 * 安卓：禁止浏览器原生横向手势（touch-action:pan-y），改由 JS 驱动 scrollLeft，
 * 避免被外层 .panel 纵向滚动抢走；同时恢复 sticky 首列。
 */
body.is-android .param-scroll,
body.is-android .standard-table-scroll,
body.is-android .mat-table-wrap.standard-table-scroll,
body.is-android .mat-mech-hscroll {
  -webkit-overflow-scrolling: auto;
  touch-action: pan-y;
}
body.is-android .param-table tbody th,
body.is-android .param-table .param-corner,
body.is-android .param-table thead .param-corner {
  position: sticky;
  left: 0;
  /* 强制合成层，减轻部分 WebView 横向滚动时首列闪烁/穿透 */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
body.is-android .param-table thead th {
  position: sticky;
  top: 0;
}
.sup-tel {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 4px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.sup-tel:active { background: var(--accent-soft); border-radius: 6px; }

.param-notes { margin-top: 10px; font-size: .82rem; color: var(--text2); }
.param-note { margin-top: 4px; line-height: 1.45; }
.param-note-mark { color: var(--brand); font-weight: 700; }
#param-block.param-loading { opacity: .55; pointer-events: none; }

.htab-row { border-bottom: 1px solid var(--border); }
.htab.nav-link {
  color: var(--text2); white-space: nowrap; font-size: .92rem; font-weight: 600;
  min-height: 40px; display: inline-flex; align-items: center; padding: .45rem .85rem;
}
.htab.nav-link.on, .htab.nav-link.active {
  color: #fff; background: var(--brand);
}

.hist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; min-height: 48px;
  width: 100%; text-align: left; border: none; background: transparent; color: inherit;
}
.hist-item:hover { background: var(--bg3); }
.hist-icon { color: var(--text2); }
.hist-text { font-size: .95rem; flex: 1; font-weight: 500; }
.hist-sub { font-size: .82rem; color: var(--text2); margin-top: 2px; }

.fav-summary-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(201,133,18,.12); border: 1px solid rgba(201,133,18,.25);
  display: flex; align-items: center; justify-content: center; color: var(--amber);
}
.about-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.about-section .badge {
  background: rgba(var(--brand-rgb), .08) !important;
  color: var(--brand) !important;
  font-weight: 600;
}
.about-footnote {
  margin: 8px 4px 0;
  font-size: .72rem;
  line-height: 1.55;
  opacity: .85;
}

/* 提交留言 */
.leave-form {
  max-width: 520px;
  margin-top: 8px;
}
.leave-form .form-control,
.leave-form .form-select {
  min-height: 42px;
  border-radius: 10px;
}
.leave-form textarea.form-control {
  min-height: 110px;
}
.leave-contact-title {
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.leave-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 展会 */
.shows-ads { display: none; }
.shows-ad-item {
  display: block;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.shows-ad-item:last-child { margin-bottom: 0; }
.shows-ad-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.shows-sbar .form-control { font-size: .95rem; }
.shows-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
}
.shows-card:active { background: var(--bg2); }
.shows-card-info { cursor: pointer; }
.shows-card .fav-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text3);
  padding: 6px;
  line-height: 1;
}
.shows-card .fav-btn.on { color: var(--amber); }
.shows-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg2);
  flex-shrink: 0;
}
.shows-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1.35rem;
}
.shows-card-info { flex: 1; min-width: 0; }
.shows-card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.shows-card-date {
  margin-top: 4px;
  font-size: .8rem;
  color: var(--text2);
}
.shows-card-arrow { color: var(--text2); flex-shrink: 0; }
/* Show detail uses same blue top bar as standard detail; hide global navbar tag/chrome */
body.shows-detail-open .app-navbar,
body.shows-detail-open .app-status-fill {
  display: none !important;
}
body.shows-detail-open .bnav.fixed-bottom {
  display: none !important;
}
body.shows-detail-open .app-logo-tag {
  display: none !important;
}
.shows-detail {
  background: var(--bg);
  z-index: 201;
}
.shows-detail-bar.ph {
  position: sticky;
  top: 0;
  z-index: 20;
}
.shows-detail-body {
  padding-bottom: calc(24px + var(--safe-bottom));
}
.shows-detail-h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}
.shows-meta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}
.shows-meta-row {
  font-size: .88rem;
  color: var(--text2);
  margin-top: 4px;
}
.shows-meta-row:first-child { margin-top: 0; }
.shows-detail-html {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.shows-detail-html p,
.shows-detail-html div,
.shows-detail-html section,
.shows-detail-html article {
  margin: 0 0 .45em;
  padding: 0;
  line-height: 1.55;
}
.shows-detail-html p:last-child,
.shows-detail-html div:last-child {
  margin-bottom: 0;
}
.shows-detail-html h1,
.shows-detail-html h2,
.shows-detail-html h3,
.shows-detail-html h4 {
  margin: .75em 0 .35em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.shows-detail-html h1:first-child,
.shows-detail-html h2:first-child,
.shows-detail-html h3:first-child {
  margin-top: 0;
}
.shows-detail-html ul,
.shows-detail-html ol {
  margin: .35em 0 .55em;
  padding-left: 1.25em;
}
.shows-detail-html li {
  margin: 0 0 .2em;
  padding: 0;
  line-height: 1.45;
}
.shows-detail-html br { line-height: 1.2; }
/* Hide leftover empty nodes from CMS HTML */
.shows-detail-html p:empty,
.shows-detail-html div:empty,
.shows-detail-html span:empty,
.shows-detail-html li:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}
.shows-detail-html img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: .55em 0;
  border-radius: 8px;
}
.shows-detail-html table {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  margin: .5em 0;
}

.bnav {
  background: #e9eef8 !important;
  min-height: var(--bnav-h);
  padding-bottom: var(--safe-bottom);
  z-index: 100;
  backdrop-filter: blur(8px);
  border-top: 1px solid #c8d2e6 !important;
}
.bnav-row {
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  padding: 0 2px;
}
.bnav-btn {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--text2);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  border: none;
  background: none;
  min-height: var(--bnav-h);
  border-radius: 0;
}
.bnav-btn .bnav-ic,
.bnav-btn > i { display: none !important; }
.bnav-btn.on { color: var(--brand); }
.bnav-ic { display: none; }

.app-toast-wrap {
  bottom: calc(var(--bnav-h) + var(--safe-bottom) + 16px);
  z-index: 500;
}
#toast .toast-body { font-size: .95rem; padding: .75rem 1rem; }

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-border-color: var(--brand-soft);
  --bs-btn-active-bg: #0d1840;
  --bs-btn-active-border-color: #0d1840;
}
.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
}

/* ── v24 usability / accessibility / PWA status ── */
html { min-height: 100%; }
.app-body { min-height: 100vh; min-height: 100dvh; }
.app-shell { min-height: 100vh; min-height: 100dvh; }

button, a, input, select, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.mcard:focus-visible {
  outline: 3px solid rgba(47, 107, 255, .35);
  outline-offset: 2px;
}

.network-banner,
.update-banner {
  position: sticky;
  top: var(--topbar-stack);
  z-index: 118;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: .86rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 3px 10px rgba(18, 33, 86, .08);
}
.network-banner[hidden], .update-banner[hidden] { display: none !important; }
.network-banner { color: #6b4b00; background: #fff4cf; }
.update-banner {
  color: #fff;
  background: linear-gradient(90deg, #f4510b, #e03e00);
  min-height: 48px;
  font-size: .92rem;
  animation: update-banner-pulse 1.6s ease-in-out infinite;
}
@keyframes update-banner-pulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(244, 81, 11, .22); }
  50% { box-shadow: 0 4px 16px rgba(244, 81, 11, .45); }
}
.network-banner span, .update-banner span { flex: 1; }
.network-banner .btn-link { color: inherit; font-weight: 700; padding: .25rem .45rem; }
.update-banner .btn {
  font-weight: 700;
  white-space: nowrap;
  color: #f4510b;
  background: #fff;
  border: 0;
}

.home-beian {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 27, 63, 0.08);
  font-size: 11px;
  line-height: 1.7;
  color: #8a93a6;
}
.home-beian a {
  color: #7a8496;
  text-decoration: none;
}
.home-beian a:hover,
.home-beian a:focus {
  color: var(--yjt-navy, #122156);
  text-decoration: underline;
}
.home-beian-sep {
  margin: 0 0.2em;
  color: #b0b8c6;
}

.home-update-prompt[hidden] { display: none !important; }
.home-update-prompt-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f2 0%, #ffe8dc 100%);
  border: 1px solid rgba(244, 81, 11, .28);
  box-shadow: 0 6px 18px rgba(244, 81, 11, .12);
}
.home-update-prompt-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f4510b, #e03e00);
  font-size: 1.25rem;
}
.home-update-prompt-body { flex: 1; min-width: 0; }
.home-update-prompt-title {
  font-size: 1rem;
  font-weight: 800;
  color: #111b3f;
  line-height: 1.25;
}
.home-update-prompt-desc {
  margin-top: 2px;
  font-size: .82rem;
  color: #5b647a;
  line-height: 1.35;
}
.home-update-prompt-btn {
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
  background: #f4510b;
  border-color: #f4510b;
  padding: .55rem .9rem;
}
.home-update-prompt-btn:hover,
.home-update-prompt-btn:focus {
  background: #e03e00;
  border-color: #e03e00;
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-search::-webkit-scrollbar { display: none; }
.quick-search-label { color: var(--text2); font-size: .78rem; white-space: nowrap; }
.quick-search-btn {
  border: 0;
  padding: 3px 7px;
  border-radius: 7px;
  color: var(--brand);
  background: rgba(var(--brand-rgb), .08);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.quick-search-btn:active { background: rgba(var(--brand-rgb), .16); }

.search-subactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.browse-entry {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}
.browse-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: .9rem;
  font-weight: 600;
  padding: 4px 0;
  line-height: 1.3;
}
.browse-entry-link:active { opacity: .75; }
.browse-entry-arrow { font-size: .85rem; opacity: .7; }
.browse-search-hero {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.browse-search-hero.sticky-top { top: var(--topbar-stack) !important; z-index: 20; }

.install-guide-entry {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}
.install-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  max-width: 7.8em;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #c2450a;
  background: rgba(244, 81, 11, 0.1);
  border: 1px solid rgba(244, 81, 11, 0.35);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.install-guide-link:hover {
  color: #a83a08;
  background: rgba(244, 81, 11, 0.16);
  border-color: rgba(244, 81, 11, 0.5);
}
.install-guide-link .bi { font-size: .9rem; color: #f4510b; }
body.is-standalone .install-guide-entry,
body.is-standalone #menu-install-guide {
  display: none !important;
}

.request-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  color: #8a2c22;
  background: #fff0ee;
  border: 1px solid #f0c7c2;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
}

.mcard[role="button"] { outline: none; }
.mcard-info { padding-top: 1px; }
.fav-btn, .menu-btn, .ph-act-btn, .ph-fav-btn { min-width: 44px; min-height: 44px; }
.bnav-btn[aria-current="page"] { color: var(--brand); }
.bnav-btn[aria-current="page"] .bnav-ic { transform: translateY(-1px); }

/* 更多底栏弹出 */
.more-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
}
.more-sheet[hidden] { display: none !important; }
.more-sheet-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(18, 33, 86, .38); cursor: pointer;
}
.more-sheet-panel {
  position: relative; width: 100%; max-width: 480px;
  background: var(--bg2); border-radius: 16px 16px 0 0;
  padding: 10px 16px calc(12px + var(--safe-bottom));
  box-shadow: 0 -8px 28px rgba(18, 33, 86, .16);
  animation: moreSheetIn .22s var(--ease);
}
@keyframes moreSheetIn {
  from { transform: translateY(18px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.more-sheet-handle {
  width: 36px; height: 4px; border-radius: 99px;
  background: var(--border); margin: 0 auto 10px;
}
.more-sheet-title {
  font-size: .92rem; font-weight: 700; color: var(--text2);
  margin-bottom: 6px; text-align: center;
}
.more-sheet-item {
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 100%; border: 0; background: transparent;
  text-align: center; padding: 14px 10px; border-radius: 12px;
  color: var(--text); font-size: 1.05rem; font-weight: 700;
}
.more-sheet-item i { display: none; }
.more-sheet-item:active { background: rgba(18, 33, 86, .06); }

/* 微信内分享引导 */
.share-sheet {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: flex-end; justify-content: center;
}
.share-sheet[hidden] { display: none !important; }
.share-sheet-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(18, 33, 86, .42); cursor: pointer;
}
.share-sheet-panel {
  position: relative; width: 100%; max-width: 480px;
  background: var(--bg2); border-radius: 16px 16px 0 0;
  padding: 10px 16px calc(14px + var(--safe-bottom));
  box-shadow: 0 -8px 28px rgba(18, 33, 86, .16);
  animation: moreSheetIn .22s var(--ease);
}
.share-sheet-handle {
  width: 36px; height: 4px; border-radius: 99px;
  background: var(--border); margin: 0 auto 10px;
}
.share-sheet-title {
  font-size: .92rem; font-weight: 700; color: var(--text2);
  margin-bottom: 10px; text-align: center;
}
.share-sheet-preview {
  background: rgba(18, 33, 86, .04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.share-sheet-name {
  font-size: 1rem; font-weight: 700; color: var(--text);
  line-height: 1.35;
}
.share-sheet-sub { margin-top: 4px; }
.share-sheet-guide {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 4px 14px;
}
.share-sheet-guide-arrow {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 33, 86, .08);
  color: var(--brand); font-size: 1.15rem; font-weight: 700;
  line-height: 1;
}
.share-sheet-guide-text {
  margin: 0; font-size: .92rem; line-height: 1.45; color: var(--text2);
}
.share-sheet-guide-text strong { color: var(--text); }

/* 材料列表 / 详情 */
body.mat-detail-open .app-navbar,
body.mat-detail-open .app-status-fill,
body.mat-detail-open .bnav.fixed-bottom {
  display: none !important;
}
.mat-detail {
  background: var(--bg);
  z-index: 201;
}
.mat-detail-bar.ph {
  position: sticky;
  top: 0;
  z-index: 20;
}
/* 详情面板自身滚动，阻止下拉刷新误关/回首页 */
body.mat-detail-open .app-shell,
body.shows-detail-open .app-shell,
body.weight-calc-open .app-shell {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.mat-detail-open,
body.shows-detail-open,
body.weight-calc-open {
  overscroll-behavior-y: none;
}
.mat-row-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mat-row-wrap:active { background: rgba(var(--brand-rgb), .05); }
.mat-row {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 8px 10px 12px;
  margin-bottom: 0;
  color: inherit;
}
.mat-row:active { background: transparent; }
.mat-fav-btn {
  flex-shrink: 0;
  align-self: center;
  margin-right: 4px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mat-fav-btn.on {
  color: var(--amber) !important;
  background: transparent !important;
}
.mat-row-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.mat-row-std {
  margin-top: 2px;
  font-size: .78rem;
  color: var(--text3);
}
.mat-row-tags {
  margin-top: 4px;
  font-size: .72rem;
  color: var(--text2);
}
.mat-badge {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef1f6;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text2);
}
.mat-badge.grade { background: #fff3e0; color: #e65100; }
.mat-hero {
  background: linear-gradient(135deg, #122156, #1e3a8a);
  color: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
}
.mat-hero-type { font-size: .78rem; opacity: .8; }
.mat-hero-name { font-size: 1.35rem; font-weight: 800; margin: 4px 0 6px; line-height: 1.25; }
.mat-hero-std { font-size: .88rem; opacity: .92; }
.mat-kv {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.mat-kv-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(0,0,0,.05);
  font-size: .88rem;
}
.mat-kv-row:first-child { border-top: 0; }
.mat-kv-k { flex: 0 0 88px; color: var(--text3); }
.mat-kv-v { flex: 1; min-width: 0; color: var(--text); font-weight: 600; word-break: break-word; }
.mat-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}
.mat-scroll-hint {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(var(--brand-rgb), .1);
  border: 1px solid rgba(var(--brand-rgb), .22);
  color: var(--brand);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.35;
}
.mat-scroll-hint i {
  font-size: 1.15em;
  opacity: .95;
}
.mat-scroll-hint[hidden] { display: none !important; }
.mat-table-wrap.standard-table-scroll {
  margin-bottom: 12px;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-inline: contain;
  isolation: isolate;
  position: relative;
}
.mat-table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: .8rem;
}
.mat-table th, .mat-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}
.mat-table th { background: #edf2fa; color: var(--text2); font-weight: 700; }
.mat-table td.mat-mech-item {
  white-space: normal;
  min-width: 5.2em;
  max-width: 8.5em;
  line-height: 1.25;
}
.mat-mech-hscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mat-mech-htable {
  width: max-content;
  min-width: 100%;
}
.mat-mech-htable th,
.mat-mech-htable td {
  white-space: normal;
  min-width: 4.8em;
  max-width: 10.5em;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
}
.mat-mech-htable td.mat-mech-val {
  line-height: 1.55;
  white-space: pre-line;
}
.mat-mech-htable th.mat-mech-sticky,
.mat-mech-htable td.mat-mech-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #edf2fa;
  text-align: left;
  min-width: 5.2em;
  max-width: 7.5em;
  box-shadow: 1px 0 0 var(--border);
}
.mat-mech-htable td.mat-mech-sticky {
  background: #fff;
  font-weight: 600;
}
/* 安卓：首列用不透明底保证 sticky（横向手势见上方 pan-y + JS） */
body.is-android .mat-mech-htable th.mat-mech-sticky,
body.is-android .mat-mech-htable td.mat-mech-sticky {
  background-color: #edf2fa;
}
body.is-android .mat-mech-htable td.mat-mech-sticky {
  background-color: #fff;
}
.mat-mech-htable thead th {
  white-space: normal;
}
.mat-mech-name {
  font-weight: 700;
  color: var(--text);
  font-size: .78rem;
}
.mat-mech-meta {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 3px;
  font-size: .68rem;
  line-height: 1.2;
}
.mat-mech-sym { color: var(--text2); font-weight: 600; }
.mat-mech-unit { color: #8a5a12; font-weight: 700; }
.mat-mech-sep { color: var(--text3); }
.mat-mech-val, .mat-mech-size {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mat-sec-title {
  font-size: .95rem;
  font-weight: 800;
  margin: 14px 0 8px;
  color: var(--brand);
}
.mat-sec-title--with-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mat-sec-title-text {
  min-width: 0;
}
.mat-sec-jump {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent, #2563b4);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.mat-sec-jump:active {
  opacity: .75;
}
.mat-filter-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.mat-filter-select {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  border-color: var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: .86rem;
}
.mat-pc-tip a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.mat-pc-tip a:hover { text-decoration: underline; }
.mat-note-tip {
  color: #888;
  font-style: italic;
  font-size: .78rem;
  margin: -4px 0 10px;
  line-height: 1.4;
}
.mat-note-box {
  background: #fff4ea;
  border: 1px solid #f0d9c0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: -4px 0 12px;
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.45;
  white-space: pre-line;
}
.mat-chem-htable {
  width: max-content;
  min-width: 100%;
}
.mat-chem-htable th,
.mat-chem-htable td {
  text-align: center;
  white-space: nowrap;
  font-size: .78rem;
}
.mat-chem-htable th.mat-chem-note,
.mat-chem-htable td.mat-chem-note {
  text-align: left;
  white-space: normal;
  min-width: 4.5em;
  max-width: 7em;
  font-size: .72rem;
  color: var(--text2);
}
.mat-hist-table td { white-space: normal; vertical-align: top; }
.mat-hist-mark { margin: 2px 0; line-height: 1.35; }
.mat-hist-badge {
  display: inline-block;
  background: #eef2f7;
  border: 1px solid #d5dde8;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .78rem;
  margin: 1px 2px 1px 0;
}
.mat-detail-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.mat-detail-h {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--text);
}
.mat-detail-h2 {
  font-weight: 700;
  font-size: .88rem;
  margin: 8px 0 4px;
}
.mat-detail-body {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--text2);
  word-break: break-word;
  /* 裁切外溢，迫使宽表在 .mat-table-wrap 内横向滚动，而不是撑开整页 */
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.mat-detail-body .mat-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* 详细说明内表格：保留网格线（对齐材数库 .table-init） */
.mat-detail-body table {
  border-collapse: collapse;
  max-width: 100%;
  margin: .4em 0 .7em;
  font-size: .82rem;
  background: #fff;
}
/* 材料宽表：取消 max-width:100%，否则 Android 上 scrollWidth≈clientWidth 无法滑 */
.mat-detail-body .mat-table-wrap > table,
.mat-detail-body table.mat-chem-htable,
.mat-detail-body table.mat-mech-htable,
.mat-detail-body table.mat-approx-table {
  max-width: none;
  width: max-content;
  min-width: 100%;
}
.mat-detail-body table td,
.mat-detail-body table th {
  padding: 7px 9px;
  border: 1px solid #cfd6e2 !important;
  vertical-align: middle;
  color: var(--text);
}
.mat-detail-body table thead tr,
.mat-detail-body table tr:first-child th {
  background-color: #f3f6fb;
}
.mat-detail-body table.table-row {
  border: 1px solid #cfd6e2;
}
.mat-detail-body table.table-row td,
.mat-detail-body table.table-row th {
  border: 0 !important;
  border-right: 1px solid #cfd6e2 !important;
}
.mat-detail-body table.table-row tr:first-child {
  background-color: #f3f6fb;
}
.mat-detail-body p { margin: 0 0 .45em; }
.mat-detail-body img,
.mat-detail-img img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 6px;
}
.mat-detail-sub { margin-left: 8px; padding-left: 8px; border-left: 2px solid #e5eaf2; }
.mat-approx-block { margin-bottom: 12px; }
.mat-approx-title {
  font-size: .82rem;
  color: var(--text2);
  margin: 0 0 6px;
}
.mat-approx-table th { background: #edf6fc; }
.mat-peer-heading {
  margin: 16px 0 10px;
  color: #900;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}
.mat-peer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.mat-peer-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(18, 33, 86, 0.06);
}
.mat-peer-card.is-current {
  border-color: #ffc107;
  background: #fff8e6;
}
.mat-peer-card[data-mat-key] { cursor: pointer; }
.mat-peer-card[data-mat-key]:active { opacity: .92; }
.mat-peer-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.mat-peer-no {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #6c757d;
  font-size: .78rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.mat-peer-no.is-current {
  border-color: #ffc107;
  background: #ffc107;
  color: #fff;
}
.mat-peer-std-wrap { flex: 1; min-width: 0; }
.mat-peer-std-link {
  color: #0d6efd;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
  word-break: break-word;
}
a.mat-peer-std-link:hover { text-decoration: underline; }
.mat-peer-std-link.is-current { color: #0d6efd; }
.mat-peer-std-sub {
  margin-top: 2px;
  color: var(--text3);
  font-size: .78rem;
  line-height: 1.4;
}
.mat-peer-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mat-peer-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #495057;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  word-break: break-word;
}
a.mat-peer-tag:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}
.mat-peer-card.is-current .mat-peer-tag {
  background: #fff;
}
.mat-peer-std { font-weight: 700; margin-bottom: 4px; }
.mat-peer-link { color: var(--brand); text-decoration: none; font-weight: 700; }
.mat-peer-link:hover { text-decoration: underline; }
.mat-peer-current { color: #e65c00; font-weight: 800; }
.mat-pc-full a {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
}
.mat-pc-full a:hover { text-decoration: underline; }

/* 供应商筛选：纯文字、换行全展示、选中红色；三层背景色差 */
.sup-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  overflow: visible;
  padding: 8px 10px;
  line-height: 1.45;
  border-radius: 10px;
}
.sup-filter-country {
  background: #e8eef8;
}
.sup-filter-parent {
  background: #f3f0e8;
}
.sup-filter-child {
  background: #eaf5ef;
}
.sup-chip {
  display: inline;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text2) !important;
  font-size: .82rem !important;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sup-chip:hover { color: var(--text) !important; }
.sup-chip.on {
  background: transparent !important;
  color: #d32f2f !important;
  font-weight: 700;
}
.sup-cap-tip {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4e5;
  border: 1px solid #ffd8a8;
  color: #b35c00;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
}
/* 单重计算页：顶栏与标准/展会详情统一（Logo + 返回） */
body.weight-calc-open .app-navbar,
body.weight-calc-open .app-status-fill {
  display: none !important;
}
body.weight-calc-open .bnav.fixed-bottom {
  display: none !important;
}
.weight-calc {
  background: var(--bg);
  z-index: 201;
}
.weight-calc-bar.ph {
  position: sticky;
  top: 0;
  z-index: 20;
}
.weight-calc-body {
  padding-bottom: calc(24px + var(--safe-bottom));
}

/* 单重：形状选择 */
.weight-shape-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.weight-shape-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px 8px;
  min-width: 0;
  cursor: pointer;
  text-align: center;
  color: inherit;
}
.weight-shape-card:active {
  background: rgba(var(--brand-rgb), .05);
}
.weight-shape-media {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f9;
  border-radius: 8px;
  overflow: hidden;
}
.weight-shape-media img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  display: block;
}
.weight-shape-media .ph {
  color: var(--text3);
  font-size: 1.5rem;
}
.weight-shape-name {
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weight-shape-name .kw-hl,
.weight-shape-name mark.kw-hl {
  color: #d32f2f;
  background: transparent;
  font-weight: 800;
}
.weight-shape-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: .65rem;
  font-weight: 700;
  color: #e65100;
  background: #fff3e0;
  border-radius: 999px;
  padding: 1px 6px;
}
@media (min-width: 560px) {
  .weight-shape-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.sup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.sup-card {
  position: relative;
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  cursor: pointer;
}
.sup-card.open {
  border-color: rgba(var(--brand-rgb), .35);
  background: rgba(var(--brand-rgb), .03);
}
.sup-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sup-card:active, .sup-card-link:active { background: transparent; }
.sup-card-body { min-width: 0; }
.sup-card-name-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.sup-card-chevron {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--text3);
  font-size: .9rem;
  transition: transform .18s ease;
}
.sup-card.open .sup-card-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}
.sup-card-contacts {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.sup-card-contacts[hidden] { display: none !important; }
.sup-card-actions {
  margin-top: 10px;
  padding-top: 2px;
}
.sup-card-actions .tool-main-btn.active {
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .35);
}
.sup-card-actions .btn-outline-primary.tool-main-btn.active {
  background: rgba(var(--brand-rgb), .1) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.gb-form--inquiry {
  background: #e8f1ff !important;
  border: 1px solid #8eb6ef !important;
  box-shadow: 0 4px 14px rgba(37, 99, 180, .12);
}
.sup-contact + .sup-contact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.05);
}
.sup-contact-name {
  font-size: var(--sup-field-size, .9rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: var(--sup-field-lh, 1.45);
  min-height: var(--sup-field-min-h, 22px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
}
.sup-contact-duty {
  font-weight: 500;
  color: var(--text3);
  font-size: .82rem;
  line-height: inherit;
}
.sup-contacts-empty {
  font-size: .85rem;
  color: var(--text3);
}
.sup-mail { color: var(--accent); text-decoration: none; }
.sup-fav-btn {
  flex: 0 0 auto;
  display: inline;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 2px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #999 !important;
  font-size: .95rem !important;
  font-weight: 400;
  line-height: 1.35;
  vertical-align: baseline;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.sup-fav-btn.on { color: #e6a100 !important; }
.sup-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f7;
}
.sup-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sup-card-img.ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 1.6rem;
}
.sup-card-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}
.sup-card-tags {
  margin-top: 5px;
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.45;
  max-height: 3.2em;
  overflow: hidden;
}
.sup-card-tags b {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}
.sup-card-tags span {
  display: inline-block;
  background: #e8edf5;
  color: var(--text2);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 1px 3px 1px 0;
}
.sup-card .kw-hl, .sup-card mark.kw-hl {
  color: #d32f2f;
  background: transparent;
  font-weight: 800;
}

.tb-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px 4px;
  color: var(--text3);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.tb-pdf-link i {
  font-size: .92rem;
  color: #b85c5c;
  opacity: .85;
}
.tb-pdf-link:hover {
  color: var(--text2);
  text-decoration: underline;
}
.tb-pdf-link:hover i { opacity: 1; }

/* 头标查询 */
#v-toubiao .sec-lbl { font-size: .8rem; }
#v-toubiao .sec-sub { font-size: .75rem !important; margin-top: 1px; }
.tb-letter-wrap { gap: 4px 6px; max-height: none; overflow: visible; }
.tb-letter {
  min-height: 30px !important; min-width: 30px;
  font-size: .82rem !important; font-weight: 700;
  padding: .2rem .5rem !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  background: transparent !important;
  color: var(--text2) !important;
}
.tb-letter:hover {
  background: rgba(18, 33, 86, .08) !important;
  color: var(--text) !important;
}
.tb-letter.on {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
  box-shadow: 0 2px 8px rgba(18, 33, 86, .28);
}
#v-toubiao #tb-company,
#v-toubiao #tb-logo {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  border-color: var(--border2);
  background: #fff;
}
#v-toubiao #tb-company:focus,
#v-toubiao #tb-logo:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(18, 33, 86, .15);
  color: var(--text);
  font-weight: 700;
}
#v-toubiao #tb-company::placeholder,
#v-toubiao #tb-logo::placeholder {
  color: #6b7385;
  opacity: 1;
  font-weight: 500;
}
.tb-card {
  position: relative;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.tb-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.tb-card-aside {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 46%;
}
.tb-fav-btn {
  position: static;
  flex-shrink: 0;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}
.tb-country {
  font-size: .75rem;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.tb-company {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.tb-logos { margin-top: 6px; }
.tb-logo-txt { font-size: .88rem; color: var(--text); line-height: 1.4; word-break: break-word; }
.tb-logo-txt .kwHL { color: #c0392b; font-weight: 700; }
.tb-logo-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tb-logo-img {
  max-height: 40px; max-width: 90px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px;
}
.tb-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 6px; font-size: .75rem; color: var(--text3);
}

.cards[aria-busy="true"] { opacity: .68; }
.result-bar .btn[disabled] { opacity: .55; pointer-events: none; }

.app-version { opacity: .82; }

.gb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


@media (max-width: 480px) {
  .ph { gap: 6px !important; padding-left: 10px !important; padding-right: 10px !important; }
  .ph .back {
    width: auto;
    min-width: 0;
    padding-left: 8px !important;
    padding-right: 10px !important;
  }
  .ph .back-text { display: inline; }
  .ptitle { min-width: 0; }
  .ph-actions { gap: 0 !important; }
}

@media (max-width: 374px) {
  .app-logo-tag { display: none; }
  .app-logo-img { max-width: 145px; }
  .install-pill { padding-left: .65rem !important; padding-right: .65rem !important; }
  .quick-search-label { display: none; }
  .ph { gap: 4px !important; padding-left: 8px !important; padding-right: 8px !important; }
  .ph-logo-img { max-width: 76px; height: 24px; }
  .ph .back {
    width: auto;
    min-width: 0;
    padding-left: 6px !important;
    padding-right: 8px !important;
  }
  .ph .back-text { display: inline; }
  .ptitle { font-size: .82rem; min-width: 0; }
  .ph-actions { gap: 0 !important; }
  .ph-act-btn, .ph-fav-btn { width: 40px !important; min-width: 40px !important; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* Status banners remain in document flow so they never cover the sticky search bar. */
.network-banner, .update-banner { position: relative; top: auto; }

/* ── Weight / volume calculator：默认收起，点击后展开 ── */
.math-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  justify-content: center;
}
.math-entry-actions .btn {
  min-height: 42px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.math-open-btn {
  background: #f4510b !important;
  border-color: #f4510b !important;
}
.math-open-btn:hover,
.math-open-btn:active {
  background: #d94408 !important;
  border-color: #d94408 !important;
}
.math-panel {
  margin-top: 12px;
}
/* 单重计算：橙色底（与留言蓝、纠错绿明显区分） */
.math-sec {
  margin-left: -4px;
  margin-right: -4px;
  padding: 14px 12px 16px;
  border-radius: 16px;
  background: #ffe0c2;
  border: 1px solid #f0a060;
  box-shadow: 0 6px 18px rgba(244, 81, 11, 0.14);
}
.math-sec-embedded {
  margin-left: 0;
  margin-right: 0;
}
.math-sec .dsec-title {
  color: #122156;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(244, 81, 11, 0.35);
}
.math-sec .math-card {
  background: #fff !important;
  border: 1px solid rgba(18, 33, 86, 0.12) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(18, 33, 86, 0.05);
}
.math-pic {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(18, 33, 86, 0.12);
  border-radius: var(--radius);
  padding: 8px;
}
.math-pic img { max-width: 100%; max-height: 220px; height: auto; object-fit: contain; }
.math-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.math-presets .btn { font-size: .75rem; font-weight: 600; border-radius: 999px; background: #fff; }
.math-presets .btn:active,
.math-presets .btn.is-active {
  background: rgba(244, 81, 11, 0.12);
  border-color: #f4510b;
  color: #c33c07;
}
.math-spec .form-label { color: #5a6a7a; font-weight: 600; }
.math-spec-select {
  font-size: .95rem;
  font-weight: 600;
  min-height: 40px;
  border-color: #b8c8d8;
  background: #f7fbff;
}
.math-result { color: #c0392b !important; font-weight: 700; background: #fff4ee !important; }
.math-calc-btn { min-height: 46px; font-weight: 700; }
.math-standalone-link { display: flex; justify-content: flex-start; margin-top: 10px; }
.calc-page .calc-wrap { max-width: 560px; margin: 0 auto; }
.calc-page .app-shell { padding-bottom: calc(16px + var(--safe-bottom)); }
.calc-page .menu-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* 小屏 320–430：顶栏 / 底栏 / 弹层 / 触控目标 */
@media (max-width: 430px) {
  .app-nav { gap: 6px; }
  .app-logo-tag { font-size: .7rem; }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .bnav-row { padding: 0; }
  .bnav-btn {
    min-height: 48px;
    font-size: .88rem;
    line-height: 1.2;
    padding: 0;
  }
  .bnav-btn span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .sbar-go, .sbar-clear { min-height: 44px; }
  .more-sheet-panel,
  .share-sheet-panel,
  .detail-panel {
    max-width: 100vw;
    box-sizing: border-box;
  }
  .dropdown-item { min-height: 44px; }
}
@media (max-width: 360px) {
  .app-logo-img { width: 120px !important; height: auto !important; }
  .app-logo-tag { display: none; }
  .bnav-btn { font-size: .82rem; padding-left: 0; padding-right: 0; }
  .search-label { font-size: .9rem; }
}
@media (max-width: 320px) {
  .app-nav { padding-left: 8px; padding-right: 8px; }
  .bnav-btn { font-size: .78rem; }
  .param-hint { font-size: .72rem; }
  .mat-scroll-hint { font-size: .84rem; }
}
