/* ============================================================================
 * 全站导航统一样式（2026-11-11）
 * ----------------------------------------------------------------------------
 * 客户要求：
 *   ① 所有导航项鼠标经过时，文字底部出现红色条，且红条与文字左右对齐
 *   ② 点击后（当前页）红条保留，其它项的红条消失
 *   ③ 导航做顶部悬浮
 *
 * 为什么单独一个文件：
 *   站内有 6 套页头（首页 / 关于 / 产品 / 新闻 / 新闻党建 / 会员·留言·联系），
 *   各自的 CSS 作用域是 .yf-home / .yf-about / .yf-prod / .yf-news / .yf-dj / .yf-mem。
 *   如果按作用域各写一份，改一次要动 6 个文件，还必然出现「某一页忘了改」。
 *   所以导航链接在 PHP 侧统一打上 .yf-nav-link（无作用域前缀），
 *   样式只在这里写一次，6 个布局各引一行即可。
 *
 * 红条对齐原理：导航用 &nbsp; 分隔（不是 flex gap），<a> 上没有左右 padding，
 *   所以 a 的盒子宽度 ≡ 文字宽度，::after 用 left:0/right:0 就正好和文字左右对齐。
 *   若以后给 a 加左右 padding，红条会跟着变宽 —— 那时要把 left/right 改成等值的负偏移。
 * ========================================================================== */

/* ── 导航项：红条基座 ── */
.yf-nav-link {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.yf-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /* 用 em 跟着字号走：各页导航字号不同（15 / 16 / 18px），写 px 会有高有低 */
    bottom: -0.46em;
    height: 2px;
    background-color: #db2131;
    /* 从中间向两侧展开；scaleX 而不是 width，不触发重排 */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
    /* 红条不该挡点击（否则鼠标划过条时 hover 会闪） */
    pointer-events: none;
}

.yf-nav-link:hover::after,
.yf-nav-link.is-current::after {
    transform: scaleX(1);
}

/* 减少动态效果时不做展开动画，直接显示 */
@media (prefers-reduced-motion: reduce) {
    .yf-nav-link::after { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   顶部悬浮条
   --------------------------------------------------------------------------
   不复用页头那一行：它在 banner 内部，banner 有背景图与定高，
   position:sticky 只能粘在 banner 范围内，滚出 banner 就失效。
   这里由 yufo-nav.js 用「页头 logo + 导航链接」新建一条独立 fixed 条，
   滚过页头后滑入 —— 版式与页头无关，6 个页面共用。

   高度写 62px 固定值（不用 vw）：悬浮条是交互控件，缩到手机上不能只剩 20px。
   ══════════════════════════════════════════════════════════════════════════ */
.yf-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    height: 62px;
    /* 客户 2026-11-11：背景「与关于我们页导航一致」。
       关于页的导航行本身是透明的，浮在 banner 大图顶部，那片区域是图片自带的灰带。
       所以这里不是随手取一个灰值，而是把那张图（1920×1080）导航行所在高度
       （y≈6~45px）横向 6 个点取样，按取样结果还原成同一条横向渐变：
         6% #a6a6a9 │ 20% #a2a2a7 │ 40% #9fa1a6 │ 60% #92969e │ 80% #858b99 │ 94% #9599a1
       纵向取样（y=6/20/31/45）几乎无变化，所以只做横向。
       平均色 #999ca3，同时留作 background-color 兜底。 */
    /* 客户 2026-11-11：底色与关于页导航一致（取自 banner 图那片灰带），但要做成
       「有透明度的毛玻璃」——实色压在内容上像贴了一条灰胶带，滚动时很闷。
       透明度取 .80：再透（.6 以下）背后浅色内容会顶上来，条上的字发虚；
       再实（.9 以上）又回到实色观感。配合 blur 才有「磨砂」而非「半透明色块」。
       不支持 backdrop-filter 的浏览器由下面的 @supports 兜底成接近实色。 */
    background-color: rgba(153, 156, 163, .80);
    background-image: linear-gradient(90deg,
        rgba(166, 166, 169, .80) 0%,
        rgba(162, 162, 167, .80) 20%,
        rgba(159, 161, 166, .80) 40%,
        rgba(146, 150, 158, .80) 60%,
        rgba(133, 139, 153, .80) 80%,
        rgba(149, 153, 161, .80) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    /* 关于页那一行没有分割线，所以去掉原来那条白色顶边，只留投影保证悬浮层级 */
    box-shadow: 0 8px 24px rgba(38, 42, 50, .16);
    transform: translateY(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), box-shadow .28s ease;
    will-change: transform;
}

.yf-navbar.is-on { transform: translateY(0); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .yf-navbar {
        background-color: rgba(153, 156, 163, .97);
        background-image: none;
    }
}

.yf-navbar__inner {
    width: 72.87vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.2vw;
    min-width: 0;
    /* 客户 2026-11-11：整体左移 50px。
       用 relative 位移而不是改 margin —— margin auto 居中的算式会被打破，
       而相对定位只挪绘制位置、不改变它在 flex 行里的占位，右侧留白也不受影响。 */
    position: relative;
    left: -50px;
}

.yf-navbar__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.yf-navbar__logo img {
    display: block;
    height: 34px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.yf-navbar__nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2vw;
    min-width: 0;
}

/* 条底是 #999ca3 灰，白字对比只有 2.5:1（客户已反馈「看不清」），
   改深色字 6.4:1；当前页用品牌红 + 红条，比白色更醒目。 */
.yf-navbar__nav .yf-nav-link {
    color: #262b33;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.yf-navbar__nav .yf-nav-link:hover,
.yf-navbar__nav .yf-nav-link.is-current { color: #db2131; }

/* 红条在悬浮条里稍微收紧一点，避免贴到条底 */
.yf-navbar__nav .yf-nav-link::after { bottom: -0.42em; }

/* ── 账号区 / 语言切换（从页头整段克隆过来）──────────────────────────────
   克隆节点的 class 是各页自己的（text_2 / image_2 / section_1…），
   在悬浮条里作用域不匹配、拿不到原样式 —— 所以这里统一重置结构，
   配色按「灰底 + 深字」重写（白字在 #999ca3 上只有 2.5:1，客户已反馈看不清）。
   已登录的账号胶囊是唯一例外：保留白底深字，它在 hero 深图和灰底上都清晰。 */
.yf-navbar__extras {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
}

/* 各页给这些节点写过固定宽高/外边距/背景，必须清零。
   ★ 还要强制 display:flex —— 克隆下来的是 <div class="text_2 flex-row">，
     .flex-row 是各页工具类（带 .yf-root 等前缀），在悬浮条里匹配不上，
     退化成一堆行内元素会把「登录 | 注册」挤成竖排。
   ★ 用 :not() 排除账号胶囊：它的白底/内边距由下面单独给。 */
.yf-navbar__extras > *:not(.yf-auth-entry) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    /* gap 收到 2px：客户要求「两个按钮靠近中间竖线」。这条 gap 是
       登录 / 竖线 / 注册 三者的共同间距，加上竖线自身 2px margin 后总距约 4px。 */
    gap: 2px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    flex: 0 0 auto;
    white-space: nowrap !important;
}

.yf-navbar__extras span,
.yf-navbar__extras a,
.yf-navbar__extras button {
    color: #262b33;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color .2s ease;
}

.yf-navbar__extras span:hover,
.yf-navbar__extras a:hover,
.yf-navbar__extras button:hover { color: #db2131; }

/* 地球图标等切图：收小到与 15px 文字齐平（原 class 带各页 vw 尺寸，必须 !important） */
.yf-navbar__extras img {
    height: 14px !important;
    width: auto !important;
    max-width: 40px !important;
    display: block;
}

/* 分隔竖线（登录 | 注册）：CSS 画，不再用可能 404 的切图 */
.yf-navbar__extras .yf-auth-sep {
    display: inline-block !important;
    width: 1px !important;
    height: 14px !important;
    margin: 0 2px !important;
    padding: 0 !important;
    background-color: #262b33 !important;
    opacity: .32;
    border: 0 !important;
}

/* ── 已登录：白底胶囊 + 头像 + 用户名 + ⌄（客户 2026-11-11）──
   之前这里是白字，压在灰底上几乎看不见；改成白胶囊深字，
   与 hero（深图）、悬浮条灰底、内页浅底都能拉开对比。 */
.yf-navbar__extras .yf-auth-entry {
    display: inline-flex !important;
    align-items: center;
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* 悬浮条里同样不要白底（客户 2026-11-11），文字用品牌红，在 #999ca3 上依然能读 */
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    position: relative;
}

/* 触发区（头像 / 手机号 / 箭头）用品牌红；下拉菜单内部仍是深色 ——
   菜单是白底浮层，红字配白底会显得吵，也和站内其它菜单不一致 */
.yf-navbar .yf-auth-entry { color: #db2131; }
.yf-navbar .yf-auth-entry__menu,
.yf-navbar .yf-auth-entry__menu * { color: #3a3c43; }

/* 悬浮条里语言区不需要额外左边距（.yf-navbar__extras 已有 gap:10px） */
.yf-navbar .yf-lang { margin-left: 0; }

/* 未登录的「登录 / 注册」：客户要求悬浮与否都是**白底黑字**，
   所以在悬浮条里也要显式给白底（页头那条规则同样是白底，这里只是防止被页面配色覆盖）。 */
.yf-navbar .yf-auth-link {
    background-color: #fff !important;
    color: #262b33 !important;
    padding: 6px 10px !important;
}

.yf-navbar .yf-auth-link:hover { color: #db2131 !important; }

/* 注册与登录同款白底黑字（不再用红色实心） */
.yf-navbar .yf-auth-link[data-yf-auth-open="register"],
.yf-navbar .yf-auth-link[data-yf-auth-open="register"]:hover {
    background-color: #fff !important;
    color: #262b33 !important;
}

.yf-navbar .yf-auth-link[data-yf-auth-open="register"]:hover { color: #db2131 !important; }

.yf-navbar .yf-auth-entry__trigger { cursor: pointer; }
.yf-navbar .yf-auth-entry__trigger:hover { color: #db2131; }

.yf-navbar .yf-auth-entry__name {
    font-size: 13px;
    font-weight: 600;
    max-width: 96px;
}

/* ★★ 手机号在悬浮条里必须是品牌红。
   坑：上面 `.yf-navbar__extras span { color:#262b33 }` 是**直接命中**这个 span 的规则
   （0,1,1），而 `.yf-navbar .yf-auth-entry { color:#db2131 }`（0,2,0）只是给容器，
   只能被**继承** —— 直接命中的规则永远赢，所以悬浮条里的号一直是深灰，不是红。
   用「.yf-navbar .yf-auth-entry__trigger span」(0,2,1) 把这个 span 自己点上色。 */
.yf-navbar .yf-auth-entry__trigger,
.yf-navbar .yf-auth-entry__trigger span,
.yf-navbar .yf-auth-entry__trigger i { color: #db2131; }

.yf-navbar .yf-auth-entry__trigger:hover,
.yf-navbar .yf-auth-entry__trigger:hover span,
.yf-navbar .yf-auth-entry__trigger:hover i { color: #b81b28; }

/* 头像要盖过上面 .yf-navbar__extras img 的 14px */
.yf-navbar .yf-auth-entry__avatar {
    width: 24px !important;
    height: 24px !important;
    max-width: none !important;
    border-radius: 50% !important;
    background-color: transparent;
}

/* ★★ 彩色小人在悬浮条里消失的原因：
   默认头像是画在 CSS 背景里的内联 SVG，而上面那条 `.yf-navbar__extras span`
   带 `background: none`（简写，会把 background-image 一起清空）——
   克隆进来的头像就变成一个透明方块，看起来「没有图标」。
   这里把 background 整个重写回来（不能只写 background-image，简写已把它置 none）。 */
.yf-navbar .yf-auth-entry__avatar--default {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffc46b'/%3E%3Cstop offset='1' stop-color='%23f2864a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='48' height='48' rx='24' fill='url(%23a)'/%3E%3Ccircle cx='24' cy='18.6' r='7.2' fill='%23fff6ea'/%3E%3Cpath d='M37.2 40.4a13.2 13.2 0 0 0-26.4 0z' fill='%23fff6ea'/%3E%3C/svg%3E") center / cover no-repeat !important;
}

.yf-navbar .yf-auth-entry__menu { top: calc(100% + 8px); right: 0; }

/* 下拉项不受 .yf-navbar__extras 那条 15px 字号影响 */
.yf-navbar .yf-auth-entry__item,
.yf-navbar .yf-auth-entry__item span {
    font-size: 13px;
    font-weight: 500;
    color: #3a3c43 !important;
}

.yf-navbar .yf-auth-entry__item:hover,
.yf-navbar .yf-auth-entry__item:hover span { color: #db2131 !important; }

.yf-navbar .yf-auth-entry__item--out:hover,
.yf-navbar .yf-auth-entry__item--out:hover span { color: #d92d20 !important; }

@media (max-width: 1100px) {
    .yf-navbar__inner {
        width: auto;
        padding: 0 18px;
        /* 桌面那条「整体左移 50px」在窄屏必须撤销：
           这里 inner 已改成 width:auto（占满整条），再左移 50px 会直接把内容推出屏幕左边。 */
        left: 0;
    }
    .yf-navbar__nav { gap: 1.4vw; }
    .yf-navbar__nav .yf-nav-link { font-size: 14px; }
    .yf-navbar__extras span,
    .yf-navbar__extras a,
    .yf-navbar__extras button { font-size: 14px; }
}

@media (max-width: 900px) {
    .yf-navbar { height: 54px; }
    .yf-navbar__inner { gap: 10px; }
    .yf-navbar__logo img { height: 26px; max-width: 150px; }
    .yf-navbar__nav {
        gap: 13px;
        justify-content: flex-start;
        /* 手机上一行放不下，横向可滑，不换行撑高 */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .yf-navbar__nav::-webkit-scrollbar { display: none; }
    .yf-navbar__nav .yf-nav-link { font-size: 13px; }

    /* 手机上把语言 / 登录收窄，优先保证导航可见 */
    .yf-navbar__extras { gap: 7px; }
    .yf-navbar__extras span,
    .yf-navbar__extras a,
    .yf-navbar__extras button { font-size: 13px; }
    .yf-navbar__extras img { height: 12px; max-width: 28px; }
    .yf-navbar__extras .yf-auth-entry { padding: 2px 6px 2px 3px !important; }
    /* 客户要求「右边显示用户名」——手机上不再隐藏，只收窄，超长省略 */
    .yf-navbar .yf-auth-entry__name { max-width: 62px; font-size: 12px; }
    .yf-navbar .yf-auth-entry__avatar { width: 21px !important; height: 21px !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   语言切换下拉（2026-11-11 客户要求「下拉做完整」）
   --------------------------------------------------------------------------
   页头默认白字（6 个页头的 banner 都是深色图），悬浮条里由
   .yf-navbar__extras button 那条规则覆盖成深色，所以这里只写 #fff。
   图标用内联 SVG（地球）+ CSS 边框三角（箭头），不再依赖三张切图
   —— 原来那三张里有两张在主题里根本不存在，缺图就是一个破图竖条。
   ══════════════════════════════════════════════════════════════════════════ */
.yf-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* ★ 客户 2026-11-11：「登录注册和中英文切换靠太近」。
       两者在页头是兄弟节点，各自没有外边距，视觉上粘在一起。
       这里给语言区留出与按钮之间的呼吸位（悬浮条里有 gap，另行清零）。 */
    margin-left: clamp(16px, 1.35vw, 26px);
}

.yf-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, .34vw, 6px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: clamp(12px, .83vw, 15px);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .18s ease;
}

.yf-lang__trigger:hover { opacity: .78; }

.yf-lang__trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .75);
    outline-offset: 3px;
    border-radius: 3px;
}

.yf-lang__globe {
    flex: 0 0 auto;
    width: clamp(12px, .95vw, 16px);
    height: clamp(12px, .95vw, 16px);
    opacity: .92;
}

.yf-lang__label { font-weight: 500; }

.yf-lang__caret {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-left: 1px;
    border-right: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .22s ease;
}

.yf-lang.is-open .yf-lang__caret {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.yf-lang__menu {
    position: absolute;
    /* ★ 客户要求「下拉和中文要对齐」：
       原来 right:0 是让菜单右边缘贴着触发按钮的右边缘（含箭头），
       视觉上菜单整体偏右，跟「中文」两个字对不上。
       改成左边缘对齐到 **文字** 起点 = 地球图标宽 + 图标与文字的间距
       （触发按钮 padding 为 0，所以按钮左边缘就是图标左边缘）。 */
    left: calc(clamp(12px, .95vw, 16px) + clamp(4px, .34vw, 6px));
    right: auto;
    top: calc(100% + 10px);
    z-index: 95;
    display: flex;
    flex-direction: column;
    /* ★ 客户 2026-11-11：下拉框太长，「跟中文两个字一样宽就行」。
       原来 min-width:112px，比「中文」宽出三倍多。
       不写死宽度，交给内容撑开（绝对定位 + width:auto 就是收缩到内容宽），
       再用 2.6em 兜底 ≈ 两字宽 + 内边距，中英文两种状态宽度基本一致。 */
    min-width: 2.6em;
    padding: 3px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(20, 26, 38, .18);
}

.yf-lang__menu[hidden] { display: none; }

.yf-lang__item {
    display: flex;
    align-items: center;
    /* 菜单项不再左右各 12px（那会把窄菜单重新撑宽），文字居中与触发按钮一致 */
    padding: 7px 5px;
    border-radius: 6px;
    justify-content: center;
    color: #2b3445 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}

.yf-lang__item:hover {
    background-color: #f4f6f9;
    color: #db2131 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   会员资料下载弹窗（全站组件 · 2026-11-11 第三轮）
   --------------------------------------------------------------------------
   原先写在 yufo-home.css 且带 .yf-root 前缀 —— 只有首页能生效。
   现在产品中心「资料下载」tab 也用同一套下载卡（客户要求两处展现一致），
   所以把它挪到这里（7 个布局都会引入本文件），并且**不带作用域前缀**。

   ★ 选择器统一写成「.yf-dlock .yf-dlock__btn」这种两段式：
     各页都有 `button { border:0; padding:0; background:transparent }` 这类重置
     （.yf-prod button / .yf-root button，特异性 0,1,1），
     单类选择器 (0,1,0) 压不过它们，按钮边框和底色会被清掉。
   ══════════════════════════════════════════════════════════════════════════ */
.yf-dlock {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
}

.yf-dlock.is-on {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yf-dlock .yf-dlock__mask {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 20, 26, .58);
}

.yf-dlock .yf-dlock__box {
    position: relative;
    box-sizing: border-box;
    width: clamp(300px, 25vw, 400px);
    padding: 34px 30px 26px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .26);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.yf-dlock .yf-dlock__x {
    position: absolute;
    right: 8px;
    top: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: #9aa3b2;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.yf-dlock .yf-dlock__x:hover { color: #2b3445; }

.yf-dlock .yf-dlock__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-color: #fdecee;
    color: #db2131;
}

.yf-dlock .yf-dlock__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1b1f27;
}

.yf-dlock .yf-dlock__desc {
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7482;
}

.yf-dlock .yf-dlock__actions {
    display: flex;
    gap: 10px;
}

.yf-dlock .yf-dlock__btn {
    flex: 1 1 0;
    box-sizing: border-box;
    height: 42px;
    padding: 0;
    border: 1px solid #dfe3ea;
    border-radius: 21px;
    background-color: #fff;
    color: #3a3c43;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.yf-dlock .yf-dlock__btn:hover {
    border-color: #c9ced8;
    background-color: #f7f8fa;
}

.yf-dlock .yf-dlock__btn.is-primary {
    border-color: #db2131;
    background-color: #db2131;
    color: #fff;
}

.yf-dlock .yf-dlock__btn.is-primary:hover {
    border-color: #c01a29;
    background-color: #c01a29;
}

/* 英文站「联系我们」用的是 <a>（会员下载拦截弹窗）：a 默认 inline + 带下划线，
   这里补齐按钮形态，和 <button> 完全一致 */
.yf-dlock a.yf-dlock__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 弹窗打开时锁住背景滚动（关闭即恢复，不用手动还原 body 原值） */
body.yf-dlock-open { overflow: hidden; }

@media (max-width: 640px) {
    .yf-dlock .yf-dlock__box { width: calc(100vw - 36px); padding: 28px 20px 22px; }
    .yf-dlock .yf-dlock__title { font-size: 17px; }
}
