@charset "UTF-8";
/* ==========================================================================
   RyCMS 双语企业版 · 默认模板包「企业通用（蓝）」
   templates/default/assets/css/theme.css
   --------------------------------------------------------------------------
   加载顺序：_shared/assets/css/base.css（结构与排版） → 本文件（视觉与配色）
   本文件职责：
     1) 补齐一整套设计令牌（色阶 / 文字 / 表面 / 字体 / 圆角 / 阴影 / 间距 / 动效）；
     2) 为 templates/_shared/components/*.php 真实输出的类名提供成品视觉；
     3) 演示数据没有真实图片：所有图区都用「主色渐变 + 网格纹理 + 内联 SVG 占位」
        兜底，空图时版面依然成立，可以直接拿去做演示站；
     4) 移动端真正可用：1024 / 768 / 480 三档断点 + 导航抽屉。
   约定：
     · 颜色一律 var(--token, 兜底值)，绝不写死单值；
     · 后台「主题配色」由 Theme::cssVariables() 注入 :root，本文件不覆盖那 10 个
       注入变量，只在其基础上派生色阶（改后台主色 → 整套色阶跟着变）；
     · 不引用任何外部资源（字体 / 图片 / 图标库），图标一律内联 SVG 或纯 CSS。
   ========================================================================== */

/* ==========================================================================
   0. 设计令牌
   ========================================================================== */

/* 0.1 最后兜底层
   :where() 权重为 0，永远低于 Theme::cssVariables() 与 base.css 的 :root，
   所以后台设置的配色 / 容器宽度一定生效，这里只是「注入缺失」时的保命默认值。 */
:where(html) {
    --ry-primary: #1a6dff;
    --ry-primary-rgb: 26, 109, 255;
    --ry-secondary: #0b2b5b;
    --ry-accent: #ff7a18;
    --ry-text: #1f2937;
    --ry-muted: #6b7280;
    --ry-border: #e5e7eb;
    --ry-bg: #ffffff;
    --ry-bg-soft: #f6f8fc;
    --ry-container: 1200px;
    /* 与注入变量同名的兜底值也必须放在零权重层，否则会盖掉后台配色 */
    --ry-secondary-rgb: 11, 43, 91;
    --ry-accent-rgb: 255, 122, 24;
    /* 同上：`--ry-radius-md` 现在会由 theme.json 的 `radius` 注入（设计 §5.3 C6），
       所以它的默认值也必须留在这一层。本文件的 `:root` 在 <head> 里排在注入
       <style> 之后，同权重后者胜 —— 留在 `:root` 就会把 theme.json 的值吃掉
       （2026-10-02 实测：注入 `--ry-radius-md: 0`，浏览器算出来仍是 10px）。
       第32批起 `-sm/-lg/-xl` 由这一条按 0.6 / 1.4 / 2 派生（见 0.2 的「圆角」段），
       所以这一层不只是"md 的兜底"，而是**整站四档圆角的唯一入口**。 */
    --ry-radius-md: 10px;
}

/* 0.2 派生令牌：色阶由注入的 --ry-primary / --ry-secondary / --ry-accent 派生 */
:root {
    /* —— 主色阶 50~900 —— */
    --ry-primary-50: #eef4ff;
    --ry-primary-100: #dbe7ff;
    --ry-primary-200: #bcd3ff;
    --ry-primary-300: #8db5ff;
    --ry-primary-400: #5a92ff;
    --ry-primary-500: #2f7bff;
    --ry-primary-600: var(--ry-primary, #1a6dff);
    --ry-primary-700: #1557cc;
    --ry-primary-800: #12459f;
    --ry-primary-900: #0d2f6d;

    /* —— 辅助色阶（深色区块 / 页脚 / 大标题底） —— */
    --ry-secondary-50: #eef1f7;
    --ry-secondary-100: #d9e0ec;
    --ry-secondary-200: #b3c1d9;
    --ry-secondary-300: #8499bd;
    --ry-secondary-400: #4e6a99;
    --ry-secondary-500: #26456f;
    --ry-secondary-600: var(--ry-secondary, #0b2b5b);
    /* 深色端刻意「不往纯黑压」。
       原来 700/800/900 是 #123a70 / #0f3263 / #051227 —— 明度只有 14%~8%，
       在多数显示器上就是一块黑，导航条被当成黑色（客户明确不接受黑色）。
       现在统一往蓝色相上收，明度守在 20% 以上，肉眼一眼能认出是深蓝。 */
    --ry-secondary-700: #123a70;
    --ry-secondary-800: #0f3263;
    --ry-secondary-900: #0d2e5c;

    /* —— 强调色阶（价格 / 角标 / 关键 CTA） —— */
    --ry-accent-50: #fff5ed;
    --ry-accent-100: #ffe8d5;
    --ry-accent-200: #ffd0aa;
    --ry-accent-300: #ffb075;
    --ry-accent-400: #ff9440;
    --ry-accent-500: #ff8420;
    --ry-accent-600: var(--ry-accent, #ff7a18);
    --ry-accent-700: #e05f00;
    --ry-accent-800: #b34a00;

    /* —— 语义色 —— */
    --ry-success: #12a150;
    --ry-success-soft: #e8f8ef;
    --ry-warn: #d98b00;
    --ry-warn-soft: #fff7e6;
    --ry-danger: #e5484d;
    --ry-danger-soft: #fdecec;

    /* —— 文字层级 —— */
    --ry-text-strong: #111827;
    --ry-text-soft: #4b5563;
    --ry-text-muted: var(--ry-muted, #6b7280);
    --ry-text-light: #9ca3af;
    --ry-text-invert: #ffffff;
    --ry-text-invert-soft: rgba(255, 255, 255, 0.8);
    --ry-text-invert-muted: rgba(255, 255, 255, 0.6);

    /* —— 表面与描边 —— */
    /*
     * 【C3（第㊻批）】`--ry-surface` 改为**跟着 `--ry-bg` 派生**：
     *   浅色包 `--ry-bg` 就是 `#ffffff`（实测 rywebcms/led/演示站/机械站四个浅色站全是）
     *   ⇒ 计算值仍是 `#ffffff`，**浅色站逐字不变**（判据 = `--tokens` 全表对照，见 _style45/evidence/11/13）。
     *   深色包里 `--ry-bg` 一深，表面自动跟着深——这就是 C3 要的"表面对跟 bg 派生"。
     */
    --ry-surface: var(--ry-bg, #ffffff);
    /*
     * 【C1（第㊼批）】`--ry-heading` —— 把 `--ry-secondary` 的**双重语义**拆开：
     *   原来 `--ry-secondary` 既当"深色块的底色"、又当"标题/强调文字的颜色"；
     *   浅色包里两职同值所以看不出问题，**深色包里二者必然分道扬镳**（底色沿用品牌深蓝，
     *   而文字必须是浅色，否则深蓝字压在深底上看不见）。
     *   浅色 = `var(--ry-secondary)` ⇒ 计算值**逐字不变**（判据 = 全 token 表对照）；
     *   深色块里再把它指到浅色文字（见下面的 `[data-ry-scheme="dark"]` 块）。
     *   全库 290 处 `color: var(--ry-secondary)` 已改为引用本 token
     *   （`background`/`border`/`fill` 等**不动**；`var(--ry-secondary-<色阶>)` 与 `-rgb` 也**不动**）。
     */
    --ry-heading: var(--ry-secondary, #10214b);
    /*
     * `--ry-surface-alt`（第㊺批 C2a 新增）：**次表面**——比 surface 略深一档的浅底，
     * 原来散落 8 处写死的 `#fbfcfe`（列表条纹、内嵌面板这类"在白卡片里再浅一档"的底）。
     * 取值刻意取 `#fbfcfe` 本身 ⇒ 收编之后浅色包的**计算值逐字不变**（可证，见 _style45 的
     * before/after 计算样式对照）；深色包里它会跟着 C3 的派生一起压深。
     * ⚠️ 另外两个近似 tint（`#f7f9fc` / `#f7f9fd`）**没有**收进来：它们与 `#fbfcfe` 各差 ≤4/255，
     *    收编就不能声称"零变化"，留给 C3 与其它层一起处理（登记在 _style45/report.md）。
     */
    --ry-surface-alt: #fbfcfe;
    --ry-surface-sunken: var(--ry-bg-soft, #f6f8fc);
    --ry-border-light: #f0f2f5;
    --ry-border-strong: #d7dce4;
    --ry-border-dark: rgba(255, 255, 255, 0.14);

    /* —— 字体 ——
     *
     * 【字体版权：只"引用"本机字体，绝不内嵌/分发字体文件（2026-09-29 立的规矩）】
     * 客户问得很对：「微软雅黑有版权费吧？」—— 有。微软雅黑是**方正授权给微软**的，
     * 随 Windows 授权给系统使用者，**不等于**允许商业网站把它当作设计字体来用；
     * 国内字体侵权索赔的案例基本都是"把字体用到商业设计里"。
     *
     * 我们这套系统要卖给客户，字体来源必须干净，所以三层策略：
     *   ① **绝不内嵌、绝不分发字体文件**（本系统零第三方依赖，也不引用任何 web font CDN）
     *      —— 这一条最关键：网站只是"建议浏览器优先用某某字体"，字体本身始终来自访客本机；
     *   ② **优先列免费商用的开源黑体**（它们都是 SIL OFL / 免费商用授权）：
     *      HarmonyOS Sans SC（华为）、MiSans（小米）、Source Han Sans SC / Noto Sans SC（Adobe+Google，OFL）、
     *      客户机器上装了哪个就用哪个，观感反而比雅黑更"洋气"；
     *   ③ **系统字体只做兜底**（PingFang SC 苹果本机、Microsoft YaHei 视窗本机、system-ui）——
     *      兜底不是"把雅黑当设计字体"，而是"别让没装开源字体的访客看到衬线字"。
     * 想彻底避开争议的客户，可以在后台把 `--ry-font` 换成自己买了授权的字体名，
     * 或者干脆只留 `system-ui`（用访客系统默认字）—— 包级 CSS 一行就能改。
     */
    --ry-font: "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ry-font-en: "Inter", "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --ry-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

    /* 字号标尺 */
    --ry-fs-12: 12px;
    --ry-fs-13: 13px;
    --ry-fs-14: 14px;
    --ry-fs-15: 15px;
    --ry-fs-16: 16px;
    --ry-fs-18: 18px;
    --ry-fs-20: 20px;
    --ry-fs-24: 24px;
    --ry-fs-30: 30px;
    --ry-fs-38: 38px;
    --ry-fs-48: 48px;

    /* 字重 */
    --ry-fw-400: 400;
    --ry-fw-500: 500;
    --ry-fw-600: 600;
    --ry-fw-700: 700;

    /* 行高 */
    --ry-lh-15: 1.5;
    --ry-lh-17: 1.7;
    --ry-lh-19: 1.9;
    --ry-lh: 1.7;
    --ry-lh-tight: 1.35;

    /* —— 圆角 ——
     *
     * 【一个 radius 值 → 全站圆角统一（2026-10-02 第32批）】
     * `theme.json` 的 `radius` 只注入 `--ry-radius-md` **一个**值（见 `core/Theme.php`
     * 的 `packRadius()`），其余三档**从它派生** —— 改一个值，全站一起变：
     *     sm = md × 0.6      md = 注入值      lg = md × 1.4      xl = md × 2
     *
     * 系数不是随手挑的：出厂默认 `md = 10px` 时正好算出 6 / 14 / 20 —— 与改造前
     * 手写的三档字面量**逐字节相同**，所以"改成派生"这件事本身不改变任何现有页面
     * （改前实测：注入 `--ry-radius-md: 0` 之后 `.ry-card` 仍是 14px、按钮仍是
     * 999px，因为 `-sm/-lg/-xl` 是写死的字面量 —— 那是本次修掉的漂移）。
     * 注入 `0` 时三档也全变 0，不再出现"卡片已经直角、内层还是圆角"。
     *
     * `-pill`（999px 胶囊）**刻意不派生**：徽标/药丸/角标做成直角就不叫胶囊了。
     *
     * `--ry-radius-md` 的默认值在 0.1 的 `:where(html)` 层（见那里的注释）：
     * 它要能被 theme.json 的 `radius` 注入覆盖，因此不能写在 `:root` 里。
     * 这里每一条都写 `var(--ry-radius-md, 10px)` 兜底：万一零权重那一层被整段裁掉
     * （发行定制），派生仍有值，不会让 `border-radius` 变成 IACVT 而悄悄退成 0。
     */
    --ry-radius-sm: calc(var(--ry-radius-md, 10px) * 0.6);
    --ry-radius-lg: calc(var(--ry-radius-md, 10px) * 1.4);
    --ry-radius-xl: calc(var(--ry-radius-md, 10px) * 2);
    --ry-radius-pill: 999px;

    /* —— 阴影：卡片 / hover 抬升 / 浮层 ——
     *
     * 【阴影色与 secondary 同源（设计 §5.3 C7）】这里原来把 `rgba(11, 43, 91, …)`
     * 写死 —— 那是老主色 `#0b2b5b` 的 RGB。后果是换任何主色/辅色以后，
     * 阴影里都留着一层蓝雾（深色预设上尤其刺眼）。
     * 现在走 `var(--ry-secondary-rgb)`（由 Theme::cssVariables() 注入，
     * 零权重兜底在 0.1 的 :where(html) 里），改辅色 → 阴影同色。
     * 中性那一档 `rgba(16, 24, 40, …)` 是纯黑系阴影，本来就与品牌色无关，保持不动。
     *
     * 值不变性：辅色 = `#0b2b5b`（default 包）时 RGB 就是 `11, 43, 91`，
     * 解析结果与改造前逐字节相同；别的辅色才会有可见变化。 */
    --ry-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -14px rgba(var(--ry-secondary-rgb), 0.2);
    --ry-shadow-hover: 0 18px 40px -18px rgba(var(--ry-secondary-rgb), 0.34), 0 4px 12px -6px rgba(16, 24, 40, 0.1);
    --ry-shadow-pop: 0 28px 64px -20px rgba(var(--ry-secondary-rgb), 0.4), 0 6px 18px -8px rgba(16, 24, 40, 0.14);
    --ry-shadow-header: 0 2px 16px -6px rgba(var(--ry-secondary-rgb), 0.18);

    /* —— 间距（4px 基准） —— */
    --ry-space-1: 4px;
    --ry-space-2: 8px;
    --ry-space-3: 12px;
    --ry-space-4: 16px;
    --ry-space-5: 20px;
    --ry-space-6: 24px;
    --ry-space-7: 28px;
    --ry-space-8: 32px;
    --ry-space-9: 36px;
    --ry-space-10: 40px;
    --ry-space-12: 48px;
    --ry-space-16: 64px;
    --ry-space-20: 80px;

    /* —— 过渡 —— */
    --ry-dur: 0.28s;
    --ry-dur-slow: 0.6s;
    --ry-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* —— 区块 / 头部尺寸 —— */
    --ry-sec-py: 88px;
    --ry-header-top-h: 38px;
    --ry-header-h: 88px;
    --ry-header-h-sm: 64px;
    --ry-navbar-h: 52px;
    --ry-gutter: 20px;
    --ry-z-header: 900;
    --ry-z-drawer: 1000;
    --ry-z-backtop: 800;

    /* —— 与 base.css 的令牌对齐（theme.css 后加载，这里把 base 的令牌收编） —— */
    --ry-radius: var(--ry-radius-md, 10px);
    --ry-gap: var(--ry-space-6, 24px);
    --ry-sec-pad: var(--ry-sec-py, 88px);
    --ry-shadow: var(--ry-shadow-card);
}

/* ==========================================================================
   【C3（第㊻批）】深色方案的**派生根**：`[data-ry-scheme="dark"]`
   --------------------------------------------------------------------------
   为什么这样写才安全（这是本批的核心设计，别改回去）：
     · 这个标记由 **C8** 输出（`Ry\Theme::bodySchemeAttr()`，只有**显式声明** `theme.json.scheme: "dark"`
       的包才会拿到 `<body data-ry-scheme="dark">`）——**四个浅色站一个都不会匹配**，
       所以这一整块对它们**结构上不可能生效**（不是"碰巧值一样"，是"选择器根本不命中"）。
     · 它只覆盖**表面/描边/正文文字层级**；`--ry-text-invert*`（"深底上的浅字"）**故意不动**：
       那些本来就是"深色区块上的浅字"，深色方案里依然成立，动它反而会把 hero/banner 弄坏。
     · 亮色 `:root` 里的 `--ry-surface-alt: #fbfcfe` 保持**字面值**（C2a 的零变化依据）；
       深色下才把它派生回 `--ry-bg` —— 也就是"次表面比卡片更靠近页底"。
   -------------------------------------------------------------------------- */
[data-ry-scheme="dark"],
:root:has([data-ry-scheme="dark"]) {
    /* 表面三档：卡片比页底亮一档、次表面回到页底色 */
    --ry-surface: var(--ry-bg-soft, #121a24);
    --ry-surface-alt: var(--ry-bg, #0b0f14);

    /* 标题色：深色下必须跟着文字走浅（C1 拆语义的落点） */
    --ry-heading: var(--ry-text, #e8eef7);

    /* 正文层级：全部从**包自己给的** `--ry-text-rgb` 派生（不写死颜色 ⇒ 换配色不用改这里） */
    --ry-text-strong: var(--ry-text, #e8eef7);
    --ry-text-soft: rgba(var(--ry-text-rgb, 232, 238, 247), 0.82);
    --ry-text-muted: rgba(var(--ry-text-rgb, 232, 238, 247), 0.66);
    --ry-text-light: rgba(var(--ry-text-rgb, 232, 238, 247), 0.52);

    /* 描边：同样由正文色派生，深底上"1px 硬边"比浅底更明显，所以给得比浅色略高一点 */
    --ry-border-light: rgba(var(--ry-text-rgb, 232, 238, 247), 0.14);
}

/* 0.3 组合令牌：渐变与「无图纹理」（纹理只放 background-image，尺寸另配） */
:root {
    --ry-grad-primary: linear-gradient(135deg, var(--ry-primary-500, #2f7bff) 0%, var(--ry-primary-700, #1557cc) 100%);
    --ry-grad-accent: linear-gradient(135deg, var(--ry-accent-400, #ff9440) 0%, var(--ry-accent-600, #ff7a18) 100%);
    --ry-grad-dark: linear-gradient(135deg, var(--ry-secondary-500, #26456f) 0%, var(--ry-secondary-800, #0f3263) 100%);
    --ry-grad-soft: linear-gradient(160deg, var(--ry-primary-50, #eef4ff) 0%, #ffffff 72%);
    --ry-tex-lines: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 9px);
    --ry-tex-grid: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    --ry-tex-grid-size: 44px 44px;
}

/* 0.4 浏览器支持 color-mix 时，色阶自动跟随后台主色（不支持则用上面的静态色阶） */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --ry-primary-50: color-mix(in srgb, var(--ry-primary, #1a6dff) 7%, #ffffff);
        --ry-primary-100: color-mix(in srgb, var(--ry-primary, #1a6dff) 14%, #ffffff);
        --ry-primary-200: color-mix(in srgb, var(--ry-primary, #1a6dff) 28%, #ffffff);
        --ry-primary-300: color-mix(in srgb, var(--ry-primary, #1a6dff) 46%, #ffffff);
        --ry-primary-400: color-mix(in srgb, var(--ry-primary, #1a6dff) 72%, #ffffff);
        --ry-primary-500: color-mix(in srgb, var(--ry-primary, #1a6dff) 86%, #ffffff);
        --ry-primary-700: color-mix(in srgb, var(--ry-primary, #1a6dff) 84%, #000000);
        --ry-primary-800: color-mix(in srgb, var(--ry-primary, #1a6dff) 70%, #000000);
        --ry-primary-900: color-mix(in srgb, var(--ry-primary, #1a6dff) 52%, #000000);

        --ry-secondary-50: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 6%, #ffffff);
        --ry-secondary-100: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 12%, #ffffff);
        --ry-secondary-200: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 24%, #ffffff);
        --ry-secondary-400: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 58%, #ffffff);
        --ry-secondary-500: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 78%, #ffffff);
        --ry-secondary-700: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 88%, var(--ry-primary, #1a6dff));
        --ry-secondary-800: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 92%, var(--ry-primary, #1a6dff));
        --ry-secondary-900: color-mix(in srgb, var(--ry-secondary, #0b2b5b) 96%, var(--ry-primary, #1a6dff));

        --ry-accent-50: color-mix(in srgb, var(--ry-accent, #ff7a18) 8%, #ffffff);
        --ry-accent-100: color-mix(in srgb, var(--ry-accent, #ff7a18) 16%, #ffffff);
        --ry-accent-200: color-mix(in srgb, var(--ry-accent, #ff7a18) 32%, #ffffff);
        --ry-accent-400: color-mix(in srgb, var(--ry-accent, #ff7a18) 80%, #ffffff);
        --ry-accent-500: color-mix(in srgb, var(--ry-accent, #ff7a18) 92%, #ffffff);
        --ry-accent-700: color-mix(in srgb, var(--ry-accent, #ff7a18) 84%, #000000);

        --ry-success-soft: color-mix(in srgb, var(--ry-success) 10%, #ffffff);
        --ry-warn-soft: color-mix(in srgb, var(--ry-warn) 12%, #ffffff);
        --ry-danger-soft: color-mix(in srgb, var(--ry-danger) 10%, #ffffff);
    }
}

/* ==========================================================================
   1. 基础与排版
   ========================================================================== */
body.ry-site {
    font-family: var(--ry-font);
    font-size: var(--ry-fs-15);
    line-height: var(--ry-lh);
    color: var(--ry-text, #1f2937);
    background: var(--ry-bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 英文站用西文字体栈，中文站保持中文字体栈 */
html[lang^="en"] body.ry-site {
    font-family: var(--ry-font-en);
}

body.ry-site.is-nav-open {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    border-style: none;
}

a {
    transition: color var(--ry-dur) var(--ry-ease), background-color var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--ry-fw-600);
    line-height: var(--ry-lh-tight);
    color: var(--ry-text-strong);
}

::selection {
    background: var(--ry-primary-600, #1a6dff);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--ry-primary-500, #2f7bff);
    outline-offset: 2px;
}

/* ==========================================================================
   2. 布局骨架
   ========================================================================== */
.ry-wrap {
    padding-inline: var(--ry-gutter);
}

.ry-main {
    min-height: 40vh;
}

/* 素材详情页的预览区出血到视口两端（100vw），这一页禁掉横向滚动 */
body.ry-site--detail { overflow-x: hidden; }

/* 列表页「主内容 + 侧栏」 */

.ry-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--ry-space-10);
    padding-block: var(--ry-space-10) var(--ry-space-20);
}

/* 侧栏为空（pageLayout 传空 sidebar 或 side=none）：栅格变单列。
   必须写在这条之后 —— 同优先级下后出现的规则才生效（写前面会被 .ry-layout 覆盖）。 */
.ry-layout--side-none { grid-template-columns: minmax(0, 1fr); }

/* 栅格：固定列数，比 base.css 的 auto-fill 更好控制视觉节奏 */
.ry-grid {
    gap: var(--ry-space-6);
}

.ry-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ry-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ry-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 区块 */
.ry-sec {
    padding-block: var(--ry-sec-py);
}

.ry-sec--soft,
.ry-sec--alt {
    background: var(--ry-surface-sunken);
}

/* --------------------------------------------------------------------------
   首页区块：间距收紧 + 隔一个区块一个浅色底
   --------------------------------------------------------------------------
   1) 间距：原来每块上下各 88px，首页七八个区块连起来就是一屏半的空白，
      滚动时感觉「散」。首页单独收到 64px（内页保持 88px 不变）。
   2) 斑马纹：源站是隔一个区块换一次背景色 —— 相邻区块边界清楚，
      用户一眼能看出「换了一节」，比全靠留白分隔更容易读。
      只给「偶数个 .ry-sec」加浅底，第一个区块（紧跟轮播）保持白底，
      这样轮播与它下面的区块不会糊在一起。
   -------------------------------------------------------------------------- */
.ry-site--home {
    --ry-sec-py: 64px;
}

/*
 * 斑马纹需要 .ry-main--alt 这个开关类（由模板按「模板设置 → 首页区块交替底色」加上）。
 *
 * 为什么后来加了开关：这条规则原来是无条件的，看起来"总是对的"，
 * 但它**依赖首页的 <main> 存在** —— 而组件库早期导出的页面文件没有输出
 * <main>（只把组件调用一行行拼起来），于是那张被导出的首页里所有区块都是白底，
 * 斑马纹整个失效，界面上完全看不出原因。（用户实测到了这个现象。）
 * 导出器已经修好会输出 <main>；这里再加一道保险：类名由设置显式给出，
 * 谁都能一眼看出"斑马纹是开着的"。想关掉就去「模板设置」里关。
 *
 * :not(.ry-sec--dark) 是给以后用的：深色区块（统计条那种通栏深色带）
 * 落在偶数位时不该被刷成浅灰 —— 否则浅灰会盖住深色渐变，白字压浅底看不清。
 *
 * 【2026-09-27 真事故，务必看清这条】斑马纹靠的是 `:nth-of-type(even)`，
 * 也就是**数 section 的个数**。原来出厂轮播的根元素是 `<div class="ry-banner">`，
 * 统计条是第 1 个 section（奇数）所以天然不被命中 —— 但商店里的轮播组件
 * **15 个里有 15 个用 `<section>`** 当根元素（表格类是正常的 HTML），
 * 于是车主换成商店轮播后，统计条变成第 2 个 section（偶数）→ 被刷成浅灰 →
 * 深色渐变被盖掉、白字压浅底，整条数据「看不清」（客户实测反馈，已复现）。
 *
 * 结论（写死在规则里，别再靠"它是第几个"）：
 *   ① 自己画底色的区块，**必须**带上 `ry-sec--dark`（深色通栏）或
 *      `ry-sec--alt` / `ry-sec--soft`（浅色通栏）—— 统计条已加 `ry-sec--dark`；
 *   ② 这里再显式排除 `.ry-stats`，双保险（老站点没更新组件文件也不至于翻车）；
 *   ③ 以后写组件：**不要**依赖"我在第几个"，也不要靠奇偶位来上色。
 */
.ry-site--home .ry-main--alt > .ry-sec:nth-of-type(even):not(.ry-sec--dark):not(.ry-sec--alt):not(.ry-sec--soft):not(.ry-stats) {
    background: var(--ry-surface-sunken);
}

/* 统计条自己就是深色渐变通栏，不能再叠浅底；
   其余区块（**包括「我们的优势」**）一律参与斑马纹。
   早期把 advantages 也排除了，结果它永远是白底，夹在上下两个浅灰区块中间更突兀。 */
/* 统计条（.ry-stats）自己就是一条深色渐变通栏，不需要斑马纹。
   注意：**不要**给它写 background: none —— 那会把深色渐变一起清掉，
   白字压在白底上，整条数字就看不清了（这个坑踩过一次）。
   另：它的根元素现在带 `ry-sec--dark`，所以无论排在奇数位还是偶数位都不会被刷浅底。 */

.ry-sec--dark {
    background: var(--ry-grad-dark);
    color: var(--ry-text-invert);
}

.ry-sec--dark .ry-sec__title,
.ry-sec--dark h1,
.ry-sec--dark h2,
.ry-sec--dark h3 {
    color: var(--ry-text-invert);
}

.ry-sec--dark .ry-sec__sub {
    color: var(--ry-text-invert-soft);
}

.ry-sec--dark .ry-sec__title::after {
    background: var(--ry-grad-accent);
}

/* 区块标题区：左文右「查看全部」；--center 时整体居中 */
.ry-sec__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ry-space-6);
    margin-bottom: var(--ry-space-12);
    text-align: left;
}

.ry-sec__head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ry-sec__title {
    position: relative;
    margin: 0;
    font-size: var(--ry-fs-38);
    font-weight: var(--ry-fw-700);
    letter-spacing: -0.01em;
    color: var(--ry-text-strong);
}

/* 标题下的主色短横线 */
.ry-sec__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: var(--ry-space-5);
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-primary);
}

.ry-sec__head--center .ry-sec__title::after {
    margin-inline: auto;
}

.ry-sec__sub {
    margin: var(--ry-space-3) 0 0;
    font-size: var(--ry-fs-16);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
}

/* 「查看全部」 */
.ry-sec__more {
    flex: 0 0 auto;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-500);
    color: var(--ry-primary-600, #1a6dff);
    white-space: nowrap;
}

.ry-sec__head--center .ry-sec__more {
    align-self: center;
    margin-top: var(--ry-space-4);
}

.ry-sec__more:hover {
    color: var(--ry-primary-700, #1557cc);
}

.ry-sec--dark .ry-sec__more {
    color: var(--ry-text-invert);
}

/* 列表页标题与计数 */
.ry-list-head {
    padding-bottom: var(--ry-space-4);
    margin-bottom: var(--ry-space-8);
    border-bottom: 2px solid var(--ry-border, #e5e7eb);
}

.ry-list-head__title {
    font-size: var(--ry-fs-24);
}

.ry-list-head__count {
    font-size: var(--ry-fs-13);
}

/* ==========================================================================
   3. 按钮
   ========================================================================== */
.ry-btn {
    padding: 12px 26px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface);
    color: var(--ry-text);
    font-size: var(--ry-fs-15);
    font-weight: var(--ry-fw-600);
    line-height: 1.2;
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        background-color var(--ry-dur) var(--ry-ease), color var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-btn:hover {
    transform: translateY(-2px);
}

.ry-btn--primary {
    background: var(--ry-grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.75);
}

.ry-btn--primary:hover {
    background: var(--ry-grad-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.9);
    filter: saturate(1.06);
}

.ry-btn--ghost {
    background: transparent;
    border-color: var(--ry-border-strong);
    color: var(--ry-text-soft);
}

.ry-btn--ghost:hover {
    background: var(--ry-primary-50, #eef4ff);
    border-color: var(--ry-primary-400, #5a92ff);
    color: var(--ry-primary-700, #1557cc);
    transform: translateY(-2px);
}

.ry-btn--accent {
    background: var(--ry-grad-accent);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px -12px rgba(255, 122, 24, 0.8);
}

.ry-btn--accent:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(255, 122, 24, 0.95);
}

.ry-btn--sm {
    padding: 8px 18px;
    font-size: var(--ry-fs-13);
}

.ry-btn--lg {
    padding: 16px 36px;
    font-size: var(--ry-fs-16);
}

.ry-btn[disabled],
.ry-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 深色底上的幽灵按钮转白 */
.ry-sec--dark .ry-btn--ghost,
.ry-hero .ry-btn--ghost {
    border-color: var(--ry-border-dark);
    color: var(--ry-text-invert);
}

.ry-sec--dark .ry-btn--ghost:hover,
.ry-hero .ry-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ry-text-invert);
}

/* ==========================================================================
   4. 图区与「无图」兜底（演示数据的主呈现方式）
   ========================================================================== */

/* 统一图区：裁切 + 柔光底；图片 hover 放大由各卡片自己声明 */
.ry-thumb {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: inherit;
    background-color: var(--ry-surface-sunken);
    background-image: var(--ry-grad-soft);
}

.ry-thumb > img,
.ry-thumb > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
}

/* 渐变占位：
   ① 独立元素（嵌套在 __media 内，如 news-card / home-* 组件）；
   ② __media 本身的附加类（如 product-card.php 的 <a class="ry-pcard__media ry-thumb--empty">）。 */
.ry-thumb--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ry-space-2);
    width: 100%;
    min-height: 96px;
    padding: var(--ry-space-3);
    background-color: var(--ry-secondary-700, #123a70);
    background-image: var(--ry-grad-primary), var(--ry-tex-grid);
    background-size: auto, var(--ry-tex-grid-size);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-600);
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 1px 12px rgba(7, 27, 56, 0.35);
}

/* 覆盖 base.css 的 "RY" 水印：真实组件自己会输出 SVG 或文字 */
.ry-thumb--empty::after {
    content: none;
}

/* 内联 SVG 占位图标 */
.ry-thumb__ph {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    opacity: 0.92;
}

/* 新闻卡的「图」字占位 */
.ry-thumb__char {
    font-size: 30px;
    font-weight: var(--ry-fw-700);
    letter-spacing: 4px;
    opacity: 0.62;
}

/* 嵌套在 __media 里的占位块要撑满整个图区。
   注意必须显式清掉 base.css 给的 aspect-ratio: 16/10：
   绝对定位的占位块同时具备 width:100% + top:0 + bottom:0 + aspect-ratio 时，
   浏览器会按 aspect-ratio 定高、直接丢掉 bottom，
   结果图区底部露出一条深色底边（首页案例卡实测露出 43px）。 */
.ry-pcard__media > .ry-thumb--empty,
.ry-ncard__media > .ry-thumb--empty,
.ry-ccard__media > .ry-thumb--empty,
.ry-gcard__media > .ry-thumb--empty,
.ry-vcard__media > .ry-thumb--empty,
.ry-nfeature__media > .ry-thumb--empty {
    position: absolute;
    inset: 0;
    width: auto;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

/* ==========================================================================
   5. 徽标 / 标签 / 空状态
   ========================================================================== */
.ry-badge {
    padding: 3px 10px;
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-500);
    line-height: 1.6;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
}

/* 置顶角标：叠在卡片图区左上角 */
.ry-badge--top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: var(--ry-grad-accent);
    color: #ffffff;
    box-shadow: 0 6px 16px -8px rgba(255, 122, 24, 0.9);
}

/* 新品角标：叠在卡片图区右上角，与置顶角标互不遮挡 */
.ry-badge--new {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ry-primary-700, #1557cc);
    box-shadow: 0 6px 16px -10px rgba(7, 27, 56, 0.6);
}

.ry-badge--success {
    background: var(--ry-success-soft);
    color: var(--ry-success);
}

.ry-badge--warn {
    background: var(--ry-warn-soft);
    color: var(--ry-warn);
}

.ry-badge--danger {
    background: var(--ry-danger-soft);
    color: var(--ry-danger);
}

.ry-tag {
    padding: 5px 14px;
    font-size: var(--ry-fs-12);
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface);
    color: var(--ry-text-soft);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-tag:hover {
    background: var(--ry-primary-600, #1a6dff);
    border-color: var(--ry-primary-600, #1a6dff);
    color: #ffffff;
    transform: translateY(-1px);
}

/* 空状态：圆形 SVG 图标 + 虚线框 */
.ry-empty {
    gap: var(--ry-space-4);
    padding: var(--ry-space-16) var(--ry-space-6);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface-sunken);
}

.ry-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    font-size: 0;
    color: var(--ry-primary-400, #5a92ff);
    background: var(--ry-surface);
    border-radius: 50%;
    box-shadow: var(--ry-shadow-card);
    opacity: 1;
}

.ry-empty__icon svg {
    width: 40px;
    height: 40px;
}

.ry-empty__text {
    font-size: var(--ry-fs-15);
    color: var(--ry-text-muted);
}

/* ==========================================================================
   6. 正文排版（.ry-article）与详情页信息区
   ========================================================================== */
.ry-article {
    font-size: var(--ry-fs-16);
    line-height: var(--ry-lh-19);
    color: var(--ry-text-soft);
}

.ry-article > * + * {
    margin-top: var(--ry-space-5);
}

.ry-article h2 {
    position: relative;
    margin-top: var(--ry-space-10);
    padding-left: var(--ry-space-4);
    border-left: 0;
    font-size: var(--ry-fs-24);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-article h2::before {
    content: "";
    position: absolute;
    top: 0.18em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-primary);
}

.ry-article h3 {
    margin-top: var(--ry-space-8);
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-article h4 {
    margin-top: var(--ry-space-6);
    font-size: var(--ry-fs-16);
    color: var(--ry-text-strong);
}

.ry-article p {
    line-height: var(--ry-lh-19);
}

.ry-article ul,
.ry-article ol {
    padding-left: 1.4em;
}

.ry-article ul > li::marker {
    color: var(--ry-primary-500, #2f7bff);
}

.ry-article a {
    color: var(--ry-primary-600, #1a6dff);
    text-decoration: none;
    border-bottom: 1px solid var(--ry-primary-200, #bcd3ff);
}

.ry-article a:hover {
    border-bottom-color: var(--ry-primary-600, #1a6dff);
}

.ry-article blockquote {
    margin: var(--ry-space-6) 0;
    padding: var(--ry-space-5) var(--ry-space-6);
    border-left: 4px solid var(--ry-primary-400, #5a92ff);
    border-radius: 0 var(--ry-radius-md) var(--ry-radius-md) 0;
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-text-soft);
}

.ry-article img {
    margin: var(--ry-space-6) auto;
    border-radius: var(--ry-radius-lg);
    box-shadow: var(--ry-shadow-card);
}

.ry-article table th {
    background: var(--ry-surface-sunken);
    color: var(--ry-text-strong);
}

.ry-article pre {
    background: var(--ry-secondary-800, #0f3263);
    color: #e6edf7;
    border-radius: var(--ry-radius-md);
    font-family: var(--ry-font-mono);
}

.ry-article code {
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
    font-family: var(--ry-font-mono);
}

/* ==========================================================================
   正文里的「企业常用块」：提示框 / 行动按钮 / 图片对齐
   --------------------------------------------------------------------------
   这三样由后台编辑器的工具栏插入（见 assets/editor/editor.js 的 openCalloutPopup /
   openCtaPopup / openImagePropsPopup）。类名与编辑区内预览样式在
   assets/editor/editor.css 里有一份对应实现 —— 改这里时请同步改那边，
   否则运营在后台看到的和前台发布后长得不一样。
   ========================================================================== */

/* 提示框：左侧色条 + 同色浅底，四种语义色 */
.ry-article .ry-callout {
    display: flex;
    gap: 12px;
    margin: var(--ry-space-6) 0;
    padding: 16px 20px;
    border-left: 4px solid #1a6dff;
    border-radius: var(--ry-radius-md);
    background: #eef4ff;
    color: var(--ry-text);
    line-height: 1.8;
}

.ry-article .ry-callout > * + * {
    margin-top: 0;
}

.ry-article .ry-callout__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    border-radius: 50%;
    background: #1a6dff;
    color: #ffffff;
    font-size: 13px;
    font-weight: var(--ry-fw-700);
    line-height: 20px;
    text-align: center;
}

.ry-article .ry-callout__icon::before {
    content: "i";
}

.ry-article .ry-callout__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-article .ry-callout--success {
    border-left-color: #12b76a;
    background: #ecfdf3;
}

.ry-article .ry-callout--success .ry-callout__icon {
    background: #12b76a;
}

.ry-article .ry-callout--success .ry-callout__icon::before {
    content: "✓";
}

.ry-article .ry-callout--warn {
    border-left-color: #f79009;
    background: #fffaeb;
}

.ry-article .ry-callout--warn .ry-callout__icon {
    background: #f79009;
}

.ry-article .ry-callout--warn .ry-callout__icon::before {
    content: "!";
}

.ry-article .ry-callout--danger {
    border-left-color: #e5484d;
    background: #fef3f2;
}

.ry-article .ry-callout--danger .ry-callout__icon {
    background: #e5484d;
}

.ry-article .ry-callout--danger .ry-callout__icon::before {
    content: "×";
}

/* 行动按钮：正文里唯一的强转化元素，居中显示 */
.ry-article .ry-content-cta {
    margin: var(--ry-space-8) 0;
    text-align: center;
}

.ry-article .ry-content-btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: var(--ry-radius-pill);
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.2;
    text-decoration: none;
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        background-color var(--ry-dur) var(--ry-ease);
}

.ry-article a.ry-content-btn:hover {
    transform: translateY(-2px);
}

.ry-article .ry-content-btn--primary {
    background: var(--ry-grad-primary);
    color: #ffffff;
    box-shadow: 0 14px 28px -14px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.85);
}

.ry-article .ry-content-btn--primary:hover {
    color: #ffffff;
}

.ry-article .ry-content-btn--outline {
    border: 1px solid var(--ry-primary-600, #1a6dff);
    background: transparent;
    color: var(--ry-primary-700, #1557cc);
}

.ry-article .ry-content-btn--dark {
    background: var(--ry-secondary-700, #123a70);
    color: #ffffff;
    box-shadow: 0 14px 28px -16px rgba(18, 58, 112, 0.8);
}

.ry-article .ry-content-btn--dark:hover {
    color: #ffffff;
}

/* 图片对齐：left/right 走 float，文字环绕；full 通栏铺满 */
.ry-article img[data-align="center"] {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.ry-article img[data-align="full"] {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ry-article img[data-align="left"] {
    float: left;
    margin: 4px var(--ry-space-5) var(--ry-space-4) 0;
}

.ry-article img[data-align="right"] {
    float: right;
    margin: 4px 0 var(--ry-space-4) var(--ry-space-5);
}

/* float 的图片不能无限宽，否则手机上一张图就占满 */
.ry-article img[data-align="left"],
.ry-article img[data-align="right"] {
    max-width: 46%;
}

@media (max-width: 768px) {
    /* 窄屏不要环绕：图片独占一行更好读 */
    .ry-article img[data-align="left"],
    .ry-article img[data-align="right"] {
        float: none;
        max-width: 100%;
        margin: var(--ry-space-5) auto;
    }
}

/* --------------------------------------------------------------------------
   正文里的图片组 / 图集 / 视频组
   （由后台编辑器的「多图」「多视频」生成，编辑器里的样式见 assets/editor/editor.css，
   两处必须保持一致 —— 否则运营在后台看到的和发布后不一样）
   -------------------------------------------------------------------------- */

/* 逐张排列：每张独占一行，居中，适合大图 */
.ry-article .ry-imgs img {
    display: block;
    margin: var(--ry-space-6) auto;
}

/* 图集：二列 / 三列 */
.ry-article .ry-imgrid {
    display: grid;
    gap: var(--ry-space-4);
    margin: var(--ry-space-8) 0;
}

.ry-article .ry-imgrid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ry-article .ry-imgrid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ry-article .ry-imgrid figure {
    margin: 0;
    /* 网格子项默认 min-width:auto，长图说会把列撑破 */
    min-width: 0;
}

/* 图集里的图片不能再吃"正文图片"的 margin/page 设置，铺满单元格即可 */
.ry-article .ry-imgrid img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: var(--ry-radius-md);
}

.ry-article .ry-imgrid figcaption {
    margin-top: 8px;
    color: var(--ry-text-muted);
    font-size: var(--ry-fs-13);
    line-height: 1.6;
    text-align: center;
}

/* 图说留空时整块不占位：编辑器里给的是灰色提示文字，前台不该显示空行 */
.ry-article .ry-imgrid figcaption:empty {
    display: none;
}

/* 视频组 */
.ry-article .ry-videos {
    margin: var(--ry-space-8) 0;
}

.ry-article video,
.ry-article .ry-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto var(--ry-space-5);
    border-radius: var(--ry-radius-md);
    /* 视频加载前后的底色：用主题深蓝而不是纯黑，与代码块一致 */
    background: var(--ry-secondary-800, #0f3263);
}

.ry-article .ry-videos video:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    /* 手机上三列会小到看不清，压成两列；二列再压成一列 */
    .ry-article .ry-imgrid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ry-article .ry-imgrid--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-article .ry-imgrid {
        gap: var(--ry-space-3);
        margin: var(--ry-space-6) 0;
    }
}

/* 详情页头部信息 */
.ry-article-head {
    padding-bottom: var(--ry-space-5);
    border-bottom: 1px solid var(--ry-border-light);
}

.ry-article-head__title {
    font-size: var(--ry-fs-30);
    letter-spacing: -0.01em;
}

.ry-article-meta {
    gap: var(--ry-space-2) var(--ry-space-5);
    padding-top: var(--ry-space-3);
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

.ry-article-meta > span,
.ry-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ry-meta-label {
    color: var(--ry-text-light);
}

.ry-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ry-space-2);
    margin-top: var(--ry-space-4);
}

.ry-single__title {
    font-size: var(--ry-fs-30);
    letter-spacing: -0.01em;
}

/* 自定义字段参数表 */
.ry-fields-wrap {
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    overflow: hidden;
}

.ry-fields-table {
    border: 0;
}

.ry-fields-table th,
.ry-fields-table td {
    padding: 13px 18px;
    font-size: var(--ry-fs-14);
    border-bottom: 1px solid var(--ry-border-light);
}

.ry-fields-table tr:nth-child(even) td {
    background: #fcfdff;
}

.ry-fields-table th {
    width: 200px;
    background: var(--ry-surface-sunken);
    color: var(--ry-text-soft);
    font-weight: var(--ry-fw-500);
}

/* 上下篇 */
.ry-prevnext__item {
    padding: var(--ry-space-4) var(--ry-space-5);
    border-radius: var(--ry-radius-md);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-prevnext__item:hover {
    border-color: var(--ry-primary-300, #8db5ff);
    box-shadow: var(--ry-shadow-card);
    transform: translateY(-2px);
}

.ry-prevnext__label {
    color: var(--ry-text-light);
}

.ry-prevnext__text {
    font-weight: var(--ry-fw-500);
    color: var(--ry-text-strong);
}

/* 下载 / 投递提示条 */
.ry-download-bar,
.ry-apply {
    padding: var(--ry-space-6);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-grad-soft);
    border: 1px solid var(--ry-primary-100, #dbe7ff);
}

.ry-download-bar__tip,
.ry-apply__tip {
    color: var(--ry-text-soft);
}

/* ==========================================================================
   7. 表单（前台询盘表单与后台同名控件）
   ========================================================================== */
.ry-form {
    display: block;
}

.ry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ry-space-4) var(--ry-space-5);
}

.ry-field {
    margin-bottom: var(--ry-space-4);
}

.ry-form__grid > .ry-field {
    margin-bottom: 0;
}

.ry-field__label {
    display: block;
    margin-bottom: var(--ry-space-2);
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-500);
    color: var(--ry-text-soft);
}

.ry-required {
    margin-left: 4px;
    color: var(--ry-danger);
}

.ry-input,
.ry-textarea,
.ry-select {
    padding: 12px 14px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    font-size: var(--ry-fs-15);
    transition: border-color var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease);
}

.ry-input::placeholder,
.ry-textarea::placeholder {
    color: var(--ry-text-light);
}

.ry-input:focus,
.ry-textarea:focus,
.ry-select:focus {
    border-color: var(--ry-primary-400, #5a92ff);
    box-shadow: 0 0 0 4px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.12);
}

.ry-input--error,
.ry-textarea--error,
.ry-input.is-invalid,
.ry-textarea.is-invalid {
    border-color: var(--ry-danger);
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1);
}

.ry-field__error {
    margin-top: 6px;
    font-size: var(--ry-fs-12);
    color: var(--ry-danger);
}

.ry-textarea {
    min-height: 140px;
}

.ry-select {
    padding-right: 38px;
}

.ry-form__actions {
    margin-top: var(--ry-space-6);
}

.ry-form__submit {
    min-width: 160px;
}

.ry-form.is-sending .ry-form__submit {
    opacity: 0.72;
    pointer-events: none;
}

/* 验证码 */
.ry-captcha-row {
    display: flex;
    align-items: center;
    gap: var(--ry-space-3);
}

.ry-captcha-row .ry-input {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-captcha {
    flex: 0 0 auto;
    display: inline-block;
    height: 46px;
    width: auto;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-sm);
    background: var(--ry-surface);
    cursor: pointer;
}

.ry-captcha:hover {
    border-color: var(--ry-primary-300, #8db5ff);
}

/* 提示条 */
.ry-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--ry-space-3);
    margin-bottom: var(--ry-space-5);
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: var(--ry-radius-md);
    font-size: var(--ry-fs-14);
    line-height: var(--ry-lh-15);
}

.ry-alert--success {
    border-color: rgba(18, 161, 80, 0.28);
    background: var(--ry-success-soft);
    color: #0b7a3c;
}

.ry-alert--error {
    border-color: rgba(229, 72, 77, 0.28);
    background: var(--ry-danger-soft);
    color: #b0272c;
}

/* 询盘表单外壳 */
.ry-inquiry {
    padding: var(--ry-space-8);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
}

.ry-inquiry--compact {
    padding: var(--ry-space-6);
}

.ry-inquiry__head {
    margin-bottom: var(--ry-space-6);
}

.ry-inquiry__title {
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-600);
}

.ry-inquiry__desc {
    margin-top: var(--ry-space-2);
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
}

/* ==========================================================================
   8. 页头（对标 components/header.php 的真实结构）
   .ry-site-header
     ├── .ry-site-topbar               顶部信息条（第 1 行）
     ├── .ry-site-brandbar             LOGO 行（第 2 行）
     └── .ry-site-navbar               通栏深色导航（第 3 行）
   --------------------------------------------------------------------------
   ⚠️ 三行**始终固定，滚动时不做任何收缩**。

   这里原来做的是「滚过 140px 把顶栏收起来、导航栏压矮」的动效，
   但在真实浏览器里会抖动：头部是 sticky，一收缩文档高度就变，
   浏览器「滚动锚定」会反向补偿 scrollY，补偿后又越回阈值 → 来回跳；
   加上每帧都要重新布局三行 + 模糊背景，Windows 集显/远程桌面上尤其明显。

   用户的意见很直接：**别缩了，三行固定住**。这是对的 ——
   企业站的头三行本来就不高（38 + 90 + 48 ≈ 176px），
   收缩省下的那点空间，远不如「滚动时页面稳定」重要。
   所以：删掉收缩逻辑（theme.js 里的 initHeaderShrink），
   把 .is-scrolled 相关规则一并清掉，避免留下永远不生效的死样式。
   ========================================================================== */
.ry-site-header {
    position: sticky;
    top: 0;
    z-index: var(--ry-z-header);
    background: var(--ry-bg, #ffffff);
    border-bottom: 1px solid var(--ry-border-light);
}

/*
 * 这里曾经用 backdrop-filter: saturate(1.4) blur(8px) 做毛玻璃。
 * 但头部是 position: sticky —— 浏览器必须在**每一帧滚动**都重新模糊一次
 * 背后的内容，在 Windows（尤其远程桌面 / 集显）上会明显掉帧。
 * 视觉上几乎看不出差别（原本也是 0.97 的白），所以直接用不透明背景。
 * 同理：任何 sticky / fixed 元素上都不要用 backdrop-filter。
 */

/* 8.1 顶部信息条（第 1 行）
   源站这一行是**浅色细条**：左边一句欢迎语，右边搜索 + 语言。 */
.ry-site-topbar {
    height: var(--ry-header-top-h);
    background: var(--ry-surface-sunken);
    border-bottom: 1px solid var(--ry-border-light);
    color: var(--ry-text-muted);
    font-size: var(--ry-fs-13);
}

.ry-site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-5);
    height: var(--ry-header-top-h);
}

.ry-site-topbar__list {
    display: flex;
    align-items: center;
    gap: var(--ry-space-5);
    min-width: 0;
}

.ry-site-topbar__list--right {
    margin-left: auto;
}

.ry-site-topbar__welcome {
    color: var(--ry-text-soft);
    white-space: nowrap;
}

.ry-site-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.ry-site-topbar__item > a,
.ry-site-topbar__item > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ry-site-topbar__item--time {
    color: var(--ry-text-light);
}

.ry-site-topbar__label {
    color: var(--ry-text-light);
}

.ry-site-topbar a {
    color: var(--ry-text-muted);
}

.ry-site-topbar a:hover {
    color: var(--ry-primary-600, #1a6dff);
}

/* 8.1b 第 2 行：LOGO 行（LOGO + 副标题 / 服务热线大字） */
.ry-site-brandbar {
    background: var(--ry-bg, #ffffff);
}

.ry-site-brandbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-6);
    min-height: var(--ry-header-h);
    transition: min-height var(--ry-dur) var(--ry-ease);
}


/* 第 3 行：通栏深蓝导航条
   ------------------------------------------------------------------
   两条硬规则（客户明确要求，做新模板时同样照办）：
   1) 不许用黑色。深色底一律走蓝/紫色相，明度守在 20% 以上；
   2) 平铺一个纯色会显得"死"，加一层极轻的横向渐变 + 顶部内高光，
      让通栏在视觉上有一点厚度，接近一线品牌官网的做法。 */
.ry-site-navbar {
    background: var(--ry-navbar-bg, var(--ry-secondary-800, #0f3263));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@supports (background: linear-gradient(90deg, red, blue)) {
    .ry-site-navbar {
        background: var(--ry-navbar-bg,
            linear-gradient(90deg,
                var(--ry-secondary-700, #123a70) 0%,
                var(--ry-secondary-800, #0f3263) 52%,
                var(--ry-secondary-700, #123a70) 100%));
    }
}

.ry-site-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-6);
}

.ry-site-navbar__tip {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.42);
    font-size: var(--ry-fs-13);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* 服务热线（第 2 行右侧的大号码） */
.ry-hotline {
    display: inline-flex;
    align-items: center;
    gap: var(--ry-space-3);
    flex: 0 0 auto;
    color: var(--ry-text-strong);
}

.ry-hotline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-600, #1a6dff);
    transition: background-color var(--ry-dur) var(--ry-ease), color var(--ry-dur) var(--ry-ease);
}

.ry-hotline:hover .ry-hotline__icon {
    background: var(--ry-grad-primary);
    color: #ffffff;
}

.ry-hotline__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ry-hotline__label {
    color: var(--ry-text-light);
    font-size: var(--ry-fs-12);
}

.ry-hotline__num {
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: var(--ry-fw-800);
    letter-spacing: -0.01em;
    color: var(--ry-primary-600, #1a6dff);
    white-space: nowrap;
}

/* 8.2 导航栏（旧的一行式头部已改成三行，这两个类保留给自定义模板兜底） */
.ry-site-nav {
    background: var(--ry-bg, #ffffff);
}

.ry-site-nav__inner {
    display: flex;
    align-items: center;
    gap: var(--ry-space-6);
    height: var(--ry-header-h);
    transition: height var(--ry-dur) var(--ry-ease);
}


/* 8.3 LOGO */
.ry-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--ry-space-3);
    flex: 0 0 auto;
    max-width: 60%;
}

.ry-logo__img {
    display: block;
    width: auto;
    max-height: 52px;
    transition: max-height var(--ry-dur) var(--ry-ease);
}


.ry-logo__text {
    font-size: clamp(24px, 2vw, 32px);
    font-weight: var(--ry-fw-800);
    letter-spacing: -0.01em;
    color: var(--ry-text-strong);
    white-space: nowrap;
}

.ry-logo__slogan {
    padding-left: var(--ry-space-3);
    border-left: 1px solid var(--ry-border);
    color: var(--ry-text-light);
    font-size: var(--ry-fs-13);
    line-height: 1.4;
    white-space: nowrap;
}

/* 8.4 主导航菜单（Tpl::navMenu 输出 ul.ry-nav > li + ul.sub-menu） */
.ry-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 三行头部的导航条是深色底，菜单文字必须用浅色；
   高亮项用主色块而不是浅底蓝字（浅色文字压在深底上才清楚）。 */
.ry-site-navbar .ry-nav {
    width: 100%;
    /* 栏目均分整条宽度：源站那种「一条通栏、每项等距」的效果，
       比全部挤在左边更大气，也不会在右侧留一大块空白。 */
    justify-content: space-between;
}

.ry-nav > li {
    position: relative;
    display: flex;
    align-items: center;
}

.ry-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--ry-navbar-h, 52px);
    padding: 0 18px;
    font-size: var(--ry-fs-15);
    font-weight: var(--ry-fw-500);
    color: var(--ry-text);
    white-space: nowrap;
    transition: background-color var(--ry-dur) var(--ry-ease), color var(--ry-dur) var(--ry-ease);
}

.ry-site-navbar .ry-nav > li > a {
    color: rgba(255, 255, 255, 0.86);
}

.ry-site-navbar .ry-nav > li > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

/* 当前项：整块主色底 + 白字，深色导航条上最醒目 */
.ry-site-navbar .ry-nav > li.active > a {
    color: #ffffff;
    background: var(--ry-primary-600, #1a6dff);
    font-weight: var(--ry-fw-600);
}

/* 当前项 / hover：底部主色指示条（仅浅底导航用） */
.ry-nav > li::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: var(--ry-radius-pill) var(--ry-radius-pill) 0 0;
    background: var(--ry-grad-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--ry-dur) var(--ry-ease);
}

.ry-site-navbar .ry-nav > li::after {
    display: none;
}

.ry-nav > li:hover::after,
.ry-nav > li.active::after {
    transform: scaleX(1);
}

.ry-nav > li.active > a {
    color: var(--ry-primary-600, #1a6dff);
    font-weight: var(--ry-fw-600);
}

/* 有子菜单的项：文字后面跟一个小箭头 */
.ry-nav > li.has-sub > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform var(--ry-dur) var(--ry-ease);
}

.ry-nav > li.has-sub:hover > a::after {
    transform: rotate(45deg) translate(2px, 2px);
    opacity: 1;
}

/* 下拉子菜单 */
.ry-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 208px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--ry-surface);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    box-shadow: var(--ry-shadow-pop);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--ry-dur) var(--ry-ease), transform var(--ry-dur) var(--ry-ease),
        visibility var(--ry-dur) var(--ry-ease);
}

.ry-nav .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
}

.ry-nav .sub-menu li {
    list-style: none;
}

.ry-nav .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-3);
    padding: 10px 14px;
    border-radius: var(--ry-radius-sm);
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-400);
    color: var(--ry-text-soft);
    white-space: nowrap;
}

.ry-nav .sub-menu a:hover,
.ry-nav .sub-menu li.active > a {
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
}

.ry-nav .sub-menu li.active > a {
    font-weight: var(--ry-fw-600);
}

/* 桌面：hover / 键盘聚焦展开（移动端由 theme.js 切 .is-open） */
@media (min-width: 1025px) {
    .ry-nav > li:hover > .sub-menu,
    .ry-nav li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 8.5 工具区：服务热线 / 语言 / 汉堡
   ------------------------------------------------------------------
   这一组挂在第 2 行（.ry-site-brandbar），是**窄屏唯一可靠的导航入口**。
   早先把汉堡放在第 1 行（.ry-site-topbar）里，而 components.css 的 ≤1024px
   会把整条第 1 行隐藏掉，于是这一档的菜单、搜索、语言切换一起消失，
   站点没有任何导航入口。第 2 行在任何断点都显示，汉堡因此必然可达。

   min-width: 0 很关键：flex 子项默认 min-width:auto，不允许收缩到内容宽度
   以下；热线号码是 nowrap 的长串，会把整行顶出视口（实测 390px 下溢出 71px）。 */
.ry-site-nav__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ry-space-6);
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
}

/* 第 2 行的语言切换：第 1 行（.ry-site-topbar）还在时它隐藏，第 1 行一消失就接手。
   ------------------------------------------------------------------
   ① 为什么选择器必须写 `.ry-site-nav__tools .ry-site-nav__lang`（0,2,0）：
      下面的通用 `.ry-lang` 也是 (0,1,0) 且写在后面，同优先级比的是先后，
      原来只写 `.ry-site-nav__lang` 时这条 display:none 永远被盖掉，
      于是第 1 行和第 2 行同时出现两组「中文 / English」（客户实测就是这个现象）。
      控制它显隐的三处（这里、≤1024、≤360）统一用同一个高优先级选择器，
      谁生效只由媒体查询先后决定，不再依赖「哪条规则写在后面」这种脆弱假设。
   ② 为什么断点是 1024 而不是 768：隐藏第 1 行的是 components.css 的
      `@media (max-width: 1024px){ .ry-site-topbar{display:none} }`，
      而这里原来写 768 —— 中间 **769~1024px 这一整档（平板 / 小笔记本）
      两个语言入口都不显示**，用户只能翻抽屉。断点必须与「第 1 行何时消失」严格对齐。 */
.ry-site-nav__tools .ry-site-nav__lang {
    display: none;
}

@media (max-width: 1024px) {
    /* 描边胶囊，比第 1 行那组素文字更醒目 —— 它是这一档唯一的语言入口 */
    .ry-site-nav__tools .ry-site-nav__lang {
        display: inline-flex;
        padding: 2px;
        border: 1px solid var(--ry-border, #e5e7eb);
        border-radius: var(--ry-radius-pill);
        background: var(--ry-surface);
    }

    .ry-site-nav__tools .ry-site-nav__lang a {
        padding: 4px 10px;
        font-size: var(--ry-fs-13);
    }
}

.ry-lang {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: var(--ry-fs-14);
    color: var(--ry-text-muted);
}

.ry-lang a {
    padding: 4px 10px;
    border-radius: var(--ry-radius-pill);
    color: inherit;
    white-space: nowrap;
}

.ry-lang a + a {
    margin-left: 2px;
}

.ry-lang a:hover {
    color: var(--ry-primary-600, #1a6dff);
}

/* lang_switcher 只给当前语言加 .active */
.ry-lang a.active,
.ry-lang a.is-active {
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-weight: var(--ry-fw-600);
}

.ry-site-search {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    height: 42px;
    padding-left: 16px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface-sunken);
    transition: border-color var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        background-color var(--ry-dur) var(--ry-ease);
}

.ry-site-search:focus-within {
    border-color: var(--ry-primary-400, #5a92ff);
    background: var(--ry-surface);
    box-shadow: 0 0 0 4px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.1);
}

.ry-site-search__input {
    flex: 1 1 auto;
    width: 130px;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font-size: var(--ry-fs-14);
    outline: none;
}

.ry-site-search__input::placeholder {
    color: var(--ry-text-light);
}

.ry-site-search__btn {
    flex: 0 0 auto;
    /* 必须显式清掉 components.css 里的图标按钮尺寸（30×30 圆形），
       否则「搜索」两个字会被挤成上下两行。 */
    width: auto;
    min-width: 0;
    height: 34px;
    margin-right: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-size: var(--ry-fs-13);
    white-space: nowrap;
    font-weight: var(--ry-fw-600);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease);
}

.ry-site-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.9);
}

.ry-site-nav__hotline {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    line-height: 1.25;
}

.ry-site-nav__hotline-label {
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-site-nav__hotline-num {
    font-size: 17px;
    font-weight: var(--ry-fw-700);
    color: var(--ry-primary-700, #1557cc);
    white-space: nowrap;
}

/* 汉堡按钮：三条线，展开时变叉 */
.ry-nav-burger {
    display: none;
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
}

.ry-nav-burger__line {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    border-radius: 2px;
    background: var(--ry-text-strong);
    transition: transform var(--ry-dur) var(--ry-ease), opacity var(--ry-dur) var(--ry-ease),
        top var(--ry-dur) var(--ry-ease);
}

.ry-nav-burger__line:nth-child(1) {
    top: 15px;
}

.ry-nav-burger__line:nth-child(2) {
    top: 21px;
}

.ry-nav-burger__line:nth-child(3) {
    top: 27px;
}

body.is-nav-open .ry-nav-burger__line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

body.is-nav-open .ry-nav-burger__line:nth-child(2) {
    opacity: 0;
}

body.is-nav-open .ry-nav-burger__line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* 8.5b 抽屉专属区块：头部 / 搜索 / 页脚
   ------------------------------------------------------------------
   桌面端 .ry-site-nav__panel 是内联的导航行，这三个区块不能出现，
   否则导航条里会平白多出搜索框和按钮。≤1024px 才由下面的媒体查询打开。
   抽屉里的搜索与语言是**服务端直出**的静态节点，不再依赖 JS 克隆
   （旧实现克隆的是 .ry-site-nav__tools .ry-site-search，而那个容器
   在重构后的 header.php 里已不存在，导致手机上抽屉里始终没有搜索框）。 */
.ry-site-nav__panel-head,
.ry-site-nav__panel-search,
.ry-site-nav__panel-foot {
    display: none;
}

/* 抽屉标题与关闭键 */
.ry-site-nav__panel-title {
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-700);
    color: var(--ry-text-strong);
}

.ry-site-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface-sunken);
    color: var(--ry-text-strong);
}

/* 关闭键的叉：两条 45° 线，不依赖图标字体 */
.ry-site-nav__close > span,
.ry-site-nav__close > span::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.ry-site-nav__close > span {
    transform: rotate(45deg);
}

.ry-site-nav__close > span::after {
    content: "";
    transform: rotate(-90deg);
}

/* 抽屉底部的「拨打电话」：移动端最主要的转化入口，做满宽 */
.ry-site-nav__panel-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
}

.ry-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--ry-z-drawer) - 1);
    background: rgba(7, 27, 56, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ry-dur) var(--ry-ease), visibility var(--ry-dur) var(--ry-ease);
}

body.is-nav-open .ry-nav-overlay {
    opacity: 1;
    visibility: visible;
}

/**
 * 抽屉打开时把头部抬到遮罩之上
 *
 * 坑：头部是 `position: sticky; z-index: 900` —— 它自己会形成一个**层叠上下文**，
 * 于是抽屉（里面 z-index 1000）也被封在 900 这一层里。而遮罩是 theme.js 动态挂到
 * body 上的（z-index 999），结果遮罩压在抽屉上面：点哪都变成"关闭抽屉"，抽屉等于点不动。
 * 只有把"装着抽屉的那个头部"整体抬到遮罩之上才行 —— 子元素自己是爬不出来的。
 * 移植来的 16 个头部组件各自也带了同样一条（它们各有自己的类名）。
 */
body.is-nav-open .ry-site-header {
    z-index: calc(var(--ry-z-drawer) + 1);
}

/* 8.7 兼容别名：早期约定的类名同样生效 */
.ry-site-header__top {
    height: var(--ry-header-top-h);
    overflow: hidden;
    background: var(--ry-secondary-700, #123a70);
    color: var(--ry-text-invert-muted);
    font-size: var(--ry-fs-13);
}

.ry-site-header__main {
    display: flex;
    align-items: center;
    gap: var(--ry-space-6);
    height: var(--ry-header-h);
}

.ry-site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ry-site-logo__name {
    font-size: 22px;
    font-weight: var(--ry-fw-700);
    color: var(--ry-text-strong);
}

.ry-site-logo__slogan {
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-site-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--ry-fs-14);
    color: var(--ry-text-muted);
}

.ry-site-lang a {
    padding: 4px 10px;
    border-radius: var(--ry-radius-pill);
}

.ry-site-lang a.is-active,
.ry-site-lang a.active {
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-weight: var(--ry-fw-600);
}

.ry-nav-toggle {
    display: none;
}

.ry-nav-panel {
    display: none;
}

/* ==========================================================================
   9. 面包屑与内页横幅
   ========================================================================== */
.ry-crumb-bar {
    padding-block: 14px;
    background: var(--ry-surface-sunken);
    border-bottom: 1px solid var(--ry-border-light);
}

.ry-breadcrumb {
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

.ry-breadcrumb a {
    color: var(--ry-text-muted);
}

.ry-breadcrumb a:hover {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-breadcrumb .sep {
    opacity: 0.5;
}

.ry-breadcrumb .current {
    color: var(--ry-text-soft);
}

/* 内页横幅：内联渐变由组件给，这里只加纹理与间距 */
.ry-hero {
    position: relative;
    overflow: hidden;
    padding-block: 76px 84px;
    background-color: var(--ry-secondary-600, #0b2b5b);
    background-size: cover;
    background-position: center;
    color: var(--ry-text-invert);
    text-align: center;
}

.ry-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ry-tex-grid);
    background-size: var(--ry-tex-grid-size);
    opacity: 0.5;
    pointer-events: none;
}

.ry-hero__inner {
    position: relative;
    z-index: 1;
}

.ry-hero__title {
    font-size: var(--ry-fs-38);
    font-weight: var(--ry-fw-700);
    letter-spacing: -0.01em;
    color: var(--ry-text-invert);
}

.ry-hero__sub {
    max-width: 760px;
    margin: var(--ry-space-4) auto 0;
    font-size: var(--ry-fs-15);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-invert-soft);
}

/* page-hero 里的面包屑类名是 .ry-hero__crumb */
.ry-hero__crumb,
.ry-hero .ry-breadcrumb {
    justify-content: center;
    margin-top: var(--ry-space-5);
    padding: 0;
    list-style: none;
    color: var(--ry-text-invert-muted);
}

.ry-hero__crumb a,
.ry-hero .ry-breadcrumb a {
    color: var(--ry-text-invert-soft);
}

.ry-hero__crumb a:hover,
.ry-hero .ry-breadcrumb a:hover {
    color: var(--ry-text-invert);
}

/* ==========================================================================
   10. 首页轮播（对标 components/banner.php 的 data-* 约定）
   ========================================================================== */
.ry-banner {
    position: relative;
    overflow: hidden;
    background: var(--ry-secondary-800, #0f3263);
    color: var(--ry-text-invert);
}

.ry-banner__track {
    display: grid;
}

/* 所有幻灯片叠在同一格：切换只做淡入淡出，容器高度由最高一张决定 */
.ry-banner__slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    /* 高度对齐源站：源站轮播是固定 300px，而它用的图正是 1920×300（6.4:1）。
       原来这里写 clamp(400px, 46vw, 620px)，1440 宽下高达 620px，
       等于把 6.4:1 的横幅图放大一倍多，既浪费首屏又糊。 */
    min-height: clamp(220px, 23vw, 360px);
    padding-block: clamp(24px, 3vw, 48px);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ry-ease), visibility 0.8s var(--ry-ease);
}

.ry-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 无图幻灯（演示数据）在上面那层渐变之上再叠一层网格，质感更「设计过」 */
.ry-banner__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ry-tex-grid);
    background-size: var(--ry-tex-grid-size);
    opacity: 0.55;
    pointer-events: none;
}

.ry-banner__inner {
    position: relative;
    z-index: 3;
    max-width: var(--ry-container, 1200px);
}

.ry-banner__title {
    max-width: 720px;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: var(--ry-fw-700);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--ry-text-invert);
    text-shadow: 0 2px 24px rgba(7, 27, 56, 0.35);
}

.ry-banner__sub {
    max-width: 560px;
    margin: var(--ry-space-4) 0 0;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-invert-soft);
}

.ry-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ry-space-3);
    margin-top: var(--ry-space-8);
}

/* 主按钮在深色渐变上用白底更跳（覆盖 .ry-btn--primary 的渐变） */
.ry-banner__btn {
    padding: 14px 34px;
    border-color: transparent;
    background: var(--ry-surface);
    color: var(--ry-primary-700, #1557cc);
    box-shadow: 0 16px 34px -16px rgba(7, 27, 56, 0.7);
}

.ry-banner__btn:hover {
    background: var(--ry-surface);
    border-color: transparent;
    color: var(--ry-primary-700, #1557cc);
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -18px rgba(7, 27, 56, 0.8);
}

/* 左右箭头（组件内是内联 SVG） */
.ry-banner__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity var(--ry-dur) var(--ry-ease), background-color var(--ry-dur) var(--ry-ease),
        transform var(--ry-dur) var(--ry-ease), border-color var(--ry-dur) var(--ry-ease);
}

.ry-banner:hover .ry-banner__arrow,
.ry-banner__arrow:focus-visible {
    opacity: 1;
}

.ry-banner__arrow--prev {
    left: max(20px, calc((100% - var(--ry-container, 1200px)) / 2 - 6px));
}

.ry-banner__arrow--next {
    right: max(20px, calc((100% - var(--ry-container, 1200px)) / 2 - 6px));
}

.ry-banner__arrow:hover {
    border-color: transparent;
    background: var(--ry-primary-600, #1a6dff);
    transform: scale(1.06);
}

/* 圆点 */
.ry-banner__dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.ry-banner__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: var(--ry-radius-pill);
    background: rgba(255, 255, 255, 0.45);
    transition: width var(--ry-dur) var(--ry-ease), background-color var(--ry-dur) var(--ry-ease);
}

.ry-banner__dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.ry-banner__dot.is-active,
.ry-banner__dot.active {
    width: 30px;
    background: var(--ry-accent-500, #ff8420);
}

/* ==========================================================================
   11. 分页（必须匹配 Paginator::render() 的 nav > ul > li.page-item > a.page-link）
   ========================================================================== */
.ry-pagination-wrap {
    display: flex;
    justify-content: center;
    padding-top: var(--ry-space-12);
}

.ry-pagination-wrap .pagination {
    margin-top: 0;
}

.pagination {
    margin-top: var(--ry-space-10);
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination .page-item,
.page-item {
    display: inline-flex;
}

.pagination .page-link,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    color: var(--ry-text-soft);
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-500);
    transition: all var(--ry-dur) var(--ry-ease);
}

.pagination .page-link:hover,
.page-link:hover {
    border-color: var(--ry-primary-400, #5a92ff);
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link,
.page-item.active .page-link {
    border-color: transparent;
    background: var(--ry-grad-primary);
    color: #ffffff;
    box-shadow: 0 10px 22px -12px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.85);
}

.pagination .page-item.disabled .page-link,
.page-item.disabled .page-link {
    border-color: var(--ry-border-light);
    background: var(--ry-surface-sunken);
    color: var(--ry-text-light);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   12. 页脚（对标 components/footer.php 的真实结构）
   ========================================================================== */
.ry-site-footer {
    position: relative;
    background: var(--ry-grad-dark);
    color: var(--ry-text-invert-muted);
    font-size: var(--ry-fs-14);
}

.ry-site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ry-tex-grid);
    background-size: var(--ry-tex-grid-size);
    opacity: 0.4;
    pointer-events: none;
}

.ry-site-footer .ry-wrap {
    position: relative;
    z-index: 1;
}

.ry-site-footer__main {
    /* 实测构成：主体 322 + 友链带 91 + 版权条 95 = 508px。
       源站同类页脚约 300px 上下，这里把三段的内边距一起收拢。 */
    padding-block: 26px 18px;
}

/* 链接组列 + 联系方式列 + 二维码列 */
.ry-site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px var(--ry-space-8);
    align-items: start;
}

.ry-site-footer__col {
    min-width: 0;
}

.ry-site-footer__title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 8px;
    font-size: var(--ry-fs-15);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-invert);
}

.ry-site-footer__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-accent);
}

.ry-site-footer__list {
    display: grid;
    /* 12 → 9 → 7：页脚整体高度主要被链接列的间距撑起来，
       源站同类页脚总高约 280px，这里逐步收拢 */
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-site-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ry-text-invert-muted);
}

.ry-site-footer__list a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.ry-site-footer__list a:hover {
    color: var(--ry-text-invert);
    transform: translateX(3px);
}

.ry-site-footer__list a:hover::before {
    background: var(--ry-accent-500, #ff8420);
    opacity: 1;
}

/* 联系方式列：标签在左、值在右，值可换行 */
.ry-site-footer__list--contact {
    gap: 9px;
}

.ry-site-footer__contact-item {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    line-height: 1.65;
}

.ry-site-footer__contact-label {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.5);
}

.ry-site-footer__col--contact .ry-site-footer__list a {
    color: var(--ry-text-invert-soft);
}

.ry-site-footer__col--contact .ry-site-footer__list a:hover {
    color: var(--ry-text-invert);
}

/* 二维码：白卡片，保证任何背景下都能扫 */
.ry-site-footer__qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 136px;
    padding: 10px;
    border-radius: var(--ry-radius-md);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ry-secondary-700, #123a70);
}

.ry-site-footer__qr-img {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: var(--ry-radius-sm);
    background: var(--ry-surface-sunken);
    object-fit: contain;
}

.ry-site-footer__qr-tip {
    margin: 0;
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

/* 友情链接条 */
.ry-site-footer__links {
    border-top: 1px solid var(--ry-border-dark);
}

.ry-site-footer__links-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px var(--ry-space-5);
    padding-block: 12px;
}

.ry-site-footer__links-title {
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-invert);
}

.ry-site-footer__links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px var(--ry-space-5);
}

.ry-site-footer__links-list a {
    font-size: var(--ry-fs-13);
    color: var(--ry-text-invert-muted);
}

.ry-site-footer__links-list a:hover {
    color: var(--ry-text-invert);
}

/* 版权条 */
.ry-site-footer__bottom {
    border-top: 1px solid var(--ry-border-dark);
    background: rgba(5, 18, 39, 0.35);
}

.ry-site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px var(--ry-space-5);
    padding-block: 14px;
    font-size: var(--ry-fs-13);
}

.ry-site-footer__icp,
.ry-site-footer__police,
/* 主办单位 / 网站标识码：国办发〔2017〕47 号要求的页脚公示项，
   只在政府/事业单位网站上填，企业站留空即不渲染 */
.ry-site-footer__host,
.ry-site-footer__sitecode {
    color: var(--ry-text-invert-muted);
}

.ry-site-footer__icp:hover,
.ry-site-footer__police:hover {
    color: var(--ry-text-invert);
}

/* 主办单位与网站标识码是纯文本，不要跟着链接一起变色 */
.ry-site-footer__host,
.ry-site-footer__sitecode {
    white-space: nowrap;
}

/* 兼容别名 */
.ry-footer__top,
.ry-footer__col,
.ry-footer__title,
.ry-footer__links,
.ry-footer__contact,
.ry-footer__qr,
.ry-footer__bottom,
.ry-friendlinks {
    list-style: none;
}

.ry-friendlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px var(--ry-space-5);
    margin: 0;
    padding: 0;
}

.ry-friendlinks a {
    font-size: var(--ry-fs-13);
    color: var(--ry-text-invert-muted);
}

/* ==========================================================================
   13. 首页区块组件
   ========================================================================== */

/* 13.1 数据统计（深色「分量段」） */
.ry-stats {
    position: relative;
    overflow: hidden;
    padding-block: var(--ry-space-16);
    background: var(--ry-grad-dark);
    color: var(--ry-text-invert);
}

.ry-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(var(--ry-primary-rgb, 26, 109, 255), 0.45), transparent 55%),
        var(--ry-tex-grid);
    background-size: auto, var(--ry-tex-grid-size);
    opacity: 0.9;
    pointer-events: none;
}

.ry-stats .ry-wrap {
    position: relative;
    z-index: 1;
}

.ry-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ry-space-8);
}

.ry-stats__item {
    position: relative;
    padding-inline: var(--ry-space-4);
    text-align: center;
}

.ry-stats__item + .ry-stats__item::before {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 1px;
    background: var(--ry-border-dark);
}

.ry-stats__num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: var(--ry-fw-700);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ry-text-invert);
    font-variant-numeric: tabular-nums;
}

.ry-stats__suffix {
    font-size: 0.42em;
    font-style: normal;
    font-weight: var(--ry-fw-600);
    color: var(--ry-accent-400, #ff9440);
}

.ry-stats__label {
    margin-top: var(--ry-space-2);
    font-size: var(--ry-fs-14);
    color: var(--ry-text-invert-muted);
}

/* 13.2 关于我们：左文右图 */
.ry-about {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--ry-space-16);
}

.ry-about__text {
    min-width: 0;
}

.ry-about__text .ry-sec__title::after {
    margin-inline: 0;
}

.ry-about__intro {
    margin-top: var(--ry-space-5);
    font-size: var(--ry-fs-15);
    line-height: var(--ry-lh-19);
    color: var(--ry-text-soft);
}

.ry-about__points {
    display: grid;
    gap: var(--ry-space-5);
    margin: var(--ry-space-8) 0;
    padding: 0;
    list-style: none;
}

.ry-about__point {
    display: flex;
    align-items: flex-start;
    gap: var(--ry-space-4);
}

.ry-about__dot {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 1px solid var(--ry-primary-200, #bcd3ff);
    border-radius: 50%;
    background: var(--ry-primary-50, #eef4ff);
}

.ry-about__dot::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid var(--ry-primary-600, #1a6dff);
    border-left: 2px solid var(--ry-primary-600, #1a6dff);
    transform: rotate(-45deg);
}

.ry-about__point-title {
    margin: 0 0 4px;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-about__point-desc {
    margin: 0;
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
}

.ry-about__media {
    position: relative;
    min-width: 0;
}

.ry-about__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    border-radius: var(--ry-radius-lg);
    box-shadow: var(--ry-shadow-card);
}

/* 无配图：主色渐变 + 公司名（演示数据的主要形态） */
.ry-about__ph {
    aspect-ratio: 4 / 3;
    border-radius: var(--ry-radius-lg);
    box-shadow: var(--ry-shadow-card);
}

.ry-about__ph-text {
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-600);
    letter-spacing: 1px;
}

/* 图区装饰：左下主色块 + 右上虚线框 */
.ry-about__media::before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: -18px;
    z-index: -1;
    width: 148px;
    height: 148px;
    border-radius: var(--ry-radius-lg);
    background: var(--ry-grad-primary);
    opacity: 0.16;
}

.ry-about__media::after {
    content: "";
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: -1;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--ry-primary-300, #8db5ff);
    border-radius: var(--ry-radius-lg);
    opacity: 0.6;
}

/* 13.3 我们的优势：四张编号图标卡 */
.ry-advantages {
    gap: var(--ry-space-6);
}

.ry-adv {
    position: relative;
    overflow: hidden;
    padding: var(--ry-space-10) var(--ry-space-8);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-adv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ry-grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ry-dur) var(--ry-ease);
}

.ry-adv:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-adv:hover::before {
    transform: scaleX(1);
}

.ry-adv__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: var(--ry-space-5);
    border-radius: var(--ry-radius-md);
    background: var(--ry-grad-primary);
    color: #ffffff;
    box-shadow: 0 14px 26px -14px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.85);
}

.ry-adv__icon svg {
    width: 30px;
    height: 30px;
}

.ry-adv__title {
    margin: 0 0 var(--ry-space-3);
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-adv__desc {
    margin: 0;
    font-size: var(--ry-fs-14);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
}

.ry-adv__index {
    position: absolute;
    top: var(--ry-space-5);
    right: var(--ry-space-6);
    font-size: var(--ry-fs-38);
    font-weight: var(--ry-fw-700);
    line-height: 1;
    color: var(--ry-primary-600, #1a6dff);
    opacity: 0.08;
}

/* ------------------------------------------------------------------
   优势卡变成链接（home-advantages 的 link_items 开关打开时）
   ------------------------------------------------------------------
   优势常常不做成导航栏目，但首页每张卡都该能点进详情页。这里只补"可点"的反馈：
   去掉下划线、继承文字色、键盘焦点可见，悬停时标题变主色并把「查看详情 →」滑出来。 */
a.ry-adv {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.ry-adv:focus-visible {
    outline: 2px solid var(--ry-primary, #1a6dff);
    outline-offset: 3px;
}

.ry-adv__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--ry-space-4);
    font-size: var(--ry-fs-13, 13px);
    font-weight: var(--ry-fw-600, 600);
    color: var(--ry-primary, #1a6dff);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--ry-dur) var(--ry-ease), transform var(--ry-dur) var(--ry-ease);
}

a.ry-adv:hover .ry-adv__more,
a.ry-adv:focus-visible .ry-adv__more {
    opacity: 1;
    transform: translateY(0);
}

a.ry-adv:hover .ry-adv__title {
    color: var(--ry-primary, #1a6dff);
}

/* 触屏设备没有 hover：直接把「查看详情」显示出来，否则这张卡看起来不可点 */
@media (hover: none) {
    .ry-adv__more { opacity: 1; transform: none; }
}

/* 13.4 合作伙伴（演示数据用文字标签占位） */
.ry-partners {
    /* 用 flex 居中而不是 grid：合作伙伴数量不定，
       grid + auto-fit 在只有一两条时会把格子拉满整行（实测单条时 1100px 宽），
       显得空旷；flex + 固定区间宽度则永远居中、大小稳定。 */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ry-space-4);
}

.ry-partner__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    /* 240 → 300 宽、110 → 132 高、LOGO 72 → 104：
       企业站的合作客户墙是「实力展示」，图太小会显得寒酸。
       生成的 LOGO 是 2:1 的横版，放大后正好占满格子。 */
    width: 300px;
    max-width: 100%;
    min-height: 132px;
    padding: var(--ry-space-5) var(--ry-space-6);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    color: var(--ry-text-muted);
    font-size: var(--ry-fs-15);
    text-align: center;
    /* 不再整体去色：自有 LOGO 本来就是按主题色配的，
       灰度化之后整面墙发灰、显得没精神。改成轻微降不透明度，hover 提亮。 */
    opacity: 0.9;
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-partner__item img {
    width: auto;
    max-width: 100%;
    max-height: 104px;
    object-fit: contain;
}

.ry-partner__item:hover {
    opacity: 1;
    border-color: var(--ry-primary-200, #bcd3ff);
    color: var(--ry-primary-700, #1557cc);
    transform: translateY(-4px);
    box-shadow: var(--ry-shadow-card);
}

.ry-partner__item--text {
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    letter-spacing: 0.06em;
}

.ry-partner__name {
    font-weight: var(--ry-fw-600);
}

/* 13.5 新闻资讯：左大图文 + 右标题列表 */
.ry-news-block {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--ry-space-10);
    /* 左右两栏等高：原来 align-items: start，右侧列表只有 337px 而左侧大图 570px，
       右下角空出一大块。改成 stretch 让列表卡片撑满同一高度，条目仍从顶部排列。 */
    align-items: stretch;
}

.ry-nfeature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-nfeature:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-nfeature__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: var(--ry-surface-sunken);
    background-image: var(--ry-grad-soft);
}

.ry-nfeature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    transition: transform var(--ry-dur-slow) var(--ry-ease);
}

.ry-nfeature:hover .ry-nfeature__media img {
    transform: scale(1.04);
}

.ry-nfeature__body {
    padding: var(--ry-space-6);
}

.ry-nfeature__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ry-space-4);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-nfeature__date,
.ry-nfeature__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.ry-nfeature__date::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 -1px currentColor;
    opacity: 0.75;
}

.ry-nfeature__views::before {
    content: "";
    width: 14px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 50% / 60%;
    opacity: 0.75;
}

.ry-nfeature__title {
    margin: var(--ry-space-3) 0;
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-600);
    line-height: 1.5;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-nfeature:hover .ry-nfeature__title {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-nfeature__desc {
    margin: 0;
    font-size: var(--ry-fs-14);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-nfeature__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--ry-space-4);
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-500);
    color: var(--ry-primary-600, #1a6dff);
}

.ry-nlist {
    display: grid;
    /* 必须显式写 minmax(0, 1fr)。
       默认的 grid-auto-columns: auto 会把列宽撑到内容的 max-content ——
       而标题是 white-space: nowrap，max-content 就是整行标题的宽度（实测 887px），
       于是列表项突破 533px 的容器，整页出现 238px 的横向滚动条。
       用 minmax(0, 1fr) 把列的“最小宽度”压到 0，标题才能被省略号截断。 */
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0 var(--ry-space-6);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    list-style: none;
}

.ry-nlist__item {
    display: flex;
    gap: var(--ry-space-5);
    padding: var(--ry-space-5) 0;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
    min-width: 0;
}

.ry-nlist__item:last-child {
    border-bottom: 0;
}

/* 日期方块（对齐源站首页新闻列表的做法）：
   左边一个大号「日」+ 下面小号「年/月」的浅底圆角块，
   比一行灰色小字更有节奏，也更容易扫读 */
.ry-nlist__date {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 66px;
    padding: 8px 0 7px;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    transition: background-color var(--ry-dur) var(--ry-ease), border-color var(--ry-dur) var(--ry-ease);
}

.ry-nlist__item:hover .ry-nlist__date {
    border-color: var(--ry-primary-200, #bcd3ff);
    background: var(--ry-primary-50, #eef4ff);
}

.ry-nlist__day {
    font-size: 26px;
    font-weight: var(--ry-fw-800);
    color: var(--ry-primary-600, #1a6dff);
}

.ry-nlist__ym {
    margin-top: 3px;
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-nlist__text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.ry-nlist__title {
    font-size: var(--ry-fs-15);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
    /* 允许折到 2 行：原来强制 nowrap + 省略号，右侧列表每条只剩一行标题，
       下面留一大块空白，整块看起来很空。 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.ry-nlist__item:hover .ry-nlist__title {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-nlist__desc {
    margin: 5px 0 0;
    font-size: var(--ry-fs-13);
    line-height: 1.7;
    color: var(--ry-text-muted);
    /* 摘要同样给 2 行，和标题一起把列表项撑满 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* 13.6 联系我们 + 在线询盘 */
.ry-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--ry-space-10);
    /* 左右两栏等高。
       原来写的是 align-items: start，两栏各按自身内容高度排，
       实测左侧深色信息块 632px、右侧表单 764px，差 132px，视觉上明显不齐。 */
    align-items: stretch;
}

.ry-contact__info {
    display: flex;
    flex-direction: column;
    padding: var(--ry-space-8);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-grad-dark);
    color: var(--ry-text-invert-soft);
    box-shadow: var(--ry-shadow-card);
}

/* 信息列：联系方式在上、地图在下。
   早期把「联系方式列表」设成 flex:1，它会吃掉所有剩余高度，
   于是列表和地图之间空出好几行 —— 现在改成让**地图**吃掉剩余高度，
   列表保持自然高度，两者贴在一起，底部也不会有空白。 */
.ry-contact__info .ry-contact__list {
    flex: 0 0 auto;
    align-content: start;
}

.ry-contact__heading {
    margin: 0 0 var(--ry-space-5);
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-invert);
}

.ry-contact__list {
    display: grid;
    gap: var(--ry-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-contact__item {
    display: flex;
    gap: var(--ry-space-3);
    font-size: var(--ry-fs-14);
    line-height: 1.7;
}

.ry-contact__label {
    flex: 0 0 auto;
    min-width: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.ry-contact__value {
    color: var(--ry-text-invert-soft);
}

a.ry-contact__value:hover {
    color: var(--ry-text-invert);
}

.ry-contact__map {
    display: flex;
    flex: 1 1 auto;
    margin-top: var(--ry-space-5);
    min-height: 180px;
}

.ry-contact__map > * {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-contact__map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: var(--ry-radius-md);
}

/* 地图占位：渐变 + 定位图标 + 地址 */
.ry-map-ph {
    min-height: 180px;
    border-radius: var(--ry-radius-md);
    gap: 6px;
}

.ry-map-ph__label {
    font-size: var(--ry-fs-15);
    letter-spacing: 1px;
}

.ry-map-ph__addr {
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-400);
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.82);
}

/* 13.7 侧栏小工具（sidebar.php） */
.ry-widget {
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
}

.ry-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: var(--ry-space-5) var(--ry-space-5) var(--ry-space-4);
    border-bottom: 1px solid var(--ry-border-light);
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-widget__title::before {
    content: "";
    flex: 0 0 auto;
    width: 4px;
    height: 18px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-primary);
}

.ry-widget__body {
    padding: var(--ry-space-5);
}

/* 栏目导航 */
.ry-widget-nav {
    display: grid;
    gap: 2px;
}

.ry-widget-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-3);
    padding: 11px 14px;
    border-radius: var(--ry-radius-sm);
    font-size: var(--ry-fs-14);
    color: var(--ry-text-soft);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-widget-nav__item:hover {
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
}

.ry-widget-nav__item.is-active {
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-weight: var(--ry-fw-600);
}

.ry-widget-nav__count {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface-sunken);
    color: var(--ry-text-muted);
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-400);
    text-align: center;
}

.ry-widget-nav__item.is-active .ry-widget-nav__count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   栏目树（可折叠）
   components.css 里为了「无主题也能看」给树加了一套基础样式，但它的选择器
   特异性很高（深度越深越长），会在主题之后仍然胜出，于是：
     - 二级「公司新闻」的激活项被写成蓝字，压在主题的蓝色渐变底上（蓝底蓝字，几乎看不见）；
     - 二级项的左右内边距被重置成 0，激活胶囊里的文字贴着边。
   这里用同等或更高的特异性、并放在 theme.css 里把它们拉回主题的设计。
   -------------------------------------------------------------------------- */
.ry-widget-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-widget-nav__row {
    border-bottom: 0;
}

.ry-widget-nav__row > .ry-widget-nav__item,
.ry-widget-nav__row > .ry-widget-nav__item:last-child {
    padding: 10px 14px;
}

/* 子级缩进 + 左侧引导线（覆盖 components.css 的 padding-left: 12px） */
.ry-widget-nav__list--depth1,
.ry-widget-nav__list--depth2,
.ry-widget-nav__list--depth3 {
    margin: 2px 0 6px;
    padding-left: 14px;
    border-left: 2px solid var(--ry-border-light);
}

.ry-widget-nav__list--depth1 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item,
.ry-widget-nav__list--depth2 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item,
.ry-widget-nav__list--depth3 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item {
    padding: 8px 12px;
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

/* 激活项：必须是白字（不管在几级） */
.ry-widget-nav__list--depth1 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item.is-active,
.ry-widget-nav__list--depth2 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item.is-active,
.ry-widget-nav__list--depth3 > .ry-widget-nav__node > .ry-widget-nav__row > .ry-widget-nav__item.is-active {
    color: #ffffff;
    font-weight: var(--ry-fw-600);
}

.ry-widget-nav__toggle {
    width: 28px;
    height: 28px;
    margin-right: 4px;
    color: var(--ry-text-light);
}

/* 联系方式 */
.ry-widget-contact {
    display: grid;
    gap: var(--ry-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-widget-contact__item {
    display: grid;
    gap: 3px;
    font-size: var(--ry-fs-14);
    line-height: 1.7;
}

.ry-widget-contact__label {
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-widget-contact__item a,
.ry-widget-contact__value {
    color: var(--ry-text-soft);
    word-break: break-all;
}

.ry-widget-contact__item a:hover {
    color: var(--ry-primary-600, #1a6dff);
}

/* 热门内容 */
.ry-widget-hot {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-widget-hot__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ry-space-3);
    padding: 11px 0;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-widget-hot__item:last-child {
    border-bottom: 0;
}

.ry-widget-hot__link {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--ry-fs-14);
    color: var(--ry-text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-widget-hot__item:hover .ry-widget-hot__link {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-widget-hot__date {
    flex: 0 0 auto;
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

/* ==========================================================================
   Grid 安全网：单列堆叠容器必须显式声明 minmax(0, 1fr)
   --------------------------------------------------------------------------
   症状：右侧栏的「热门推荐」列表项实测 484px 宽，而它的容器只有 278px，
   整块越界到视口外（x 到 1485，视口只有 1440）。

   原因：`display:grid` 没写 grid-template-columns 时，隐式列是 `auto`；
   而 grid 项默认 `min-width: auto`（等于 min-content）。
   里面只要有 `white-space: nowrap` 的标题，min-content 就是整行文字宽度，
   轨道于是被撑到 max-content —— 内部的 `text-overflow: ellipsis`
   永远不会触发，因为元素根本没有被压缩过。

   新闻列表 `.ry-nlist` 之前整页横向溢出 238px，就是同一个原因。
   凡是「单列堆叠 + 内部有省略号截断」的容器，都要写成 minmax(0, 1fr)。
   ========================================================================== */
.ry-widget-hot,
.ry-widget-nav,
.ry-widget-contact,
.ry-nlist,
.ry-nfeature__meta,
.ry-contact__list,
.ry-site-footer__list,
.ry-site-footer__links-inner,
.ry-site-footer__links-list,
.ry-list--faq {
    grid-template-columns: minmax(0, 1fr);
}

/* 同上：这些容器里的直接子项也要允许收缩到 0 */
.ry-widget-hot > *,
.ry-widget-nav > *,
.ry-widget-contact > *,
.ry-nlist > *,
.ry-contact__list > *,
.ry-site-footer__list > * {
    min-width: 0;
}

/* 热门标签 */
.ry-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ry-widget-tags__item {
    padding: 5px 12px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-widget-tags__item:hover {
    background: var(--ry-primary-600, #1a6dff);
    border-color: var(--ry-primary-600, #1a6dff);
    color: #ffffff;
}

/* 13.8 标签云（tags.php）：热度等级越高，字号与底色越重 */
.ry-tagcloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ry-space-3);
}

.ry-tagcloud__item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface);
    color: var(--ry-text-soft);
    font-size: var(--ry-fs-14);
    line-height: 1.4;
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-tagcloud__item:hover {
    border-color: transparent;
    background: var(--ry-grad-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--ry-shadow-card);
}

.ry-tagcloud__name {
    white-space: nowrap;
}

.ry-tagcloud__count {
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
    font-variant-numeric: tabular-nums;
}

.ry-tagcloud__item:hover .ry-tagcloud__count {
    color: rgba(255, 255, 255, 0.85);
}

.ry-tagcloud__item--l1 {
    font-size: var(--ry-fs-13);
}

.ry-tagcloud__item--l2 {
    font-size: var(--ry-fs-14);
}

.ry-tagcloud__item--l3 {
    border-color: var(--ry-primary-200, #bcd3ff);
    color: var(--ry-primary-700, #1557cc);
    font-size: var(--ry-fs-16);
}

.ry-tagcloud__item--l4 {
    border-color: var(--ry-primary-300, #8db5ff);
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-600);
}

.ry-tagcloud__item--l5 {
    border-color: transparent;
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-700);
}

.ry-tagcloud__item--l5 .ry-tagcloud__count {
    color: rgba(255, 255, 255, 0.85);
}

/* 13.2 HTML 站点地图（templates/_shared/sitemap.php）
   每个栏目一块，块内是标题链接瀑布；使用多列 auto-fill 让长列表不至于拉成一条竖线。 */
.ry-map__block {
    margin-bottom: var(--ry-space-8);
    padding: var(--ry-space-6) var(--ry-space-6) var(--ry-space-5);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-xs, 0 1px 2px rgba(15, 23, 42, .04));
}

.ry-map__block:last-child {
    margin-bottom: 0;
}

.ry-map__title {
    display: flex;
    align-items: center;
    gap: var(--ry-space-3);
    margin: 0 0 var(--ry-space-4);
    padding-left: var(--ry-space-3);
    border-left: 3px solid var(--ry-primary-500, #1a6dff);
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-700);
    line-height: 1.4;
    color: var(--ry-text-strong);
}

.ry-map__title a {
    color: inherit;
}

.ry-map__title a:hover {
    color: var(--ry-primary-600, #1557cc);
}

.ry-map__count {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface-sunken);
    color: var(--ry-text-muted);
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-600);
    text-align: center;
}

.ry-map__sub {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ry-space-2) var(--ry-space-3);
    margin: 0 0 var(--ry-space-4);
    padding: 0 0 var(--ry-space-3);
    border-bottom: 1px dashed var(--ry-border-light);
    list-style: none;
}

.ry-map__sub li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ry-map__sub a {
    padding: 3px 12px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-700, #1557cc);
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-500);
    transition: background-color var(--ry-dur) var(--ry-ease), color var(--ry-dur) var(--ry-ease);
}

.ry-map__sub a:hover {
    background: var(--ry-grad-primary);
    color: #ffffff;
}

.ry-map__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--ry-space-2) var(--ry-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ry-map__links li {
    display: flex;
    align-items: baseline;
    gap: var(--ry-space-2);
    min-width: 0;
    padding: 5px 0;
    border-bottom: 1px solid var(--ry-border-light);
}

.ry-map__links a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--ry-text);
    font-size: var(--ry-fs-14);
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--ry-dur) var(--ry-ease);
}

.ry-map__links a::before {
    content: "·";
    margin-right: 6px;
    color: var(--ry-text-light);
}

.ry-map__links a:hover {
    color: var(--ry-primary-600, #1557cc);
}

.ry-map__date {
    flex: 0 0 auto;
    color: var(--ry-text-light);
    font-size: var(--ry-fs-12);
    font-variant-numeric: tabular-nums;
}

.ry-map__more a {
    color: var(--ry-primary-600, #1557cc);
    font-weight: var(--ry-fw-600);
}

/* 页脚底栏的辅助入口（网站地图 / RSS） */
.ry-site-footer__meta {
    display: inline-flex;
    align-items: center;
    gap: var(--ry-space-2);
    color: var(--ry-text-light);
    font-size: var(--ry-fs-13);
}

.ry-site-footer__meta a {
    color: inherit;
    transition: color var(--ry-dur) var(--ry-ease);
}

.ry-site-footer__meta a:hover {
    color: var(--ry-primary-500, #1a6dff);
}

.ry-site-footer__meta-sep {
    opacity: .45;
}

@media (max-width: 768px) {
    .ry-map__block {
        padding: var(--ry-space-5) var(--ry-space-4);
    }

    .ry-map__links {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-map__links li {
        border-bottom: 1px solid var(--ry-border-light);
    }
}

/* ==========================================================================
   14. 内容卡片（pcard / ncard / ccard / jcard / dcard / gcard / vcard）
   选择器严格对标 _shared/components/*-card.php 的真实输出。
   ========================================================================== */

/* 14.0 图区公共部分 */
.ry-pcard__media,
.ry-ncard__media,
.ry-ccard__media,
.ry-gcard__media,
.ry-vcard__media,
.ry-nfeature__media {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--ry-surface-sunken);
    background-image: var(--ry-grad-soft);
}

/* 图区同时挂了 ry-thumb--empty（无图占位）时，必须用深色底 + 白字。
   上面这条 .ry-*__media 的浅色渐变在文件里位置更靠后，会盖掉 .ry-thumb--empty，
   结果就是「白字白底、占位块看不见」——这里用双类名提高优先级压回去。 */
.ry-pcard__media.ry-thumb--empty,
.ry-ncard__media.ry-thumb--empty,
.ry-ccard__media.ry-thumb--empty,
.ry-gcard__media.ry-thumb--empty,
.ry-vcard__media.ry-thumb--empty,
.ry-nfeature__media.ry-thumb--empty {
    background-color: var(--ry-secondary-700, #123a70);
    background-image: var(--ry-grad-primary), var(--ry-tex-grid);
    background-size: auto, var(--ry-tex-grid-size);
    color: rgba(255, 255, 255, 0.92);
}

.ry-pcard__img,
.ry-ncard__media img,
.ry-ccard__img,
.ry-gcard__img,
.ry-vcard__img,
.ry-nfeature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    transition: transform var(--ry-dur-slow) var(--ry-ease);
}

.ry-pcard:hover .ry-pcard__img,
.ry-ncard:hover .ry-ncard__media img,
.ry-ccard:hover .ry-ccard__img,
.ry-gcard:hover .ry-gcard__img,
.ry-vcard:hover .ry-vcard__img {
    transform: scale(1.04);
}

/* 14.1 产品卡 */
.ry-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-pcard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-pcard__media {
    aspect-ratio: 4 / 3;
}

/* 角标组（list 页卡片）叠在图区左上，单个角标（首页卡片）已在 §5 定位 */
.ry-pcard__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ry-pcard__badges .ry-badge {
    position: static;
    box-shadow: 0 6px 16px -10px rgba(7, 27, 56, 0.6);
}

.ry-pcard__badges .ry-badge--top {
    background: var(--ry-grad-accent);
    color: #ffffff;
}

.ry-pcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--ry-space-5);
}

.ry-pcard__sku {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-family: var(--ry-font-mono);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-pcard__title {
    margin: 0 0 var(--ry-space-2);
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.5;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-pcard__title a {
    color: inherit;
}

.ry-pcard:hover .ry-pcard__title,
.ry-pcard:hover .ry-pcard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-pcard__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 var(--ry-space-2);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-pcard__brand-label,
.ry-pcard__sku-label {
    color: var(--ry-text-light);
}

.ry-pcard__excerpt,
.ry-pcard__desc {
    margin: 0 0 var(--ry-space-4);
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格：突出但不刺眼，市场价划线 */
.ry-pcard__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    font-size: var(--ry-fs-20);
    font-weight: var(--ry-fw-700);
    color: var(--ry-accent-600, #ff7a18);
    font-variant-numeric: tabular-nums;
}

.ry-pcard__price em,
.ry-pcard__price-symbol {
    margin-right: 1px;
    font-size: 0.72em;
    font-style: normal;
}

.ry-pcard__price small,
.ry-pcard__unit {
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-400);
    color: var(--ry-text-muted);
}

.ry-pcard__price-sep {
    margin: 0 1px;
    color: var(--ry-text-light);
}

.ry-pcard__price-consult,
.ry-pcard__price--consult {
    font-size: var(--ry-fs-14);
    font-weight: var(--ry-fw-500);
    color: var(--ry-text-muted);
}

.ry-pcard__market {
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-400);
    color: var(--ry-text-light);
    text-decoration: line-through;
}

.ry-pcard__actions {
    /* 用 grid 而不是 flex：
       原来写 display:flex + .ry-btn{flex:1 1 auto}，手机上（390px）实测两个按钮
       各占 316px 且**既不换行也不收缩**，第二个按钮被推到卡片外 287px，
       左右都被切掉。根因是 flex 项 min-width:auto 与百分比基准之间的循环计算。
       改成 grid + minmax(0,1fr)，轨道宽度完全由容器决定，不可能越界。 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--ry-space-2);
    margin-top: var(--ry-space-4);
    padding-top: var(--ry-space-4);
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-pcard__actions .ry-btn {
    min-width: 0;
    padding-inline: 14px;
}

/* 首页产品卡的底部价格行 + 圆形箭头 */
.ry-pcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ry-space-3);
    margin-top: auto;
    padding-top: var(--ry-space-4);
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-pcard__foot .ry-pcard__price {
    margin-top: 0;
}

.ry-pcard__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-600, #1a6dff);
    font-size: var(--ry-fs-15);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-pcard:hover .ry-pcard__arrow {
    background: var(--ry-grad-primary);
    color: #ffffff;
    transform: translateX(2px);
}

/* 产品卡横向形态（$layout === 'list'） */
.ry-pcard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-pcard--list .ry-pcard__media {
    flex: 0 0 280px;
    aspect-ratio: auto;
    min-height: 200px;
}

.ry-pcard--list .ry-pcard__body {
    padding: var(--ry-space-6);
}

.ry-pcard--list .ry-pcard__title {
    font-size: var(--ry-fs-18);
}

.ry-pcard--list .ry-pcard__excerpt,
.ry-pcard--list .ry-pcard__desc {
    -webkit-line-clamp: 3;
}

/* 14.2 新闻卡 */
.ry-ncard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-ncard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-ncard__media {
    aspect-ratio: 16 / 9;
}

.ry-ncard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--ry-space-5);
}

.ry-ncard__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ry-space-4);
    margin-bottom: var(--ry-space-3);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-ncard__date,
.ry-ncard__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.ry-ncard__date::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 -1px currentColor;
    opacity: 0.75;
}

.ry-ncard__views::before {
    content: "";
    width: 14px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 50% / 60%;
    opacity: 0.75;
}

.ry-ncard__title {
    margin: 0 0 var(--ry-space-3);
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.55;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ncard__title a {
    color: inherit;
}

.ry-ncard:hover .ry-ncard__title,
.ry-ncard:hover .ry-ncard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-ncard__desc {
    margin: 0 0 var(--ry-space-4);
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ncard__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-500);
    color: var(--ry-primary-600, #1a6dff);
}

.ry-ncard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-ncard--list .ry-ncard__media {
    flex: 0 0 320px;
    aspect-ratio: auto;
    min-height: 190px;
}

/* 列表布局下没有缩略图时整卡不输出图区：文字铺满，靠左对齐 */
.ry-ncard--no-media {
    flex-direction: row;
}

.ry-ncard--no-media .ry-ncard__body {
    justify-content: center;
    padding: var(--ry-space-6) var(--ry-space-7);
}

/* 无图区时「置顶」只能放在卡片内，用一个轻量小旗标 */
.ry-ncard__flag {
    position: absolute;
    top: var(--ry-space-4);
    right: var(--ry-space-4);
    padding: 2px 10px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-grad-accent);
    color: #ffffff;
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-600);
}

.ry-ncard--no-media {
    position: relative;
}

.ry-ncard--list .ry-ncard__body {
    justify-content: center;
    padding: var(--ry-space-6);
}

.ry-ncard--list .ry-ncard__title {
    font-size: var(--ry-fs-18);
}

.ry-ncard--list .ry-ncard__desc {
    -webkit-line-clamp: 3;
}

/* 14.3 案例卡：图区 hover 出遮罩 */
.ry-ccard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-ccard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-ccard__media {
    aspect-ratio: 4 / 3;
    background-image: var(--ry-grad-dark);
}

.ry-ccard__media > .ry-thumb--empty {
    background-image: var(--ry-grad-primary), var(--ry-tex-grid);
}

/* 遮罩：默认隐藏，hover 浮出「查看详情」 */
.ry-ccard__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 18, 39, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ry-dur) var(--ry-ease), visibility var(--ry-dur) var(--ry-ease);
}

.ry-ccard:hover .ry-ccard__overlay {
    opacity: 1;
    visibility: visible;
}

.ry-ccard__overlay-text {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--ry-radius-pill);
    color: #ffffff;
    font-size: var(--ry-fs-13);
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform var(--ry-dur) var(--ry-ease), background-color var(--ry-dur) var(--ry-ease);
}

.ry-ccard:hover .ry-ccard__overlay-text {
    transform: none;
    background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   14.9 合作客户卡片（partner-card）
   --------------------------------------------------------------------------
   合作客户是独立内容模型（对应源站 ry_partner），有独立栏目、列表与详情页，
   与页脚的「友情链接」是两回事：前者是内容、有 Logo 墙与详情页。

   Logo 处理的两条硬规则：
     ① 必须 object-fit: contain —— LOGO 被裁切等于品牌失真；
     ② 统一盒子尺寸 —— 源站按原图像素显示、不放大，小 LOGO 恒小、格子空荡。
   默认灰度、悬停恢复彩色，是 Logo 墙的行业惯例。
   ========================================================================== */
.ry-ptcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-ptcard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-ptcard__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    padding: var(--ry-space-4) var(--ry-space-5);
    background: var(--ry-surface-sunken);
}

.ry-ptcard__logo {
    max-width: 100%;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity var(--ry-dur) var(--ry-ease), transform var(--ry-dur) var(--ry-ease);
}

.ry-ptcard:hover .ry-ptcard__logo {
    opacity: 1;
    transform: scale(1.04);
}

/* 没有 LOGO 时用首字做一个色块，比空着好看，也不会出现破图 */
.ry-ptcard__logo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--ry-radius-md);
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-size: var(--ry-fs-24);
    font-weight: var(--ry-fw-700);
    filter: none;
}

.ry-ptcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: var(--ry-space-5);
}

.ry-ptcard__title {
    margin: 0;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.5;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ptcard__title a:hover {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-ptcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px var(--ry-space-3);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-ptcard__meta-item {
    padding: 1px 8px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-surface-sunken);
}

.ry-ptcard__excerpt {
    margin: 0;
    font-size: var(--ry-fs-13);
    line-height: 1.7;
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ptcard__site {
    margin-top: auto;
    padding-top: var(--ry-space-3);
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-600);
    color: var(--ry-primary-600, #1a6dff);
}

.ry-ptcard__site:hover {
    color: var(--ry-primary-700, #1557cc);
}

/* ==========================================================================
   14.12 图片放大（灯箱）
   --------------------------------------------------------------------------
   旧站 main.js 里有一套完整实现，但绑定选择器写成 .article-content img，
   与它自己模板用的 .detail-content 对不上，整套代码是死的。
   这里绑定 .ry-article img 与图集主图，真正可用。
   ========================================================================== */
.ry-zoomable {
    cursor: zoom-in;
}

.ry-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 12, 26, 0.92);
    overscroll-behavior: contain;
}

.ry-lightbox.is-open {
    display: flex;
}

.ry-lightbox__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ry-lightbox__img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    transition: transform 0.08s linear;
}

.ry-lightbox__img:active {
    cursor: grabbing;
}

.ry-lightbox__btn {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background-color var(--ry-dur) var(--ry-ease);
}

.ry-lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.ry-lightbox__close {
    top: 18px;
    right: 18px;
}

.ry-lightbox__nav {
    top: 50%;
    margin-top: -22px;
    font-size: 28px;
}

.ry-lightbox__nav--prev { left: 18px; }
.ry-lightbox__nav--next { right: 18px; }

.ry-lightbox__bar {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--ry-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: var(--ry-fs-13);
    backdrop-filter: blur(6px);
}

.ry-lightbox__tool {
    min-width: 32px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ry-radius-sm);
    background: transparent;
    color: inherit;
    font-size: var(--ry-fs-15);
    cursor: pointer;
    transition: background-color var(--ry-dur) var(--ry-ease);
}

.ry-lightbox__tool:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ry-lightbox__zoom,
.ry-lightbox__count {
    min-width: 52px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .ry-lightbox__img {
        max-width: 96vw;
        max-height: 76vh;
    }

    .ry-lightbox__nav--prev { left: 8px; }
    .ry-lightbox__nav--next { right: 8px; }
}

/* ==========================================================================
   14.11 图集：左右滑动浏览
   --------------------------------------------------------------------------
   用原生 overflow-x + scroll-snap 实现，而不是手写 transform 位移：
   移动端能直接拿到惯性滑动、橡皮筋与「滑到边界松手回弹」，
   JS 只需要管箭头、计数器、缩略图高亮和键盘。
   主图高度用 clamp 而不是源站那种写死的 500px —— 手机上 500px 会占掉整屏。
   ========================================================================== */
.ry-gallery-slider {
    position: relative;
}

.ry-gallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface-sunken);
}

.ry-gallery-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* 隐藏滚动条，靠箭头/缩略图/手势操作 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ry-gallery-track::-webkit-scrollbar {
    display: none;
}

.ry-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(220px, 50vw, 520px);
    padding: var(--ry-space-3);
}

.ry-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--ry-radius-md);
}

/* 左右箭头 */
.ry-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ry-text-strong);
    box-shadow: 0 4px 14px rgba(7, 27, 56, 0.16);
    cursor: pointer;
    transition: background-color var(--ry-dur) var(--ry-ease), color var(--ry-dur) var(--ry-ease),
        transform var(--ry-dur) var(--ry-ease);
}

.ry-gallery-nav:hover {
    background: var(--ry-primary-600, #1a6dff);
    color: #ffffff;
}

.ry-gallery-nav:active {
    transform: scale(0.94);
}

.ry-gallery-nav--prev { left: 12px; }
.ry-gallery-nav--next { right: 12px; }

.ry-gallery-count {
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
    font-variant-numeric: tabular-nums;
}

/* 缩略图：横向滚动（不要用 flex-wrap，图多时会把页面撑长） */
.ry-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: var(--ry-space-4);
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ry-gallery-thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface-sunken);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--ry-dur) var(--ry-ease), border-color var(--ry-dur) var(--ry-ease);
}

.ry-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
}

.ry-gallery-thumb:hover { opacity: 1; }

.ry-gallery-thumb.is-active {
    border-color: var(--ry-primary-600, #1a6dff);
    opacity: 1;
}

@media (max-width: 768px) {
    .ry-gallery-nav {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }

    .ry-gallery-nav--prev { left: 6px; }
    .ry-gallery-nav--next { right: 6px; }

    .ry-gallery-thumb {
        width: 68px;
        height: 52px;
    }
}

/* ==========================================================================
   14.10 视频播放区
   --------------------------------------------------------------------------
   补了源站缺的三点：poster 用封面图、playsinline 解决 iOS 强制全屏、
   preload="metadata" 避免一进页面就拉整个视频文件。
   外层固定 16:9，防止视频元数据到达前后高度跳动（CLS）。
   ========================================================================== */
.ry-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ry-radius-lg);
    background: #000;
    box-shadow: var(--ry-shadow-card);
}

.ry-video__player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

@media (max-width: 768px) {
    .ry-video {
        border-radius: var(--ry-radius-md);
    }
}

/* 合作客户详情页的品牌区：LOGO + 官网按钮（源站详情页两者都没有） */
.ry-partner-hero {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ry-space-5);
    margin-top: var(--ry-space-5);
    padding: var(--ry-space-5);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface-sunken);
}

.ry-partner-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 120px;
    height: 76px;
    padding: 0 var(--ry-space-3);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
}

.ry-partner-hero__logo img {
    max-width: 200px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 右图右文的横向形态（列表变体 list_media 时用） */
.ry-ptcard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-ptcard--list .ry-ptcard__media {
    flex: 0 0 200px;
    height: auto;
}

.ry-ptcard--list .ry-ptcard__body {
    justify-content: center;
}

@media (max-width: 768px) {
    .ry-ptcard--list {
        flex-direction: column;
    }

    .ry-ptcard--list .ry-ptcard__media {
        flex: none;
        height: 132px;
    }
}

/* 首页案例卡的右下角提示胶囊 */
.ry-ccard__hover {
    position: absolute;
    /* 用 inset 简写把四个方向一次定死：只写 right/bottom 的话，
       兜底层 components.css 若给了 left/top，元素会被拉伸成整张卡片大小
       （实测会变成一个盖住卡片的巨大白色椭圆） */
    inset: auto 14px 14px auto;
    z-index: 3;
    padding: 6px 14px;
    border-radius: var(--ry-radius-pill);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ry-primary-700, #1557cc);
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-600);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-ccard:hover .ry-ccard__hover {
    opacity: 1;
    transform: none;
}

.ry-ccard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--ry-space-5);
}

.ry-ccard__title {
    margin: 0;
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-600);
    line-height: 1.5;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ccard__title a {
    color: inherit;
}

.ry-ccard:hover .ry-ccard__title,
.ry-ccard:hover .ry-ccard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-ccard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--ry-space-4);
    margin-top: var(--ry-space-3);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-ccard__meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ry-ccard__meta-item em,
.ry-ccard__meta-label {
    font-style: normal;
    color: var(--ry-text-light);
}

.ry-ccard__meta-value {
    color: var(--ry-text-soft);
}

.ry-ccard__excerpt {
    margin: var(--ry-space-3) 0 0;
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-ccard__foot {
    margin-top: auto;
    padding-top: var(--ry-space-4);
}

.ry-ccard__date {
    font-size: var(--ry-fs-12);
    color: var(--ry-text-light);
}

.ry-ccard__date-label {
    color: var(--ry-text-light);
}

.ry-ccard__date-value {
    color: var(--ry-text-muted);
}

.ry-ccard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-ccard--list .ry-ccard__media {
    flex: 0 0 320px;
    aspect-ratio: auto;
    min-height: 200px;
}

.ry-ccard--list .ry-ccard__body {
    justify-content: center;
    padding: var(--ry-space-6);
}

.ry-ccard--list .ry-ccard__meta-item,
.ry-ccard--list .ry-ccard__meta-item .ry-ccard__meta-label,
.ry-ccard--list .ry-ccard__meta-item .ry-ccard__meta-value {
    display: block;
}

/* 14.4 招聘卡 */
.ry-jcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--ry-space-6);
    padding: var(--ry-space-5) var(--ry-space-6);
    border: 1px solid var(--ry-border-light);
    border-left: 3px solid transparent;
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-jcard:hover {
    transform: translateY(-3px);
    border-left-color: var(--ry-primary-600, #1a6dff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-jcard__main {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-jcard__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ry-space-4);
}

.ry-jcard__title {
    margin: 0;
    font-size: var(--ry-fs-18);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
}

.ry-jcard__title a {
    color: inherit;
}

.ry-jcard:hover .ry-jcard__title,
.ry-jcard:hover .ry-jcard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-jcard__salary {
    flex: 0 0 auto;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-700);
    color: var(--ry-accent-600, #ff7a18);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ry-jcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--ry-space-5);
    margin-top: var(--ry-space-3);
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

.ry-jcard__meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ry-jcard__meta-label {
    color: var(--ry-text-light);
}

.ry-jcard__meta-value {
    color: var(--ry-text-soft);
}

/* 截止日期已过期：值变红 + 追加「已过期」提示 */
.ry-jcard__meta-item--deadline.is-expired .ry-jcard__meta-value {
    color: var(--ry-danger);
    text-decoration: line-through;
}

.ry-jcard__meta-item--deadline.is-expired::after {
    content: "已过期";
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: var(--ry-radius-pill);
    background: var(--ry-danger-soft);
    color: var(--ry-danger);
    font-size: var(--ry-fs-12);
    line-height: 1.7;
}

.ry-jcard__excerpt {
    margin: var(--ry-space-3) 0 0;
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-jcard__actions {
    flex: 0 0 auto;
}

.ry-jcard--list .ry-jcard__meta-item,
.ry-jcard--list .ry-jcard__meta-item .ry-jcard__meta-label,
.ry-jcard--list .ry-jcard__meta-item .ry-jcard__meta-value {
    display: block;
}

.ry-jcard--list .ry-jcard__meta {
    gap: var(--ry-space-3) var(--ry-space-6);
}

/* 「← 返回列表」：详情页底部
   旧站下载/招聘/FAQ 三个栏目都有；内容只有一条时上一篇/下一篇不显示，
   没有这个入口用户就困在详情页里了 */
.ry-back-list {
    display: flex;
    justify-content: center;
    margin-top: var(--ry-space-8);
    padding-top: var(--ry-space-6);
    border-top: 1px solid var(--ry-border-light);
}

/* ==========================================================================
   14.14 下载卡
   --------------------------------------------------------------------------
   信息结构沿用旧站（图标 + 文件名 + 大小 + 下载量 + 大按钮），
   但把旧站写死的蓝色渐变换成主题色，否则换主题后会冒出一个蓝按钮。
   文件缺失时给明确空态，而不是留一句「点击下方按钮下载」却没有按钮。
   ========================================================================== */
.ry-dlcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ry-space-5);
    padding: var(--ry-space-6);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface-sunken);
}

.ry-dlcard--empty {
    justify-content: center;
    background: var(--ry-surface-sunken);
}

.ry-dlcard__empty-tip {
    margin: 0;
    font-size: var(--ry-fs-14);
    color: var(--ry-text-muted);
}

.ry-dlcard__left {
    display: flex;
    align-items: center;
    gap: var(--ry-space-4);
    min-width: 0;
}

.ry-dlcard__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: var(--ry-radius-md);
    background: var(--ry-grad-primary);
    color: #ffffff;
    box-shadow: 0 6px 18px -8px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.8);
}

.ry-dlcard__info {
    min-width: 0;
}

.ry-dlcard__name {
    margin: 0;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
    word-break: break-all;
}

.ry-dlcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--ry-space-5);
    margin: 6px 0 0;
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

.ry-dlcard__meta strong {
    color: var(--ry-text-strong);
    font-weight: var(--ry-fw-600);
}

.ry-dlcard__btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .ry-dlcard {
        padding: var(--ry-space-5);
    }

    .ry-dlcard__btn {
        width: 100%;
    }
}

/* ==========================================================================
   14.13 常见问题列表（faq-card）
   --------------------------------------------------------------------------
   形态对齐旧站：一行一问，「Q1. 问题 …… 查看详情 →」。
   旧站 FAQ 列表既不是手风琴（没有答案元素、没有折叠 JS），
   也不是图片卡片 —— 之前新站落到通用新闻卡上，每条问题顶着一个大空图块。
   ========================================================================== */
.ry-list--faq {
    display: grid;
    gap: 12px;
}

.ry-faq-item {
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    transition: border-color var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        transform var(--ry-dur) var(--ry-ease);
}

.ry-faq-item:hover {
    transform: translateY(-2px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-card);
}

.ry-faq-item__link {
    display: flex;
    align-items: center;
    gap: var(--ry-space-4);
    padding: 18px var(--ry-space-6);
}

.ry-faq-item__q {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--ry-radius-sm);
    background: var(--ry-grad-primary);
    color: #ffffff;
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-700);
    letter-spacing: 0.02em;
}

.ry-faq-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-faq-item__title {
    display: block;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.55;
    color: var(--ry-text-strong);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-faq-item:hover .ry-faq-item__title {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-faq-item__excerpt {
    display: block;
    margin-top: 4px;
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-faq-item__more {
    flex: 0 0 auto;
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-600);
    color: var(--ry-primary-600, #1a6dff);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ry-faq-item__link {
        padding: 14px var(--ry-space-4);
        gap: var(--ry-space-3);
        align-items: flex-start;
    }

    .ry-faq-item__title,
    .ry-faq-item__excerpt {
        white-space: normal;
    }

    .ry-faq-item__more {
        display: none;
    }
}

/* 招聘表格式列表（list.php 的 .ry-list--table）：行与表头真正对齐 */
.ry-list__head {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) 1fr 1fr auto;
    gap: var(--ry-space-4);
    padding: 13px var(--ry-space-6);
    background: var(--ry-secondary-700, #123a70);
    color: var(--ry-text-invert-soft);
    font-size: var(--ry-fs-13);
    font-weight: var(--ry-fw-500);
}

.ry-list__head .ry-list__col:nth-child(4) {
    display: none;
}

.ry-list__col--title {
    color: var(--ry-text-invert);
}

.ry-list--table {
    display: grid;
    gap: 0;
    border: 1px solid var(--ry-border-light);
    border-top: 0;
    border-radius: 0 0 var(--ry-radius-md) var(--ry-radius-md);
    overflow: hidden;
    background: var(--ry-surface);
}

.ry-list--table .ry-jcard {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) 1fr 1fr auto;
    align-items: center;
    gap: var(--ry-space-4);
    padding: 14px var(--ry-space-6);
    border: 0;
    border-bottom: 1px solid var(--ry-border-light);
    border-radius: 0;
    box-shadow: none;
}

.ry-list--table .ry-jcard:last-child {
    border-bottom: 0;
}

.ry-list--table .ry-jcard:hover {
    background: var(--ry-primary-50, #eef4ff);
    transform: none;
}

/* 让 title / 部门 / 地点 / 按钮 直接落进表格列 */
.ry-list--table .ry-jcard__main {
    display: contents;
}

.ry-list--table .ry-jcard__head {
    display: flex;
    align-items: baseline;
    gap: var(--ry-space-3);
    min-width: 0;
}

.ry-list--table .ry-jcard__title {
    font-size: var(--ry-fs-15);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-list--table .ry-jcard__salary {
    font-size: var(--ry-fs-13);
}

.ry-list--table .ry-jcard__meta {
    display: contents;
}

.ry-list--table .ry-jcard__meta-item {
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
}

/* 表格模式只保留前两项（部门 / 地点）与表头对齐 */
.ry-list--table .ry-jcard__meta-item:nth-child(n + 3) {
    display: none;
}

.ry-list--table .ry-jcard__excerpt {
    display: none;
}

.ry-list--table .ry-jcard__actions {
    justify-self: end;
}

/* 14.5 下载卡 */
.ry-dcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--ry-space-5);
    padding: var(--ry-space-5) var(--ry-space-6);
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-dcard:hover {
    transform: translateY(-4px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-dcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--ry-radius-md);
    background: var(--ry-secondary-500, #26456f);
    color: #ffffff;
    font-size: var(--ry-fs-12);
    font-weight: var(--ry-fw-700);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 22px -14px rgba(var(--ry-secondary-rgb), 0.9);
}

/* 资料封面（有封面图时替代文字块）：固定 4:3 小图，列表里高度整齐 */
.ry-dcard__cover {
    flex: 0 0 auto;
    width: 132px;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface-sunken);
    aspect-ratio: 3 / 2;
    box-shadow: 0 12px 24px -18px rgba(var(--ry-secondary-rgb), 0.8);
}

.ry-dcard__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    transition: transform var(--ry-dur-slow, .5s) var(--ry-ease);
}

.ry-dcard:hover .ry-dcard__cover img {
    transform: scale(1.04);
}

/* 文件类型底色（-pdf / -doc / -xls / -zip / -file，同时兼容 data-type 写法） */
.ry-dcard__icon--pdf,
.ry-dcard__icon[data-type="pdf"] {
    background: linear-gradient(135deg, #ff6b6b, #e03131);
}

.ry-dcard__icon--doc,
.ry-dcard__icon--docx,
.ry-dcard__icon[data-type="doc"] {
    background: linear-gradient(135deg, #4dabf7, #1c7ed6);
}

.ry-dcard__icon--xls,
.ry-dcard__icon--xlsx,
.ry-dcard__icon[data-type="xls"] {
    background: linear-gradient(135deg, #51cf66, #2b8a3e);
}

.ry-dcard__icon--zip,
.ry-dcard__icon--rar,
.ry-dcard__icon[data-type="zip"] {
    background: linear-gradient(135deg, #ffd43b, #e8a300);
    color: #4a3600;
}

.ry-dcard__icon--file {
    background: linear-gradient(135deg, var(--ry-secondary-400, #4e6a99), var(--ry-secondary-700, #123a70));
}

.ry-dcard__icon-text {
    line-height: 1;
}

.ry-dcard__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ry-dcard__title {
    margin: 0;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    color: var(--ry-text-strong);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-dcard__title a {
    color: inherit;
}

.ry-dcard:hover .ry-dcard__title,
.ry-dcard:hover .ry-dcard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-dcard__excerpt {
    margin: 6px 0 0;
    font-size: var(--ry-fs-13);
    color: var(--ry-text-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-dcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--ry-space-5);
    margin-top: var(--ry-space-3);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-dcard__meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ry-dcard__meta-label {
    color: var(--ry-text-light);
}

.ry-dcard__actions {
    flex: 0 0 auto;
}

.ry-dcard--list .ry-dcard__meta-item,
.ry-dcard--list .ry-dcard__meta-item .ry-dcard__meta-label,
.ry-dcard--list .ry-dcard__meta-item .ry-dcard__meta-value {
    display: block;
}

/* 下载整行条纹列表 */
.ry-list--rows .ry-dcard:nth-child(odd) {
    background: var(--ry-surface-sunken);
}

/* 14.6 图集卡 */
.ry-gcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-gcard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-gcard__media {
    aspect-ratio: 4 / 3;
}

.ry-gcard__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--ry-radius-pill);
    background: rgba(5, 18, 39, 0.62);
    color: #ffffff;
    font-size: var(--ry-fs-12);
    backdrop-filter: blur(3px);
}

.ry-gcard__count-icon {
    width: 12px;
    height: 12px;
}

.ry-gcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--ry-space-5);
}

.ry-gcard__title {
    margin: 0;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.5;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-gcard__title a {
    color: inherit;
}

.ry-gcard:hover .ry-gcard__title,
.ry-gcard:hover .ry-gcard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-gcard__excerpt {
    margin: 6px 0 0;
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-gcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--ry-space-4);
    margin-top: auto;
    padding-top: var(--ry-space-3);
    font-size: var(--ry-fs-12);
    color: var(--ry-text-muted);
}

.ry-gcard__meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.ry-gcard__meta-label {
    color: var(--ry-text-light);
}

.ry-gcard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-gcard--list .ry-gcard__media {
    flex: 0 0 300px;
    aspect-ratio: auto;
    min-height: 190px;
}

.ry-gcard--list .ry-gcard__body {
    justify-content: center;
    padding: var(--ry-space-6);
}

.ry-gcard--list .ry-gcard__meta {
    margin-top: var(--ry-space-3);
}

.ry-gcard--list .ry-gcard__meta-item,
.ry-gcard--list .ry-gcard__meta-item .ry-gcard__meta-label,
.ry-gcard--list .ry-gcard__meta-item .ry-gcard__meta-value {
    display: block;
}

/* 14.7 视频卡 */
.ry-vcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease),
        border-color var(--ry-dur) var(--ry-ease);
}

.ry-vcard:hover {
    transform: translateY(-6px);
    border-color: var(--ry-primary-200, #bcd3ff);
    box-shadow: var(--ry-shadow-hover);
}

.ry-vcard__media {
    aspect-ratio: 16 / 9;
    background-image: var(--ry-grad-dark);
}

.ry-vcard__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ry-primary-600, #1a6dff);
    box-shadow: 0 14px 28px -12px rgba(5, 18, 39, 0.7);
    transition: all var(--ry-dur) var(--ry-ease);
}

.ry-vcard__play-icon {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.ry-vcard:hover .ry-vcard__play {
    background: var(--ry-primary-600, #1a6dff);
    color: #ffffff;
    transform: scale(1.1);
}

.ry-vcard__duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 2px 8px;
    border-radius: var(--ry-radius-sm);
    background: rgba(5, 18, 39, 0.68);
    color: #ffffff;
    font-size: var(--ry-fs-12);
    font-variant-numeric: tabular-nums;
}

.ry-vcard__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: var(--ry-space-5);
}

.ry-vcard__title {
    margin: 0;
    font-size: var(--ry-fs-16);
    font-weight: var(--ry-fw-600);
    line-height: 1.55;
    color: var(--ry-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-vcard__title a {
    color: inherit;
}

.ry-vcard:hover .ry-vcard__title,
.ry-vcard:hover .ry-vcard__title a {
    color: var(--ry-primary-600, #1a6dff);
}

.ry-vcard__excerpt {
    margin: 6px 0 0;
    font-size: var(--ry-fs-13);
    line-height: var(--ry-lh-17);
    color: var(--ry-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-vcard--list {
    flex-direction: row;
    align-items: stretch;
}

.ry-vcard--list .ry-vcard__media {
    flex: 0 0 360px;
    aspect-ratio: auto;
    min-height: 200px;
}

.ry-vcard--list .ry-vcard__body {
    justify-content: center;
    padding: var(--ry-space-6);
}

/* 14.8 列表容器 */
.ry-list--media {
    gap: var(--ry-space-5);
}

.ry-list--grid {
    gap: var(--ry-space-6);
}

.ry-list--rows {
    gap: var(--ry-space-3);
}

/* ==========================================================================
   15. 详情页图集 / 回到顶部 / 进场动画
   ========================================================================== */
.ry-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ry-space-4);
}

.ry-gallery__item {
    border-color: var(--ry-border-light);
    border-radius: var(--ry-radius-md);
    box-shadow: var(--ry-shadow-card);
    transition: transform var(--ry-dur) var(--ry-ease), box-shadow var(--ry-dur) var(--ry-ease);
}

.ry-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    transition: transform var(--ry-dur-slow) var(--ry-ease);
}

.ry-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ry-shadow-hover);
}

.ry-gallery__item:hover img {
    transform: scale(1.05);
}

/* 产品图集主图 + 缩略图切换（theme.js 第 10 项功能） */
.ry-gallery-main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--ry-border-light);
    border-radius: var(--ry-radius-lg);
    background: var(--ry-surface);
}

.ry-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ry-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--ry-space-4);
}

.ry-gallery-thumb {
    display: block;
    width: 88px;
    height: 88px;
    padding: 2px;
    overflow: hidden;
    border: 2px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-md);
    background: var(--ry-surface);
    cursor: pointer;
    transition: border-color var(--ry-dur) var(--ry-ease), transform var(--ry-dur) var(--ry-ease);
}

.ry-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--ry-radius-md) - 3px);
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
}

.ry-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--ry-primary-300, #8db5ff);
}

.ry-gallery-thumb.is-active,
.ry-gallery-thumb.active {
    border-color: var(--ry-primary-600, #1a6dff);
    box-shadow: 0 0 0 3px rgba(var(--ry-primary-rgb, 26, 109, 255), 0.14);
}

/* 回到顶部 */
.ry-backtop {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: var(--ry-z-backtop);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: var(--ry-radius-md);
    background: var(--ry-grad-primary);
    color: #ffffff;
    box-shadow: var(--ry-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--ry-dur) var(--ry-ease), transform var(--ry-dur) var(--ry-ease),
        visibility var(--ry-dur) var(--ry-ease);
}

.ry-backtop::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg) translate(1px, 1px);
}

.ry-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ry-backtop:hover {
    transform: translateY(-3px);
}

/* 滚动进场动画：JS 先加 .is-reveal，进入视口后加 .is-visible */
.is-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ry-ease), transform 0.7s var(--ry-ease);
    will-change: opacity, transform;
}

.is-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   16. 响应式：≤1024px / ≤768px / ≤480px
   ========================================================================== */

/* 16.1 ≤1024px：导航转右侧抽屉、栅格降列 */
@media (max-width: 1024px) {
    :root {
        --ry-sec-py: 64px;
        --ry-header-h: 72px;
        --ry-header-h-sm: 60px;
    }

    .ry-cols-4,
    .ry-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ry-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-8);
        padding-block: var(--ry-space-8) var(--ry-space-16);
    }

    /* 头部：汉堡出现（导航转入右侧抽屉）。
       汉堡现在位于第 2 行工具组内，任何断点都不会被隐藏。 */
    .ry-nav-burger {
        display: block;
    }

    /* 三行头部在窄屏收敛为「两行」：第 1 行保留（769–1024 仍有搜索与语言），
       LOGO 行保留（热线缩小），深色导航条**压成 0 高但保留在 DOM 里** ——
       抽屉（.ry-site-nav__panel）是它的子元素，用 display:none 会把抽屉一起藏掉。 */
    .ry-site-brandbar__inner {
        min-height: var(--ry-header-h);
        gap: var(--ry-space-4);
    }

    .ry-site-navbar {
        background: transparent;
    }

    .ry-site-navbar__inner {
        height: 0;
        min-height: 0;
        overflow: visible;
    }

    .ry-site-navbar__tip {
        display: none;
    }

    .ry-hotline__icon {
        width: 40px;
        height: 40px;
    }

    .ry-site-topbar__item--email,
    .ry-site-topbar__item--time {
        display: none;
    }

    .ry-site-nav__tools {
        gap: var(--ry-space-4);
    }

    /* LOGO 行在 769–1024 也可能被工具组挤爆（英文站实测 1024px 下
       汉堡被顶出视口 4px）。让 LOGO 可收缩、副标题可省略：
       宁可副标题截断，也绝不能顶掉汉堡 —— 那是移动端唯一的导航入口。 */
    .ry-logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .ry-logo__slogan {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ry-site-search {
        flex: 0 1 180px;
    }

    .ry-site-search__input {
        width: 90px;
    }

    /* --- 抽屉专属区块：只在这里出现 --- */
    .ry-site-nav__panel-head {
        display: flex;
        align-items: center;
        gap: var(--ry-space-3);
        padding-bottom: var(--ry-space-4);
        border-bottom: 1px solid var(--ry-border-light);
    }

    .ry-site-nav__panel-search {
        display: flex;
        width: 100%;
        margin-top: var(--ry-space-5);
    }

    /* margin-top:auto 把「语言 + 拨打电话」推到抽屉底部 */
    .ry-site-nav__panel-foot {
        display: block;
        margin-top: auto;
        padding-top: var(--ry-space-6);
    }

    /* 抽屉：同一份菜单，固定定位在右侧 */
    .ry-site-nav__panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: var(--ry-z-drawer);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: min(86vw, 360px);
        height: 100%;
        padding: var(--ry-space-5) var(--ry-space-5) var(--ry-space-10);
        overflow-y: auto;
        background: var(--ry-surface);
        box-shadow: var(--ry-shadow-pop);
        transform: translateX(102%);
        transition: transform var(--ry-dur) var(--ry-ease);
        -webkit-overflow-scrolling: touch;
    }

    body.is-nav-open .ry-site-nav__panel {
        transform: none;
    }

    /* 与 _shared/components.css 的 ::before 遮罩去重：
       本主题用真实的 .ry-nav-overlay 元素做遮罩，可以点按关闭，也便于 theme.js 绑定 */
    .ry-site-nav__panel::before,
    body.is-nav-open .ry-site-nav__panel::before {
        content: none;
        opacity: 0;
        visibility: hidden;
    }

    /* 抽屉里的菜单：纵向折叠 */
    .ry-site-nav__panel .ry-nav {
        display: block;
        height: auto;
        margin: 0;
    }

    .ry-site-nav__panel .ry-nav > li {
        display: block;
        border-bottom: 1px solid var(--ry-border-light);
    }

    .ry-site-nav__panel .ry-nav > li::after {
        display: none;
    }

    .ry-site-nav__panel .ry-nav > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding: 15px 2px;
        font-size: var(--ry-fs-16);
    }

    .ry-site-nav__panel .ry-nav > li.has-sub > a::after {
        margin-top: 0;
        transform: rotate(45deg);
    }

    .ry-site-nav__panel .ry-nav > li.has-sub.is-open > a::after {
        transform: rotate(-135deg);
    }

    .ry-site-nav__panel .ry-nav > li.active > a {
        color: var(--ry-primary-600, #1a6dff);
    }

    /* 移动端下拉：默认折叠，JS 切 .is-open */
    .ry-site-nav__panel .ry-nav .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .ry-site-nav__panel .ry-nav li.is-open > .sub-menu {
        display: block;
    }

    .ry-site-nav__panel .ry-nav .sub-menu .sub-menu {
        padding-left: var(--ry-space-4);
    }

    .ry-site-nav__panel .ry-nav .sub-menu a {
        padding: 10px 2px 10px 16px;
        border-bottom: 1px dashed var(--ry-border-light);
        font-size: var(--ry-fs-14);
    }

    /* 抽屉里的搜索框（由 theme.js 克隆进来） */
    .ry-site-nav__panel .ry-site-search {
        display: flex;
        flex: 0 0 auto;
        width: 100%;
        margin-top: var(--ry-space-5);
    }

    .ry-site-nav__panel .ry-site-search__input {
        width: auto;
    }

    /* 区块降列 */
    .ry-about {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-10);
    }

    .ry-about__media {
        order: -1;
    }

    .ry-about__media::before,
    .ry-about__media::after {
        display: none;
    }

    .ry-news-block,
    .ry-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-8);
    }

    .ry-advantages,
    .ry-partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ry-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ry-space-10);
        padding-block: var(--ry-space-12) 0;
    }

    .ry-site-footer__main {
        padding-block: var(--ry-space-12) var(--ry-space-8);
    }

    .ry-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ry-space-8) var(--ry-space-4);
    }

    .ry-stats__item:nth-child(odd)::before {
        display: none;
    }

    /* 横向卡片收窄图区 */
    .ry-pcard--list .ry-pcard__media {
        flex-basis: 240px;
    }

    .ry-ncard--list .ry-ncard__media,
    .ry-ccard--list .ry-ccard__media {
        flex-basis: 260px;
    }

    .ry-vcard--list .ry-vcard__media {
        flex-basis: 280px;
    }

    /* 详情页图集列数（components.css 的断点早于本文件，需要在这里覆盖回来） */
    .ry-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 16.2 ≤768px：单列、紧凑间距、表格列表转卡片 */
@media (max-width: 768px) {
    :root {
        --ry-sec-py: 52px;
        --ry-gutter: 16px;
        --ry-header-h: 64px;
        --ry-header-h-sm: 56px;
    }

    body.ry-site {
        font-size: var(--ry-fs-14);
    }

    .ry-cols-2,
    .ry-cols-3,
    .ry-cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-grid,
    .ry-list--grid {
        gap: var(--ry-space-4);
    }

    .ry-sec__head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ry-space-3);
        margin-bottom: var(--ry-space-8);
    }

    .ry-sec__head--center {
        align-items: center;
    }

    .ry-sec__title {
        font-size: var(--ry-fs-30);
    }

    .ry-sec__sub {
        font-size: var(--ry-fs-14);
    }

    .ry-sec__more {
        align-self: flex-start;
        margin-bottom: 0;
    }

    .ry-sec__head--center .ry-sec__more {
        align-self: center;
    }

    .ry-list-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ry-list-head__title {
        font-size: var(--ry-fs-20);
    }

    /* 头部：第 1 行整条隐藏，搜索与语言改由抽屉承载，汉堡留在第 2 行工具组 */
    .ry-site-topbar {
        display: none;
    }

    /* LOGO 必须能收缩。
       flex 子项默认 min-width:auto，下限是「内容宽度」而不是 0，
       所以只写 max-width 压不住内容：实测 390px 下 LOGO 盒宽 180px、
       内容却有 263px（英文站 539px），把整行顶出视口 71–165px。 */
    .ry-logo {
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
    }

    .ry-logo__img {
        max-height: 36px;
        max-width: 100%;
        object-fit: contain;
    }

    /* 副标题紧贴 LOGO 右侧且是 nowrap 的长句（英文站实测 385px 宽，
       390px 视口里一行都放不下）。窄屏隐藏，LOGO 单独显示更干净。 */
    .ry-logo__slogan {
        display: none;
    }

    .ry-logo__text {
        overflow: hidden;
        font-size: var(--ry-fs-20);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 第 1 行的搜索在窄屏隐藏（同功能已进抽屉）；抽屉内那份不受影响 */
    .ry-site-topbar .ry-site-search {
        display: none;
    }

    /* （语言切换胶囊的显示与样式已上移到 ≤1024px 那一档，
       断点必须与「第 1 行何时隐藏」一致，所以不在这里重复声明。） */

    .ry-site-nav__tools {
        gap: var(--ry-space-3);
    }

    /* 热线在窄屏收成「圆形图标 + 号码」：去掉「服务热线」小字、号码降一档，
       避免 320px 宽（可用 288px）被 nowrap 的长号码顶出视口。 */
    .ry-hotline {
        gap: var(--ry-space-2);
    }

    .ry-hotline__icon {
        width: 36px;
        height: 36px;
    }

    .ry-hotline__icon svg {
        width: 20px;
        height: 20px;
    }

    .ry-hotline__label {
        display: none;
    }

    .ry-hotline__num {
        font-size: var(--ry-fs-15);
    }

    /* 内页横幅 */
    .ry-hero {
        padding-block: 44px 48px;
    }

    .ry-hero__title {
        font-size: var(--ry-fs-24);
    }

    .ry-crumb-bar {
        padding-block: 10px;
    }

    /* 轮播 */
    .ry-banner__slide {
        min-height: 340px;
        padding-block: 48px;
    }

    .ry-banner__title {
        font-size: var(--ry-fs-24);
    }

    .ry-banner__sub {
        margin-top: var(--ry-space-3);
        font-size: var(--ry-fs-14);
    }

    .ry-banner__actions {
        margin-top: var(--ry-space-6);
    }

    .ry-banner__btn {
        padding: 12px 24px;
        font-size: var(--ry-fs-14);
    }

    .ry-banner__arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        opacity: 1;
    }

    .ry-banner__arrow--prev {
        left: 10px;
    }

    .ry-banner__arrow--next {
        right: 10px;
    }

    .ry-banner__dots {
        bottom: 14px;
    }

    /* 卡片：横向形态在窄屏转纵向 */
    .ry-pcard--list,
    .ry-ncard--list,
    .ry-ccard--list,
    .ry-gcard--list,
    .ry-vcard--list {
        flex-direction: column;
    }

    .ry-pcard--list .ry-pcard__media,
    .ry-ncard--list .ry-ncard__media,
    .ry-ccard--list .ry-ccard__media,
    .ry-gcard--list .ry-gcard__media,
    .ry-vcard--list .ry-vcard__media {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ry-pcard--list .ry-pcard__media,
    .ry-gcard--list .ry-gcard__media {
        aspect-ratio: 4 / 3;
    }

    .ry-pcard--list .ry-pcard__body,
    .ry-ncard--list .ry-ncard__body,
    .ry-ccard--list .ry-ccard__body,
    .ry-gcard--list .ry-gcard__body,
    .ry-vcard--list .ry-vcard__body {
        padding: var(--ry-space-5);
    }

    .ry-pcard--list .ry-pcard__title,
    .ry-ncard--list .ry-ncard__title {
        font-size: var(--ry-fs-16);
    }

    .ry-ncard--list .ry-ncard__desc {
        -webkit-line-clamp: 2;
    }

    .ry-dcard {
        flex-wrap: wrap;
        padding: var(--ry-space-4) var(--ry-space-5);
    }

    .ry-dcard__actions {
        width: 100%;
    }

    .ry-dcard__actions .ry-btn {
        width: 100%;
    }

    /* 招聘表格式列表 → 卡片式，恢复展示全部 meta */
    .ry-list__head {
        display: none;
    }

    .ry-list--table {
        display: grid;
        gap: var(--ry-space-3);
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .ry-list--table .ry-jcard {
        display: block;
        padding: var(--ry-space-5);
        border: 1px solid var(--ry-border-light);
        border-radius: var(--ry-radius-md);
        background: var(--ry-surface);
    }

    .ry-list--table .ry-jcard__main {
        display: block;
    }

    .ry-list--table .ry-jcard__head {
        display: flex;
        justify-content: space-between;
    }

    .ry-list--table .ry-jcard__title {
        white-space: normal;
    }

    .ry-list--table .ry-jcard__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px var(--ry-space-4);
        margin-top: var(--ry-space-3);
    }

    .ry-list--table .ry-jcard__meta-item:nth-child(n + 3) {
        display: inline-flex;
    }

    .ry-list--table .ry-jcard__excerpt {
        display: -webkit-box;
    }

    .ry-list--table .ry-jcard__actions {
        justify-self: auto;
        margin-top: var(--ry-space-4);
    }

    .ry-list--table .ry-jcard__actions .ry-btn {
        width: 100%;
    }

    .ry-adv {
        padding: var(--ry-space-6);
    }

    .ry-about__points {
        gap: var(--ry-space-4);
    }

    .ry-nlist {
        padding-inline: var(--ry-space-5);
    }

    /* 图集、新闻主推卡、联系方式：窄屏补齐 components.css 原有的降级 */
    .ry-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ry-nfeature__body {
        padding: var(--ry-space-5);
    }

    .ry-nfeature__title {
        font-size: var(--ry-fs-18);
    }

    .ry-contact__item,
    .ry-widget-contact__item {
        flex-direction: column;
        gap: 2px;
    }

    .ry-contact__label,
    .ry-widget-contact__label {
        min-width: 0;
    }

    .ry-nlist__date {
        width: 66px;
    }

    .ry-contact__info,
    .ry-inquiry {
        padding: var(--ry-space-6);
    }

    .ry-footer__qr {
        justify-self: start;
    }

    .ry-site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .ry-stats {
        padding-block: var(--ry-space-10);
    }

    /* 正文与表单 */
    .ry-article {
        font-size: var(--ry-fs-15);
    }

    .ry-article h2 {
        font-size: var(--ry-fs-20);
    }

    .ry-article h3 {
        font-size: var(--ry-fs-18);
    }

    .ry-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ry-fields-table th {
        width: 130px;
    }

    .ry-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-form__submit {
        width: 100%;
    }

    .ry-prevnext {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 分页 */
    .ry-pagination-wrap {
        padding-top: var(--ry-space-8);
    }

    .pagination {
        margin-top: var(--ry-space-8);
    }

    .pagination .page-link,
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: var(--ry-fs-13);
    }

    .ry-backtop {
        right: 14px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* 16.3 ≤480px：小屏兜底 */
@media (max-width: 480px) {
    :root {
        --ry-sec-py: 40px;
    }

    .ry-sec__title {
        font-size: var(--ry-fs-24);
    }

    .ry-sec__title::after {
        width: 40px;
        margin-top: var(--ry-space-3);
    }

    .ry-btn {
        padding: 11px 20px;
        font-size: var(--ry-fs-14);
    }

    .ry-btn--lg {
        padding: 13px 24px;
        font-size: var(--ry-fs-15);
    }

    .ry-banner__slide {
        min-height: 300px;
        padding-block: 36px;
    }

    .ry-banner__title {
        font-size: var(--ry-fs-20);
    }

    .ry-banner__arrow {
        display: none;
    }

    .ry-hero__title {
        font-size: var(--ry-fs-20);
    }

    .ry-stats__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-6);
    }

    .ry-stats__item + .ry-stats__item::before {
        display: none;
    }

    .ry-stats__item + .ry-stats__item {
        padding-top: var(--ry-space-6);
        border-top: 1px solid var(--ry-border-dark);
    }

    /* 手机上产品卡按钮改为单列铺满（容器已改成 grid，这里只调轨道数） */
    .ry-pcard__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-jcard {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ry-space-4);
    }

    .ry-jcard__actions {
        width: 100%;
    }

    .ry-jcard__actions .ry-btn {
        width: 100%;
    }

    .ry-jcard__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ry-nlist__item {
        flex-direction: column;
        gap: var(--ry-space-2);
    }

    .ry-nlist__date {
        width: auto;
    }

    .ry-advantages,
    .ry-partners {
        grid-template-columns: minmax(0, 1fr);
    }

    .ry-site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-8);
    }

    .ry-partner__item {
        min-height: 74px;
    }

    .ry-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ry-gallery-thumb {
        width: 68px;
        height: 68px;
    }

    .ry-widget__body {
        padding: var(--ry-space-4);
    }

    /* （此处原有一条 `.ry-site-nav__tools .ry-lang { display: inline-flex }` 兜底，
       注释说「components.css 在 ≤480px 隐藏了语言切换」——经核对是错的：
       components.css / base.css 里根本没有 .ry-lang 规则。
       ≤768 那条已经把它设成 inline-flex，480px 再写一遍纯属重复，故删除。 */

    .ry-dcard {
        flex-direction: column;
        align-items: flex-start;
    }

    .ry-empty {
        padding: var(--ry-space-12) var(--ry-space-4);
    }

    .ry-empty__icon {
        width: 68px;
        height: 68px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination .page-link,
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }
}

/* ==========================================================================
   17. 降低动效偏好：关闭动画与位移
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .ry-thumb > img,
    .ry-pcard__img,
    .ry-ncard__media img,
    .ry-ccard__img,
    .ry-gcard__img,
    .ry-vcard__img,
    .ry-nfeature__media img,
    .ry-gallery__item img {
        transition: none !important;
    }

    .ry-pcard:hover .ry-pcard__img,
    .ry-ncard:hover .ry-ncard__media img,
    .ry-ccard:hover .ry-ccard__img,
    .ry-gcard:hover .ry-gcard__img,
    .ry-vcard:hover .ry-vcard__img,
    .ry-nfeature:hover .ry-nfeature__media img,
    .ry-gallery__item:hover img {
        transform: none !important;
    }

    .ry-pcard:hover,
    .ry-ncard:hover,
    .ry-ccard:hover,
    .ry-jcard:hover,
    .ry-dcard:hover,
    .ry-gcard:hover,
    .ry-vcard:hover,
    .ry-adv:hover,
    .ry-nfeature:hover,
    .is-reveal {
        transform: none !important;
    }

    .is-reveal {
        opacity: 1 !important;
    }
}

/* ==========================================================================
   26.（已移除）导航自适应紧凑模式
   --------------------------------------------------------------------------
   这里原来有一整块 .ry-site-header.is-nav-compact 的规则，配合 theme.js 的
   initNavFit() 在「顶级栏目总宽放不下」时把头部切成两行。

   两处都已成为死代码，本轮删除：
     1. initNavFit() 量的是 `.ry-site-nav__inner`（单一行的老结构），
        而现在的头部是三行结构（.ry-site-brandbar + .ry-site-navbar），
        该选择器在任何模板里都不存在 → 函数第一行就 return，标记永远不会加上；
     2. 于是这块 CSS 也永远不会命中。
   而且它的原始诉求（导航别被挤出容器压住 LOGO）在三行结构下天然不成立 ——
   导航本来就独占一行。留着只会让后来改头部的人以为还有一套隐形机制。

   如果以后真要做「吸顶收缩」，请先解决滚动锚定抖动问题：
   改成 fixed 定位 + 给 body 预留 padding-top，而不是滚动时改头部高度。
   ========================================================================== */

/* ==========================================================================
   17. 移动端专项（≤768px / ≤480px）
   --------------------------------------------------------------------------
   本节集中处理手机端，放在文件最末尾，以便稳定覆盖前面各断点的常规规则。

   17.1 底部快捷操作条（打电话 / 在线留言）
   17.2 触控尺寸与可读性
   17.3 布局降级：统计栅格、正文表格、长词折行
   17.4 安全兜底：横向溢出、刘海安全区、打印
   ========================================================================== */

/* 17.1 底部快捷操作条：桌面端不显示（它是移动端专属的转化入口） */
.ry-mbar {
    display: none;
}

@media (max-width: 768px) {
    .ry-mbar {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: var(--ry-z-backtop);
        /* 不透明背景：sticky/fixed 元素上避免 backdrop-filter（见第 8 节性能说明） */
        background: var(--ry-bg, #ffffff);
        border-top: 1px solid var(--ry-border-light);
        box-shadow: 0 -8px 24px -16px rgba(7, 27, 56, 0.45);
        /* 刘海屏 / 手势条：iPhone 底部 home indicator 区域要留出来 */
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .ry-mbar__inner {
        display: flex;
        align-items: stretch;
        gap: 10px;
    }

    .ry-mbar__item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        min-height: 46px;
        padding: 0 12px;
        border-radius: var(--ry-radius-md);
        font-size: var(--ry-fs-14);
        font-weight: var(--ry-fw-600);
        line-height: 1.2;
    }

    /* 打电话是主动作，占更大宽度并用主色实心 */
    .ry-mbar__item--call {
        flex: 1.45;
        background: var(--ry-grad-primary);
        color: #ffffff;
    }

    .ry-mbar__item--call:active {
        transform: translateY(1px);
    }

    /* 没有配置电话时（data-no-phone），留言独占整条 */
    .ry-mbar[data-no-phone] .ry-mbar__item--msg {
        flex: 1 1 auto;
    }

    .ry-mbar__item--msg {
        flex: 1;
        border: 1px solid var(--ry-primary-200, #cfe0ff);
        background: var(--ry-primary-50, #eef4ff);
        color: var(--ry-primary-700, #1557cc);
    }

    .ry-mbar__icon {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
    }

    /* 号码是 nowrap 的长串：允许收缩 + 省略号，避免小屏被顶出视口 */
    .ry-mbar__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .ry-mbar__label {
        overflow: hidden;
        font-size: var(--ry-fs-12);
        font-weight: var(--ry-fw-400);
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: 0.86;
    }

    .ry-mbar__num {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 打电话那一格不显示「服务热线」小字：号码本身就是最强提示 */
    .ry-mbar__item--call .ry-mbar__label {
        display: none;
    }

    /* 正文给底部操作条让位，否则最后一段内容与版权行会被压住 */
    body.ry-site {
        padding-bottom: 74px;
    }

    /* 抽屉展开时收起底部操作条：抽屉底部已经有同一组「语言 + 拨打电话」，
       两个 CTA 同时贴在屏幕底端既重复又互相遮挡。 */
    body.is-nav-open .ry-mbar {
        display: none;
    }

    /* 回到顶部按钮上移，避免与操作条叠在一起 */
    .ry-backtop {
        bottom: 84px;
    }
}

/* 17.2 触控尺寸与可读性
   --------------------------------------------------------------------------
   手指的可靠命中区域约 44×44（Apple HIG）。企业站手机端的主要误触来源是
   分页条与表单控件 —— 它们默认只有 34–36px 高，紧密排列时经常点错。 */
@media (max-width: 768px) {
    /* 分页：加大到 40px 并拉开间距 */
    .pagination,
    .ry-pagination {
        gap: 6px;
    }

    .pagination .page-link,
    .pagination > li > a,
    .pagination > li > span,
    .page-link {
        min-width: 40px;
        height: 40px;
        line-height: 40px;
    }

    /* 表单控件统一 44px，并让字号 ≥16px 以免 iOS 聚焦时自动放大页面
       （iOS Safari 在 input 字号 < 16px 时会强制缩放视口，是移动端「乱跳」的常见元凶） */
    .ry-form input[type="text"],
    .ry-form input[type="tel"],
    .ry-form input[type="email"],
    .ry-form input[type="search"],
    .ry-form input[type="number"],
    .ry-form input[type="password"],
    .ry-form select,
    .ry-form textarea,
    .ry-search__input,
    .ry-site-search__input {
        min-height: 44px;
        font-size: 16px;
    }

    .ry-btn {
        min-height: 44px;
    }

    /* 移动端正文行高放宽，中文小块文字更易读 */
    .ry-article {
        line-height: 1.85;
    }

    /* 面包屑横向可滚，避免长路径把整行撑宽 */
    .ry-crumb-bar,
    .ry-breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ry-crumb-bar::-webkit-scrollbar,
    .ry-breadcrumb::-webkit-scrollbar {
        display: none;
    }
}

/* 17.3 布局降级 */

/* 480px 以下的第 2 行：工具组必须收窄
   --------------------------------------------------------------------------
   「语言胶囊 + 完整号码 + 汉堡」三样同时在 320–430px 上放不下：
   实测 390px 下（可用 343px）工具组自己就要 347px，反而把汉堡挤出视口 9px。
   处理办法是按重要性取舍：LOGO > 汉堡 > 语言 > 号码字面。
   号码并没有丢 —— 底部操作条和抽屉底部都有完整的可点击号码。 */
@media (max-width: 480px) {
    /* 号码只留圆形图标（tel: 链接本身不受影响，点图标照样拨号） */
    .ry-hotline__num {
        display: none;
    }

    .ry-hotline__icon {
        width: 34px;
        height: 34px;
    }

    /* 语言胶囊收紧，把宽度让给 LOGO。
       选择器必须带 .ry-site-nav__tools 前缀，否则同级但更靠前的
       ≤1024px 那条 .ry-site-nav__tools .ry-site-nav__lang a 会把它压掉。 */
    .ry-site-nav__tools .ry-site-nav__lang a {
        padding: 4px 8px;
        font-size: var(--ry-fs-12);
    }

    .ry-site-nav__tools {
        gap: var(--ry-space-2);
    }

    /* 42px 正好让三条线垂直居中（20px 线宽 + 15/21/27 的 top 组合） */
    .ry-nav-burger {
        width: 42px;
        height: 42px;
    }

    .ry-logo__text {
        font-size: var(--ry-fs-18);
    }
}

/* 360px 及以下（iPhone SE / 老安卓）：语言胶囊也让位给 LOGO。
   抽屉底部仍然有完整的语言切换，功能不缺失。 */
@media (max-width: 360px) {
    .ry-site-nav__tools .ry-site-nav__lang {
        display: none;
    }

    .ry-site-nav__tools {
        gap: var(--ry-space-2);
    }
}

/* 统计数字：480px 以下仍保持 2 列。
   1 列会让「4 组数字」占满整整一屏，首页节奏被打断；
   2×2 与桌面端 4 列是同一套视觉语言，只是换个排法。 */
@media (max-width: 480px) {
    /* 卡片转纵向后必须补 align-items: stretch + flex-wrap: nowrap。
       · 基样式是 align-items: center，纵向布局下子项宽度退化成「内容宽度」；
       · ≤768 又加了 flex-wrap: wrap，与 flex-direction: column 组合会变成
         「多列容器」—— 每个子项各占一列、按自身内容定宽，stretch 完全失效。
       标题/摘要都是 white-space: nowrap，于是 .ry-dcard__body 实测宽
       422–491px，撑破 343px 的卡片，整页横向可滚（scrollX=153）。
       cover 有确定宽度 132px，stretch 不会把它拉变形。 */
    .ry-dcard {
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .ry-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ry-space-6) var(--ry-space-4);
    }

    /* ≤480 原先把每个后续项都加上分隔线（那是为 1 列写的），这里收回：
       只有第二行（第 3、4 项）需要上边线，左右两列的分隔线由 ≤1024 的
       「奇数项隐藏 ::before」规则负责。 */
    .ry-stats__item + .ry-stats__item {
        padding-top: 0;
        border-top: 0;
    }

    .ry-stats__item:nth-child(n + 3) {
        padding-top: var(--ry-space-6);
        border-top: 1px solid var(--ry-border-dark);
    }

    .ry-stats__num {
        font-size: var(--ry-fs-30);
    }
}

@media (max-width: 768px) {
    /* 正文表格：宽表允许横向滑动，并给一个「可以滑」的视觉暗示。
       原实现只有 overflow-x:auto，没有任何提示，用户会以为内容被裁掉了。 */
    .ry-article table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--ry-radius-md);
    }

    /* 表格里换行显示，避免每个单元格都被 nowrap 拉成很宽的一列 */
    .ry-article table th,
    .ry-article table td {
        white-space: normal;
    }

    /* 正文里的长英文单词 / URL / 连续数字不允许撑破容器 */
    .ry-article,
    .ry-article p,
    .ry-article li,
    .ry-article td,
    .ry-article h2,
    .ry-article h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* 富文本里插入的图片 / 视频 / 内嵌框架一律不得超过容器宽度 */
    .ry-article img,
    .ry-article video,
    .ry-article iframe,
    .ry-article embed {
        max-width: 100%;
        height: auto;
    }
}

/* 17.4 安全兜底 */

/* 列表容器的隐式网格列一律写成 minmax(0, 1fr)。
   --------------------------------------------------------------------------
   隐式列默认是 auto，其最小尺寸取「内容最小尺寸」；而卡片里的标题/摘要是
   white-space: nowrap，它们的最小尺寸等于**整行文字宽度**（不受 overflow:
   hidden 影响），于是列被顶到 533px —— 实测 /zh/downloads 在 390px 视口下
   docScrollW=549，横向真的能滚动 174px（scrollX=174），是货真价实的缺陷。
   卡片自身再补一条 min-width: 0，让 nowrap 的文字走省略号而不是撑破容器。 */
.ry-list--rows,
.ry-list--media {
    grid-template-columns: minmax(0, 1fr);
}

.ry-list > * {
    min-width: 0;
}

/* 横向溢出兜底。
   根因（LOGO 行不可收缩、副标题 nowrap）已在本节与第 16 节修掉，
   但 CMS 的正文、自定义模板、用户粘贴的第三方代码都可能再引入溢出。
   overflow-x: clip 不会创建滚动容器，因此不影响 position: sticky 的表头；
   老浏览器退化用 hidden。 */
body.ry-site {
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    body.ry-site {
        overflow-x: hidden;
    }
}

/* 兜底：任何媒体元素都不超过容器宽度 */
.ry-main img,
.ry-main video,
.ry-main iframe,
.ry-main table {
    max-width: 100%;
}

/* 横屏/竖屏切换时不要放大字号（iOS 的 text-size-adjust 默认会放大） */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 移动端底部操作条与「回到顶部」都不该出现在打印稿里 */
@media print {
    .ry-mbar,
    .ry-backtop,
    .ry-site-nav__panel {
        display: none !important;
    }

    body.ry-site {
        padding-bottom: 0 !important;
    }
}

/* 17.5 抽屉内部的排版与配色
   --------------------------------------------------------------------------
   抽屉是白底，但它复用了深色通栏导航的菜单节点，于是文字颜色直接冲突：
     · 普通栏目继承 .ry-site-navbar .ry-nav > li > a 的 rgba(255,255,255,.86)
       → **白字白底，整个菜单看不见**；
     · 当前栏目更糟：.ry-site-navbar 给它主色实底，抽屉又把字色改成主色
       → 蓝字压蓝底，等于没有文字；
     · hover 底色是 rgba(255,255,255,.10)，在白底上等于没有反馈。
   下面把抽屉内的三态重新定义。选择器与 .ry-site-navbar 那组同权重，
   位置在文件末尾，因此稳定覆盖。 */
@media (max-width: 1024px) {
    /*
     * 抽屉展开时把「头部整体」抬到遮罩之上。
     *
     * 为什么必须抬头部、而不能抬面板：
     *   .ry-site-header 是 position: sticky 且带 z-index: 900，
     *   它自己就形成了一个层叠上下文 —— 面板的 z-index: 1000 被困在里面，
     *   实际参与比较的是头部的 900，于是整块抽屉被 z-index: 999 的遮罩压住，
     *   看起来像蒙了一层灰（实测抽屉区域像素正好等于
     *   white × rgba(7,27,56,.5) = #838D9B，文字对比度掉一半）。
     *   抬头部本身，抽屉就自然浮到遮罩之上，页面其余部分照旧变暗。
     */
    body.is-nav-open .ry-site-header {
        z-index: calc(var(--ry-z-drawer) + 2);
    }

    .ry-site-nav__panel .ry-nav > li > a {
        color: var(--ry-text-strong);
    }

    .ry-site-nav__panel .ry-nav > li > a:hover,
    .ry-site-nav__panel .ry-nav > li > a:focus-visible {
        background: var(--ry-primary-50, #eef4ff);
        color: var(--ry-primary-700, #1557cc);
    }

    .ry-site-nav__panel .ry-nav > li.active > a {
        background: var(--ry-primary-50, #eef4ff);
        color: var(--ry-primary-700, #1557cc);
        /* 当前栏目左侧的主色竖标。
           这里用 inset 阴影而不是 ::before —— 抽屉里的 a 是
           justify-content: space-between 的 flex 容器（为了把子菜单箭头推到右边），
           一旦多出一个 ::before 子项，栏目名就会被 space-between 挤到最右侧，
           变成"当前栏目右对齐、其它栏目左对齐"的错位排版。 */
        box-shadow: inset 3px 0 0 var(--ry-primary-600, #1a6dff);
    }

    /* 抽屉底部（语言 + 拨打电话）做成常驻底栏。
       结构上把「面板」拆成三段：头部/搜索固定、菜单独立滚动、底部固定 ——
       面板本身不再滚动。
       为什么不用 position: sticky：实测 sticky 的底栏会浮在菜单之上，
       把「常见问题」「下载中心」两个栏目整行盖住（foot T659 与
       menu T143–B783 重叠）。拆成独立滚动区之后，两者互不侵占。 */
    .ry-site-nav__panel {
        overflow: hidden;
    }

    .ry-site-nav__panel-head,
    .ry-site-nav__panel-search {
        flex: 0 0 auto;
    }

    .ry-site-nav__panel .ry-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ry-site-nav__panel-foot {
        position: static;
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: var(--ry-space-4);
        padding-bottom: 0;
        background: var(--ry-surface);
        border-top: 1px solid var(--ry-border-light);
    }

    /* 抽屉里的语言切换做成整行分段控件，比小胶囊更清楚 */
    .ry-site-nav__panel-lang {
        display: flex;
        width: 100%;
        margin-bottom: var(--ry-space-3);
        padding: 3px;
        border: 1px solid var(--ry-border, #e5e7eb);
        border-radius: var(--ry-radius-md);
        background: var(--ry-surface-sunken);
    }

    .ry-site-nav__panel-lang a {
        flex: 1 1 0;
        padding: 8px 10px;
        border-radius: calc(var(--ry-radius-md) - 3px);
        text-align: center;
    }

    .ry-site-nav__panel-lang a + a {
        margin-left: 3px;
    }
}

/* ==========================================================================
   18. 窄桌面（1025–1199px）：通栏导航的「安全带」
   --------------------------------------------------------------------------
   --ry-container 是 1200px —— 1200px 以下本来就不是为「一条通栏、每项等距」
   的深色导航设计的宽度。实测出来的两个硬数字：
     · 中文菜单自然宽度 1082px → 视口 1025–1081px 时最后一项被裁掉；
     · 英文菜单自然宽度 1167px → 视口 1025–1166px 时最后一项被裁掉。
   而 .ry-nav 是 flex-wrap: nowrap，溢出的项既不换行也没有横向滚动条
   （视口已 overflow-x: clip），结果是**栏目直接消失，用户点不到**。
   这个区间对应的是小笔记本、平板横屏、以及左右分屏的浏览器窗口，并不罕见。

   处理分两层：
     1. 先把条目内边距 18px→12px、字号降一档 —— 多数菜单一行就能放下；
     2. flex-wrap: wrap 兜底 —— 栏目再多也只会让导航条变高，
        绝不丢失任何一个栏目。
   只作用于 1025–1199px，≥1200px 的原桌面排版一行都不动。 */
@media (min-width: 1025px) and (max-width: 1199px) {
    .ry-site-navbar .ry-nav {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }

    .ry-site-navbar .ry-nav > li > a {
        height: 48px;
        padding: 0 12px;
        font-size: var(--ry-fs-14);
    }

    .ry-site-navbar__inner {
        align-items: stretch;
    }
}

