/* 小米澎湃 OS 手机端：只在窄屏生效，桌面布局不动 */
@media (max-width: 720px) {
  :root {
    --hy-bg: #f5f6f8;
    --hy-card: #ffffff;
    --hy-text: #191919;
    --hy-sub: #8a8a8a;
    --hy-blue: #0d84ff;
    --hy-blue-press: #0a6ed6;
    --hy-hair: rgba(25, 25, 25, 0.06);
    --hy-r: 16px;
    --hy-r-lg: 20px;
    --hy-safe-t: env(safe-area-inset-top, 0px);
    --hy-safe-b: env(safe-area-inset-bottom, 0px);
    --pv-primary: #0d84ff;
    --pv-primary-hover: #0a6ed6;
    --pv-bg-main: #f5f6f8;
    --pv-bg-card: #ffffff;
    --pv-text-1: #191919;
    --pv-text-2: #4d4d4d;
    --pv-text-3: #8a8a8a;
    --pv-shadow: 0 8px 24px rgba(25, 25, 25, 0.06);
    --pv-shadow-in: inset 0 0 0 1px rgba(25, 25, 25, 0.06);
    --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
      "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  }

  html, body {
    background: var(--hy-bg);
    color: var(--hy-text);
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
  }

  .wrap,
  .nav-inner {
    width: calc(100% - 44px);
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(245, 246, 248, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    transform: none;
    padding-top: var(--hy-safe-t);
    border-bottom: 0.5px solid var(--hy-hair);
  }

  .nav-inner {
    min-height: 52px;
    gap: 10px;
  }

  .nav-logo {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .nav-logo img {
    width: 36px;
    height: 36px;
  }

  .hy-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 12px 10px;
  }

  .hy-menu i {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 99px;
    background: #191919;
  }

  .hy-mask {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.28);
  }

  .nav-actions {
    display: none;
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--hy-safe-b));
    padding: 8px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 4px;
  }

  body.hy-open {
    overflow: hidden;
  }

  body.hy-open .nav-actions {
    display: flex;
  }

  .nav-actions .btn {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    box-shadow: none;
    font-weight: 600;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .nav-actions .btn-ghost {
    background: transparent;
  }

  .nav-actions .btn-primary {
    background: var(--hy-blue);
    color: #fff;
    justify-content: center;
  }

  .btn {
    box-shadow: none;
    border-radius: 999px;
    font-weight: 600;
  }

  .btn-primary {
    background: var(--hy-blue);
  }

  .btn-primary:active {
    background: var(--hy-blue-press);
  }

  .btn-ghost {
    background: #fff;
    box-shadow: var(--pv-shadow-in);
  }

  .hero {
    padding: 18px 0 8px;
  }

  .hero h1 {
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .hero .lead {
    font-size: 14px;
    line-height: 1.65;
    max-width: none;
  }

  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btns .btn,
  .hero-btns .btn-lg {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .stage-grid {
    grid-template-columns: 1fr;
    padding: 4px 0 20px;
  }

  .pc-chrome {
    display: none;
  }

  .phone-chrome {
    max-width: none;
    border-radius: 24px;
    padding: 8px 8px 12px;
    background: #fff;
    box-shadow: var(--pv-shadow);
  }

  .phone-frame {
    height: 560px;
    border-radius: 18px;
    background: var(--hy-bg);
  }

  .mod {
    padding: 8px 0 28px;
  }

  .mod h2 {
    font-size: 20px;
    font-weight: 650;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .card {
    background: #fff;
    border-radius: var(--hy-r-lg);
    box-shadow: none;
    border: 0.5px solid var(--hy-hair);
    padding: 16px 16px 14px;
    min-height: 0;
  }

  .card strong {
    font-size: 16px;
    font-weight: 650;
  }

  .card .btn {
    width: 100%;
  }

  #pc-sha, #apk-sha, code {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 8px 0 calc(28px + var(--hy-safe-b));
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: var(--hy-r-lg);
    overflow: hidden;
    border: 0.5px solid var(--hy-hair);
  }

  .footer-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 0.5px solid var(--hy-hair);
  }

  .footer-links a:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .open-card {
    max-width: none !important;
    margin: 12px 0 0 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    border: 0.5px solid var(--hy-hair);
    padding: 18px 16px 20px !important;
  }

  .open-card input {
    height: 48px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: #f5f6f8 !important;
    font-size: 20px !important;
  }

  .open-card .row {
    flex-direction: column;
  }

  .open-card .row .btn {
    width: 100%;
    height: 48px;
  }

  .moc {
    max-width: none;
    min-height: 100vh;
    background: #f5f6f8;
    padding-bottom: calc(20px + var(--hy-safe-b));
  }

  .moc-h {
    padding: 18px 16px 10px;
    background: transparent;
  }

  .moc-h h1 {
    font-size: 26px;
    font-weight: 650;
  }

  .pc-card,
  .tile,
  .mini {
    background: #fff;
    box-shadow: none;
    border: 0.5px solid var(--hy-hair);
    border-radius: 16px;
  }

  .quick {
    gap: 8px;
    margin: 0 12px;
  }

  .quick b {
    min-height: 64px;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    border: 0.5px solid var(--hy-hair);
    font-weight: 600;
  }

  .list {
    margin: 12px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid var(--hy-hair);
  }

  .list li {
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--hy-hair);
    min-height: 56px;
  }

  .list li:last-child {
    border-bottom: 0;
  }

  .wb {
    padding: 12px 12px calc(20px + var(--hy-safe-b));
  }

  .search {
    flex-direction: column;
  }

  .search input,
  .search button {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    box-shadow: none;
  }

  .search button {
    background: var(--hy-blue);
  }

  .duo,
  .grid4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 721px) {
  .hy-menu,
  .hy-mask {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .hero .display {
    font-size: 32px;
    letter-spacing: 0.004em;
  }
  .stage-bleed {
    width: calc(100% - 44px);
    margin-bottom: 28px;
  }
  .flow,
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .step,
  .tile {
    min-height: 0;
    background: #fff;
    box-shadow: none;
    border: 0.5px solid var(--hy-hair);
  }
  .chapter,
  .dark {
    padding-top: 36px;
    padding-bottom: 8px;
  }
  .dark {
    margin-top: 28px;
    padding: 40px 0;
  }
  .split {
    gap: 20px;
  }
}
