/* 手机端专用布局：后加载，优先覆盖桌面端与旧响应式规则。 */
.nav-button .nav-icon { display: none; }
.mobile-brand-copy { display: none; }

@media (max-width: 820px) {
  :root {
    --mobile-radius: 22px;
    --mobile-gap: 12px;
    --mobile-page-padding: 12px;
    --mobile-topbar-height: 56px;
    --mobile-brand-size: 34px;
    --mobile-search-height: 38px;
    --mobile-nav-icon-size: 30px;
    --mobile-nav-font-size: 12.5px;
    --mobile-hero-height: 210px;
    --mobile-feature-card-width: 23vw;
    --mobile-feature-card-title-size: 11px;
    --mobile-feature-card-copy-padding: 7px;
    --mobile-category-size: 64px;
    --mobile-product-cover-height: 180px;
    --mobile-product-title-size: 22px;
    --mobile-shop-hero-height: 230px;
    --mobile-shop-hero-title-size: 31px;
    --mobile-shop-cover-height: 180px;
    --mobile-shop-title-size: 22px;
    --mobile-shop-button-height: 44px;
    --mobile-shop-radius: 22px;
    --mobile-shop-image-fit: cover;
    --mobile-nav-radius: 23px;
    --mobile-task-padding: 13px;
    --mobile-task-title-size: 20px;
    --mobile-task-radius: 22px;
    --mobile-square-padding: 13px;
    --mobile-square-title-size: 20px;
    --mobile-square-radius: 22px;
    --mobile-profile-avatar-size: 146px;
    --mobile-profile-radius: 22px;
    --mobile-chatball-size: 48px;
    --mobile-publish-fab-size: 72px;
    --mobile-account-dock-size: 58px;
    --mobile-order-fab-size: 80px;
    --mobile-text-scale: 1;
    --mobile-accent: #67ff9b;
    --mobile-nav-height: 66px;
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-card-radius: var(--mobile-radius);
    --mobile-border: rgba(150, 180, 220, 0.2);
    --mobile-surface: rgba(8, 14, 25, 0.94);
    --mobile-surface-soft: rgba(13, 21, 36, 0.86);
  }

  html {
    font-size: 16px;
    /* clip 不会把页面变成滚动容器，position: sticky 才能真正吸顶 */
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html body[data-app-view] {
    overflow-x: clip;
    padding-bottom: 0;
    overscroll-behavior-y: contain;
  }

  html body[data-app-view] .sticky-shell {
    position: sticky;
    z-index: 75;
    inset: 0 0 auto;
    padding: 0;
    border-bottom: 1px solid rgba(150, 180, 220, 0.1);
    background: linear-gradient(180deg, rgba(3, 8, 16, 0.985), rgba(4, 10, 19, 0.96));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
  }

  html body[data-app-view][data-mobile-topbar="transparent"] .sticky-shell {
    background: linear-gradient(180deg, rgba(3, 8, 16, 0.88), rgba(4, 10, 19, 0.7));
  }

  html body[data-app-view][data-mobile-topbar="solid"] .sticky-shell {
    background: #050b14;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html body[data-app-view] .topbar {
    display: grid;
    width: 100%;
    min-height: 56px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 0;
    padding: calc(7px + var(--mobile-safe-top)) var(--mobile-page-padding) 6px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html body[data-app-view] .topbar #site-logo-image {
    position: static !important;
    z-index: auto;
    top: auto;
    left: auto;
    display: block !important;
    width: 34px;
    height: 34px;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none;
    transform: none;
  }

  html body[data-app-view] .topbar .mobile-brand-copy {
    position: static;
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    order: 0;
    min-width: 0;
    overflow: hidden;
    gap: 1px;
    line-height: 1.08;
  }

  html body[data-app-view] .mobile-brand-copy strong {
    overflow: hidden;
    color: #f7fbff;
    font-size: 18.5px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body[data-app-view] .mobile-brand-copy small {
    color: rgba(193, 215, 240, 0.52);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  html body[data-app-view] .topbar .account-menu {
    position: static;
    display: none;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: auto;
    margin: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  html body[data-app-view].is-authenticated .topbar .account-menu {
    display: flex;
  }

  html body[data-app-view] .account-menu > .button,
  html body[data-app-view] #logout-button {
    display: none !important;
  }

  html body[data-app-view] .notification-bell,
  html body[data-app-view] .admin-entry-link {
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid rgba(150, 180, 220, 0.18);
    border-radius: 13px;
    background: rgba(12, 21, 36, 0.88);
    color: #dcecff;
  }

  html body[data-app-view] .notification-bell svg { width: 19px; height: 19px; }

  html body[data-app-view] .notification-panel,
  html body[data-app-view] .admin-entry-panel {
    position: fixed;
    z-index: 140;
    top: calc(64px + var(--mobile-safe-top));
    right: var(--mobile-page-padding);
    left: var(--mobile-page-padding);
    width: auto;
    max-height: min(72dvh, 560px);
    overflow: auto;
    border-radius: 20px;
    background: rgba(7, 13, 24, 0.99);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
  }

  html body[data-app-view] .notification-panel-head,
  html body[data-app-view] .admin-entry-panel-head { padding: 14px 15px 10px; }
  html body[data-app-view] .notification-panel-list,
  html body[data-app-view] .admin-entry-list { padding: 0 10px 10px; }
  html body[data-app-view] .notification-panel-foot,
  html body[data-app-view] .admin-entry-panel-foot { padding: 10px 14px 14px; }

  /* 底部 App 导航 */
  html body[data-app-view][data-mobile-bottom-nav="1"] .main-nav {
    position: fixed;
    z-index: 95;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    min-height: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: end;
    gap: 2px;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(150, 180, 220, 0.14);
    border-radius: 0;
    padding: 5px 7px calc(5px + var(--mobile-safe-bottom));
    background: rgba(4, 9, 17, 0.97);
    box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }

  html body[data-app-view][data-mobile-bottom-nav="1"][data-mobile-nav-style="floating"] .main-nav {
    right: 10px;
    bottom: calc(8px + var(--mobile-safe-bottom));
    left: 10px;
    width: auto;
    border: 1px solid rgba(150, 180, 220, 0.18);
    border-radius: var(--mobile-nav-radius);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }

  html body[data-app-view] .nav-button {
    display: grid;
    min-width: 0;
    min-height: 55px;
    place-items: center;
    align-content: center;
    gap: 3px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    padding: 5px 3px;
    background: transparent;
    color: rgba(202, 218, 239, 0.58);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-shadow: none;
  }

  html body[data-app-view] .nav-button:hover,
  html body[data-app-view] .nav-button:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
  }

  html body[data-app-view] .nav-button.is-active {
    background: color-mix(in srgb, var(--mobile-accent) 10%, transparent);
    color: #fff;
  }

  html body[data-app-view] .nav-button.is-active::after {
    position: absolute;
    top: 7px;
    bottom: auto;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mobile-accent);
    box-shadow: 0 0 12px var(--mobile-accent);
    content: "";
    transform: translateX(-50%);
  }

  html body[data-app-view] .nav-icon {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(160, 185, 220, 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(220, 235, 255, 0.72);
    font-size: 16px;
    font-weight: 900;
  }

  html body[data-app-view] .nav-button.is-active .nav-icon {
    border-color: color-mix(in srgb, var(--mobile-accent) 42%, transparent);
    background: color-mix(in srgb, var(--mobile-accent) 14%, rgba(10, 20, 30, 0.7));
    color: var(--mobile-accent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--mobile-accent) 18%, transparent);
  }

  html body[data-app-view] .nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body[data-app-view][data-mobile-nav-icons="0"] .nav-icon { display: none; }
  html body[data-app-view][data-mobile-nav-labels="0"] .nav-label { display: none; }
  html body[data-app-view][data-mobile-nav-labels="0"] .nav-icon { width: 36px; height: 36px; font-size: 18.5px; }

  html body[data-app-view][data-mobile-bottom-nav="0"] .main-nav {
    position: static;
    display: flex;
    width: 100%;
    min-height: 46px;
    grid-column: 1 / -1;
    order: 3;
    gap: 5px;
    overflow-x: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0 var(--mobile-page-padding) 7px;
    background: transparent;
    box-shadow: none;
  }

  html body[data-app-view][data-mobile-bottom-nav="0"] .nav-button {
    display: flex;
    min-height: 40px;
    flex: 0 0 auto;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  html body[data-app-view][data-mobile-bottom-nav="0"] .nav-button.is-active::after { display: none; }
  html body[data-app-view][data-mobile-bottom-nav="0"] .nav-icon { width: 24px; height: 24px; border-radius: 8px; font-size: 12.5px; }

  /* 个人入口固定为右下角圆形悬浮头像 */
  html body[data-app-view] #account-home-button {
    position: fixed;
    z-index: 90;
    top: auto;
    right: 14px;
    bottom: calc(var(--mobile-nav-height) + 16px + var(--mobile-safe-bottom));
    left: auto;
    display: grid;
    width: 58px !important;
    min-width: 0;
    height: 58px !important;
    min-height: 58px !important;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mobile-accent) 50%, transparent);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, rgba(13, 24, 36, 0.98), rgba(4, 9, 17, 0.99));
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.58), 0 0 22px color-mix(in srgb, var(--mobile-accent) 14%, transparent);
    color: #fff;
  }

  html body[data-app-view] #account-home-button:hover,
  html body[data-app-view] #account-home-button:focus-visible,
  html body[data-app-view] #account-home-button.is-active {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    padding: 4px;
    transform: none;
  }

  html body[data-app-view] #account-home-button .profile-trigger-visual { display: block; }
  html body[data-app-view] #account-home-button #account-avatar,
  html body[data-app-view] #account-home-button:hover #account-avatar,
  html body[data-app-view] #account-home-button:focus-visible #account-avatar,
  html body[data-app-view] #account-home-button.is-active #account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }

  html body[data-app-view] #account-home-button .profile-trigger-copy,
  html body[data-app-view] #account-home-button:hover .profile-trigger-copy,
  html body[data-app-view] #account-home-button .account-level-ring,
  html body[data-app-view] #account-home-button .profile-card-shortcuts { display: none !important; }

  html body[data-app-view][data-mobile-bottom-nav="0"] #account-home-button {
    bottom: calc(14px + var(--mobile-safe-bottom));
  }

  html body[data-app-view][data-mobile-profile-dock="hidden"] #account-home-button { display: none !important; }

  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button {
    right: 12px;
    display: grid;
    width: min(344px, calc(100vw - 24px)) !important;
    height: 78px !important;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    gap: 9px;
    border-radius: 20px;
    padding: 5px 12px 5px 5px;
  }

  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-visual { display: block; }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-copy {
    display: grid !important;
    gap: 2px;
    overflow: hidden;
  }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button #account-name { display: block; font-size: 16px; }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-balance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
  }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-wallet-cell small { font-size: 12.5px; }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-balance { font-size: 14px; }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button .profile-trigger-recharge { min-height: 22px; padding: 2px 8px; font-size: 12.5px; }

  /* 手机端只保留一个悬浮球：聊天入口就是个人头像，个人主页收进左下角小徽章。 */
  html body[data-app-view] .gchat-root .gchat-ball { display: none !important; }
  html body[data-app-view] #account-home-button {
    overflow: visible !important;
    padding: 5px !important;
  }
  html body[data-app-view] #account-profile-shortcut {
    position: absolute;
    left: -5px;
    bottom: -4px;
    z-index: 3;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(117, 226, 255, 0.6);
    border-radius: 50%;
    background: linear-gradient(155deg, rgba(30, 48, 74, 0.98), rgba(7, 13, 24, 0.99));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(99, 230, 255, 0.28);
    color: #a8ecff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html body[data-app-view] #account-profile-shortcut svg { width: 14px; height: 14px; }
  html body[data-app-view] #account-profile-shortcut:active { transform: scale(0.94); }
  html body[data-app-view] #account-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 4;
    display: none;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border: 2px solid rgba(4, 9, 17, 0.95);
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b6b, #e32f3f);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.55);
    color: #fff;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1;
  }
  html body[data-app-view] #account-chat-badge:not([hidden]) { display: grid; }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-profile-shortcut,
  html body[data-app-view][data-mobile-profile-dock="full"] #account-chat-badge { display: none !important; }

  /* 搜索栏压缩为 App 搜索框 */
  html body[data-app-view] .lobby-taskbar {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 var(--mobile-page-padding) 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  html body[data-app-view][data-mobile-search-bar="hidden"] .lobby-taskbar { display: none !important; }

  html body[data-app-view] .global-search-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
    border: 1px solid rgba(150, 180, 220, 0.18) !important;
    border-radius: 16px !important;
    padding: 4px !important;
    background: rgba(8, 15, 27, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  }

  html body[data-app-view] .global-search-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view] .global-search-main input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 4px;
    font-size: 18.5px;
    line-height: 1;
  }

  html body[data-app-view] .global-search-main .button {
    min-width: 0;
    min-height: 38px;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 14px;
  }

  html body[data-app-view] #search-filter-toggle { padding-inline: 9px; }
  html body[data-app-view] .search-filter-panel {
    max-height: 58dvh;
    overflow: auto;
    margin-top: 7px;
    grid-template-columns: 1fr !important;
    border-radius: 16px;
    padding: 12px;
  }

  html body[data-app-view] .hot-search-strip {
    margin-top: 7px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  html body[data-app-view] .hot-search-strip::-webkit-scrollbar { display: none; }

  /* 主内容：全宽、留安全区、给底部导航腾位置 */
  html body[data-app-view] .app-main,
  html body[data-app-view]:not([data-app-view="lobby"]) .app-main,
  html body[data-app-view]:not([data-app-view="lobby"]):is([data-app-view="lobbyGame"], [data-app-view="searchResults"]) .app-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: var(--mobile-gap) var(--mobile-page-padding) calc(var(--mobile-nav-height) + 88px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view][data-mobile-bottom-nav="0"] .app-main {
    padding-bottom: calc(76px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view] .page-section { animation-duration: 180ms; }
  html body[data-app-view] .page-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
  }

  html body[data-app-view] .page-heading h1 {
    margin-bottom: 2px;
    font-size: calc(25px * var(--mobile-text-scale)) !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  html body[data-app-view] .page-heading p,
  html body[data-app-view] .page-heading .hint {
    font-size: calc(12px * var(--mobile-text-scale));
    line-height: 1.65;
  }

  html body[data-app-view] .page-heading > .button,
  html body[data-app-view] .page-heading > div > .button {
    justify-self: start;
  }

  html body[data-app-view] .back-button {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(150, 180, 220, 0.16);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(12, 20, 34, 0.8);
    font-size: 14px;
  }

  html body[data-app-view] .panel,
  html body[data-app-view] .report-card,
  html body[data-app-view] .request-card,
  html body[data-app-view] .consultation-card {
    border-radius: var(--mobile-card-radius);
    padding: 14px;
  }

  html body[data-app-view] .panel-heading,
  html body[data-app-view] .form-actions,
  html body[data-app-view] .dialog-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  html body[data-app-view] .form-actions .button,
  html body[data-app-view] .dialog-actions .button,
  html body[data-app-view] .panel-heading .button { width: 100%; }

  html body[data-app-view] .two-fields,
  html body[data-app-view] .settings-grid,
  html body[data-app-view] .admin-review-form,
  html body[data-app-view] .search-filter-panel,
  html body[data-app-view] .order-aside,
  html body[data-app-view] .price-layout,
  html body[data-app-view] .order-layout {
    grid-template-columns: 1fr !important;
  }

  html body[data-app-view] input:not([type="checkbox"]):not([type="radio"]),
  html body[data-app-view] select,
  html body[data-app-view] textarea {
    min-height: 46px;
    border-radius: 13px;
    font-size: 18.5px;
  }

  html body[data-app-view] textarea { min-height: 110px; }
  html body[data-app-view] .field { gap: 6px; }
  html body[data-app-view] .field > span { font-size: 14px; }

  /* 大厅 */
  html body[data-app-view] .lobby-home-stage,
  html body[data-app-view="lobby"] .lobby-featured-section,
  html body[data-app-view="lobby"] .lobby-history-panel {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  html body[data-app-view] .lobby-feature-card { width: 68vw; flex-basis: 68vw; }
  html body[data-app-view] .lobby-feature-art,
  html body[data-app-view] .lobby-feature-card img { height: clamp(180px, var(--mobile-hero-height), 280px) !important; }
  html body[data-app-view] .lobby-feature-card img { object-fit: var(--mobile-image-fit, cover); }

  html body[data-app-view] .lobby-mini-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }

  html body[data-app-view] .lobby-mini-item,
  html body[data-app-view] .lobby-mini-art {
    border-radius: 50% !important;
  }

  html body[data-app-view] .lobby-mini-art {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
  }

  html body[data-app-view] .lobby-mini-label { font-size: 12.5px !important; }

  /* 店铺：海报和商品保持单列，图片完整可见 */
  html body[data-app-view] .shop-home,
  html body[data-app-view] .shop-detail,
  html body[data-app-view] .shop-category-page,
  html body[data-app-view] .shop-product-stack,
  html body[data-app-view] .task-hall-hero,
  html body[data-app-view] .task-market-layout {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  html body[data-app-view] .shop-page-hero,
  html body[data-app-view] .shop-page-hero-simple,
  html body[data-app-view] .shop-category-hero {
    min-height: min(var(--mobile-shop-hero-height), 180px) !important;
    border-radius: var(--mobile-shop-radius) !important;
  }

  html body[data-app-view] .shop-page-hero-stage img,
  html body[data-app-view] .shop-category-hero-media img,
  html body[data-app-view] .shop-cat-card-media img,
  html body[data-app-view] .shop-feature-media img,
  html body[data-app-view] .shop-detail-cover img,
  html body[data-app-view] .shop-category-window-media img,
  html body[data-app-view] .shop-showcase-cover,
  html body[data-app-view] .shop-showcase-dot-image img {
    object-fit: var(--mobile-shop-image-fit) !important;
  }

  html body[data-app-view] .shop-page-hero-simple-copy,
  html body[data-app-view] .shop-page-hero .shop-category-hero-copy,
  html body[data-app-view] .shop-category-hero-copy {
    width: 100% !important;
    padding: 20px 15px 16px !important;
  }

  html body[data-app-view] .shop-page-hero-simple-copy h1,
  html body[data-app-view] .shop-category-hero-copy h1 { font-size: calc(var(--mobile-shop-hero-title-size) * var(--mobile-text-scale)) !important; }
  html body[data-app-view] .shop-category-switcher,
  html body[data-app-view] .shop-page-category-switcher,
  html body[data-app-view] .shop-cat-nav,
  html body[data-app-view] .shop-page-point-grid,
  html body[data-app-view] .shop-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-app-view] .shop-cat-grid,
  html body[data-app-view] .shop-category-window-grid,
  html body[data-app-view] .companion-grid,
  html body[data-app-view] .public-game-grid,
  html body[data-app-view] .lobby-game-grid {
    grid-template-columns: repeat(var(--mobile-grid-columns, 1), minmax(0, 1fr)) !important;
    gap: var(--mobile-gap) !important;
  }

  html body[data-app-view][data-mobile-card-columns="2"] { --mobile-grid-columns: 2; }

  html body[data-app-view] .shop-cat-card,
  html body[data-app-view] .shop-category-window-card,
  html body[data-app-view] .companion-card,
  html body[data-app-view] .public-game-card {
    border-radius: var(--mobile-shop-radius) !important;
  }

  html body[data-app-view][data-mobile-shop-columns="1"] .shop-cat-grid,
  html body[data-app-view][data-mobile-shop-columns="1"] .shop-category-window-grid {
    grid-template-columns: 1fr !important;
  }

  html body[data-app-view][data-mobile-shop-columns="2"] .shop-cat-grid,
  html body[data-app-view][data-mobile-shop-columns="2"] .shop-category-window-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-app-view] .shop-cat-card-media { aspect-ratio: 16 / 10; }
  html body[data-app-view] .shop-cat-card-hero { width: 92%; padding: 13px 12px 11px; }
  html body[data-app-view] .shop-cat-card-title { font-size: calc(22px * var(--mobile-text-scale)); }
  html body[data-app-view] .shop-cat-card-subtitle { font-size: 12.5px; }
  html body[data-app-view] .shop-cat-card-actions { display: grid; grid-template-columns: 1fr; }
  html body[data-app-view] .shop-cat-card-actions .button { width: 100%; min-height: 44px; }

  html body[data-app-view] .shop-detail-aside { position: static; grid-template-columns: 1fr; }
  html body[data-app-view] .shop-option-grid { grid-template-columns: 1fr !important; }
  html body[data-app-view] .shop-detail-cta,
  html body[data-app-view] .shop-purple-button { width: 100%; }

  /* 任务大厅与广场 */
  html body[data-app-view] .task-hall-hero {
    padding: 22px 17px !important;
    border-radius: var(--mobile-card-radius) !important;
  }
  html body[data-app-view] .task-hall-hero h1 { font-size: calc(30px * var(--mobile-text-scale)) !important; }
  html body[data-app-view] .task-hall-stats { width: 100%; justify-content: flex-start; }
  html body[data-app-view] .task-market-side { order: 0 !important; }
  html body[data-app-view] .task-card {
    border-radius: var(--mobile-task-radius) !important;
    padding: 13px !important;
  }
  html body[data-app-view] .task-card-main { grid-template-columns: 54px minmax(0, 1fr) !important; }
  html body[data-app-view] .task-card h3 { font-size: calc(20px * var(--mobile-text-scale)) !important; }
  html body[data-app-view] .task-card-side { grid-template-columns: 1fr !important; }
  html body[data-app-view] .task-card-actions { display: grid; grid-template-columns: 1fr; }
  html body[data-app-view] .task-card-actions .mini-button { width: 100%; min-height: 44px; }
  html body[data-app-view] .square-hero { padding: 18px !important; border-radius: var(--mobile-card-radius) !important; }
  html body[data-app-view] .square-side { display: none; }
  html body[data-app-view] .square-card { border-radius: var(--mobile-square-radius) !important; padding: 13px !important; }

  /* 个人中心 / 订单 / 账单 */
  html body[data-app-view] .profile-home-hero {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 17px !important;
    border-radius: var(--mobile-profile-radius) !important;
  }
  html body[data-app-view] .profile-home-avatar-column { justify-items: center; }
  html body[data-app-view] .profile-home-avatar-wrap,
  html body[data-app-view] .profile-home-avatar { width: 146px !important; height: 146px !important; }
  html body[data-app-view] .profile-home-avatar { border-radius: 50% !important; }
  html body[data-app-view] .profile-home-hero-actions { display: grid !important; width: 100%; grid-template-columns: 1fr 1fr; }
  html body[data-app-view] .profile-home-hero-actions .button { width: 100%; }
  html body[data-app-view] .profile-moments-side { display: none; }
  html body[data-app-view] .profile-stat-grid { grid-template-columns: 1fr 1fr !important; }
  html body[data-app-view] .profile-referral-metrics,
  html body[data-app-view] .profile-boss-summary { grid-template-columns: 1fr 1fr !important; }
  html body[data-app-view] .profile-base-fields { grid-template-columns: 1fr !important; }
  html body[data-app-view] .profile-calendar-order { grid-template-columns: 1fr !important; }
  html body[data-app-view] .game-order-fab {
    right: 13px !important;
    bottom: calc(var(--mobile-nav-height) + 84px + var(--mobile-safe-bottom)) !important;
    width: 80px !important;
    height: 80px !important;
  }

  /* 弹窗统一为底部抽屉，手指更容易操作 */
  html body[data-app-view] .app-modal-layer,
  html body[data-app-view].modal-open .app-modal-layer {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  html body[data-app-view] .app-modal-card,
  html body[data-app-view] .shop-tier-modal .app-modal-card,
  html body[data-app-view] .profile-modal .app-modal-card,
  html body[data-app-view] .order-post-modal .app-modal-card,
  html body[data-app-view] .companion-service-modal .app-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92dvh !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: var(--mobile-safe-bottom);
  }
  html body[data-app-view] .app-modal-head { padding: 16px 15px 12px !important; }
  html body[data-app-view] .app-modal-body { padding: 0 15px 15px !important; }
  html body[data-app-view] .app-modal-footer,
  html body[data-app-view] .shop-tier-picker .modal-actions {
    padding: 12px 15px calc(12px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view] .confirm-dialog,
  html body[data-app-view] .quick-task-dialog {
    width: 100% !important;
    max-width: none !important;
    margin: auto 0 0 !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: var(--mobile-safe-bottom);
  }

  /* 登录页在手机上只保留表单，避免营销区把按钮挤出屏幕 */
  html body .auth-layout { display: block; }
  html body .auth-hero { display: none; }
  html body .auth-card { min-height: 100dvh; border-radius: 0; padding: 26px 18px calc(26px + var(--mobile-safe-bottom)); }
  html body .auth-card-head h2 { font-size: 34.5px; }

  html body[data-app-view] .app-footer { display: none; }
  html body[data-app-view] .toast-region {
    right: 12px;
    bottom: calc(var(--mobile-nav-height) + 18px + var(--mobile-safe-bottom));
    left: 12px;
    width: auto;
  }
  html body[data-app-view] .toast { border-radius: 16px; font-size: 15px; }

  /* 右下角浮层按“聊天球 → 发布 → 个人头像”的顺序纵向排列，避免互相遮挡。 */
  html body[data-app-view] .gchat-root .gchat-ball {
    right: 14px !important;
    bottom: calc(var(--mobile-nav-height) + 92px + var(--mobile-safe-bottom)) !important;
    left: auto !important;
    top: auto !important;
    width: 48px;
    height: 48px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    transform: none;
  }

  html body[data-app-view="lobby"] .gchat-root .gchat-ball {
    bottom: calc(var(--mobile-nav-height) + 170px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view][data-mobile-bottom-nav="0"] .gchat-root .gchat-ball {
    bottom: calc(80px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view="lobby"][data-mobile-bottom-nav="0"] .gchat-root .gchat-ball {
    bottom: calc(168px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view] .gchat-root .gchat-window {
    right: 8px !important;
    bottom: calc(var(--mobile-nav-height) + 8px + var(--mobile-safe-bottom)) !important;
    left: 8px !important;
    width: auto !important;
    height: min(76dvh, 680px) !important;
    border-radius: 22px !important;
  }

  html body[data-app-view="lobby"] .lobby-publish-fab {
    right: 14px;
    bottom: calc(var(--mobile-nav-height) + 86px + var(--mobile-safe-bottom));
    width: 72px;
    height: 72px;
    font-size: 12.5px;
  }

  html body[data-app-view="lobby"][data-mobile-bottom-nav="0"] .lobby-publish-fab {
    bottom: calc(84px + var(--mobile-safe-bottom));
  }

  html body[data-app-view="lobby"] .lobby-publish-plus { font-size: 25px; }

  html body[data-app-view][data-mobile-density="compact"] { --mobile-gap: 9px; --mobile-page-padding: 9px; --mobile-radius: 17px; }
  html body[data-app-view][data-mobile-density="roomy"] { --mobile-gap: 16px; --mobile-page-padding: 15px; --mobile-radius: 26px; }

  /* 可调模块尺寸：默认值与升级前保持一致，后台保存后即时覆盖。 */
  html body[data-app-view] .topbar { min-height: var(--mobile-topbar-height); }
  html body[data-app-view] .topbar #site-logo-image {
    width: var(--mobile-brand-size);
    height: var(--mobile-brand-size);
    border-radius: calc(var(--mobile-brand-size) * 0.32);
  }
  html body[data-app-view] .topbar .mobile-brand-copy strong {
    font-size: clamp(13px, calc(var(--mobile-brand-size) * 0.47), 22px);
  }
  html body[data-app-view] .topbar .mobile-brand-copy small {
    font-size: clamp(8px, calc(var(--mobile-brand-size) * 0.26), 12px);
  }

  html body[data-app-view] .global-search-main input { height: var(--mobile-search-height) !important; }
  html body[data-app-view] .global-search-main .button { min-height: var(--mobile-search-height) !important; }
  html body[data-app-view] .global-search-icon {
    width: calc(var(--mobile-search-height) - 2px) !important;
    height: calc(var(--mobile-search-height) - 2px) !important;
  }

  html body[data-app-view] .nav-icon {
    width: var(--mobile-nav-icon-size) !important;
    height: var(--mobile-nav-icon-size) !important;
    font-size: calc(var(--mobile-nav-icon-size) * 0.47) !important;
    border-radius: calc(var(--mobile-nav-icon-size) * 0.37) !important;
  }
  html body[data-app-view] .nav-button { font-size: var(--mobile-nav-font-size) !important; }
  html body[data-app-view][data-mobile-nav-labels="0"] .nav-icon {
    width: calc(var(--mobile-nav-icon-size) + 6px) !important;
    height: calc(var(--mobile-nav-icon-size) + 6px) !important;
  }
  html body[data-app-view][data-mobile-bottom-nav="0"] .nav-icon {
    width: clamp(22px, calc(var(--mobile-nav-icon-size) - 6px), 36px) !important;
    height: clamp(22px, calc(var(--mobile-nav-icon-size) - 6px), 36px) !important;
  }

  html body[data-app-view] .lobby-feature-card {
    width: var(--mobile-feature-card-width) !important;
    flex-basis: var(--mobile-feature-card-width) !important;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-row {
    gap: clamp(5px, calc(var(--mobile-gap) * 0.55), 12px);
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-card {
    border-radius: min(var(--mobile-card-radius), 16px) !important;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-art {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-art img {
    height: 100% !important;
    object-fit: cover;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-copy {
    min-height: 0;
    flex: 0 0 auto;
    gap: 0;
    padding: var(--mobile-feature-card-copy-padding) !important;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-copy > strong {
    font-size: calc(var(--mobile-feature-card-title-size) * var(--mobile-text-scale)) !important;
    line-height: 1.25;
    text-align: center;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-feature-copy > small,
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-card-meta {
    display: none !important;
  }
  html body[data-app-view][data-mobile-feature-card-style="compact"] .lobby-hot-tag {
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    font-size: 12.5px;
  }
  html body[data-app-view] .lobby-mini-art {
    width: var(--mobile-category-size) !important;
    height: var(--mobile-category-size) !important;
    max-width: 100%;
    aspect-ratio: 1 / 1 !important;
    margin-inline: auto;
  }
  html body[data-app-view] .lobby-mini-label {
    font-size: clamp(8px, calc(var(--mobile-category-size) * 0.16), 13px) !important;
  }

  html body[data-app-view] .shop-cat-card-media,
  html body[data-app-view] .shop-category-window-media,
  html body[data-app-view] .shop-feature-media,
  html body[data-app-view] .companion-card-cover,
  html body[data-app-view] .profile-service-card-cover {
    height: min(var(--mobile-product-cover-height), 150px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  html body[data-app-view] .shop-cat-card-title,
  html body[data-app-view] .shop-category-window-card h3,
  html body[data-app-view] .shop-feature-card h3,
  html body[data-app-view] .companion-card h3,
  html body[data-app-view] .profile-service-card-body strong {
    font-size: calc(var(--mobile-product-title-size) * var(--mobile-text-scale)) !important;
  }
  html body[data-app-view] .shop-cat-card-media,
  html body[data-app-view] .shop-category-window-media,
  html body[data-app-view] .shop-feature-media {
    height: min(var(--mobile-shop-cover-height), 150px) !important;
  }
  html body[data-app-view] .shop-cat-card-title,
  html body[data-app-view] .shop-category-window-card h3,
  html body[data-app-view] .shop-feature-card h3 {
    font-size: calc(var(--mobile-shop-title-size) * var(--mobile-text-scale)) !important;
  }
  html body[data-app-view] .shop-purple-button,
  html body[data-app-view] .shop-cat-card-actions .button,
  html body[data-app-view] .shop-detail-cta .button {
    min-height: var(--mobile-shop-button-height) !important;
  }

  html body[data-app-view] .task-card { padding: var(--mobile-task-padding) !important; }
  html body[data-app-view] .task-card h3 {
    font-size: calc(var(--mobile-task-title-size) * var(--mobile-text-scale)) !important;
  }
  html body[data-app-view] .square-card { padding: var(--mobile-square-padding) !important; }
  html body[data-app-view] .square-card h3 {
    font-size: calc(var(--mobile-square-title-size) * var(--mobile-text-scale)) !important;
  }

  html body[data-app-view] .profile-home-avatar-wrap,
  html body[data-app-view] .profile-home-avatar {
    width: var(--mobile-profile-avatar-size) !important;
    height: var(--mobile-profile-avatar-size) !important;
  }

  html body[data-app-view] #account-home-button,
  html body[data-app-view] #account-home-button:hover,
  html body[data-app-view] #account-home-button:focus-visible,
  html body[data-app-view] #account-home-button.is-active {
    width: var(--mobile-account-dock-size) !important;
    height: var(--mobile-account-dock-size) !important;
    min-height: var(--mobile-account-dock-size) !important;
  }
  html body[data-app-view] #account-home-button #account-avatar,
  html body[data-app-view] #account-home-button:hover #account-avatar,
  html body[data-app-view] #account-home-button:focus-visible #account-avatar,
  html body[data-app-view] #account-home-button.is-active #account-avatar {
    width: calc(var(--mobile-account-dock-size) - 10px);
    height: calc(var(--mobile-account-dock-size) - 10px);
  }
  html body[data-app-view][data-mobile-profile-dock="full"] #account-home-button {
    width: min(344px, calc(100vw - 24px)) !important;
    height: calc(var(--mobile-account-dock-size) + 20px) !important;
  }

  html body[data-app-view] .gchat-root .gchat-ball {
    width: var(--mobile-chatball-size);
    height: var(--mobile-chatball-size);
    bottom: max(
      calc(var(--mobile-nav-height) + 92px + var(--mobile-safe-bottom)),
      calc(var(--mobile-nav-height) + 16px + var(--mobile-account-dock-size) + 14px + var(--mobile-safe-bottom))
    ) !important;
  }
  html body[data-app-view="lobby"] .gchat-root .gchat-ball {
    bottom: max(
      calc(var(--mobile-nav-height) + 86px + var(--mobile-publish-fab-size) + 12px + var(--mobile-safe-bottom)),
      calc(var(--mobile-nav-height) + 16px + var(--mobile-account-dock-size) + 14px + var(--mobile-safe-bottom))
    ) !important;
  }
  html body[data-app-view] .lobby-publish-fab {
    width: var(--mobile-publish-fab-size);
    height: var(--mobile-publish-fab-size);
    font-size: clamp(9px, calc(var(--mobile-publish-fab-size) * 0.15), 15px);
  }
  html body[data-app-view] .lobby-publish-plus {
    font-size: clamp(18px, calc(var(--mobile-publish-fab-size) * 0.32), 32px);
  }
  html body[data-app-view] .game-order-fab {
    width: var(--mobile-order-fab-size) !important;
    height: var(--mobile-order-fab-size) !important;
  }

  html body.mobile-motion-off *,
  html body.mobile-motion-off *::before,
  html body.mobile-motion-off *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 820px) {
  /* 玩家广场：信息、发布、动态入口压缩到首屏，动态流保持正常阅读尺寸。 */
  html body[data-app-view="square"] .square-home {
    gap: 9px !important;
  }

  html body[data-app-view="square"] .square-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 13px !important;
    border-radius: 15px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
  }

  html body[data-app-view="square"] .square-hero::after {
    right: -10px !important;
    font-size: 70px !important;
  }

  html body[data-app-view="square"] .square-hero-copy {
    gap: 3px !important;
  }

  html body[data-app-view="square"] .square-hero-copy .eyebrow {
    font-size: 8px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
  }

  html body[data-app-view="square"] .square-hero-copy h1 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="square"] .square-hero-copy p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="square"] .square-hero-tags {
    gap: 3px !important;
    margin-top: 1px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  html body[data-app-view="square"] .square-hero-tags span {
    flex: 0 0 auto !important;
    padding: 2px 6px !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="square"] .square-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  html body[data-app-view="square"] .square-hero-stat {
    display: flex !important;
    min-width: 0 !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="square"] .square-hero-stat b {
    display: inline !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  html body[data-app-view="square"] .square-hero-stat span {
    font-size: 7.5px !important;
  }

  html body[data-app-view="square"] .square-main {
    gap: 7px !important;
  }

  html body[data-app-view="square"] .square-composer {
    gap: 5px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22) !important;
  }

  html body[data-app-view="square"] .square-composer-head {
    align-items: center !important;
    gap: 6px !important;
  }

  html body[data-app-view="square"] .square-composer-head .eyebrow {
    display: none !important;
  }

  html body[data-app-view="square"] .square-composer-head strong {
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="square"] .square-composer-head small {
    display: none !important;
  }

  html body[data-app-view="square"] .square-composer-hint {
    flex: 0 0 auto !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="square"] .square-composer textarea {
    min-height: 54px !important;
    height: 54px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    resize: none !important;
  }

  html body[data-app-view="square"] .square-image-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="square"] .square-composer-actions {
    align-items: center !important;
    flex-direction: row !important;
    gap: 5px !important;
  }

  html body[data-app-view="square"] .square-composer-tools {
    flex: 1 1 auto !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  html body[data-app-view="square"] .square-tool-button {
    min-height: 27px !important;
    gap: 3px !important;
    padding: 3px 7px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="square"] .square-composer-actions .button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 28px !important;
    padding: 3px 10px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="square"] .square-composer-note {
    padding: 4px 6px !important;
    font-size: 7.5px !important;
    line-height: 1.35 !important;
  }

  html body[data-app-view="square"] .square-feed-head {
    align-items: center !important;
    flex-direction: row !important;
    gap: 6px !important;
  }

  html body[data-app-view="square"] .square-feed-head .eyebrow {
    display: none !important;
  }

  html body[data-app-view="square"] .square-feed-head h2 {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="square"] .square-sort-tabs {
    gap: 2px !important;
    padding: 2px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="square"] .square-sort-tabs button {
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="square"] .square-search {
    gap: 4px !important;
    width: 100% !important;
  }

  html body[data-app-view="square"] .square-search input {
    min-height: 30px !important;
    padding: 5px 8px !important;
    border-radius: 7px !important;
    font-size: 9.5px !important;
  }

  html body[data-app-view="square"] .square-search .button {
    min-height: 30px !important;
    padding: 4px 10px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="square"] .square-feed {
    gap: 8px !important;
  }

  html body[data-app-view="square"] .square-card {
    gap: 7px !important;
    padding: 11px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="square"] .square-card-head {
    gap: 6px !important;
  }

  html body[data-app-view="square"] .square-author {
    gap: 7px !important;
  }

  html body[data-app-view="square"] .square-avatar {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  html body[data-app-view="square"] .square-author-line strong {
    font-size: 11px !important;
  }

  html body[data-app-view="square"] .square-author-copy small,
  html body[data-app-view="square"] .square-badge {
    font-size: 7.5px !important;
  }

  html body[data-app-view="square"] .square-card-content {
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html body[data-app-view="square"] .square-card-images img {
    max-height: 190px !important;
  }

  html body[data-app-view="square"] .square-card-actions {
    gap: 3px !important;
    padding-top: 6px !important;
  }

  html body[data-app-view="square"] .square-action {
    min-height: 25px !important;
    gap: 3px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="square"] .square-action-icon {
    font-size: 10px !important;
  }

  html body[data-app-view="square"] .square-empty {
    padding: 16px 12px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="square"] .square-empty strong {
    margin-bottom: 2px !important;
    font-size: 11px !important;
  }

  html body[data-app-view="square"] .square-empty span {
    font-size: 8.5px !important;
  }
}

/* 全站移动端统一紧凑排版：同一字号、间距、卡片和表单节奏。 */
@media (max-width: 820px) {
  html body[data-app-view] .app-main {
    padding: 8px 10px calc(76px + var(--mobile-safe-bottom)) !important;
  }

  html body[data-app-view] .ui-block-stack {
    gap: 8px !important;
  }

  html body[data-app-view] .page-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 7px !important;
    margin: 0 0 8px !important;
  }

  html body[data-app-view] .page-heading > div {
    min-width: 0;
    gap: 2px !important;
  }

  html body[data-app-view] .page-heading .eyebrow {
    font-size: 8px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view] .page-heading h1 {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view] .page-heading p,
  html body[data-app-view] .page-heading .hint {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view] .page-heading > .button,
  html body[data-app-view] .page-heading > div > .button {
    flex: 0 0 auto !important;
    width: auto !important;
    justify-self: auto !important;
  }

  html body[data-app-view] .back-button {
    min-height: 28px !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    font-size: 9.5px !important;
  }

  html body[data-app-view] .panel,
  html body[data-app-view] .report-card,
  html body[data-app-view] .request-card,
  html body[data-app-view] .consultation-card,
  html body[data-app-view] .task-board-panel,
  html body[data-app-view] .task-publish-panel,
  html body[data-app-view] .task-mine-panel,
  html body[data-app-view] .task-wallet-panel {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view] .panel-heading {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  html body[data-app-view] .panel-heading > div {
    min-width: 0;
  }

  html body[data-app-view] .panel-heading .eyebrow {
    display: block !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.1em !important;
  }

  html body[data-app-view] .panel-heading h2,
  html body[data-app-view] .panel-heading h3 {
    margin: 1px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
  }

  html body[data-app-view] .panel-heading .button,
  html body[data-app-view] .panel-heading .mini-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 28px !important;
    padding: 3px 9px !important;
    font-size: 9.5px !important;
  }

  html body[data-app-view] .button,
  html body[data-app-view] .mini-button,
  html body[data-app-view] .shop-purple-button {
    min-height: 32px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
  }

  html body[data-app-view] .button-large {
    min-height: 36px !important;
    font-size: 11.5px !important;
  }

  html body[data-app-view] .form-actions {
    flex-direction: row !important;
    gap: 5px !important;
  }

  html body[data-app-view] .form-actions .button {
    flex: 1 1 0 !important;
    width: auto !important;
  }

  html body[data-app-view] .stack-form {
    gap: 7px !important;
  }

  html body[data-app-view] .field {
    gap: 3px !important;
  }

  html body[data-app-view] .field > span,
  html body[data-app-view] .check-line,
  html body[data-app-view] .hint,
  html body[data-app-view] .form-message {
    font-size: 9.5px !important;
    line-height: 1.4 !important;
  }

  html body[data-app-view] input:not([type="checkbox"]):not([type="radio"]),
  html body[data-app-view] select {
    height: 38px !important;
    min-height: 38px !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  html body[data-app-view] textarea {
    min-height: 64px !important;
    height: auto !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html body[data-app-view] .two-fields {
    gap: 6px !important;
  }

  html body[data-app-view] .empty-state {
    min-height: 0 !important;
    gap: 3px !important;
    padding: 14px 10px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view] .empty-state svg {
    width: 25px !important;
    height: 25px !important;
  }

  html body[data-app-view] .empty-state strong,
  html body[data-app-view] .empty-state h3 {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view] .empty-state span,
  html body[data-app-view] .empty-state p {
    font-size: 9px !important;
    line-height: 1.4 !important;
  }

  html body[data-app-view] .count-badge,
  html body[data-app-view] .status-pill,
  html body[data-app-view] .profile-private-badge,
  html body[data-app-view] .personal-live-chip {
    padding: 2px 6px !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  /* 店铺首页与游戏入口卡片 */
  html body[data-app-view="baobashiShop"] #baobashi-shop-content {
    gap: 8px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase {
    min-height: 150px !important;
    border-radius: 15px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-copy {
    gap: 3px !important;
    padding: 10px 12px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-badge {
    padding: 2px 6px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-copy h1 {
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-copy > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-actions .shop-purple-button {
    min-height: 30px !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-rail {
    right: 10px !important;
    bottom: 8px !important;
    max-width: 45% !important;
    padding: 2px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-dot,
  html body[data-app-view="baobashiShop"] .shop-showcase-dot:hover,
  html body[data-app-view="baobashiShop"] .shop-showcase-dot.is-active {
    width: 30px !important;
    height: 22px !important;
  }

  html body[data-app-view] .shop-category-portal {
    gap: 6px !important;
  }

  html body[data-app-view] .shop-category-portal-head {
    gap: 6px !important;
  }

  html body[data-app-view] .shop-category-portal-head h2 {
    font-size: 14px !important;
  }

  html body[data-app-view] .shop-category-portal-head p {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  html body[data-app-view] .shop-page-window-grid {
    gap: 6px !important;
  }

  html body[data-app-view] .shop-page-window-card.shop-category-window-card {
    height: 92px !important;
    min-height: 92px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: linear-gradient(90deg, rgba(8, 12, 24, 0.98), rgba(9, 15, 30, 0.66)) !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-veil {
    background: linear-gradient(90deg, rgba(4, 8, 18, 0.96) 0%, rgba(4, 8, 18, 0.8) 58%, rgba(4, 8, 18, 0.2) 100%) !important;
  }

  html body[data-app-view] .shop-page-window-heading {
    top: 50% !important;
    left: 11px !important;
    width: 61% !important;
    gap: 1px !important;
    transform: translateY(-50%) !important;
  }

  html body[data-app-view] .shop-page-window-heading .shop-category-window-kicker {
    padding: 1px 5px !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view] .shop-page-window-heading strong {
    font-size: 14px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view] .shop-page-window-heading > small {
    font-size: 7.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-copy {
    top: auto !important;
    right: 9px !important;
    bottom: 9px !important;
    width: 96px !important;
    min-height: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-copy > small {
    display: none !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-cta {
    width: 96px !important;
    min-height: 27px !important;
    padding: 3px 6px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view] .shop-page-window-index {
    display: none !important;
  }

  /* 任务大厅：首屏、筛选和空状态统一收紧 */
  html body[data-app-view="tasks"] #task-hall-content {
    gap: 8px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 8px !important;
    margin: 0 !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero .eyebrow {
    display: none !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero h1 {
    max-width: 230px !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  html body[data-app-view="tasks"] .task-hall-stats {
    grid-template-columns: repeat(3, 31px) !important;
    gap: 4px !important;
  }

  html body[data-app-view="tasks"] .task-hall-stats > div {
    width: 31px !important;
    height: 31px !important;
  }

  html body[data-app-view="tasks"] .task-hall-stats strong {
    font-size: 13px !important;
  }

  html body[data-app-view="tasks"] .task-hall-stats span {
    font-size: 7px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions .button {
    min-height: 28px !important;
    padding: 2px 3px !important;
    font-size: 8.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="tasks"] .task-market-layout {
    gap: 8px !important;
    margin: 0 0 8px !important;
  }

  html body[data-app-view="tasks"] .task-board-heading {
    margin-bottom: 7px !important;
  }

  html body[data-app-view="tasks"] .task-board-heading h2 {
    font-size: 16px !important;
  }

  html body[data-app-view="tasks"] .task-board-heading .eyebrow {
    font-size: 8px !important;
  }

  html body[data-app-view="tasks"] .task-filter-form {
    gap: 5px !important;
    margin-bottom: 7px !important;
    padding: 8px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="tasks"] .task-filter-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  html body[data-app-view="tasks"] .task-filter-form .field {
    gap: 2px !important;
  }

  html body[data-app-view="tasks"] .task-filter-form .field > span {
    font-size: 8.5px !important;
  }

  html body[data-app-view="tasks"] .task-filter-form input,
  html body[data-app-view="tasks"] .task-filter-form select {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 10px !important;
  }

  html body[data-app-view="tasks"] .task-filter-quick-actions {
    gap: 4px !important;
  }

  html body[data-app-view="tasks"] .task-filter-quick-actions .button {
    min-height: 32px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="tasks"] .task-wallet-panel {
    gap: 6px !important;
  }

  html body[data-app-view="tasks"] .task-wallet-panel h2 {
    font-size: 16px !important;
  }

  html body[data-app-view="tasks"] .task-wallet-balance {
    padding: 7px !important;
  }

  html body[data-app-view="tasks"] .task-wallet-balance strong {
    font-size: 21px !important;
  }

  html body[data-app-view="tasks"] .task-wallet-steps span {
    padding: 4px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="tasks"] .task-completed-panel {
    margin-top: 0 !important;
  }
}

/* 举报中心：表单双列，记录区压缩为卡片列表。 */
@media (max-width: 820px) {
  html body[data-app-view="reports"] .report-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body[data-app-view="reports"] #report-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="reports"] #report-form .field > span {
    font-size: 9px !important;
  }

  html body[data-app-view="reports"] #report-form .field:nth-child(4),
  html body[data-app-view="reports"] #report-form .field:nth-child(5),
  html body[data-app-view="reports"] #report-form .hint,
  html body[data-app-view="reports"] #report-form .form-message,
  html body[data-app-view="reports"] #report-form > .button {
    grid-column: 1 / -1 !important;
  }

  html body[data-app-view="reports"] #report-form textarea {
    min-height: 58px !important;
  }

  html body[data-app-view="reports"] #report-form .button {
    width: 100% !important;
  }

  html body[data-app-view="reports"] .report-form-shield {
    width: 90px !important;
    opacity: 0.12 !important;
  }

  html body[data-app-view="reports"] .report-list {
    gap: 6px !important;
  }

  html body[data-app-view="reports"] .report-card {
    gap: 5px !important;
  }

  html body[data-app-view="reports"] .report-card h3,
  html body[data-app-view="reports"] .report-card strong {
    font-size: 11px !important;
  }

  html body[data-app-view="reports"] .report-card p,
  html body[data-app-view="reports"] .report-card span,
  html body[data-app-view="reports"] .report-card small,
  html body[data-app-view="reports"] .report-note {
    font-size: 9px !important;
    line-height: 1.4 !important;
  }
}

/* 店铺三级游戏页、商品详情：小海报 + 三列分类 + 双列商品。 */
@media (max-width: 820px) {
  html body[data-app-view="baobashiShopCategory"] .shop-category-page,
  html body[data-app-view="baobashiShopDetail"] .shop-detail {
    gap: 7px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-topbar {
    min-height: 30px !important;
    gap: 5px !important;
    padding: 0 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-topbar-meta {
    display: none !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-level-badge {
    margin-left: auto !important;
    padding: 2px 7px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple {
    min-height: 126px !important;
    height: 126px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-copy {
    width: 68% !important;
    gap: 3px !important;
    padding: 9px 11px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-badge {
    padding: 2px 6px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-copy h1 {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-copy > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-meta {
    gap: 3px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-meta span {
    padding: 1px 5px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-hero-simple-cta {
    width: auto !important;
    min-height: 27px !important;
    padding: 3px 9px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-category-switcher {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-category-switch {
    min-height: 42px !important;
    gap: 5px !important;
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-switch-icon {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-category-switch strong {
    font-size: 9px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-category-switch small {
    font-size: 7px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-products {
    gap: 6px !important;
    padding: 9px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-products-head {
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-products-head h2 {
    font-size: 15px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-category-products-head p {
    display: none !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card {
    border-radius: 11px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-media {
    aspect-ratio: 4 / 3 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-hero {
    width: 100% !important;
    padding: 7px 8px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-title {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-subtitle,
  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-badges {
    display: none !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-body {
    gap: 5px !important;
    padding: 7px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta,
  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-copy p {
    display: none !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-actions {
    grid-template-columns: 1fr !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-actions .button {
    min-height: 28px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-description,
  html body[data-app-view="baobashiShopCategory"] .shop-page-highlights,
  html body[data-app-view="baobashiShopCategory"] .shop-page-notes {
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-description h2,
  html body[data-app-view="baobashiShopCategory"] .shop-page-highlights h2,
  html body[data-app-view="baobashiShopCategory"] .shop-page-notes h2 {
    font-size: 14px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-page-description p,
  html body[data-app-view="baobashiShopCategory"] .shop-page-point-grid p,
  html body[data-app-view="baobashiShopCategory"] .shop-page-notes li {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  /* 商品详情 */
  html body[data-app-view="baobashiShopDetail"] .shop-detail > .shop-back {
    justify-self: start !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-hero {
    min-height: 176px !important;
    height: 176px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-hero-copy {
    width: 62% !important;
    gap: 3px !important;
    padding: 9px 11px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-kicker {
    gap: 4px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-icon {
    width: 22px !important;
    height: 22px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-hero-copy h1 {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-hero-copy > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-tags {
    display: none !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-cta {
    gap: 2px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-cta .shop-purple-button {
    min-height: 30px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-buy-note {
    display: none !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-full {
    top: 7px !important;
    right: 7px !important;
    padding: 2px 6px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-cat-nav-windows {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-cat-item {
    min-height: 42px !important;
    gap: 4px !important;
    padding: 5px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-cat-index,
  html body[data-app-view="baobashiShopDetail"] .shop-cat-copy small {
    display: none !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-cat-icon {
    width: 22px !important;
    height: 22px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-cat-copy strong {
    font-size: 9px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-block {
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-block h2 {
    margin: 1px 0 4px !important;
    font-size: 14px !important;
  }

  html body[data-app-view="baobashiShopDetail"] .shop-detail-description,
  html body[data-app-view="baobashiShopDetail"] .shop-highlight-grid p,
  html body[data-app-view="baobashiShopDetail"] .shop-note-list li {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }
}

/* 个人中心 · 接单服务：双列简介、规则卡内滚动、空状态压缩。 */
@media (max-width: 820px) {
  html body[data-app-view="personalCenter"] .profile-services-view {
    gap: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 132px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero::after {
    width: 110px !important;
    height: 110px !important;
    opacity: 0.18 !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-copy {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-copy .eyebrow {
    font-size: 8px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero h2 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .profile-services-stats {
    gap: 3px !important;
    margin-top: 1px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-stats span {
    padding: 2px 5px !important;
    font-size: 7.5px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions {
    min-width: 0 !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions .button {
    min-height: 28px !important;
    padding: 3px 6px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions small {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-width: none !important;
    font-size: 7px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules {
    gap: 5px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-head {
    gap: 3px !important;
    padding: 0 !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-head h2 {
    margin: 0 !important;
    font-size: 13px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-head p,
  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-footnote {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-version {
    padding: 1px 5px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rules-redlines {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    max-height: 80px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
    overscroll-behavior: contain;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rule-redline {
    gap: 1px !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-view .peiban-rule-redline span {
    overflow: hidden !important;
    font-size: 7.2px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty {
    display: grid !important;
    justify-items: center !important;
    gap: 3px !important;
    padding: 11px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty-mark {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty-mark svg {
    width: 15px !important;
    height: 15px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty h3 {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty p {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-width: 280px !important;
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .profile-services-empty .button {
    min-height: 27px !important;
    margin-top: 2px;
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card {
    border-radius: 13px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-cover {
    aspect-ratio: 16 / 9 !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-body {
    gap: 5px !important;
    padding: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-person {
    gap: 5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-avatar {
    width: 26px !important;
    height: 26px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-person strong,
  html body[data-app-view="personalCenter"] .profile-service-card h3 {
    font-size: 10px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-person small,
  html body[data-app-view="personalCenter"] .profile-service-card-subtitle,
  html body[data-app-view="personalCenter"] .profile-service-card-description {
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-footer {
    gap: 4px !important;
    padding-top: 6px !important;
  }

  html body[data-app-view="personalCenter"] .profile-service-card-price {
    font-size: 14px !important;
  }

  /* 申请认证：四个等级同排，长规则折叠，实名表单双列。 */
  html body[data-app-view="personalCenter"] .companion-application-panel {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel > .panel-heading {
    margin-bottom: 5px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel > .hint {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 0 5px !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .companion-tier-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin-top: 0 !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-card {
    gap: 3px !important;
    min-height: 0 !important;
    padding: 6px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-card header {
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-rank {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-card h3 {
    font-size: 9.5px !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-card p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .companion-tier-state {
    padding: 1px 4px !important;
    font-size: 6.5px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view="personalCenter"] .companion-tier-card .button {
    width: 100% !important;
    min-height: 22px !important;
    margin-top: 1px !important;
    padding: 2px 2px !important;
    font-size: 7px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="personalCenter"] .companion-rate-note {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin: 5px 0 !important;
    padding: 6px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="personalCenter"] .companion-rate-note span,
  html body[data-app-view="personalCenter"] .companion-rate-note strong {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .companion-rate-note small {
    grid-column: 1 / -1 !important;
    font-size: 7px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] .commission-rules {
    margin: 5px 0 !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="personalCenter"] .commission-rules > summary {
    min-height: 30px !important;
    padding: 5px 7px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .commission-rules[open] {
    max-height: 200px !important;
    overflow-y: auto !important;
  }

  html body[data-app-view="personalCenter"] .commission-formula,
  html body[data-app-view="personalCenter"] .commission-points li {
    font-size: 7.5px !important;
    line-height: 1.35 !important;
  }

  html body[data-app-view="personalCenter"] .commission-band-row {
    padding: 4px 5px !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules {
    gap: 5px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-head {
    gap: 3px !important;
    padding: 0 !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-head h2 {
    margin: 0 !important;
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-head p {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-version {
    padding: 1px 5px !important;
    font-size: 6.5px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-redlines {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    max-height: 78px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rule-redline {
    gap: 1px !important;
    padding: 3px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rule-redline b {
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rule-redline span {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel details.peiban-rules-details[open] {
    max-height: 155px !important;
    overflow-y: auto !important;
  }

  html body[data-app-view="personalCenter"] .companion-entry-card {
    gap: 3px !important;
    margin-top: 6px !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  html body[data-app-view="personalCenter"] .companion-entry-card h3 {
    font-size: 11px !important;
  }

  html body[data-app-view="personalCenter"] .companion-entry-card p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 7.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .personal-tab-grid.is-single {
    gap: 8px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .two-fields,
  html body[data-app-view="personalCenter"] #real-name-form > .real-name-upload-status,
  html body[data-app-view="personalCenter"] #real-name-form > .real-name-contact-block,
  html body[data-app-view="personalCenter"] #real-name-form > .hint,
  html body[data-app-view="personalCenter"] #real-name-form > .form-message,
  html body[data-app-view="personalCenter"] #real-name-form > .button {
    grid-column: 1 / -1 !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form input,
  html body[data-app-view="personalCenter"] #real-name-form select {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 10.5px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form textarea {
    min-height: 48px !important;
    font-size: 10.5px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .field > span {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .file-button {
    min-height: 32px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .real-name-contact-block {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 10px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-head,
  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-block > .field,
  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-block > .two-fields {
    grid-column: 1 / -1 !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-head strong {
    font-size: 10px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-head span {
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .real-name-upload-status {
    font-size: 8px !important;
  }
}

/* 个人中心 · 推广中心：信用分档与分成信息压成两屏内仪表盘。 */
@media (max-width: 820px) {
  html body[data-app-view="personalCenter"] .promo-hero-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 90px !important;
    gap: 6px 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-copy {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-copy .eyebrow {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-copy h2 {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.16 !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-copy h2 em {
    font-size: 19px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-copy > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .promo-hero-chips {
    gap: 3px !important;
    margin-top: 1px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-chips span {
    flex: 0 0 auto;
    padding: 1px 5px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-rate {
    gap: 0 !important;
    padding: 7px 4px !important;
    border-radius: 10px !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-rate strong {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-rate span,
  html body[data-app-view="personalCenter"] .promo-hero-rate > small {
    font-size: 7px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view="personalCenter"] .promo-link-row {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .promo-link-row input {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-link-row .button {
    min-height: 30px !important;
    padding: 3px 8px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin-top: 0 !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics > div {
    gap: 1px !important;
    padding: 4px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics span,
  html body[data-app-view="personalCenter"] .promo-metrics small {
    overflow: hidden !important;
    font-size: 6.5px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics strong {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-panel {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-panel > .panel-heading {
    margin-bottom: 5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-panel > .panel-heading h2 {
    font-size: 14px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin-bottom: 5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary > div {
    gap: 0 !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary span,
  html body[data-app-view="personalCenter"] .promo-credit-summary small {
    font-size: 6.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary strong {
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-card {
    gap: 2px !important;
    padding: 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-card header {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-card header strong,
  html body[data-app-view="personalCenter"] .promo-credit-card header b,
  html body[data-app-view="personalCenter"] .promo-credit-card p {
    overflow: hidden !important;
    font-size: 6.5px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-card p {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-note {
    margin-top: 4px !important;
    font-size: 7px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-dashboard {
    gap: 5px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-dashboard > .panel-heading {
    margin-bottom: 0 !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-dashboard > .panel-heading h2 {
    font-size: 14px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-overview {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-donut {
    width: 64px !important;
    height: 64px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-donut strong {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-kpis > div {
    gap: 1px !important;
    padding: 4px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-kpis span,
  html body[data-app-view="personalCenter"] .profile-commission-kpis small {
    font-size: 6.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-commission-kpis strong {
    font-size: 11px !important;
  }

  html body[data-app-view="personalCenter"] .profile-referral-dashboard {
    gap: 5px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .profile-referral-dashboard .empty-state {
    padding: 10px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-panel {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-panel > .panel-heading {
    margin-bottom: 5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-panel > .panel-heading h2 {
    font-size: 14px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-highlight {
    gap: 7px !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-highlight span {
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-highlight strong {
    font-size: 16px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-rules {
    gap: 2px !important;
    margin-top: 5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-rate-rules li {
    padding-left: 8px !important;
    font-size: 7.5px !important;
    line-height: 1.35 !important;
  }

  /* 我的订单：余额三列、画像三列、快捷操作和订单列表统一压缩。 */
  html body[data-app-view="personalCenter"] .personal-order-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-hero,
  html body[data-app-view="personalCenter"] .personal-intimacy-hero {
    gap: 5px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="personalCenter"] .personal-order-hero-head .eyebrow {
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-split {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-split > div {
    gap: 1px !important;
    padding: 5px 6px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-split span {
    font-size: 7px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-amount {
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-chips {
    display: flex !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-chips span {
    flex: 1 1 0;
    padding: 3px 5px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .personal-balance-chips b {
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] .personal-hero-recharge {
    align-self: stretch !important;
    min-height: 27px !important;
    padding: 3px 9px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-hero {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-ring {
    width: 52px !important;
    height: 52px !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-ring b {
    font-size: 13px !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-copy {
    gap: 1px !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-copy .eyebrow,
  html body[data-app-view="personalCenter"] .personal-intimacy-copy em {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-copy strong {
    font-size: 11px !important;
  }

  html body[data-app-view="personalCenter"] .personal-intimacy-copy small {
    font-size: 7.5px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] .personal-order-analytics {
    gap: 5px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-head {
    align-items: center !important;
    gap: 5px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-head .eyebrow,
  html body[data-app-view="personalCenter"] .personal-analytics-head p {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-head h2 {
    margin: 0 !important;
    font-size: 14px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-column {
    gap: 3px !important;
    padding: 5px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-column header {
    gap: 2px !important;
    padding-bottom: 3px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-column header span,
  html body[data-app-view="personalCenter"] .personal-analytics-column header b {
    font-size: 6px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-column h3 {
    font-size: 8px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-empty {
    gap: 1px !important;
    padding: 5px !important;
  }

  html body[data-app-view="personalCenter"] .personal-analytics-empty strong,
  html body[data-app-view="personalCenter"] .personal-analytics-empty span {
    font-size: 6.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .personal-referrer-card {
    gap: 5px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="personalCenter"] .personal-referrer-card span,
  html body[data-app-view="personalCenter"] .personal-referrer-card small,
  html body[data-app-view="personalCenter"] .personal-referrer-card b {
    font-size: 6.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .personal-referrer-card strong {
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] .personal-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 0 !important;
  }

  html body[data-app-view="personalCenter"] .personal-overview-scorelist {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .personal-overview-scorelist > div {
    gap: 1px !important;
    padding: 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .personal-overview-scorelist span,
  html body[data-app-view="personalCenter"] .personal-overview-scorelist small {
    font-size: 6.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .personal-overview-scorelist strong {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .inline-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .inline-actions .button {
    min-height: 27px !important;
    padding: 3px 5px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .asset-balance-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px !important;
    margin-top: 4px !important;
  }

  html body[data-app-view="personalCenter"] .asset-balance-grid.compact > div {
    gap: 1px !important;
    padding: 4px 2px !important;
    border-radius: 6px !important;
  }

  html body[data-app-view="personalCenter"] .asset-balance-grid.compact span {
    overflow: hidden !important;
    font-size: 6px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .asset-balance-grid.compact strong {
    font-size: 8px !important;
    word-break: normal !important;
  }

  html body[data-app-view="personalCenter"] .order-stack,
  html body[data-app-view="personalCenter"] .price-list {
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .order-card,
  html body[data-app-view="personalCenter"] .price-row {
    padding: 6px 7px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="personalCenter"] .order-card h3,
  html body[data-app-view="personalCenter"] .price-row strong {
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] .order-card p,
  html body[data-app-view="personalCenter"] .order-card small,
  html body[data-app-view="personalCenter"] .price-row span {
    font-size: 7px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 420px) {
  html body[data-app-view] .mobile-brand-copy small { display: none; }
  html body[data-app-view] .global-search-main { grid-template-columns: auto minmax(0, 1fr) auto; }
  html body[data-app-view] #search-filter-toggle { display: none; }
  html body[data-app-view] .nav-button { min-height: 52px; }
  html body[data-app-view] .shop-category-switcher,
  html body[data-app-view] .shop-page-category-switcher { grid-template-columns: 1fr 1fr !important; }
  html body[data-app-view] .shop-cat-nav { grid-template-columns: 1fr 1fr !important; }
  html body[data-app-view] .profile-home-hero-actions { grid-template-columns: 1fr; }
  html body[data-app-view] .lobby-feature-card { width: var(--mobile-feature-card-width); flex-basis: var(--mobile-feature-card-width); }
  html body[data-app-view] .companion-tier-track { gap: 5px; }
  html body[data-app-view] .companion-tier-step { padding: 8px 3px 7px; border-radius: 11px; }
  html body[data-app-view] .companion-tier-step strong { font-size: 12.5px; }
  html body[data-app-view] .companion-tier-step small { font-size: 12.5px; }
}

@media (max-width: 720px) {
  html body[data-app-view] .companion-entry-grid { grid-template-columns: 1fr; gap: 8px; }
  html body[data-app-view] .companion-entry-card { padding: 13px; border-radius: 15px; }
  html body[data-app-view] .companion-entry-card .button { width: 100%; }
}

/* 大厅游戏卡等比高度：防止窄屏下卡片被拉成长条 */
@media (max-width: 820px) {
  html body[data-app-view] .lobby-feature-card {
    height: auto !important;
  }
  html body[data-app-view] .lobby-feature-art {
    height: auto !important;
    aspect-ratio: 3 / 4;
    max-height: 160px !important;
  }
  html body[data-app-view] .lobby-feature-copy {
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }
  html body[data-app-view] .lobby-feature-copy > small {
    -webkit-line-clamp: 1;
  }
}

/* 店铺顶部自动轮播：手机端改成与下方商品卡同宽的横向长条 */
@media (max-width: 820px) {
  html body[data-app-view] .shop-showcase {
    width: 100% !important;
    height: clamp(196px, 52vw, 224px) !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 18px !important;
  }
  html body[data-app-view] .shop-showcase-slide { align-items: flex-end; }
  html body[data-app-view] .shop-showcase-cover { object-position: 34% center; }
  html body[data-app-view] .shop-showcase-veil {
    background: linear-gradient(180deg, rgba(5, 4, 14, 0) 20%, rgba(5, 4, 14, 0.52) 62%, rgba(5, 4, 14, 0.95) 100%) !important;
  }
  html body[data-app-view] .shop-showcase-copy {
    width: min(68%, 310px) !important;
    align-self: flex-end !important;
    align-items: flex-end !important;
    gap: 4px !important;
    margin-left: auto !important;
    padding: 4px 14px 42px 0 !important;
    text-align: right;
  }
  html body[data-app-view] .shop-showcase-eyebrow { display: none !important; }
  html body[data-app-view] .shop-showcase-badge {
    padding: 3px 8px !important;
    font-size: 10.5px !important;
    line-height: 1.4;
  }
  html body[data-app-view] .shop-showcase-copy h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(19px, 5.1vw, 23px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
  html body[data-app-view] .shop-showcase-copy > p {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(10.5px, 2.9vw, 12.5px) !important;
    line-height: 1.45 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body[data-app-view] .shop-showcase-price { margin: 0; font-size: 14px !important; }
  html body[data-app-view] .shop-showcase-actions {
    width: 100% !important;
    margin-top: 2px !important;
    justify-content: flex-end;
  }
  html body[data-app-view] .shop-showcase-actions .shop-purple-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
  }
  html body[data-app-view] .shop-showcase-rail {
    top: auto !important;
    right: auto !important;
    bottom: 8px !important;
    left: 14px !important;
    display: flex !important;
    max-width: calc(100% - 28px);
    gap: 6px;
    padding: 0 !important;
    transform: none !important;
    overflow-x: auto;
  }
  html body[data-app-view] .shop-showcase-dot,
  html body[data-app-view] .shop-showcase-dot:hover,
  html body[data-app-view] .shop-showcase-dot:focus-visible,
  html body[data-app-view] .shop-showcase-dot.is-active {
    width: 40px !important;
    height: 26px !important;
    border-radius: 9px !important;
    transform: none !important;
  }
  html body[data-app-view] .shop-showcase-dot-copy { display: none !important; }
}

/* 移动端大厅排版：游戏卡优先，发单/邀请模块下移，店铺游戏两列 */
@media (max-width: 820px) {
  /* 后台布局保存的固定宽高在手机端会撑出黑色长条，这里统一改回内容高度 */
  html body[data-app-view] .lobby-feature-row {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  html body[data-app-view] .lobby-feature-card {
    height: auto !important;
    max-height: 200px !important;
  }

  /* 大厅顺序：游戏卡 → 发单/接单 → 邀请返佣 */
  html body[data-app-view] .lobby-live-layout {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    order: 45 !important;
    min-height: 0 !important;
  }
  html body[data-app-view] .lobby-live-layout > .lobby-home-stage {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body[data-app-view] .lobby-live-layout > .lobby-promo-section {
    position: static !important;
    order: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body[data-app-view] .lobby-live-layout > .lobby-task-alerts {
    position: static !important;
    order: 3 !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
  }
  html body[data-app-view] .lobby-action-stage {
    order: 50 !important;
  }

}

/* 任务大厅移动端：压缩首屏与筛选区，任务列表优先展示 */
@media (max-width: 820px) {
  html body[data-app-view] #task-hall-content {
    gap: 10px;
  }

  html body[data-app-view] .task-hall-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    border-radius: 20px !important;
    padding: 14px !important;
  }

  html body[data-app-view] .task-hall-hero-copy {
    display: grid;
    min-width: 0;
    max-width: none !important;
    gap: 0;
  }

  html body[data-app-view] .task-hall-hero .eyebrow {
    gap: 6px;
    font-size: 10.5px !important;
    letter-spacing: 0.18em;
  }

  html body[data-app-view] .task-hall-hero .eyebrow::before {
    width: 16px;
  }

  html body[data-app-view] .task-hall-hero h1 {
    margin: 5px 0 9px;
    font-size: clamp(21px, 6.2vw, 27px) !important;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  html body[data-app-view] .task-hall-hero p {
    display: none !important;
  }

  html body[data-app-view] .task-hall-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  html body[data-app-view] .task-hall-hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border-radius: 10px;
    padding: 5px 7px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  html body[data-app-view] .task-hall-stats {
    grid-template-columns: repeat(3, 40px) !important;
    gap: 6px !important;
    align-self: center;
    justify-content: end !important;
    margin: 0 !important;
  }

  html body[data-app-view] .task-hall-stats > div {
    width: 40px !important;
    height: 40px !important;
  }

  html body[data-app-view] .task-hall-stats strong {
    font-size: 16px !important;
  }

  html body[data-app-view] .task-hall-stats span {
    margin-top: 1px;
    font-size: 9.5px !important;
  }

  html body[data-app-view] .task-market-layout,
  html body[data-app-view] .task-market-layout.is-side-only {
    gap: 10px !important;
    width: 100% !important;
    margin: 10px 0 14px !important;
  }

  html body[data-app-view] .task-board-panel,
  html body[data-app-view] .task-publish-panel,
  html body[data-app-view] .task-mine-panel {
    border-radius: 19px !important;
    padding: 13px !important;
  }

  html body[data-app-view] .task-board-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  html body[data-app-view] .task-board-heading > div:first-child {
    min-width: 0;
  }

  html body[data-app-view] .task-board-heading h2 {
    margin: 2px 0 0 !important;
    font-size: 21px !important;
  }

  html body[data-app-view] .task-board-heading .eyebrow {
    font-size: 10.5px !important;
  }

  html body[data-app-view] .task-board-heading-actions {
    display: flex !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 5px !important;
  }

  html body[data-app-view] .task-board-heading-actions .button {
    width: auto !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  html body[data-app-view] .task-filter-form {
    gap: 8px;
    margin-bottom: 10px;
    border-radius: 14px;
    padding: 10px;
  }

  html body[data-app-view] .task-filter-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body[data-app-view] .task-filter-keyword {
    grid-column: 1 / -1;
  }

  html body[data-app-view] .task-filter-quick-actions {
    display: grid;
    grid-column: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-self: end;
  }

  html body[data-app-view] .task-filter-quick-actions .button {
    width: 100% !important;
    min-width: 0;
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  html body[data-app-view] .task-filter-form .field {
    min-width: 0;
    gap: 4px;
  }

  html body[data-app-view] .task-filter-form .field > span {
    font-size: 11.5px;
  }

  html body[data-app-view] .task-filter-form input,
  html body[data-app-view] .task-filter-form select {
    width: 100%;
    height: 36px !important;
    min-width: 0;
    padding-inline: 9px;
    font-size: 13px !important;
  }

  html body[data-app-view] .task-filter-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 9px;
  }

  html body[data-app-view] .task-wallet-panel {
    gap: 9px;
    border-radius: 19px !important;
    padding: 13px !important;
  }

  html body[data-app-view] .task-wallet-panel > p:first-of-type {
    display: none;
  }

  html body[data-app-view] .task-wallet-panel h2 {
    font-size: 20px !important;
  }

  html body[data-app-view] .task-wallet-balance {
    gap: 2px;
    padding: 12px;
    border-radius: 14px;
  }

  html body[data-app-view] .task-wallet-balance strong {
    font-size: 30px;
    line-height: 1.15;
  }

  html body[data-app-view] .task-wallet-balance small {
    font-size: 12px;
  }

  html body[data-app-view] .task-wallet-steps {
    gap: 5px;
  }

  html body[data-app-view] .task-wallet-steps span {
    padding: 7px 6px;
    font-size: 11px;
  }

  html body[data-app-view] .task-wallet-steps b {
    font-size: 11px;
  }

  html body[data-app-view] .task-wallet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  html body[data-app-view] .task-wallet-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
  }

  html body[data-app-view] .task-mine-panel .panel-heading {
    margin-bottom: 8px;
  }

  html body[data-app-view] .task-card {
    border-radius: 17px !important;
  }

  html body[data-app-view] .task-completed-panel {
    margin-top: 0 !important;
  }
}

@media (max-width: 370px) {
  html body[data-app-view] .task-hall-hero {
    gap: 7px !important;
    padding: 12px !important;
  }

  html body[data-app-view] .task-hall-stats {
    grid-template-columns: repeat(3, 36px) !important;
    gap: 4px !important;
  }

  html body[data-app-view] .task-hall-stats > div {
    width: 36px !important;
    height: 36px !important;
  }

  html body[data-app-view] .task-hall-hero-actions {
    gap: 5px;
  }

  html body[data-app-view] .task-hall-hero-actions .button {
    min-height: 34px;
    padding-inline: 5px;
    font-size: 11px;
  }

  html body[data-app-view] .task-filter-form {
    padding: 8px;
  }
}

/* 手机端店铺游戏入口：整行横向长条，压缩高度并保持信息不重叠。 */
@media (max-width: 820px) {
  html body[data-app-view] .shop-category-window-grid.shop-page-window-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 0 !important;
  }

  html body[data-app-view] .shop-page-window-card.shop-category-window-card {
    width: 100% !important;
    min-height: clamp(136px, 35.5vw, 146px) !important;
    border-radius: 999px 16px 16px 999px !important;
  }

  html body[data-app-view] .shop-page-window-heading {
    top: 12px !important;
    left: clamp(24px, 6.2vw, 32px) !important;
    width: min(46%, 180px) !important;
    max-width: 180px !important;
    gap: 3px !important;
  }

  html body[data-app-view] .shop-page-window-heading .shop-category-window-kicker {
    padding: 3px 8px !important;
    font-size: 9.5px !important;
  }

  html body[data-app-view] .shop-page-window-heading strong {
    display: block !important;
    overflow: hidden !important;
    max-width: 100% !important;
    font-size: clamp(1.12rem, 3.2vw, 1.32rem) !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view] .shop-page-window-heading > small {
    overflow: hidden !important;
    max-width: 100% !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-copy {
    right: 11px !important;
    bottom: 10px !important;
    width: min(43%, 174px) !important;
    gap: 4px !important;
    padding: 0 !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-copy > small {
    display: block !important;
    overflow: hidden !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-cta {
    width: 100% !important;
    min-height: 31px !important;
    padding: 4px 9px !important;
    font-size: 11.5px !important;
  }
}

@media (max-width: 370px) {
  html body[data-app-view] .shop-page-window-card.shop-category-window-card {
    min-height: 136px !important;
  }

  html body[data-app-view] .shop-page-window-heading {
    left: 24px !important;
    width: min(46%, 152px) !important;
  }

  html body[data-app-view] .shop-page-window-heading strong {
    font-size: 1.08rem !important;
  }

  html body[data-app-view] .shop-page-window-card .shop-category-window-copy {
    right: 10px !important;
    width: min(43%, 146px) !important;
  }
}

/* 手机端个人主页：头像左、资料右，信用环与钱包全宽，压缩到约两屏 */
@media (max-width: 820px) {
  html body[data-app-view] .profile-home {
    gap: 12px !important;
  }

  html body[data-app-view] .profile-home .personal-home-toolbar {
    margin-bottom: 0 !important;
  }

  html body[data-app-view] .profile-home .personal-home-toolbar .profile-score-orb {
    display: none !important;
  }

  html body[data-app-view] .profile-home-hero {
    display: block !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  html body[data-app-view] .profile-home-avatar-column {
    float: left;
    width: 92px;
    margin: 0 12px 6px 0;
    gap: 6px !important;
  }

  html body[data-app-view] .profile-home-avatar-wrap,
  html body[data-app-view] .profile-home-avatar {
    width: 88px !important;
    height: 88px !important;
  }

  html body[data-app-view] .profile-home-avatar {
    border-radius: 22px !important;
    font-size: 2.1rem !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 0 26px rgba(99, 102, 241, 0.22) !important;
  }

  html body[data-app-view] .profile-home-avatar-frame {
    inset: -7px !important;
    width: calc(100% + 14px) !important;
    height: calc(100% + 14px) !important;
  }

  html body[data-app-view] .profile-home-avatar-upload {
    min-height: 24px !important;
    padding: 3px 8px !important;
    gap: 3px !important;
    font-size: 10.5px !important;
  }

  html body[data-app-view] .profile-home-avatar-upload svg {
    width: 11px !important;
    height: 11px !important;
  }

  html body[data-app-view] .profile-home-identity {
    display: block !important;
    min-width: 0;
  }

  html body[data-app-view] .profile-home-identity > .eyebrow {
    display: none !important;
  }

  html body[data-app-view] .profile-home-identity h1 {
    margin: 0 0 3px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view] .profile-home-identity h1 em {
    padding: 1px 6px !important;
    font-size: 10px !important;
    vertical-align: 2px;
  }

  html body[data-app-view] .profile-home-identity > p {
    margin: 0 0 4px !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }

  html body[data-app-view] .profile-game-tags {
    min-height: 0 !important;
    gap: 5px !important;
  }

  html body[data-app-view] .profile-game-tags-empty,
  html body[data-app-view] .profile-tag-edit {
    font-size: 11px !important;
  }

  html body[data-app-view] .profile-credit-strip {
    display: flex !important;
    clear: both !important;
    justify-content: center !important;
    gap: 14px !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
  }

  html body[data-app-view] .profile-credit-gauge {
    flex: 0 0 86px !important;
    min-width: 0 !important;
    max-width: 86px !important;
    gap: 2px !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-visual {
    width: 86px !important;
    height: 86px !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core {
    inset: 20% !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core strong {
    font-size: 1.15rem !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core span,
  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core small,
  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    font-size: 9px !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    bottom: -3px !important;
    padding: 1px 6px !important;
  }

  html body[data-app-view] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-note {
    display: none !important;
  }

  html body[data-app-view] .profile-home-wallet-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    clear: both !important;
    gap: 5px !important;
    max-width: none !important;
    margin-top: 10px !important;
  }

  html body[data-app-view] .profile-home-wallet-strip > span {
    padding: 5px 7px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view] .profile-home-wallet-strip small {
    font-size: 9.5px !important;
  }

  html body[data-app-view] .profile-home-wallet-strip b {
    font-size: 13.5px !important;
  }

  html body[data-app-view] .profile-home-hero-actions {
    display: flex !important;
    clear: both !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    margin-top: 10px !important;
  }

  html body[data-app-view] .profile-home-hero-actions .button {
    flex: 1 1 0;
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }

  html body[data-app-view] .profile-home-hero-actions .button svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* 手机端店铺「二级游戏页面」标题区：整体缩小约 50%，压缩占位 */
@media (max-width: 820px) {
  html body[data-app-view] .shop-category-portal {
    gap: 10px !important;
  }

  html body[data-app-view] .shop-category-portal-head {
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  html body[data-app-view] .shop-category-portal-head > div {
    gap: 2px !important;
  }

  html body[data-app-view] .shop-category-portal-head .eyebrow {
    font-size: 9px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
  }

  html body[data-app-view] .shop-category-portal-head h2 {
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
  }

  html body[data-app-view] .shop-category-portal-head p {
    overflow: hidden;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body[data-app-view] .shop-category-portal-note {
    padding: 3px 8px !important;
    font-size: 9px !important;
  }

  html body[data-app-view] .shop-category-portal-note b {
    font-size: 11px !important;
  }
}

/* 手机端个人中心与游戏专区：两屏内完成浏览 */
@media (max-width: 820px) {
  /* 个人中心顶部资料：压缩成紧凑账户卡 */
  html body[data-app-view="personalCenter"] #personal-center-content > .ui-block > .profile-home {
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero {
    position: relative !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-avatar-column {
    float: left !important;
    width: 68px !important;
    margin: 0 9px 2px 0 !important;
    gap: 0 !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-avatar-wrap,
  html body[data-app-view="personalCenter"] .profile-home-avatar {
    width: 64px !important;
    height: 64px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-avatar {
    border-radius: 16px !important;
    font-size: 1.55rem !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13), 0 0 16px rgba(99, 102, 241, 0.18) !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-avatar-upload {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-identity h1 {
    margin: 0 0 1px !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-identity h1 em {
    padding: 0 4px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-identity > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.8px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .profile-game-tags {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-strip {
    clear: both !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 3px 0 0 !important;
    padding-top: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-gauge {
    flex: 0 0 62px !important;
    min-width: 0 !important;
    max-width: 62px !important;
    gap: 0 !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-visual {
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core {
    inset: 19% !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core strong {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core span,
  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core small,
  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    font-size: 6.3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    bottom: -1px !important;
    padding: 0 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-note {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-wallet-strip {
    clear: both !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin-top: 4px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-wallet-strip > span {
    min-width: 0 !important;
    padding: 3px 4px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-wallet-strip small {
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-wallet-strip b {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero-actions {
    clear: both !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-top: 5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero-actions .button {
    flex: 1 1 0 !important;
    min-height: 25px !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero-actions .button svg {
    width: 11px !important;
    height: 11px !important;
  }

  html body[data-app-view="personalCenter"] .personal-home-toolbar {
    position: static !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home .personal-tab-nav {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home .personal-tab-button {
    min-height: 27px !important;
    padding: 3px 5px !important;
    border-radius: 7px !important;
    font-size: 9.4px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-body {
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench,
  html body[data-app-view="personalCenter"] .profile-workbench-top {
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-top {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-card {
    min-height: 0 !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-card-head {
    align-items: center !important;
    gap: 5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-card-head .eyebrow {
    font-size: 7.5px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-card-head h2 {
    margin: 1px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="personalCenter"] .profile-workbench-card-head .count-badge {
    padding: 2px 6px !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-range-switch {
    gap: 1px !important;
    padding: 2px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-range-switch button {
    min-height: 20px !important;
    padding: 2px 5px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-stat-grid div {
    min-width: 0 !important;
    gap: 1px !important;
    padding: 4px 3px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-stat-grid span,
  html body[data-app-view="personalCenter"] .profile-stat-grid small {
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-stat-grid strong {
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  html body[data-app-view="personalCenter"] .profile-daily-chart {
    gap: 2px !important;
    height: 43px !important;
    padding: 2px 2px 10px !important;
  }

  html body[data-app-view="personalCenter"] .profile-daily-bar {
    min-width: 0 !important;
  }

  html body[data-app-view="personalCenter"] .profile-daily-bar i {
    width: min(100%, 14px) !important;
  }

  html body[data-app-view="personalCenter"] .profile-daily-bar span {
    bottom: -9px !important;
    font-size: 6px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-detail {
    justify-content: center !important;
    gap: 10px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge {
    flex: 0 0 62px !important;
    max-width: 62px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-visual {
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-core {
    inset: 19% !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-core strong {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-core span,
  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-core small,
  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-tier {
    font-size: 6.3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-credit-card .profile-credit-gauge-note,
  html body[data-app-view="personalCenter"] .profile-credit-rule,
  html body[data-app-view="personalCenter"] .profile-data-intro,
  html body[data-app-view="personalCenter"] .profile-data-note,
  html body[data-app-view="personalCenter"] .profile-data-table-hint {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-card .profile-workbench-card-head {
    flex-wrap: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-controls {
    gap: 3px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-controls button {
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
    font-size: 10px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-grid {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-weekday {
    padding: 1px 0 !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-blank {
    min-height: 26px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-day {
    min-height: 27px !important;
    gap: 0 !important;
    padding: 2px !important;
    border-radius: 5px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-daytop {
    gap: 1px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-daytop b {
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-count,
  html body[data-app-view="personalCenter"] .profile-calendar-net {
    padding: 0 2px !important;
    font-size: 5.8px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-day-orders {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-detail {
    gap: 4px !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-detail-head {
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-detail-head strong {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-order {
    gap: 3px !important;
    padding: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-order-copy strong,
  html body[data-app-view="personalCenter"] .profile-calendar-amount strong {
    font-size: 8px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-order small,
  html body[data-app-view="personalCenter"] .profile-calendar-empty {
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-empty {
    min-height: 28px !important;
    padding: 4px !important;
  }

  html body[data-app-view="personalCenter"] .profile-calendar-empty svg {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-data-card .empty-state,
  html body[data-app-view="personalCenter"] .profile-boss-data-card .empty-state h3,
  html body[data-app-view="personalCenter"] .profile-boss-data-card .empty-state p {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-data-card .empty-state svg,
  html body[data-app-view="personalCenter"] .profile-boss-data-card .empty-state h3 {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-summary > div {
    gap: 1px !important;
    padding: 4px 3px !important;
    border-radius: 6px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-summary span,
  html body[data-app-view="personalCenter"] .profile-boss-summary small {
    overflow: hidden !important;
    font-size: 6.5px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-summary strong {
    font-size: 9px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-chart {
    max-height: 92px !important;
    overflow: hidden !important;
    padding: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-chart-row {
    grid-template-columns: minmax(72px, 1fr) 60px !important;
    gap: 3px !important;
    padding: 2px 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-track {
    height: 5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-boss-chart-row > strong {
    font-size: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-card .profile-workbench-card-head .button {
    min-height: 21px !important;
    padding: 2px 6px !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-grid {
    grid-template-columns: minmax(0, 1fr) 92px !important;
    gap: 5px !important;
    align-items: start !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-fields {
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-fields > div {
    min-width: 0 !important;
    gap: 1px !important;
    padding: 3px 4px !important;
    border-radius: 6px !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-fields span,
  html body[data-app-view="personalCenter"] .profile-base-fields small {
    overflow: hidden !important;
    font-size: 6.5px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-base-fields strong {
    overflow: hidden !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .profile-qr-card {
    gap: 2px !important;
    padding: 4px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-qr-card .eyebrow,
  html body[data-app-view="personalCenter"] .profile-qr-card > small {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .profile-qr-card svg,
  html body[data-app-view="personalCenter"] .profile-qr-card img {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto !important;
  }

  html body[data-app-view="personalCenter"] .profile-qr-card .button {
    min-height: 18px !important;
    padding: 1px 4px !important;
    font-size: 7px !important;
  }

  /* 游戏专区：标题、搜索和海报全部压缩，海报改为小图横排 */
  html body[data-app-view="lobbyGame"] .lobby-taskbar {
    margin: 0 auto 5px !important;
    padding: 5px 7px !important;
  }

  html body[data-app-view="lobbyGame"] .hot-search-strip {
    margin-top: 3px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .page-heading {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 5px !important;
    margin-bottom: 6px !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .page-heading > div {
    gap: 1px !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .page-heading .eyebrow {
    display: none !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .page-heading h1 {
    margin: 0 !important;
    font-size: 17px !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .page-heading p {
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-view .back-button {
    min-height: 22px !important;
    padding: 2px 7px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="lobbyGame"] #refresh-lobby-game {
    min-height: 26px !important;
    padding: 3px 8px !important;
    font-size: 9px !important;
    width: auto !important;
  }

  html body[data-app-view="lobbyGame"] #lobby-game-content {
    display: grid !important;
    gap: 7px !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-banner.game-detail-poster-banner {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-poster {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 92px !important;
    height: 92px !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    justify-self: start !important;
    border-radius: 10px !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-copy {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-copy .eyebrow,
  html body[data-app-view="lobbyGame"] .game-detail-tags {
    display: none !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-copy h2 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-copy p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="lobbyGame"] .game-detail-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
  }

  html body[data-app-view="lobbyGame"] .game-detail-actions .button,
  html body[data-app-view="lobbyGame"] .game-order-fab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 25px !important;
    height: 25px !important;
    padding: 2px 3px !important;
    border-radius: 7px !important;
    font-size: 7.5px !important;
    line-height: 1.05 !important;
  }

  html body[data-app-view="lobbyGame"] .game-order-fab-icon,
  html body[data-app-view="lobbyGame"] .game-order-fab small {
    display: none !important;
  }

  html body[data-app-view="lobbyGame"] .game-order-fab strong {
    font-size: 7.5px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-panel {
    margin-top: 0 !important;
    padding: 8px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-panel .panel-heading,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-heading {
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 5px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-panel .panel-heading .eyebrow,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-heading .eyebrow,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-heading p {
    display: none !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-panel .panel-heading h2,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-heading h2 {
    margin: 0 !important;
    font-size: 13px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-panel .count-badge,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-heading .count-badge {
    padding: 2px 6px !important;
    font-size: 7px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-list > div {
    gap: 1px !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-list strong {
    font-size: 8px !important;
  }

  html body[data-app-view="lobbyGame"] .game-mode-list span {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 6.8px !important;
    line-height: 1.25 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="lobbyGame"] .companion-service-showcase {
    padding: 8px !important;
  }

  html body[data-app-view="lobbyGame"] .companion-service-showcase-empty {
    min-height: 0 !important;
    gap: 3px !important;
    padding: 8px !important;
  }

  html body[data-app-view="lobbyGame"] .companion-service-showcase-empty > div,
  html body[data-app-view="lobbyGame"] .companion-service-showcase-empty p {
    display: none !important;
  }

  html body[data-app-view="lobbyGame"] .companion-service-showcase-empty h3 {
    font-size: 10px !important;
  }

  html body[data-app-view="lobbyGame"] .companion-service-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
}

/* 手机端全站收口：店铺入口、接单服务、认证与推广中心统一紧凑排版。 */
@media (max-width: 820px) {
  /* 店铺首页：游戏入口改成“文字左、封面右”的紧凑横卡，避免大图压住标题。 */
  html body[data-app-view="baobashiShop"] .shop-page-window-grid {
    gap: 8px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card.shop-category-window-card {
    display: block !important;
    width: 100% !important;
    height: 88px !important;
    min-height: 88px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background:
      linear-gradient(100deg, rgba(12, 17, 33, 0.98) 0%, rgba(13, 20, 40, 0.94) 62%, rgba(24, 20, 48, 0.9) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--cat-accent) 34%, rgba(148, 163, 184, 0.22)) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26) !important;
    transform: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card::before,
  html body[data-app-view="baobashiShop"] .shop-page-window-card::after {
    display: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-media {
    position: absolute !important;
    inset: 7px 7px 7px auto !important;
    width: 74px !important;
    height: 74px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(8, 13, 28, 0.9)) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-veil {
    display: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading {
    top: 9px !important;
    left: 11px !important;
    width: calc(100% - 100px) !important;
    max-width: none !important;
    gap: 2px !important;
    transform: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading .shop-category-window-kicker {
    padding: 1px 5px !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading strong {
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading > small {
    font-size: 8.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-copy,
  html body[data-app-view="baobashiShop"] .shop-page-window-index {
    display: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-cover,
  html body[data-app-view="baobashiShop"] .shop-showcase-dot-image img,
  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-media img {
    color: transparent !important;
    font-size: 0 !important;
  }

  html body[data-app-view="baobashiShop"] .shop-showcase-dot-image {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(8, 13, 28, 0.92));
  }

  /* 接单服务：标题与按钮上下排，不再互相挤压。 */
  html body[data-app-view="personalCenter"] .profile-services-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions {
    align-items: stretch !important;
    width: 100% !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions .button {
    width: 100% !important;
  }

  html body[data-app-view="personalCenter"] .profile-services-hero-actions small {
    text-align: left !important;
  }

  /* 申请认证：隐藏重复说明，规则区限制高度并内滚，保证两屏内完成。 */
  html body[data-app-view="personalCenter"] .companion-application-panel > .hint {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 3px 0 5px !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card p {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card {
    gap: 4px !important;
    padding: 6px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card header h3 {
    font-size: 12px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card .button {
    min-height: 26px !important;
    padding: 2px 4px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .peiban-rules-redlines {
    max-height: 98px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
    overscroll-behavior: contain;
  }

  /* 推广中心：统计与信用档位改成两列，数字不再缩到看不清。 */
  html body[data-app-view="personalCenter"] .promo-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics span,
  html body[data-app-view="personalCenter"] .promo-metrics small {
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-metrics strong {
    font-size: 13px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-card header strong,
  html body[data-app-view="personalCenter"] .promo-credit-card header b {
    font-size: 8.5px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-note {
    font-size: 8.5px !important;
    line-height: 1.4 !important;
  }

  /* 任务大厅：首屏再收 4px，控制在两屏内。 */
  html body[data-app-view="tasks"] .task-hall-hero {
    margin: 0 !important;
    padding: 9px 10px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions {
    gap: 5px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions .button {
    font-size: 8px !important;
  }

  /* 实名表单：姓名与身份证并排，减少无效纵向占位。 */
  html body[data-app-view="personalCenter"] #real-name-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px 7px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .two-fields,
  html body[data-app-view="personalCenter"] #real-name-form > .real-name-upload-status,
  html body[data-app-view="personalCenter"] #real-name-form > .real-name-contact-block,
  html body[data-app-view="personalCenter"] #real-name-form > .hint,
  html body[data-app-view="personalCenter"] #real-name-form > .form-message,
  html body[data-app-view="personalCenter"] #real-name-form > .button {
    grid-column: 1 / -1;
  }

  html body[data-app-view="personalCenter"] #real-name-form input,
  html body[data-app-view="personalCenter"] #real-name-form select {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 11px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-extra {
    min-height: 42px !important;
    height: 42px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .hint {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero {
    padding: 6px 9px !important;
  }

  html body[data-app-view="personalCenter"] .profile-home-hero-actions {
    margin-top: 3px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form {
    gap: 3px 6px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form .field {
    gap: 1px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .real-name-contact-block {
    gap: 4px !important;
    padding: 6px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-extra {
    min-height: 36px !important;
    height: 36px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-message:empty {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .promo-hero-rate {
    width: 90px !important;
    min-width: 0 !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  html body[data-app-view="personalCenter"] .promo-credit-summary span,
  html body[data-app-view="personalCenter"] .promo-credit-summary small {
    font-size: 8.5px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .two-fields,
  html body[data-app-view="personalCenter"] #real-name-form .real-name-contact-block > .two-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  html body[data-app-view="personalCenter"] #real-name-form > .real-name-upload-status {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  html body[data-app-view="tasks"] #task-hero-refresh {
    display: none !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="tasks"] .task-hall-hero-actions .button {
    font-size: 9px !important;
    padding: 3px 5px !important;
  }
}

/* 店铺游戏入口：海报式大图横卡（用户选定版式）。 */
@media (max-width: 820px) {
  html body[data-app-view="baobashiShop"] .shop-page-window-grid {
    gap: 12px !important;
    padding-right: 0 !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card.shop-category-window-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: clamp(150px, 43vw, 184px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 78px 16px 16px 78px !important;
    background: #070a16 !important;
    border: 1px solid color-mix(in srgb, var(--cat-accent) 42%, rgba(148, 163, 184, 0.22)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transform: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    border-radius: inherit !important;
    background:
      linear-gradient(90deg, rgba(3, 6, 14, 0.94) 0%, rgba(3, 6, 14, 0.82) 27%, rgba(3, 6, 14, 0.14) 55%, rgba(3, 6, 14, 0.5) 74%, rgba(3, 6, 14, 0.88) 100%),
      linear-gradient(0deg, rgba(3, 6, 14, 0.48) 0%, transparent 46%) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card::after {
    display: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-media {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(8, 13, 28, 0.92)) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 36% !important;
    transform: none !important;
    filter: saturate(1.08) contrast(1.03) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading {
    top: 50% !important;
    left: 18px !important;
    z-index: 3 !important;
    width: 45% !important;
    max-width: none !important;
    gap: 3px !important;
    transform: translateY(-50%) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading .shop-category-window-kicker {
    padding: 2px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(8, 12, 24, 0.62) !important;
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-width: 100% !important;
    color: #fff !important;
    font-size: clamp(20px, 5.4vw, 23px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    text-overflow: clip !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading > small {
    overflow: hidden !important;
    max-width: 100% !important;
    color: #dbe4f5 !important;
    font-size: 9.4px !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-copy {
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    bottom: auto !important;
    z-index: 3 !important;
    display: grid !important;
    width: 42% !important;
    min-height: 0 !important;
    gap: 8px !important;
    padding: 0 !important;
    justify-items: end !important;
    transform: translateY(-50%) !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-copy > small {
    display: block !important;
    overflow: visible !important;
    color: #e8eefb !important;
    font-size: 10px !important;
    line-height: 1.42 !important;
    text-align: right !important;
    text-overflow: clip !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    text-wrap: balance !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-cta {
    width: auto !important;
    min-width: clamp(104px, 30vw, 128px) !important;
    max-width: 100% !important;
    min-height: clamp(32px, 8.3vw, 36px) !important;
    padding: 5px 14px !important;
    justify-content: center !important;
    gap: 7px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-cta b,
  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-cta i {
    font-size: 11px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-cta i {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-index {
    position: absolute !important;
    left: 27px !important;
    bottom: 6px !important;
    z-index: 2 !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.14) !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 370px) {
  html body[data-app-view="baobashiShop"] .shop-page-window-card.shop-category-window-card {
    height: clamp(148px, 43vw, 158px) !important;
    border-radius: 68px 14px 14px 68px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-heading {
    left: 15px !important;
    width: 46% !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-copy {
    right: 13px !important;
    width: 42% !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-copy > small {
    font-size: 9.2px !important;
  }

  html body[data-app-view="baobashiShop"] .shop-page-window-card .shop-category-window-cta {
    min-width: 100px !important;
    font-size: 10.2px !important;
  }
}

/* 三级分类商品卡：恢复介绍与价格，不再留下空白信息条。 */
@media (max-width: 820px) {
  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-copy {
    display: grid !important;
    gap: 2px !important;
    padding: 5px 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-copy p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    color: #b9c5da !important;
    font-size: 8.5px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-copy p + p {
    color: #cbb8bb !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-copy p span {
    margin-right: 3px !important;
    padding: 0 4px !important;
    font-size: 7.5px !important;
    vertical-align: 0 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta {
    display: flex !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-top: 0 !important;
    padding: 3px 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display {
    gap: 1px !important;
    width: 100% !important;
    text-align: center !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-price {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-price small,
  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display-primary small {
    font-size: 8px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display-primary {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display.is-currency .shop-cat-display-primary {
    color: #f6c453 !important;
    font-size: 14px !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display-secondary {
    color: #b7c2d7 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display.is-fun {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display.is-fun .shop-cat-display-primary {
    color: #e5a3a3 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="baobashiShopCategory"] .shop-cat-card-meta .shop-cat-display.is-fun .shop-cat-display-secondary {
    color: #fff !important;
    font-size: 12px !important;
  }
}

@media (max-width: 370px) {
  html body[data-app-view="personalCenter"] .promo-hero-chips span:nth-child(4) {
    display: none !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card header {
    gap: 2px !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card header h3 {
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="personalCenter"] .companion-application-panel .companion-tier-card .button {
    font-size: 7.5px !important;
  }
}

/* 公开主页 · 手机端紧凑排版（一）：顶部名片与三栏切换。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] #public-profile-content {
    display: grid !important;
    gap: 7px !important;
  }

  html body[data-app-view="publicProfile"] #public-profile-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-hero-new {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas:
      "avatar identity"
      "actions actions" !important;
    align-items: start !important;
    gap: 4px 8px !important;
    padding: 9px !important;
    border-radius: 15px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-avatar-column {
    grid-area: avatar !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    justify-items: start !important;
    align-self: start !important;
    gap: 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-avatar-wrap,
  html body[data-app-view="publicProfile"] .profile-home-avatar {
    width: 58px !important;
    height: 58px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-avatar {
    border-radius: 16px !important;
    font-size: 24px !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13), 0 0 18px rgba(99, 102, 241, 0.2) !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-avatar-frame {
    inset: -5px !important;
    width: calc(100% + 10px) !important;
    height: calc(100% + 10px) !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity {
    grid-area: identity !important;
    float: none !important;
    display: grid !important;
    align-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity > .eyebrow {
    display: block !important;
    overflow: hidden !important;
    font-size: 7px !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity h1 {
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.12 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity h1 em {
    padding: 0 4px !important;
    font-size: 8px !important;
    vertical-align: 1px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity > p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .public-hero-rating {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1px 5px !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .public-hero-rating .rating-ten-stars {
    gap: 0 !important;
  }

  html body[data-app-view="publicProfile"] .public-hero-rating .rating-ten-stars i {
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-hero-rating .rating-ten-copy,
  html body[data-app-view="publicProfile"] .public-hero-orders {
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-game-tags {
    min-height: 0 !important;
    gap: 3px !important;
  }

  html body[data-app-view="publicProfile"] .profile-game-tag {
    gap: 3px !important;
    padding: 1px 5px 1px 2px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-game-tag img,
  html body[data-app-view="publicProfile"] .profile-game-tag i {
    width: 14px !important;
    height: 14px !important;
  }

  html body[data-app-view="publicProfile"] .profile-game-tags-empty,
  html body[data-app-view="publicProfile"] .profile-tag-edit {
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-bio {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .profile-credit-strip {
    clear: none !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-credit-gauge {
    flex: 0 0 52px !important;
    min-width: 0 !important;
    max-width: 52px !important;
    gap: 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-visual {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core {
    inset: 17% !important;
    gap: 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core strong {
    font-size: 10px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core span,
  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-core small,
  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    font-size: 5.2px !important;
    line-height: 1 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-tier {
    bottom: 0 !important;
    padding: 0 2px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-note {
    display: none !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero-actions {
    grid-area: actions !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-self: stretch !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero-actions .button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 26px !important;
    padding: 2px 4px !important;
    border-radius: 8px !important;
    font-size: 8.5px !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero-actions .button svg {
    width: 10px !important;
    height: 10px !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-tabs {
    gap: 2px !important;
    margin: 0 !important;
    padding: 3px !important;
    border-radius: 10px !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-tab {
    flex: 1 1 0 !important;
    gap: 4px !important;
    min-height: 30px !important;
    padding: 3px 5px !important;
    border-radius: 7px !important;
    font-size: 9.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-tab svg {
    width: 12px !important;
    height: 12px !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-tab b {
    display: none !important;
  }
}

/* 公开主页 · 手机端紧凑排版（二）：标题、空状态与服务橱窗。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .public-profile-section,
  html body[data-app-view="publicProfile"] .public-services-section,
  html body[data-app-view="publicProfile"] .public-moments-section,
  html body[data-app-view="publicProfile"] .profile-services-view {
    gap: 6px !important;
    min-width: 0 !important;
  }

  html body[data-app-view="publicProfile"] .section-heading-row {
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  html body[data-app-view="publicProfile"] .section-heading-row h2,
  html body[data-app-view="publicProfile"] .public-services-head h2 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .section-heading-row p,
  html body[data-app-view="publicProfile"] .public-services-head p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 2px 0 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .section-heading-row .eyebrow,
  html body[data-app-view="publicProfile"] .profile-home .eyebrow {
    font-size: 7.5px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="publicProfile"] .section-heading-row .count-badge {
    padding: 1px 5px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .empty-state {
    gap: 2px !important;
    padding: 9px !important;
  }

  html body[data-app-view="publicProfile"] .empty-state strong {
    font-size: 11px !important;
  }

  html body[data-app-view="publicProfile"] .empty-state span,
  html body[data-app-view="publicProfile"] .empty-state p {
    font-size: 8.5px !important;
    line-height: 1.35 !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 122px !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero::after {
    width: 90px !important;
    height: 90px !important;
    opacity: 0.16 !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero-copy {
    gap: 2px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero h2 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .profile-services-stats {
    gap: 3px !important;
    margin-top: 1px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-stats span {
    padding: 1px 5px !important;
    font-size: 7.5px !important;
    line-height: 1.2 !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero-actions {
    min-width: 0 !important;
    gap: 3px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero-actions .button {
    min-height: 27px !important;
    padding: 3px 5px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero-actions small {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-width: none !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty {
    gap: 2px !important;
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty-mark {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty-mark svg {
    width: 14px !important;
    height: 14px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty h3 {
    font-size: 11.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty p {
    display: -webkit-box !important;
    overflow: hidden !important;
    max-width: 280px !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .profile-services-empty .button {
    min-height: 26px !important;
    margin-top: 1px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card {
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-cover {
    aspect-ratio: 16 / 9 !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-body {
    gap: 4px !important;
    padding: 7px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-person {
    gap: 4px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-avatar {
    width: 24px !important;
    height: 24px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-person strong,
  html body[data-app-view="publicProfile"] .profile-service-card h3 {
    font-size: 9.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-person small,
  html body[data-app-view="publicProfile"] .profile-service-card-subtitle,
  html body[data-app-view="publicProfile"] .profile-service-card-description {
    font-size: 7.8px !important;
    line-height: 1.28 !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-footer {
    gap: 3px !important;
    padding-top: 5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-price {
    font-size: 13px !important;
  }

  html body[data-app-view="publicProfile"] .profile-service-card-actions .button {
    min-height: 25px !important;
    padding: 2px 5px !important;
    font-size: 8px !important;
  }
}

/* 公开主页 · 手机端紧凑排版（三）：朋友圈与发布器。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .public-moments-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 5px 7px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-head > div:first-child {
    gap: 1px !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-head h2 {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-head p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .public-moment-switch {
    gap: 2px !important;
    width: auto !important;
  }

  html body[data-app-view="publicProfile"] .public-moment-switch button {
    min-height: 25px !important;
    padding: 2px 6px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-moment-switch b {
    font-size: 7.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-composer {
    gap: 5px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-head {
    align-items: center !important;
    gap: 6px !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-head h2 {
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.1 !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-count {
    padding-top: 0 !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-composer textarea {
    min-height: 58px !important;
    height: 58px !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    resize: none !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-preview:not(.has-images) {
    display: none !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-actions {
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-tools {
    gap: 3px !important;
  }

  html body[data-app-view="publicProfile"] .profile-image-picker,
  html body[data-app-view="publicProfile"] .profile-emoji-toggle {
    min-height: 25px !important;
    padding: 2px 6px !important;
    gap: 3px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-composer-actions > .button {
    min-height: 25px !important;
    margin-left: auto !important;
    padding: 2px 8px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-warning {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 3px 5px !important;
    font-size: 7px !important;
    line-height: 1.25 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .profile-moment-composer .form-message {
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-feed,
  html body[data-app-view="publicProfile"] .profile-moment-feed {
    gap: 5px !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-card {
    gap: 5px !important;
    padding: 8px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="publicProfile"] .profile-moment-content {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.4 !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-locked {
    gap: 5px !important;
    padding: 9px !important;
    border-radius: 11px !important;
    font-size: 8.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-locked strong {
    font-size: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-moments-locked span {
    flex-basis: 150px !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
  }
}

/* 公开主页 · 手机端紧凑排版（四）：等级与主营游戏。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .level-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  html body[data-app-view="publicProfile"] .level-badge {
    display: grid !important;
    justify-items: center !important;
    gap: 2px !important;
    min-height: 0 !important;
    padding: 5px 3px !important;
    border-radius: 10px !important;
    text-align: center !important;
  }

  html body[data-app-view="publicProfile"] .level-badge-frame {
    width: 25px !important;
    height: 25px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
  }

  html body[data-app-view="publicProfile"] .level-badge-copy {
    justify-items: center !important;
    gap: 0 !important;
    width: 100% !important;
  }

  html body[data-app-view="publicProfile"] .level-badge-copy small,
  html body[data-app-view="publicProfile"] .level-badge-copy span {
    overflow: hidden !important;
    width: 100% !important;
    font-size: 6.3px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .level-badge-copy strong {
    overflow: hidden !important;
    width: 100% !important;
    font-size: 8.5px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .level-badge progress {
    width: 94% !important;
    height: 3px !important;
  }

  html body[data-app-view="publicProfile"] .lobby-section {
    display: grid !important;
    gap: 5px !important;
    margin: 0 !important;
  }

  html body[data-app-view="publicProfile"] .lobby-section > .section-heading-row {
    padding: 0 1px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-card {
    gap: 5px !important;
    padding: 8px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-head h3 {
    font-size: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-pricing {
    gap: 3px !important;
    padding-top: 5px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-pricing span {
    font-size: 7.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-game-pricing strong {
    font-size: 10px !important;
  }
}

/* 公开主页 · 手机端紧凑排版（五）：推广、私聊与预约入口。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .public-promo-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .public-promo-panel h2 {
    margin: 1px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .public-promo-panel p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .public-promo-panel .promo-link-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-promo-panel .promo-link-row input {
    min-height: 25px !important;
    padding: 3px 6px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-promo-panel .button {
    min-height: 25px !important;
    padding: 2px 7px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-chat-strip,
  html body[data-app-view="publicProfile"] .public-guest-callout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .public-chat-strip h2,
  html body[data-app-view="publicProfile"] .public-guest-callout h2 {
    margin: 1px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  html body[data-app-view="publicProfile"] .public-chat-strip p,
  html body[data-app-view="publicProfile"] .public-guest-callout p {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body[data-app-view="publicProfile"] .public-chat-strip .button,
  html body[data-app-view="publicProfile"] .public-guest-callout .button {
    min-height: 27px !important;
    padding: 2px 8px !important;
    font-size: 8.5px !important;
    white-space: nowrap !important;
  }

  html body[data-app-view="publicProfile"] .public-action-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    margin: 0 !important;
  }
}

/* 公开主页 · 手机端紧凑排版（六）：预约表单与评价区。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .public-action-panel,
  html body[data-app-view="publicProfile"] .public-comments-panel {
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
  }

  html body[data-app-view="publicProfile"] .public-action-panel > .panel-heading,
  html body[data-app-view="publicProfile"] .public-comments-panel > .panel-heading {
    margin-bottom: 5px !important;
  }

  html body[data-app-view="publicProfile"] .public-action-panel h2,
  html body[data-app-view="publicProfile"] .public-comments-panel h2 {
    font-size: 13px !important;
  }

  html body[data-app-view="publicProfile"] .public-action-panel .stack-form {
    gap: 5px !important;
  }

  html body[data-app-view="publicProfile"] .public-order-meta {
    gap: 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-order-meta > div {
    gap: 2px !important;
    padding: 5px 6px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-order-meta span {
    font-size: 7.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-order-meta strong,
  html body[data-app-view="publicProfile"] .public-order-meta input {
    font-size: 9px !important;
  }

  html body[data-app-view="publicProfile"] .locked-feature-callout {
    gap: 3px !important;
    padding: 6px 7px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="publicProfile"] .locked-feature-callout strong {
    font-size: 10px !important;
  }

  html body[data-app-view="publicProfile"] .locked-feature-callout span {
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="publicProfile"] .public-comment-list {
    gap: 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-comment {
    padding: 6px 7px !important;
    border-radius: 9px !important;
  }

  html body[data-app-view="publicProfile"] .public-comment p {
    margin: 3px 0 !important;
    font-size: 8.5px !important;
    line-height: 1.4 !important;
  }

  html body[data-app-view="publicProfile"] .public-comment small {
    font-size: 7.5px !important;
  }
}

@media (max-width: 370px) {
  html body[data-app-view="publicProfile"] .public-profile-hero-new {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    gap: 4px 6px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-avatar-wrap,
  html body[data-app-view="publicProfile"] .profile-home-avatar {
    width: 54px !important;
    height: 54px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-identity h1 {
    font-size: 16px !important;
  }

  html body[data-app-view="publicProfile"] .profile-credit-gauge {
    flex-basis: 50px !important;
    max-width: 50px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero .profile-credit-gauge .profile-credit-gauge-visual {
    width: 48px !important;
    height: 48px !important;
  }

  html body[data-app-view="publicProfile"] .profile-home-hero-actions .button {
    padding-inline: 2px !important;
    font-size: 8px !important;
  }

  html body[data-app-view="publicProfile"] .profile-services-hero {
    grid-template-columns: minmax(0, 1fr) 108px !important;
  }

  html body[data-app-view="publicProfile"] .public-profile-tab {
    gap: 2px !important;
    font-size: 8.8px !important;
  }
}

/* 公开主页 · 语音厅入口在手机端同步收紧。 */
@media (max-width: 820px) {
  html body[data-app-view="publicProfile"] .public-voice-section,
  html body[data-app-view="publicProfile"] .public-voice-section.is-empty {
    gap: 4px !important;
    margin: 0 !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-section .section-heading-row p {
    margin: 1px 0 0 !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-grid {
    gap: 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-card {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-orb {
    width: 48px !important;
    height: 48px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-orb svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-main {
    gap: 5px !important;
    padding: 4px 6px 2px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-copy {
    gap: 0 !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-copy strong {
    font-size: 9.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-copy small,
  html body[data-app-view="publicProfile"] .public-voice-badge,
  html body[data-app-view="publicProfile"] .public-voice-enter {
    font-size: 7.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-badge {
    padding: 0 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-manage {
    gap: 3px !important;
    padding: 0 6px 4px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-manage button {
    min-height: 24px !important;
    padding: 2px 4px !important;
    font-size: 7.5px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-empty-card {
    gap: 5px !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-empty-card > div {
    min-width: 130px !important;
    gap: 1px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-empty-card h2 {
    font-size: 11px !important;
  }

  html body[data-app-view="publicProfile"] .public-voice-empty-card p {
    font-size: 8px !important;
    line-height: 1.3 !important;
  }
}
