@media (max-width:767px){
  :root{--pad:1rem}
  html,body{max-width:100%;overflow-x:clip}
  body{padding-bottom:0}
  /* A short homepage must not expose the body canvas below the footer. */
  body.home-page{display:flex;flex-direction:column;min-height:100vh;min-height:100svh;padding-bottom:calc(48px + env(safe-area-inset-bottom));background:#0b0c0d}
  body.home-page>.site-header,body.home-page>main{flex-shrink:0}
  body.home-page>.site-footer{flex:1;align-content:start;padding-bottom:1.35rem}
  main,.prose,.breadcrumbs,section>*{min-width:0}
  section,.page-hero,.breadcrumbs,.prose{padding:clamp(2.25rem,8vw,3.5rem) var(--pad)}
  .page-hero h1{font-size:clamp(2rem,9vw,3rem);overflow-wrap:anywhere}
  .grid{min-width:0}
  .filters{gap:.45rem}
  .filters a{min-height:38px;padding:.32rem .55rem}
  .site-footer{gap:.75rem;padding:1.35rem var(--pad) calc(48px + env(safe-area-inset-bottom))}
  .footer-brand{gap:.55rem;font-size:.95rem}
  .footer-brand img{max-width:112px;max-height:32px}
  .footer-links{gap:.35rem 1rem;font-size:.88rem}
  .footer-links a{min-height:32px}
  .footer-records{font-size:.75rem;line-height:1.55}
  .wechat-service{display:none}

  .site-header{position:relative;z-index:50;height:62px;min-height:62px;padding:4px var(--pad);isolation:isolate}
  .site-header .brand img{height:44px;max-width:45vw;max-height:44px}
  .home-page .site-header{height:74px;min-height:74px}
  .home-page .site-header .brand img{height:66px;max-height:66px}
  .home-page .site-header nav{top:74px;max-height:calc(100dvh - 74px)}
  .menu-toggle{position:relative;z-index:52;min-height:36px;padding:.35rem .7rem;font-size:.88rem;line-height:1.2;pointer-events:auto}
  .site-header nav{z-index:51;width:100%;max-height:calc(100dvh - 62px);overflow-y:auto;pointer-events:auto;inset:62px 0 auto;padding:.3rem var(--pad) .45rem}
  .site-header nav a{min-height:38px;padding:.32rem .15rem;font-size:.9rem;line-height:1.25}

  .hero{position:relative;z-index:0;height:auto;min-height:0;aspect-ratio:16/9;background:#111;overflow:hidden}
  .hero-slide img,.hero-slide video{width:100%;height:100%;object-fit:contain}
  .hero-slide img,.hero-slide video{object-position:center center}
  .hero-slide__copy{left:.9rem;right:.9rem;bottom:1.1rem}
  .hero-slide__copy h1{font-size:clamp(1.25rem,6vw,1.8rem)}
  .hero-slide__copy p{margin:.35rem 0 0;font-size:.88rem;line-height:1.55}
  .hero-controls{padding:0 .5rem}
  .hero-controls button{width:36px;height:42px;font-size:2rem}

  .mobile-actions{z-index:40;grid-template-columns:repeat(2,minmax(0,1fr));min-height:48px;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -6px 18px rgba(0,0,0,.16)}
  .mobile-actions a{min-width:0;min-height:48px;padding:.55rem .5rem;font-size:.9rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-actions a+a{border-left:1px solid rgba(255,255,255,.16)}
}
