/*
 * 手机端传统 CSS 兼容层，不经过 Tailwind/PostCSS。
 * 供不支持 Tailwind 4 CSS layers 的旧版 Android 浏览器使用。
 */

@media (max-width: 767px) {
  /* 报告保留完整内容，但滚动发生在 App 外壳内部，不滚动整个页面。 */
  .result-scroll {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px 18px !important;
    -webkit-overflow-scrolling: touch;
  }

  .result-layout {
    display: block !important;
    width: 100%;
  }

  .result-summary,
  .result-action-card,
  .nomi-card,
  .result-details [data-slot="card"] {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #f0d9cf;
    border-radius: 16px !important;
    background: #fffefd;
    color: #42181b;
    box-shadow: 0 8px 24px rgba(93, 46, 51, 0.055);
  }

  .result-summary {
    padding: 16px !important;
    background: #fff3ee;
  }

  .result-summary h1 {
    margin: 7px 0 0 !important;
    color: #42181b;
    font-size: 26px !important;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.22 !important;
  }

  .result-summary p {
    margin: 9px 0 0;
    color: #80615d;
    font-size: 13px;
    line-height: 1.55;
  }

  .result-summary dl {
    margin: 8px 0 0;
  }

  .result-summary dl > div {
    display: flex;
    margin-top: 5px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f0d9cf;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fffefd;
  }

  .result-summary dt,
  .result-summary dd {
    margin: 0;
    font-size: 12px;
  }

  [data-slot="badge"] {
    display: inline-flex;
    border: 1px solid #f0d9cf;
    border-radius: 999px;
    padding: 3px 8px;
    background: #fff0e8;
    color: #6a403b;
    font-size: 10px;
    font-weight: 700;
  }

  .result-details {
    display: block !important;
    margin-top: 10px;
  }

  .result-details > * + * {
    margin-top: 10px;
  }

  .result-details [data-slot="card-header"] {
    box-sizing: border-box;
    display: block;
    padding: 14px 14px 6px !important;
  }

  .result-details [data-slot="card-header"] > div {
    display: flex;
    align-items: center;
  }

  .result-details [data-slot="card-header"] > div > * + * {
    margin-left: 8px;
  }

  .result-details [data-slot="card-title"] {
    margin: 0;
    color: #42181b;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
  }

  .result-details [data-slot="card-content"] {
    box-sizing: border-box;
    padding: 0 14px 14px !important;
  }

  .result-details p,
  .result-details ul,
  .result-details ol {
    margin-top: 7px;
    margin-bottom: 0;
    color: #80615d;
    font-size: 13px;
    line-height: 1.55;
  }

  .result-details ul,
  .result-details ol {
    padding-left: 20px;
  }

  .result-action-card,
  .nomi-card {
    padding: 14px !important;
  }

  .result-action-card h2,
  .nomi-card h2 {
    margin: 0;
    color: #42181b;
    font-size: 15px;
    font-weight: 800;
  }

  .result-action-card [data-slot="button"] {
    width: 100%;
    margin-top: 10px;
  }

  .nomi-card-layout {
    display: block !important;
  }

  .nomi-qr {
    box-sizing: border-box;
    width: 160px;
    margin: 12px auto 0;
    border: 1px solid #f0d9cf;
    border-radius: 14px;
    padding: 10px;
    background: #fffefd;
    text-align: center;
  }

  .nomi-qr img {
    display: block;
    width: 128px !important;
    height: 128px !important;
    margin: 0 auto;
  }

  .result-footer-actions {
    display: flex !important;
    padding-bottom: 8px;
  }

  .result-footer-actions > * {
    flex: 1 1 0;
  }

  .result-footer-actions > * + * {
    margin-left: 8px;
  }
}
