




.m-topbar,
.m-drawer-head,
.rail-close,
.m-scrim {
  display: none;
}

@media (max-width: 900px) {

   
  

  .m-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 10px 0 20px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }
  .m-brand { display: inline-flex; align-items: center; }
  

  .m-brand img { display: block; height: 28px; width: auto; }
  

  .m-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--brand);
    cursor: pointer;
  }
  .m-burger svg { width: 24px; height: 24px; }
  .m-burger:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

   
  

  .m-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
  }
  .m-scrim.is-open { opacity: 1; visibility: visible; }

   
  

  .rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: block;
    width: min(80vw, 320px);
    padding: 0;
    overflow-y: auto;
    background: var(--card);
    box-shadow: -10px 0 30px rgba(15, 23, 42, .18);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.2, 0, 0, 1), visibility .24s;
  }
  .rail.is-open { visibility: visible; transform: none; }

  

  .rail-inner {
    display: block;
    margin: 0;
    padding: 14px 14px 24px;
    height: auto;
    min-height: 100%;
    border-radius: 0;
    background: var(--card);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  

  .m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0 2px;
  }
  .rail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    

    margin: -4px -6px -4px 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--sub);
    cursor: pointer;
  }
  .rail-close svg { width: 20px; height: 20px; }
  .rail-close:hover { color: var(--select); background: rgba(4, 49, 77, .05); }
  .rail-close:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

  

  .rail-banner { display: none; }

   
  

  .rail-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .rail-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    color: var(--text);
    text-align: left;
  }
  

  .rail-action-icon {
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 10px;
    background: rgba(4, 49, 77, .06);
    color: var(--brand);
  }
  .rail-action-icon svg { width: 20px; height: 20px; }
  .rail-action-label { font-size: 15px; }

   
  .rail-action:hover { background: rgba(4, 49, 77, .05); color: var(--select); }
  .rail-action:hover .rail-action-icon { background: rgba(4, 49, 77, .10); color: var(--select); }
  .rail-action:hover .rail-action-label { color: var(--select); }

  

  .rail-action.is-active .rail-action-icon { background: var(--brand); color: #fff; }
  .rail-action.is-active .rail-action-label { color: var(--brand); font-weight: 600; }

   
  

  .main { padding: 20px 16px 40px; }

  

  .side-search { display: none; }

  

  .sidebar { padding: 28px 0 0; }

   
  

  .card-grid {
    --card-scale: 1;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
  }

  

  .card {
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
  }
  

  .card,
  .card:hover {
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 4px 12px rgba(31, 36, 48, .06);
  }
  

  .card-backdrop { display: none; }

  

  .card-logo { width: 64px; height: 64px; }
  .card-logo-blank { font-size: 22px; }

  

  .card-info {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  

  .card-stats { display: none; }
  

  .card::after,
  .flag::after { display: none; }

   
  

  .feed-desc { -webkit-line-clamp: 1; }
  

  .post-feed-more { padding: 11px 20px; }
  .post-feed-foot { margin-top: 20px; }

   
   
  .pager-btn { padding: 11px 16px; }
  .pager { margin-top: 20px; }

   
  

  .main-footer-links {
    flex-direction: column;
    align-items: flex-start;
    

    flex-wrap: nowrap;
  }
  

  .main-footer-links > * { padding: 8px 0; }
  

  .main-footer-links > *:not(:first-child)::before { content: none; margin: 0; }
   
  .main-footer-links > :not(.main-footer-beian) { display: none; }
  


  .main-footer { margin-top: 36px; }

   
  

  .blog-cover { display: none; }
  

  .blog-hero { grid-template-columns: minmax(0, 1fr); }

  

  .blog-about-body { height: auto; }

  

  .blog-posts-tip,
  .blog-posts-head .btn-ghost { display: none; }

  

  .blog-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
  }
  .blog-post-summary { display: none; }

  

  .blog-post-date-y,
  .blog-post-date-md { display: block; }
  .blog-post-date-sep { display: none; }

   
  

  .post-neighbors { display: none; }

   
  

  .page-count { display: inline; }
  .page-count strong { font-size: 17px; white-space: nowrap; }
  

  .page-count-tail { display: block; }
}



@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .rail,
  .m-scrim { transition: none; }
}
