@media (max-width: 768px) {
  html,
  body,
  #seo-result {
    background: #1c1d18 !important;
  }

  /* The Vue app's global box-sizing reset is not included in static result.css. */
  #seo-result .mobile-other-result,
  #seo-result .mobile-other-result * {
    box-sizing: border-box;
  }

  #seo-result .mobile-other-result,
  #seo-result .mobile-other-preview-card,
  #seo-result .mobile-other-view-switch,
  #seo-result .mobile-other-cert,
  #seo-result .mobile-other-info-card,
  #seo-result .mobile-other-creation {
    min-width: 0;
    max-width: 100%;
  }

  #seo-result .mobile-other-info-card p,
  #seo-result .mobile-other-creation {
    overflow-wrap: anywhere;
  }

  #seo-result .page-main-layout.is-other-result {
    padding: 0;
  }

  #seo-result .mobile-other-result {
    width: min(100%, 430px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
    color: #d7d7d4;
    background: #1c1d18;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  #seo-result .mobile-other-follow,
  #seo-result .mobile-use-template,
  #seo-result .mobile-other-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #seo-result .mobile-other-header {
    position: static;
    width: 100%;
    height: 46px;
    padding: 0 5px;
    grid-template-columns: 24px 30px minmax(0,1fr) 56px;
    background: transparent;
    backdrop-filter: none;
  }

  #seo-result .mobile-other-back {
    width: 24px;
    height: 40px;
    min-height: 40px;
  }

  #seo-result .mobile-other-back svg {
    width: 22px;
    height: 22px;
  }

  #seo-result .mobile-other-header > strong {
    color: #fff;
    font-size: 15px;
  }

  #seo-result .mobile-other-avatar {
    width: 30px;
    height: 30px;
  }

  #seo-result .mobile-other-more {
    display: none !important;
  }

  #seo-result .mobile-other-follow {
    width: 56px;
    min-width: 56px;
    height: 28px;
    min-height: 28px !important;
    padding: 0;
    border: 1px solid #ff7e00;
    border-radius: 14px;
    color: #ff7e00;
    font-size: 13px;
    line-height: 26px;
  }

  #seo-result .mobile-other-follow:active {
    color: #fff;
    background: rgba(255,126,0,.2);
  }

  #seo-result .mobile-other-action-link {
    height: 40px;
    min-height: 40px;
    padding: 0;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
  }

  #seo-result .mobile-other-action-link img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  #seo-result .mobile-other-actionbar {
    right: auto;
    left: 50%;
    width: min(100%, 430px);
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 40px) minmax(0,1fr);
    gap: 4px;
    align-items: center;
    background: #1c1d18;
    transform: translateX(-50%);
  }

  #seo-result .mobile-use-template {
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 10px;
    border-radius: 20px;
    background: linear-gradient(90deg,#ff7e00,#ff6247);
    font-size: 16px;
    font-weight: 500;
  }

  #seo-result .mobile-other-space[hidden] {
    display: none;
  }

  /* Match oneDesignPoints' square hero and media switcher. */
  #seo-result .mobile-other-preview-card {
    padding: 10px;
    border-radius: 10px;
    background: #1f2020;
  }

  #seo-result .mobile-other-preview {
    border-radius: 8px;
    background: #141512;
  }

  #seo-result .mobile-other-preview > img:first-of-type {
    object-fit: cover;
  }

  #seo-result .mobile-other-ai {
    z-index: 5;
    padding: 1px 7px;
    font-size: 13px;
    line-height: 20px;
    pointer-events: none;
  }

  #seo-result .mobile-other-view-switch {
    min-height: 60px;
    margin-top: 7px;
    padding: 5px 8px;
    border-radius: 10px;
    background: #1f2020;
    gap: 5px;
  }

  #seo-result .mobile-other-view-switch button {
    position: relative;
    display: flex;
    height: 48px;
    min-height: 48px;
    padding: 3px 8px;
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  #seo-result .mobile-other-view-switch button:first-child::after {
    position: absolute;
    top: 5px;
    right: -3px;
    width: 1px;
    height: 38px;
    content: '';
    background: rgba(255,255,255,.08);
    pointer-events: none;
  }

  #seo-result .mobile-other-view-switch button strong {
    font-size: 12px;
  }

  #seo-result .mobile-other-view-switch button img {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    flex: none;
  }

  #seo-result .mobile-other-view-switch button strong {
    font-weight: 400;
  }

  #seo-result .mobile-other-preview > .seo-mobile-preview-hidden,
  #seo-result .mobile-other-preview > .seo-mobile-model-hidden {
    display: none !important;
  }

  #seo-result .mobile-other-preview > .seo-three-container {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border-radius: inherit;
    background: #e7e9eb;
  }

  #seo-result .mobile-other-preview > .seo-three-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }

  #seo-result .mobile-other-preview .seo-three-container > .three-icon {
    position: absolute;
    z-index: 2;
    top: auto;
    right: auto;
    bottom: 11px;
    left: 11px;
    width: auto;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
  }

  #seo-result .mobile-other-preview .seo-three-container > .seo-guidance-icon {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 58%;
    height: 58%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  #seo-result .mobile-other-preview #seo-three-loading {
    z-index: 3 !important;
    background: #e7e9eb !important;
    color: #666;
    gap: 8px;
  }

  #seo-result .mobile-other-preview #seo-three-loading .spinner {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0 !important;
    border: 2px solid rgba(40,40,40,.14) !important;
    border-top-color: #ff7e00 !important;
  }

  #seo-result .mobile-other-preview #seo-three-loading .loading-text {
    color: #666 !important;
    font-size: 12px !important;
  }

  #seo-result .mobile-other-cert {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin-top: 7px;
    padding: 12px 16px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    color: inherit;
    background: linear-gradient(to right, rgba(39,31,23,.8), rgba(31,32,32,1));
    text-align: left;
    text-decoration: none;
  }

  #seo-result .mobile-other-cert > .mobile-cert-shield {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    flex: none;
  }

  #seo-result .mobile-other-cert > span {
    min-width: 0;
    flex: 1;
  }

  #seo-result .mobile-other-cert strong {
    color: #ff7038;
    font-size: 14px;
  }

  #seo-result .mobile-other-cert small {
    margin-top: 3px;
    color: #ebccc1;
    font-size: 12px;
  }

  #seo-result .mobile-other-cert > img:last-child {
    width: 28px;
    height: 32px;
    margin-left: auto;
    border-radius: 4px;
    object-fit: cover;
    flex: none;
  }

  #seo-result .mobile-other-info-card,
  #seo-result .mobile-other-creation {
    margin-top: 7px;
    border-radius: 10px;
    background: #1f2020;
  }

  #seo-result .mobile-other-info-card {
    padding: 12px;
    color: #b4b4b4;
    font-size: 13px;
  }

  #seo-result .mobile-other-info-card h1 {
    color: #f2f2f0;
    font-size: 17px;
    font-weight: 550;
  }

  #seo-result .mobile-other-info-card header > span {
    color: #ff6551;
    font-size: 11px;
  }

  #seo-result .mobile-other-summary {
    margin-top: 9px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    gap: 8px;
    color: #b4b4b4;
    font-size: 11px;
  }

  #seo-result .mobile-other-tags {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
    color: #ff7e00;
    gap: 8px 10px;
  }

  #seo-result .mobile-other-tags a {
    display: inline-flex;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 5px;
    align-items: center;
    background: rgba(255,126,0,.12);
    font-size: 12px;
    line-height: 18px;
  }

  #seo-result .mobile-other-info-card p {
    margin: 14px 0 0;
    color: #b4b4b4;
    font-size: 13px;
    line-height: 1.65;
  }

  #seo-result .mobile-other-creation {
    padding: 10px 12px;
    color: #999a96;
    font-size: 13px;
    line-height: 1.55;
  }

  #seo-result .mobile-other-creation strong {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }

  .seo-mobile-certificate-mask,
  .seo-mobile-certificate-mask * {
    box-sizing: border-box;
  }

  .seo-mobile-certificate-mask {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background: rgba(7,8,6,.78);
    backdrop-filter: blur(8px);
  }

  .seo-mobile-certificate-mask[hidden] {
    display: none !important;
  }

  .seo-mobile-certificate-dialog {
    position: relative;
    width: min(84vw, 300px);
    padding: 24px 16px 26px;
    border: 1px solid rgba(255,126,0,.92);
    border-radius: 22px;
    background: linear-gradient(160deg,rgba(52,38,29,.96),rgba(27,28,31,.98) 28%);
    box-shadow: 0 18px 48px rgba(0,0,0,.42);
  }

  .seo-mobile-certificate-dialog h2 {
    margin: 0 36px 22px;
    color: #fff;
    font-size: 19px;
    font-weight: 550;
    line-height: 1.3;
    text-align: center;
  }

  .seo-mobile-certificate-image-wrap {
    width: 100%;
    padding: 7px;
    overflow: hidden;
    border-radius: 10px;
  }

  .seo-mobile-certificate-image-wrap img {
    display: block;
    width: 100%;
    max-height: 58vh;
    border-radius: 7px;
    object-fit: contain;
    background: #efefed;
    filter: blur(2px);
  }

  .seo-mobile-certificate-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1.5px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .seo-mobile-certificate-close span {
    position: absolute;
    top: 10px;
    left: 5px;
    width: 12px;
    height: 1.5px;
    border-radius: 1px;
    background: #fff;
    transform: rotate(45deg);
  }

  .seo-mobile-certificate-close span:last-child {
    transform: rotate(-45deg);
  }
}

@media (max-width: 389px) {
  #seo-result .mobile-other-result {
    padding: 8px 8px calc(86px + env(safe-area-inset-bottom));
  }

  #seo-result .mobile-other-header {
    height: 40px;
  }
}

@media (min-width: 390px) and (max-width: 768px) {
  #seo-result .mobile-other-view-switch {
    min-height: 68px;
    padding: 7px 10px;
  }

  #seo-result .mobile-other-view-switch button {
    height: 52px;
  }

  #seo-result .mobile-other-view-switch button strong {
    font-size: 13px;
  }

  #seo-result .mobile-other-view-switch button img {
    width: 42px;
    height: 42px;
  }

  #seo-result .mobile-other-info-card h1 {
    font-size: 18px;
  }

  #seo-result .mobile-other-info-card header > span,
  #seo-result .mobile-other-summary {
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  #seo-result .mobile-other-view-switch {
    padding-inline: 4px;
  }

  #seo-result .mobile-other-view-switch button {
    padding-inline: 2px;
  }

  #seo-result .mobile-other-view-switch button strong {
    font-size: 11px;
  }

  #seo-result .mobile-other-view-switch button img {
    width: 32px;
    height: 32px;
  }

  #seo-result .mobile-other-actionbar {
    grid-template-columns: repeat(3, 34px) minmax(0,1fr);
  }

  #seo-result .mobile-use-template {
    font-size: 14px;
  }
}
