/**
 * 官网移动端适配 — 仅 @media (max-width: 768px) 生效，不影响 PC 样式
 */
@media (max-width: 768px) {
  .bce-wrap { max-width: calc(100% - 32px); }

  .bce-head-inner--full { padding: 0 12px; gap: 12px; }
  .bce-head-logo { min-width: 0; }
  .bce-head-logo-text { font-size: 15px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .bce-user-dropdown {
    position: fixed;
    top: calc(var(--bce-head-h) + 8px);
    left: 12px;
    right: 12px;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - var(--bce-head-h) - 24px);
    overflow-y: auto;
  }

  .bce-mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    word-break: break-word;
  }

  .bce-main-minimal { min-height: calc(100dvh - var(--bce-head-h)); }

  body.wechat-im-layout .bce-main-minimal,
  body.ai-chat-layout .bce-main-minimal {
    min-height: 0 !important;
    height: auto;
    flex: 1;
  }

  body.wechat-im-layout .bce-head-inner--full,
  body.ai-chat-layout .bce-head-inner--full {
    padding: 0 10px;
    gap: 8px;
  }

  body.wechat-im-layout .wx-im-panel-zoom,
  body.ai-chat-layout .wx-im-panel-zoom {
    display: none !important;
  }

  .bce-float-sidebar { display: none; }

  .bce-foot--minimal .bce-foot-main,
  .bce-foot--minimal .footer-pc { padding-left: 0; padding-right: 0; }
  .bce-foot--minimal .bce-wrap { max-width: calc(100% - 24px); }

  /* 商城 / 账户 */
  .bce-shop-inner { padding-left: 16px; padding-right: 16px; }
  .bce-shop--account { padding: 20px 0 48px; }
  .bce-account-head h1 { font-size: 22px; }
  .bce-account-table thead { display: none; }
  .bce-account-table tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--shop-line, #e8e9eb);
  }
  .bce-account-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: none;
    text-align: right;
  }
  .bce-account-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--shop-muted, #84868c);
    text-align: left;
    flex-shrink: 0;
  }
  .bce-account-table td:last-child { justify-content: flex-end; }
  .bce-account-detail-card { padding: 20px 16px; }
  .bce-account-dl div { grid-template-columns: 1fr; gap: 4px; }

  /* 支付页 */
  .bce-pay-page { padding: 16px 12px 32px; }
  .bce-pay-card { padding: 20px 16px; }
  .bce-pay-order-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bce-pay-actions { flex-direction: column; }
  .bce-pay-actions a { width: 100%; }

  /* 文档 / 文章 */
  .docs-wrap { max-width: calc(100% - 32px); }
  .docs-hero, .docs-article-hero { padding: 32px 0 24px; }
  .docs-prose { font-size: 15px; }
  .docs-paywall { max-width: none; padding: 18px; }

  /* 门户文章侧栏 */
  .bce-pg-layout { gap: 20px; }
  .bce-portal-article-body { padding: 20px 0 40px; }
}

@media (max-width: 480px) {
  .bce-head-search-inline { display: none; }
  .bce-head-right { margin-left: auto; }
}
