/**
 * 视口适配模式（2026-10-27 v2）— 首页「一屏完整呈现 · 无滚动条」
 * 触发：body.vf-home（仅首页默认视图；搜索/排序/分页/板块视图自动退出）
 *
 * 手段（v2 实测调优）：
 *   1. .au-stage 锁 100dvh 弹性列：hero/主体/页脚三段，主体 min-height:0 防溢出
 *   2. Hero 68vh → 17vh；客服公示/公告隐藏；数据带单行薄片
 *   3. 板块广场卡片定高 118px（关 aspect-ratio 拉伸），首屏一行 6 张
 *   4. 修复 flex 换行：row.g-4 改 nowrap + 弹性列宽（此前 col 66%+33%+gap 溢出换行，
 *      row 被撑到 945px —— 滚动条元凶之一）
 *   5. 帖子卡紧凑化（标题+元信息一行），侧栏保留欢迎卡+推荐前3
 *   6. FAQ 折叠 + [open] 悬浮层展开（不撑高文档）
 *   7. 页脚压成单行
 *   8. ≥880px 高的桌面端才启用；矮屏自动回退常规滚动（保证可用性）
 */
@media (min-width: 992px) and (min-height: 880px) {

  /* ── 0. 锁壳：整页禁滚动 ── */
  html:has(body.vf-home),
  body.vf-home {
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  body.vf-home .au-stage {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--au-top-h, 86px) - 26px);
    overflow: hidden;
  }
  body.vf-home .au-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.vf-home footer.bbs-footer {
    flex-shrink: 0;
    padding: 4px 0 2px !important;
  }
  body.vf-home footer.bbs-footer .row { margin: 0 !important; }
  /* 页脚压成单行：品牌列/活跃列隐藏，导航行收起，版权+ICP 内联 */
  body.vf-home footer.bbs-footer .footer-desc,
  body.vf-home footer.bbs-footer .footer-links,
  body.vf-home footer.bbs-footer .col-md-4:nth-of-type(1),
  body.vf-home footer.bbs-footer .col-md-4:nth-of-type(3) { display: none !important; }
  body.vf-home footer.bbs-footer p { display: inline; margin: 0 10px 0 0 !important; font-size: 11px !important; }
  body.vf-home footer.bbs-footer .col-md-4 { width: 100% !important; flex: 1 1 100% !important; text-align: center !important; }
  body.vf-home footer.bbs-footer .mb-3 { margin-bottom: 0 !important; }
  body.vf-home footer.bbs-footer .py-4 { padding: 2px 0 !important; }
  body.vf-home footer.bbs-footer .gy-4 { --bs-gutter-y: 0; }

  /* ── 0.5 主体板：padding 压薄，geo 一句话视觉隐藏（保留源码供引擎摘引） ── */
  body.vf-home .au-main { padding-top: 8px !important; padding-bottom: 8px !important; }
  body.vf-home .geo-site-intro {
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
  }

  /* ── 1. Hero：17vh 紧凑横幅 ── */
  body.vf-home .hero-video-wrap {
    min-height: 0;
    height: 17vh;
    max-height: 210px;
    flex-shrink: 0;
  }
  body.vf-home .hero-brand,
  body.vf-home .hero-meta,
  body.vf-home .hero-logo { display: none !important; }
  body.vf-home .hero-rotator .hero-rot-item:not(.is-active) { display: none !important; }
  body.vf-home .hero-slide-title { font-size: clamp(17px, 1.9vw, 26px) !important; margin: 2px 0 !important; }
  body.vf-home .hero-slide-title em { font-size: .6em !important; }
  body.vf-home .hero-kicker { font-size: 10px !important; padding: 2px 10px !important; }
  body.vf-home .hero-subtitle { font-size: 11px !important; margin: 3px 0 !important; }
  body.vf-home .hero-actions { margin-top: 6px !important; }
  body.vf-home .hero-actions .btn { padding: 5px 16px !important; font-size: 12px !important; }
  body.vf-home .hero-content { padding-top: 8px !important; }

  /* ── 2. 客服公示 / 公告跑马灯：隐藏（公告并入板块广场头部可见性） ── */
  body.vf-home .cs-notice-section { height: 0 !important; margin: 0 !important; overflow: hidden; }
  body.vf-home .bbs-card.py-2 { display: none !important; }

  /* ── 3. 间距总压 ── */
  body.vf-home #forum-content { padding-top: 4px !important; }
  body.vf-home .mb-4 { margin-bottom: 8px !important; }
  body.vf-home .mt-4 { margin-top: 8px !important; }
  body.vf-home .mb-5 { margin-bottom: 8px !important; }
  body.vf-home .mt-5 { margin-top: 8px !important; }
  body.vf-home .mb-3 { margin-bottom: 5px !important; }
  body.vf-home .section-head { margin-bottom: 5px !important; }

  /* ── 4. 数据带：单行薄片 ── */
  body.vf-home .bbs-card.mb-4.mt-4 { padding: 2px 0 !important; }
  body.vf-home .bbs-card.mb-4.mt-4 .flex-fill { padding: 4px 8px !important; min-width: 64px !important; }
  body.vf-home .bbs-card.mb-4.mt-4 .stat-number { font-size: 15px !important; line-height: 1.1 !important; margin-top: 0 !important; }
  body.vf-home .bbs-card.mb-4.mt-4 .stat-label { font-size: 9px !important; }
  body.vf-home .bbs-card.mb-4.mt-4 svg { width: 11px; height: 11px; }

  /* ── 5. 板块广场：卡片定高一行 6 张 ── */
  body.vf-home .plaza-grid {
    gap: 8px !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  body.vf-home .plaza-card {
    height: 112px !important;
    min-height: 0 !important;
    max-height: 112px !important;
    aspect-ratio: auto !important;
  }
  body.vf-home .plaza-grid .plaza-card:nth-child(n+7) { display: none !important; }
  body.vf-home .plaza-card__body { padding: 7px 12px 5px !important; }
  body.vf-home .plaza-card__name { font-size: 13px !important; }
  body.vf-home .plaza-card__desc {
    font-size: 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── 6. 主区：修复 flex 换行（滚动条元凶）+ 紧凑 ── */
  body.vf-home .row.g-4 {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: flex-start;
  }
  body.vf-home .row.g-4 > .col-lg-8 { width: 66%; flex: 1 1 66%; min-width: 0; }
  body.vf-home .row.g-4 > .col-lg-4 { width: 34%; flex: 1 1 34%; min-width: 0; }
  body.vf-home .su-tabrail { display: none !important; } /* 板块筛选与广场重复 */
  body.vf-home .col-lg-8 .section-head { display: none !important; } /* 排序行收起（导航栏已有热门/精华入口） */
  body.vf-home .topic-card { padding: 6px 12px !important; margin-bottom: 4px !important; }
  body.vf-home .topic-card .topic-excerpt,
  body.vf-home .topic-card .topic-images,
  body.vf-home .topic-card .img-wrapper,
  body.vf-home .topic-card .topic-foot { display: none !important; }
  body.vf-home .topic-card .topic-title { font-size: 13px !important; margin: 0 !important; }
  body.vf-home .topic-card .avatar-md { width: 26px; height: 26px; }
  body.vf-home .topic-card .d-flex.gap-3 { gap: 8px !important; }
  body.vf-home .topic-card:nth-of-type(n+4) { display: none !important; }
  body.vf-home .btn.w-100.vf-more { padding: 4px !important; font-size: 12px !important; }
  body.vf-home .col-lg-4 .sidebar-card { padding: 8px 14px !important; margin-bottom: 8px !important; }
  body.vf-home .col-lg-4 .sidebar-card:nth-of-type(n+3) { display: none !important; }
  body.vf-home .col-lg-4 .pz-rec { display: none !important; } /* 推荐 位与帖子列表重复，vf 模式收起 */
  body.vf-home .col-lg-4 .sidebar-card.text-center img { height: 30px !important; width: 30px !important; margin-bottom: 2px !important; }
  body.vf-home .col-lg-4 .sidebar-card.text-center h6 { font-size: 13px !important; margin-bottom: 2px !important; }
  body.vf-home .col-lg-4 .sidebar-card.text-center p.mb-3 { margin-bottom: 3px !important; font-size: 11px !important; }
  body.vf-home .col-lg-4 .sidebar-card.text-center .btn { padding: 4px !important; font-size: 12px !important; }
  body.vf-home .col-lg-4 .sidebar-card.text-center p.mb-0 { display: none !important; }
  body.vf-home .col-lg-4 .pz-rec-item { padding: 4px 0 !important; }
  body.vf-home .col-lg-4 .pz-rec-item:nth-of-type(n+4) { display: none !important; }

  /* ── 7. FAQ：折叠 + 悬浮展开（本体压成一行） ── */
  body.vf-home details.vf-faq { position: relative; padding: 2px 16px !important; }
  body.vf-home details.vf-faq > summary {
    list-style: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-ink);
    padding: 3px 0;
  }
  body.vf-home details.vf-faq > summary::-webkit-details-marker { display: none; }
  body.vf-home details.vf-faq > summary::after { content: ' ▾'; color: var(--lx-mute); font-size: 11px; }
  body.vf-home details.vf-faq[open] > summary::after { content: ' ▴'; }
  body.vf-home details.vf-faq[open] .faq-list {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 2px);
    z-index: 60;
    background: var(--au-surface-solid, #17141f);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 2px 16px 10px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    max-height: 72vh;
    overflow: auto;
    scrollbar-width: thin;
  }

  /* ── 8. 浮层杂项 ── */
  body.vf-home .cookie-consent { display: none !important; }
  body.vf-home .lx-backtop { display: none !important; }
  body.vf-home .au-rail { scrollbar-width: none; }
  body.vf-home .au-rail::-webkit-scrollbar { display: none; }
}

/* ── 全局：语言下拉等浮层一律无滚动条（网格化在 aurora.css） ── */
.lang-menu::-webkit-scrollbar { display: none; }
