/*
 * 全站移动 App 壳
 * 同时覆盖新营销布局（mkt-*）与仍在使用旧布局的产品/会员页面。
 */

.legacy-app-searchbar { display: none; }
.mkt-tier-list__mobile-toggle { display: none; }
@media (min-width: 821px) {
  .legacy-app-shell .mkt-tabbar { display: none; }
}
.legacy-app-shell .qib-chat { display: none !important; }

@media (max-width: 820px) {
  html { background: #f3f5f9; }
  body { min-width: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  @supports (overflow: clip) { body { overflow-x: clip; } }

  /* App 页面不展示桌面长页脚，不叠加旧咨询浮层。 */
  .mkt-footer,
  .qib-footer,
  .qib-chat,
  .eng-dock,
  .qib-lead-bar,
  #qibEngageDock { display: none !important; }
  body.has-lead-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }

  /* ---------- 新营销布局：把旧内容页压缩为 App 卡片流 ---------- */
  .mkt-tech main > .eng-hero--page {
    min-height: 0;
    padding: 24px 0 26px;
    text-align: left !important;
  }
  .mkt-tech main > .eng-hero--page .container { text-align: left !important; }
  .mkt-tech main > .eng-hero--page .eng-kicker { margin-bottom: 9px; color: #7391db; font-size: 8px; }
  .mkt-tech main > .eng-hero--page h1 {
    max-width: 100%;
    margin: 0;
    color: #f3f6ff;
    font-size: clamp(29px, 9vw, 38px);
    letter-spacing: -.045em;
    line-height: 1.12;
  }
  .mkt-tech main > .eng-hero--page .eng-hero__lead {
    max-width: 100%;
    margin: 10px 0 0 !important;
    color: #96a4bb;
    font-size: 12px;
    line-height: 1.65;
  }
  .mkt-tech main > .eng-hero--page form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px !important;
    max-width: none !important;
    margin: 16px 0 0 !important;
  }
  .mkt-tech main > .eng-hero--page form input,
  .mkt-tech main > .eng-hero--page form select {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px;
    padding: 0 12px !important;
    border-color: rgba(135, 164, 229, .25);
    border-radius: 12px;
    color: #e7edfa;
    background: rgba(111, 140, 205, .1);
    font-size: 16px;
  }
  .mkt-tech main > .eng-hero--page form select { grid-column: 1; }
  .mkt-tech main > .eng-hero--page form .btn { min-height: 44px; border-radius: 12px; }
  .mkt-tech main > .eng-hero--page .dl-platform-bar,
  .mkt-tech main > .eng-hero--page .flex.justify-center {
    justify-content: flex-start !important;
    margin-top: 13px !important;
    padding-bottom: 2px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  .mkt-tech main > .eng-hero--page .dl-platform-bar::-webkit-scrollbar,
  .mkt-tech main > .eng-hero--page .flex.justify-center::-webkit-scrollbar { display: none; }

  .mkt-tech .eng-block,
  .mkt-tech main > .section {
    padding: 14px 0 24px !important;
    background: #f3f5f9;
  }
  .mkt-tech .eng-block > .container,
  .mkt-tech main > .section > .container { padding-inline: 12px; }
  .mkt-tech .eng-block .card,
  .mkt-tech main > .section .card {
    border-color: #e0e6ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(37, 55, 91, .045);
  }
  .mkt-tech .eng-block .card-body,
  .mkt-tech main > .section .card-body { padding: 15px !important; }
  .mkt-tech .eng-block .input,
  .mkt-tech .eng-block .select,
  .mkt-tech .eng-block .textarea,
  .mkt-tech main > .section .input,
  .mkt-tech main > .section .select,
  .mkt-tech main > .section .textarea { min-height: 44px; font-size: 16px; }
  .mkt-tech .eng-block .grid-3,
  .mkt-tech .eng-block .grid-4,
  .mkt-tech main > .section .grid-3,
  .mkt-tech main > .section .grid-4 { grid-template-columns: 1fr !important; gap: 10px !important; }
  .mkt-tech .prose { font-size: 14px; line-height: 1.85; }
  .mkt-tech .prose h2 { margin-top: 28px; font-size: 20px; }

  /* 营销业务页采用 App 模块密度，不沿用桌面落地页的大段留白。 */
  .mkt-tech .mkt-page-hero {
    padding: 27px 0 29px;
  }
  .mkt-tech .mkt-page-hero__grid {
    gap: 15px;
  }
  .mkt-tech .mkt-page-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.12;
  }
  .mkt-tech .mkt-page-hero__grid > div:last-child > p {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.65;
  }
  .mkt-tech .mkt-page-hero .mkt-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .mkt-tech .mkt-page-hero .mkt-btn { min-height: 44px; padding: 8px 10px; font-size: 11px; }
  .mkt-tech .mkt-section { padding: 19px 0; }
  .mkt-tech .mkt-section > .mkt-container { padding-inline: 12px; }
  .mkt-tech .mkt-section-head {
    display: block;
    margin-bottom: 15px;
  }
  .mkt-tech .mkt-section-head > div > small { margin-bottom: 6px; font-size: 7px; }
  .mkt-tech .mkt-section-head h2 { font-size: 24px; line-height: 1.16; }
  .mkt-tech .mkt-section-head h2 br { display: none; }
  .mkt-tech .mkt-section-head > p { margin-top: 8px; font-size: 10px; line-height: 1.6; }
  .mkt-tech .mkt-cta { display: none; }
  .mkt-tech .mkt-faq { border-radius: 17px; box-shadow: 0 7px 22px rgba(37, 55, 91, .045); }
  .mkt-tech .mkt-faq > article { padding: 0 13px; }
  .mkt-tech .mkt-faq > article > button { min-height: 58px; font-size: 11px; }
  .mkt-tech .mkt-faq > article > button i { width: 27px; height: 27px; font-size: 12px; }
  .mkt-tech .mkt-faq > article > div p { padding-bottom: 15px; font-size: 9px; line-height: 1.7; }

  /* 服务总览：两列 App 服务卡，流程改横滑。 */
  .mkt-tech.mkt-services-page .mkt-service-group + .mkt-service-group { margin-top: 17px; }
  .mkt-tech.mkt-services-page .mkt-service-group {
    padding: 15px;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(37, 55, 91, .04);
  }
  .mkt-tech.mkt-services-page .mkt-service-group__head { margin-bottom: 11px; }
  .mkt-tech.mkt-services-page .mkt-service-group__head h2 { font-size: 17px; }
  .mkt-tech.mkt-services-page .mkt-service-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mkt-tech.mkt-services-page .mkt-service-row {
    display: flex;
    min-height: 157px;
    flex-direction: column;
    gap: 0;
    padding: 13px;
    border: 1px solid #e2e8f1;
    border-radius: 14px;
    background: #fafbfe;
    box-shadow: none;
  }
  .mkt-tech.mkt-services-page .mkt-service-row small { display: -webkit-box; min-height: 24px; overflow: hidden; font-size: 7px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .mkt-tech.mkt-services-page .mkt-service-row h3 { margin-top: 7px; font-size: 14px; }
  .mkt-tech.mkt-services-page .mkt-service-row > p { display: none; }
  .mkt-tech.mkt-services-page .mkt-service-row__meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid #e5eaf2; }
  .mkt-tech.mkt-services-page .mkt-service-row__meta b { font-size: 9px; }
  .mkt-tech.mkt-services-page .mkt-service-row__meta span { font-size: 7px; }
  .mkt-tech.mkt-services-page .mkt-service-row > i { display: none; }
  .mkt-tech.mkt-services-page .mkt-section--ink .mkt-process {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px, 78%);
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-services-page .mkt-section--ink .mkt-process::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-services-page .mkt-section--ink .mkt-process li {
    min-height: 145px;
    padding: 15px;
    scroll-snap-align: start;
  }
  .mkt-tech.mkt-services-page .mkt-section--ink .mkt-process li p { display: -webkit-box; overflow: hidden; font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .mkt-tech.mkt-services-page .mkt-highlight-grid { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
  .mkt-tech.mkt-services-page .mkt-highlight-grid > div,
  .mkt-tech.mkt-services-page .mkt-highlight-grid > div + div { min-height: 94px; padding: 12px; border-radius: 13px; }
  .mkt-tech.mkt-services-page .mkt-highlight-grid h3 { font-size: 11px; }
  .mkt-tech.mkt-services-page .mkt-highlight-grid p { font-size: 8px; line-height: 1.55; }

  /* 服务详情：模块化、横滑套餐，保留一部分真实界面预览。 */
  .mkt-tech.mkt-service-detail .mkt-service-hero { padding: 26px 0 22px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__grid { gap: 17px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero h1 { font-size: 36px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__copy > p { margin-top: 10px; font-size: 12px; line-height: 1.65; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__price { margin-top: 14px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__price b { font-size: 29px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__copy .mkt-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__copy .mkt-btn { min-height: 44px; padding: 8px; font-size: 10px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__promise { margin-top: 9px; font-size: 8px; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__visual { max-height: 225px; padding-top: 0; overflow: hidden; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__visual-meta { display: none; }
  .mkt-tech.mkt-service-detail .mkt-service-hero__visual .mkt-mock { min-height: 260px; transform: scale(.82); transform-origin: top center; }
  .mkt-tech.mkt-service-detail .mkt-fit-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 82%);
    grid-template-columns: none;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-service-detail .mkt-fit-grid::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-service-detail .mkt-fit-grid > div { min-height: 112px; padding: 15px; scroll-snap-align: start; }
  .mkt-tech.mkt-service-detail .mkt-fit-grid p { font-size: 12px; }
  .mkt-tech.mkt-service-detail .mkt-deliverables { gap: 7px; }
  .mkt-tech.mkt-service-detail .mkt-deliverables li { min-height: 76px; padding: 13px; border-radius: 13px; }
  .mkt-tech.mkt-service-detail .mkt-deliverables p { font-size: 11px; line-height: 1.6; }
  .mkt-tech.mkt-service-detail .mkt-inout {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 88%);
    grid-template-columns: none;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-service-detail .mkt-inout::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-service-detail .mkt-inout > div { padding: 17px; scroll-snap-align: start; }
  .mkt-tech.mkt-service-detail .mkt-inout h3 { font-size: 15px; }
  .mkt-tech.mkt-service-detail .mkt-inout li { padding-block: 8px; font-size: 9px; }
  .mkt-tech.mkt-service-detail .mkt-package-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(285px, 88%);
    grid-template-columns: none;
    gap: 9px;
    margin-right: -12px;
    padding: 4px 12px 8px 1px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-service-detail .mkt-package-grid::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-service-detail .mkt-package { min-height: 430px; padding: 20px; scroll-snap-align: start; }
  .mkt-tech.mkt-service-detail .mkt-package h3 { font-size: 20px; }
  .mkt-tech.mkt-service-detail .mkt-package__price { margin-top: 15px; }
  .mkt-tech.mkt-service-detail .mkt-package__price b { font-size: 28px; }
  .mkt-tech.mkt-service-detail .mkt-package ul { margin: 16px 0; }
  .mkt-tech.mkt-service-detail .mkt-package li { padding: 8px 0; font-size: 9px; }
  .mkt-tech.mkt-service-detail .mkt-other-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px, 72%);
    grid-template-columns: none;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-service-detail .mkt-other-grid::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-service-detail .mkt-other-grid a { min-height: 116px; padding: 14px; scroll-snap-align: start; }

  /* 报价页：起步价横滑，三档报价按业务折叠。 */
  .mkt-tech.mkt-pricing-page .mkt-price-overview {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82%);
    grid-template-columns: none;
    gap: 9px;
    margin-right: -12px;
    padding: 3px 12px 8px 0;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-pricing-page .mkt-price-overview::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-pricing-page .mkt-price-overview__card { min-height: 205px; padding: 17px; scroll-snap-align: start; }
  .mkt-tech.mkt-pricing-page .mkt-price-overview__card h3 { margin-top: 17px; font-size: 20px; }
  .mkt-tech.mkt-pricing-page .mkt-price-overview__card > p { min-height: 36px; font-size: 9px; }
  .mkt-tech.mkt-pricing-page .mkt-price-overview__meta { gap: 18px; margin-top: 14px; padding-top: 12px; }
  .mkt-tech.mkt-pricing-page .mkt-inout { grid-template-columns: 1fr; gap: 8px; }
  .mkt-tech.mkt-pricing-page .mkt-inout > div { padding: 16px; }
  .mkt-tech.mkt-pricing-page .mkt-inout li { padding-block: 8px; font-size: 9px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list { display: grid; gap: 8px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list > article { padding: 14px; border: 1px solid #e0e6ef; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(37, 55, 91, .04); }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__title { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__title h3 { font-size: 16px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__title a { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 9px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__mobile-toggle {
    display: flex;
    width: 100%;
    min-height: 35px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    color: #4a68bc;
    background: #f5f8ff;
    font-size: 9px;
  }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__mobile-toggle i { font-size: 15px; font-style: normal; transition: transform .2s ease; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list > article.is-mobile-open .mkt-tier-list__mobile-toggle i { transform: rotate(45deg); }
  .mkt-tech.mkt-pricing-page .mkt-tier-list > article:not(.is-mobile-open) .mkt-tier-list__cards { display: none; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(225px, 82%);
    grid-template-columns: none;
    gap: 8px;
    margin: 11px -14px 0 0;
    padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards > div { min-height: 196px; padding: 14px; scroll-snap-align: start; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards h4 { font-size: 14px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards b { margin-top: 9px; font-size: 19px; }
  .mkt-tech.mkt-pricing-page .mkt-tier-list__cards p { margin: 9px 0; font-size: 8px; }
  .mkt-tech.mkt-pricing-page .mkt-process {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px, 78%);
    grid-template-columns: none;
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* 关于页：原则做宫格，项目流程改横滑卡。 */
  .mkt-tech.mkt-about .mkt-principles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mkt-tech.mkt-about .mkt-principles > div,
  .mkt-tech.mkt-about .mkt-principles > div:first-child { min-height: 142px; padding: 14px; border: 1px solid #e0e6ef; border-radius: 14px; }
  .mkt-tech.mkt-about .mkt-principles h3 { margin-top: 26px; font-size: 14px; }
  .mkt-tech.mkt-about .mkt-principles p { font-size: 8px; line-height: 1.6; }
  .mkt-tech.mkt-about .mkt-handoff {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 88%);
    gap: 8px;
    margin-right: -12px;
    padding-right: 12px;
    overflow-x: auto;
    border: 0;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .mkt-tech.mkt-about .mkt-handoff::-webkit-scrollbar { display: none; }
  .mkt-tech.mkt-about .mkt-handoff article {
    display: grid;
    min-height: 285px;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(126, 154, 217, .17);
    border-radius: 15px;
    scroll-snap-align: start;
  }
  .mkt-tech.mkt-about .mkt-handoff article > div:nth-child(3),
  .mkt-tech.mkt-about .mkt-handoff article > b { grid-column: 2; }
  .mkt-tech.mkt-about .mkt-handoff h3 { margin-bottom: 8px; font-size: 15px; }
  .mkt-tech.mkt-about .mkt-handoff p { font-size: 9px; line-height: 1.6; }
  .mkt-tech.mkt-about .mkt-refuse { grid-template-columns: 1fr; gap: 7px; }
  .mkt-tech.mkt-about .mkt-refuse li { padding: 13px; font-size: 11px; }

  /* ---------- 旧布局：统一为同一 App 顶栏、搜索和抽屉 ---------- */
  .legacy-app-shell {
    color: #1a2438;
    background: #f3f5f9 !important;
  }
  .legacy-app-shell .qib-ann { display: none; }
  .legacy-app-shell .qib-header {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(128, 157, 220, .15) !important;
    color: #fff;
    background: rgba(5, 9, 20, .98) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
  }
  .legacy-app-shell .qib-header .bar {
    height: 58px;
    gap: 10px;
    padding-inline: 16px;
  }
  .legacy-app-shell .qib-header .logo { gap: 9px; }
  .legacy-app-shell .qib-header .logo-mark {
    width: 35px !important;
    height: 35px !important;
    border: 1px solid rgba(137, 166, 232, .23);
    border-radius: 11px !important;
    color: #fff;
    background: linear-gradient(145deg, #6689ff, #4566db) !important;
    box-shadow: 0 8px 18px rgba(58, 92, 205, .25) !important;
  }
  .legacy-app-shell .qib-header .logo > div:last-child > div:first-child { color: #eef3ff !important; font-size: 16px !important; }
  .legacy-app-shell .qib-header .logo > div:last-child > div:last-child { color: #71809b !important; font-size: 8px !important; letter-spacing: 1px !important; }
  .legacy-app-shell .qib-header .bar > .flex > a.btn { display: none !important; }
  .legacy-app-shell .qib-menu-btn {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(132, 163, 231, .2);
    border-radius: 13px !important;
    color: #becae0;
    background: rgba(102, 132, 197, .08);
  }

  .legacy-app-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 0 16px 10px;
  }
  .legacy-app-searchbar__field {
    display: flex;
    min-width: 0;
    height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(132, 164, 232, .22);
    border-radius: 22px;
    color: #94a2ba;
    background: rgba(104, 132, 197, .09);
    font-size: 12px;
    text-align: left;
  }
  .legacy-app-searchbar__field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .legacy-app-searchbar__user {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(132, 164, 232, .22);
    border-radius: 50%;
    color: #b8c5dc;
    background: rgba(104, 132, 197, .09);
  }
  .legacy-app-searchbar svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  .legacy-app-shell .qib-drawer { z-index: 430; background: rgba(3, 7, 15, .65); }
  .legacy-app-shell .qib-drawer-panel {
    inset: 0;
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 8px;
    padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
    color: #1d283d;
    background: #f3f5f9;
  }
  .legacy-app-shell .qib-drawer-panel > .flex:first-child,
  .legacy-app-shell .qib-drawer-panel > .legacy-app-drawer-search,
  .legacy-app-shell .qib-drawer-panel > .legacy-app-drawer-title,
  .legacy-app-shell .qib-drawer-panel > div[style*="background"],
  .legacy-app-shell .qib-drawer-panel > hr { grid-column: 1 / -1; }
  .legacy-app-shell .qib-drawer-panel > .flex:first-child {
    min-height: 44px;
    margin-bottom: 4px !important;
    color: #182236;
  }
  .legacy-app-shell .qib-drawer-panel > .flex:first-child .btn {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #dce3ed;
    border-radius: 50% !important;
    background: #fff;
    font-size: 20px;
  }
  .legacy-app-drawer-search {
    display: grid;
    height: 45px;
    grid-template-columns: 20px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 10px 0 13px;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: #fff;
  }
  .legacy-app-drawer-search svg { width: 19px; fill: none; stroke: #8793a5; stroke-width: 1.8; }
  .legacy-app-drawer-search input {
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    color: #243047;
    background: transparent;
    font-size: 16px;
  }
  .legacy-app-drawer-search button { display: none; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; color: #7f8a9a; background: #eef1f6; }
  .legacy-app-drawer-search button.is-visible { display: grid; }
  .legacy-app-drawer-title { margin: 8px 2px 1px; color: #6f7b90; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
  .legacy-app-shell .qib-drawer-panel > a {
    display: flex;
    min-width: 0;
    min-height: 51px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e6ef;
    border-radius: 13px;
    color: #334056;
    background: #fff;
    box-shadow: 0 5px 15px rgba(37, 55, 91, .035);
    font-size: 12px;
  }
  .legacy-app-shell .qib-drawer-panel > a.active { color: #315bd0; border-color: #b8c8ef; background: #f4f7ff; }
  .legacy-app-shell .qib-drawer-panel > a[hidden] { display: none !important; }

  .legacy-app-shell .eng-hero--page {
    min-height: 0;
    padding: 27px 0 29px;
    color: #fff;
    background:
      radial-gradient(circle at 86% 0, rgba(73, 115, 241, .22), transparent 34%),
      linear-gradient(145deg, #070b16, #101a31);
  }
  .legacy-app-shell .eng-hero--page .container { text-align: left !important; }
  .legacy-app-shell .eng-hero--page h1 { margin: 0; color: #f3f6ff; font-size: clamp(29px, 9vw, 38px); line-height: 1.12; }
  .legacy-app-shell .eng-hero--page .eng-kicker { margin-bottom: 9px; color: #7693dc; font-size: 8px; }
  .legacy-app-shell .eng-hero--page .eng-hero__lead { margin: 10px 0 0 !important; color: #96a4bb; font-size: 12px; line-height: 1.65; }
  .legacy-app-shell .eng-block { padding: 14px 0 24px; background: #f3f5f9; }
  .legacy-app-shell .eng-block > .container,
  .legacy-app-shell > .section > .container { padding-inline: 12px; }
  .legacy-app-shell .card { border-color: #e0e6ef; border-radius: 17px; background: #fff; box-shadow: 0 7px 22px rgba(37, 55, 91, .045); }
  .legacy-app-shell .card-body { padding: 15px; }
  .legacy-app-shell .input,
  .legacy-app-shell .select,
  .legacy-app-shell .textarea { min-height: 44px; border-radius: 11px; font-size: 16px; }
  .legacy-app-shell .grid-3,
  .legacy-app-shell .grid-4 { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* 个人中心：用户信息卡 + 横滑频道，不再先展示一整列桌面侧栏。 */
  .legacy-app-shell[data-page^="/account"] .account-app { padding: 12px !important; }
  .legacy-app-shell[data-page^="/account"] .account-app__grid { display: grid; grid-template-columns: 1fr !important; gap: 10px !important; }
  .legacy-app-shell[data-page^="/account"] .account-app__nav {
    position: static !important;
    padding: 13px !important;
    border-radius: 18px;
  }
  .legacy-app-shell[data-page^="/account"] .account-app__profile {
    padding: 3px 3px 11px !important;
    margin-bottom: 10px !important;
  }
  .legacy-app-shell[data-page^="/account"] .account-app__tier {
    padding: 0 3px 10px !important;
    margin-bottom: 10px !important;
  }
  .legacy-app-shell[data-page^="/account"] .account-app__links {
    display: flex;
    gap: 7px;
    margin-right: -13px;
    padding-right: 13px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .legacy-app-shell[data-page^="/account"] .account-app__links::-webkit-scrollbar { display: none; }
  .legacy-app-shell[data-page^="/account"] .account-app__links > a {
    min-height: 38px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 9px 12px !important;
    border: 1px solid #e0e6ef !important;
    border-radius: 10px !important;
    background: #f8fafe;
    font-size: 10px !important;
  }
  .legacy-app-shell[data-page^="/account"] .account-app__content { padding: 16px !important; border-radius: 18px; }
  .legacy-app-shell[data-page^="/account"] .account-app__content .table-wrap,
  .legacy-app-shell[data-page^="/account"] .account-app__content table { max-width: 100%; overflow-x: auto; }

  /* ---------- 全站统一五栏底部导航 ---------- */
  .mkt-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 300;
    display: grid;
    min-height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    padding: 4px 5px env(safe-area-inset-bottom);
    border-top: 1px solid #e0e5ed;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -10px 30px rgba(28, 44, 77, .09);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .mkt-tabbar > * {
    display: grid;
    min-width: 0;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    color: #8792a4;
    background: transparent;
  }
  .mkt-tabbar > * > span { display: grid; width: 27px; height: 27px; place-items: center; }
  .mkt-tabbar svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mkt-tabbar b { font-size: 10px; font-weight: 700; }
  .mkt-tabbar .is-active { color: #315fdf; }
  .mkt-tabbar__consult { color: #355fd6; }
  .mkt-tabbar__consult > span {
    width: 45px;
    height: 45px;
    margin-top: -17px;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #6488ff, #4267e8);
    box-shadow: 0 9px 22px rgba(53, 91, 213, .32);
  }
  .mkt-tabbar__consult > span svg { width: 21px; }
  .mkt-tabbar__consult b { margin-top: -4px; color: #315fd8; }

  .mkt-keyboard-open .mkt-tabbar,
  .legacy-app-shell:has(input:focus) > .mkt-tabbar,
  .legacy-app-shell:has(textarea:focus) > .mkt-tabbar { transform: translateY(120%); }
}

@media (max-width: 380px) {
  .legacy-app-searchbar,
  .legacy-app-shell .qib-header .bar { padding-inline: 12px; }
  .legacy-app-shell .qib-drawer-panel { padding-inline: 11px; gap: 7px; }
  .legacy-app-shell .qib-drawer-panel > a { padding-inline: 9px; font-size: 11px; }
}
