/* 紧凑版：在 mobile.css 的基础上再缩一档；顺带放匿名头像、QQ 邮箱提示等新元素的样式。 */

/* 匿名头像：灰底上一个带问号的人像 */
.avatar-anon { display: inline-grid !important; place-items: center; background: #d9dbe1 !important; color: #5b5f69; overflow: hidden; }
#sheet .sheet-avatar.avatar-anon { background: #d9dbe1 !important; }

/* 注册时邮箱上方的 QQ 邮箱提示 */
#sheet .qq-tip { display: block; padding: 7px 10px; border-radius: 8px; background: #fff8d6; color: #5c4b00; font-size: 12.5px; line-height: 1.55; }
#sheet .qq-tip b { font-family: var(--mono); font-weight: 700; }
#sheet .sheet-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* 电脑：卡片略收紧 */
.post-title { font-size: 16px !important; }
.excerpt { font-size: 13.5px !important; }

@media (max-width: 620px) {
  body { font-size: 12.5px; }
  .wrap { width: calc(100% - 16px) !important; }

  .mast-inner { height: 44px !important; }
  .brand-type b { font-size: 14px !important; }
  .brand-type i { display: none; }
  .brand::before { width: 6px; height: 16px; }
  .searchbox { height: 28px !important; }
  .searchbox input::placeholder { font-size: 12px; }
  .account-login, .account-btn { height: 28px !important; }

  .main { padding-top: 8px !important; }
  .hero { aspect-ratio: 2.8 !important; --c: 10px !important; border-radius: 12px !important; }
  .hero::before, .hero::after { width: 14px !important; height: 14px !important; }

  .board-grid { margin-top: 12px !important; gap: 14px !important; }
  .feed-heading { padding-bottom: 6px !important; }
  .feed-heading h1 { font-size: 16px !important; }
  .count { font-size: 10.5px !important; }
  .sort-segments button, .image-filter { font-size: 11px !important; min-height: 24px !important; }
  .filters { margin: 8px 0 !important; }
  .filter { font-size: 11px !important; padding: 3px 9px !important; }
  #me-card { padding: 10px !important; margin-top: 8px !important; }

  .feed-list { gap: 6px !important; }
  .post { padding: 9px 9px 1px 11px !important; border-radius: 10px !important; }
  .post::before { font-size: 9.5px !important; top: 9px !important; right: 10px !important; }
  .post-title, .post-copy.with-image .post-title { font-size: 13.5px !important; line-height: 1.4 !important; }
  .excerpt { font-size: 12px !important; line-height: 1.55 !important; -webkit-line-clamp: 2; }
  .post-copy.with-image { grid-template-columns: minmax(0, 1fr) 60px !important; gap: 8px !important; }
  .post-copy.with-image .post-thumb { width: 60px !important; height: 60px !important; border-radius: 8px !important; }
  .post-meta { margin-top: 6px !important; gap: 6px !important; }
  .avatar { width: 18px !important; height: 18px !important; font-size: 10px !important; }
  .authorline strong { font-size: 11px !important; }
  .authorline time { font-size: 10px !important; }
  .post-flag { font-size: 10px !important; padding: 0 5px !important; }
  .post-actions button { font-size: 11px !important; min-height: 26px !important; }
  .post-actions button svg { width: 13px; height: 13px; }

  .rail-box.ranking-box .rail-head { padding: 12px 14px 4px !important; }
  .rail-box.ranking-box .rail-head h2 { font-size: 14px !important; }
  .mini-ranks { padding: 0 14px 6px !important; }
  .mini-ranks button { padding: 9px 0 !important; }
  .ordinal { font-size: 15px !important; min-width: 22px !important; }
  .rank-text b { font-size: 12.5px !important; }

  .mobile-nav { padding: 3px !important; gap: 3px !important; right: calc(8px + env(safe-area-inset-right)) !important; }
  .mobile-nav button { width: 32px !important; height: 32px !important; }
  .mobile-nav button svg { width: 15px !important; height: 15px !important; }

  #sheet h2 { font-size: 17px !important; }
  #sheet .sheet-bodytext { font-size: 13.5px !important; }
  #sheet .sheet-form { gap: 12px !important; }
  #toast { font-size: 12px !important; padding: 8px 14px !important; }
}
