/**
 * 视口适配模式（viewport-fit）
 * ---------------------------------------------------------------------------
 * 当前职责（均为「细屏/小屏」增量修正，不影响桌面常规版面）：
 *   1. Hero 内容回流（≤575.98px）：视频仍绝对铺底，.hero-content 回归文档流，
 *      内容自然撑高容器，杜绝按钮组被 overflow:hidden 裁切；
 *   2. 面包屑末级收敛（帖子详情页小屏，避免与正下方 H1 重复错位）；
 *   3. 客服公告圆形印章防长译词溢出（letter-spacing / 换行 / 非中文降字号）。
 *
 * 桌面端（≥992px）不再做任何压缩：首页与其它页一样走正常文档流 + 自然滚动。
 * 历史教训见下方「已下线」复盘——用 height + overflow:hidden 去"适配"一屏，
 * 必然在大内容量页面裁掉内容，属于内容丢失级错乱。
 */
/* ===========================================================================
   【已下线】首页「一屏紧凑模式」(vf-home) — 2026-10-27 布局坍塌事故复盘
   ---------------------------------------------------------------------------
   本处原有一段 @media (min-width:992px) and (min-height:880px) 的重度压缩层：
     · Hero 定高 17vh（1440×900 实测仅 153px），内容实高 154px 反超容器，
       配合 overflow:hidden 直接把「Play / Video Gallery」按钮切掉一半；
     · 板块广场卡片 height/min-height/max-height 全部锁死 112px 并关掉
       aspect-ratio，卡片名与描述被截断成一两行碎片；
     · 页脚压成单行，隐藏品牌列与导航列；
     · 帖子只留前 3 条、侧栏只留前 2 张、公告与 FAQ 全部隐藏。
   触发条件偏偏是「桌面 + 视口高 ≥880px」，即 1440×900 / 1920×1080 这类
   最常见的桌面分辨率全部命中；1366×768 因高度不足 880 反而正常，
   表现为「同一站点有人正常、有人整个页面挤成一团」。
   现整块移除，首页回到正常文档流与常规间距。
   铁律（沿用）：任何「适配」都不得用 height + overflow:hidden 压内容，
   只允许 min-height 撑满 + 自然滚动。今后勿再引入同类压缩层。
   ========================================================================== */

/* ===========================================================================
   导航栏防挤压（2026-10-27）
   ---------------------------------------------------------------------------
   现象：1024px 下「S30-秘境女神」被逐字竖排成 4 行、「Hot Ranking」折两行、
        「登录 / 注册」被顶出视口右侧（实测横向溢出 54px）、Logo 掉到第二行。
   根因：992–1199 区间仍在展开完整导航（navbar-expand-lg）。该区间需容纳
        7 个链接 + 搜索框 + 语言/主题双图标 + CTA 共约 1078px，而可用宽度仅
        1024px；.navbar-nav 的 li 默认可收缩（flex-shrink:1），被压到
        min-content 后中文/CJK 按字断行，英文标题折行，CTA 无处可去溢出容器。
   修法：① 展开断点上移到 xl(1200) —— 992–1199 走汉堡折叠菜单（与 <992 同一套
        已验证的交互）；② 加护栏，使 nav 项不参与收缩、链接文字永不换行，
        即使将来再加菜单项也不会重演竖排。
   ========================================================================== */
.bbs-navbar .navbar-nav > .nav-item { flex: 0 0 auto; }
.bbs-navbar .navbar-nav .nav-link { white-space: nowrap; }
.bbs-navbar .navbar-collapse { min-width: 0; }
.bbs-navbar .navbar-toggler { flex: 0 0 auto; }
.lx-nav-row > .d-flex.align-items-center { flex: 0 0 auto; min-width: 0; }
.lx-nav-row .btn-icon { flex: 0 0 auto; white-space: nowrap; }

/* ── 全局：语言下拉等浮层一律无滚动条（网格化在 aurora.css） ── */
.lang-menu::-webkit-scrollbar { display: none; }

/* ===========================================================================
   移动端细屏适配（2026-10-27 · 全站生效，不限首页）
   =========================================================================== */

/* ── 1. Hero：内容回流，杜绝溢出/裁切 ──
   小屏 hero 高度 56vh（约 370px）装不下 logo + 标题 + 副标题 + 双按钮，
   绝对定位的 .hero-content 垂直居中后整体溢出错出容器外被 overflow:hidden 裁掉
   （实测按钮组底边 606px > hero 底边 494px）。改为文档流：视频仍绝对铺底，
   内容自然撑高容器，文案再长也不会越界。 */
@media (max-width: 575.98px) {
    .hero-video-wrap {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    .hero-content {
        position: relative !important;
        inset: auto !important;
        padding: 18px 14px 16px !important;
    }
    .hero-logo { width: 44px !important; height: 44px !important; }
    .hero-carousel .hero-brand,
    .hero-brand { margin-bottom: 10px !important; }
    .hero-carousel .hero-kicker,
    .hero-content .hero-kicker {
        font-size: 10px !important;
        letter-spacing: .18em !important;
        padding: 3px 10px !important;
        margin-bottom: .45rem !important;
    }
    .hero-carousel .hero-slide-title,
    .hero-content .hero-slide-title {
        font-size: clamp(1.05rem, 5.4vw, 1.35rem) !important;
        line-height: 1.28 !important;
        margin: 4px 0 !important;
    }
    .hero-carousel .hero-rot-item .hero-subtitle,
    .hero-content .hero-subtitle {
        font-size: 12px !important;
        line-height: 1.55 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-carousel .hero-rotator { margin-bottom: 10px !important; }
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 320px !important;
        gap: 8px !important;
        margin-top: 2px !important;
    }
    .hero-actions .btn { padding: 9px 18px !important; font-size: 13px !important; }
    /* Hero 数据带（60s / 250 积分 / 0 下载）：小屏缩字号 + 放开 min-width，防文字撑破单元格 */
    .hero-rot-item .hero-meta { gap: 8px 14px !important; }
    .hero-rot-item .hero-meta > div { min-width: 0 !important; flex: 1 1 auto !important; padding: 0 8px !important; }
    .hero-rot-item .hero-meta strong { font-size: 14px !important; letter-spacing: .02em !important; }
    .hero-rot-item .hero-meta span { font-size: 9.5px !important; letter-spacing: .06em !important; }
}

/* ── 2. 面包屑：小屏隐藏末级长标题 ──
   帖子详情页末级是帖子标题（truncate 30 字），移动端换行后与正下方 H1 视觉重复且错位。
   仅作用于帖子详情（.breadcrumb-topic），板块/商城面包屑末级是页名，保留。 */
@media (max-width: 575.98px) {
    .breadcrumb-topic > :nth-last-child(1),
    .breadcrumb-topic > :nth-last-child(2) { display: none; }
}

/* ── 3. 客服公告圆形印章：长译词溢出（2026-10-27） ──
   .cs-seal-text 原为 letter-spacing:.3em + CJK 两字设计；英文 "Official" 等
   长词会撑出圆印并与右侧正文重叠（430/390 实测重叠）。收窄字距并允许断行，
   非中文语言再降一档字号。 */
.cs-notice-seal { overflow: hidden; }
.cs-seal-text {
    max-width: 86%;
    text-align: center;
    line-height: 1.15;
    letter-spacing: .06em;
    text-indent: .06em;
    overflow-wrap: anywhere;
}
html:not([lang^="zh"]) .cs-seal-text {
    font-size: 10px;
    letter-spacing: 0;
    text-indent: 0;
}
