@media (max-width: 700px) {
  html, body, #app { width: 100%; height: 100%; overflow: hidden; }
  body { background: #f7f7f7; color: #222; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
  .chat-page { position: relative; height: 100dvh !important; background: #f7f7f7; }
  .chat-page > .top-bar { height: 58px !important; padding: 0 22px !important; color: #222 !important; background: #fff !important; border-bottom: 1px solid #e5e5e5; }
  .chat-page > .top-bar > .brand, .chat-page > .top-bar > .user-info { visibility: hidden; }
  .chat-page > .main { height: calc(100dvh - 112px) !important; min-height: 0; }
  .chat-page > .main > .sidebar { width: 100% !important; }
  .chat-page > .main > .chat-window { display: none !important; }
  .chat-page.qy-mobile-chat-open > .main > .sidebar { display: none !important; }
  .chat-page.qy-mobile-chat-open > .main > .chat-window { display: flex !important; width: 100%; }
  .chat-page.qy-mobile-chat-open > .top-bar,
  .chat-page.qy-mobile-chat-open > .qy-mobile-header,
  .chat-page.qy-mobile-chat-open > .qy-mobile-nav { display: none !important; }
  .qy-mobile-header { position: absolute; z-index: 20; inset: 0 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: #fff; border-bottom: 1px solid #e5e5e5; }
  .qy-mobile-header h1 { margin: 0; flex: 1; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: 1px; }
  .qy-mobile-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #202124; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
  .qy-mobile-search { font-size: 0; position: relative; }
  .qy-mobile-search:before { content: ""; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; display: block; }
  .qy-mobile-search:after { content: ""; width: 10px; height: 2px; background: currentColor; transform: rotate(45deg); position: absolute; left: 18px; top: 23px; }
  .qy-mobile-add { font-size: 28px; font-weight: 300; }
  .qy-mobile-nav { position: absolute; z-index: 30; inset: auto 0 0; height: 54px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid #ddd; padding-bottom: env(safe-area-inset-bottom); }
  .qy-mobile-nav button { border: 0; background: transparent; color: #999; font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
  .qy-mobile-nav button.is-active { color: #3d95f5; }
  .qy-nav-glyph { height: 23px; font-size: 23px; line-height: 23px; filter: grayscale(1); }
  .qy-mobile-nav button.is-active .qy-nav-glyph { filter: none; }
  .qy-mobile-nav button:nth-child(1) .qy-nav-glyph:before { content: "▤"; }
  .qy-mobile-nav button:nth-child(2) .qy-nav-glyph:before { content: "♟"; }
  .qy-mobile-nav button:nth-child(3) .qy-nav-glyph:before { content: "⌁"; }
  .qy-mobile-nav button:nth-child(4) .qy-nav-glyph:before { content: "●"; }
  .qy-mobile-panel { height: 100%; overflow: auto; padding-top: 58px; padding-bottom: 54px; background: #f7f7f7; }
  .qy-mobile-panel[hidden] { display: none; }
  .qy-mobile-list { background: #fff; border-top: 1px solid #e5e5e5; }
  .qy-mobile-row { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 10px 24px; border-bottom: 1px solid #eee; color: #222; font-size: 17px; }
  .qy-mobile-row small { margin-left: auto; color: #999; font-size: 13px; }
  .qy-mobile-tile { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 28px; background: #3d95f5; }
  .qy-mobile-tile.green { background: #38c976; }
  .qy-mobile-tile.blue { background: linear-gradient(135deg,#6aa9fa,#2e7fe7); }
  .qy-mobile-empty { min-height: calc(100dvh - 168px); display: grid; place-items: center; color: #aaa; font-size: 16px; }
  .qy-mobile-me-hero { height: 330px; padding-top: 80px; text-align: center; color: #fff; background: #5e9bf4; border-radius: 0 0 50% 8%; }
  .qy-mobile-avatar { width: 118px; height: 118px; margin: 0 auto 16px; display: grid; place-items: center; color: #aaa; background: #eee; border: 6px solid #fff; border-radius: 8px; font-size: 48px; }
  .qy-mobile-me-hero strong { display: block; font-size: 28px; }
  .qy-mobile-me-hero span { display: block; margin-top: 5px; font-size: 16px; }
  .qy-mobile-me-items { margin-top: 42px; background: #fff; }
  .qy-mobile-me-items .qy-mobile-row { min-height: 68px; }
  .qy-mobile-me-items .qy-mobile-row { width: 100%; border: 0; border-bottom: 1px solid #eee; background: #fff; text-align: left; font: inherit; cursor: pointer; }
  .qy-mobile-me-items .qy-mobile-row b { margin-left: auto; color: #aaa; font-size: 24px; font-weight: 300; }
  .qy-me-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.35); }
  .qy-me-dialog[hidden] { display: none; }
  .qy-me-dialog-card { position: relative; width: min(360px, 100%); padding: 24px 20px; border-radius: 10px; background: #fff; box-shadow: 0 10px 35px rgba(0,0,0,.2); }
  .qy-me-dialog-card h2 { margin: 0 0 20px; text-align: center; font-size: 20px; font-weight: 600; }
  .qy-me-close { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; border: 0; background: transparent; color: #888; font-size: 28px; cursor: pointer; }
  .qy-me-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #eee; font-size: 16px; }
  .qy-me-info-row span { color: #777; }
  .qy-me-info-row strong { font-weight: 400; }
  .qy-me-info-row .qy-online { color: #42b883; }
  .qy-me-label { display: block; margin-bottom: 7px; color: #777; font-size: 14px; }
  .qy-me-input { width: 100%; padding: 11px 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; font: inherit; }
  .qy-me-primary, .qy-me-secondary { width: 100%; margin-top: 14px; padding: 11px; border: 0; border-radius: 6px; font: inherit; cursor: pointer; }
  .qy-me-primary { color: #fff; background: #4c96f2; }
  .qy-me-secondary { color: #333; background: #f1f1f1; }
  .qy-me-setting-row { width: 100%; display: flex; justify-content: space-between; padding: 15px 0; border: 0; border-bottom: 1px solid #eee; background: #fff; color: #222; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
  .qy-me-setting-row span { color: #aaa; font-size: 22px; }
  .qy-mobile-me-active > .qy-mobile-header { color: #fff !important; background: transparent !important; border-bottom: 0; }
  .qy-mobile-me-active > .qy-mobile-header h1 { display: none; }
  .qy-mobile-me-active > .qy-mobile-header .qy-mobile-search,
  .qy-mobile-me-active > .qy-mobile-header .qy-mobile-add { visibility: hidden; pointer-events: none; }
  .qy-mobile-me-active > .qy-mobile-panel.qy-mobile-me { padding-top: 0; background: #f7f7f7; }
  .qy-mobile-me-active .qy-mobile-me-hero { height: 438px; padding-top: 78px; border-radius: 0 0 58% 9%; background: linear-gradient(145deg, #67a4f8 0%, #5795ee 72%, #4e8ce5 100%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.16); }
  .qy-mobile-me-active .qy-mobile-avatar { width: 126px; height: 126px; margin-bottom: 14px; font-size: 52px; }
  .qy-mobile-me-active .qy-mobile-me-hero strong { font-size: 30px; font-weight: 500; }
  .qy-mobile-me-active .qy-mobile-me-hero span { font-size: 18px; }
  .qy-mobile-me-active .qy-mobile-me-hero em { font-style: normal; }
  .qy-mobile-me-active .qy-mobile-me-items { margin-top: 42px; }
  .qy-mobile-me-active .qy-mobile-me-items .qy-mobile-row { min-height: 82px; padding: 14px 28px; gap: 18px; font-size: 20px; }
  .qy-mobile-me-active .qy-mobile-tile { width: 54px; height: 54px; flex-basis: 54px; font-size: 29px; }
  .qy-mobile-me-active .qy-mobile-me-items .qy-mobile-row b { font-size: 29px; }
  .qy-mobile-detail { position: absolute; z-index: 25; inset: 58px 0 0; overflow: auto; padding-bottom: 20px; background: #f7f7f7; }
  .qy-mobile-detail[hidden] { display: none; }
  .qy-mobile-detail-active > .qy-mobile-header { background: #fff !important; color: #222 !important; border-bottom: 1px solid #e5e5e5; }
  .qy-mobile-detail-active > .qy-mobile-header h1 { display: block; font-size: 22px; }
  .qy-mobile-detail-active > .qy-mobile-header .qy-mobile-search { visibility: visible; }
  .qy-detail-back { font-size: 0; }
  .qy-mobile-header .qy-detail-back { visibility: visible !important; pointer-events: auto !important; position: relative; z-index: 90; }
  .qy-mobile-header .qy-detail-back:before { content: "‹" !important; width: auto; height: auto; border: 0; transform: none; display: block; margin: 0; font-size: 38px; font-weight: 300; line-height: 30px; }
  .qy-mobile-header .qy-detail-back:after { content: none !important; display: none !important; }
  .qy-detail-list { margin-top: 26px; background: #fff; border-top: 1px solid #eee; }
  .qy-detail-row { width: 100%; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 26px; border: 0; border-bottom: 1px solid #eee; background: #fff; color: #222; font: inherit; font-size: 18px; text-align: left; cursor: pointer; }
  .qy-detail-row span:nth-child(2) { margin-left: auto; }
  .qy-detail-row b { color: #aaa; font-size: 25px; font-weight: 300; }
  .qy-detail-avatar-row { min-height: 124px; }
  .qy-detail-avatar { width: 96px; height: 96px; display: grid; place-items: center; color: #aaa; background: #eee; font-size: 38px; }
  .qy-detail-value { color: #aaa; }
  .qy-mobile-discover { height: 100%; padding-top: 58px; padding-bottom: 54px; background: #f7f7f7; }
  .qy-mobile-discover .qy-mobile-empty { min-height: calc(100dvh - 112px); flex-direction: column; gap: 14px; }
  .qy-mobile-discover .qy-discover-mark { color: #cbd3e6; font-size: 108px; line-height: 1; }
  .qy-mobile-popover { position: absolute; z-index: 50; top: 50px; right: 18px; width: 170px; display: none; padding: 8px 0; background: #fff; border-radius: 4px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
  .qy-mobile-popover:before { content: ""; position: absolute; right: 15px; top: -8px; border: 8px solid transparent; border-bottom-color: #fff; border-top: 0; }
  .qy-mobile-popover.is-open { display: block; }
  .qy-mobile-popover button { width: 100%; padding: 12px 18px; border: 0; background: #fff; text-align: left; color: #222; font: inherit; font-size: 16px; cursor: pointer; }
  .qy-mobile-popover button:hover { background: #f5f5f5; }
  .qy-mobile-search-input { position: absolute; z-index: 60; top: 58px; left: 0; right: 0; display: none; padding: 10px 18px; background: #fff; border-bottom: 1px solid #ddd; }
  .qy-mobile-search-input.is-open { display: block; }
  .qy-mobile-search-input input { width: 100%; padding: 9px 14px; border: 1px solid #ddd; border-radius: 7px; outline: none; font: inherit; }
  .qy-mobile-contacts .list { padding: 0 !important; }
  .qy-mobile-contacts .list-item { border-radius: 0 !important; padding: 10px 24px !important; min-height: 68px; border-bottom: 1px solid #eee; }
}
