@charset "UTF-8";
/* ==========================================================================
   RyCMS 双语企业版 · 前台组件补充层（templates/_shared/assets/css/components.css）
   --------------------------------------------------------------------------
   本文件只补充 base.css 与模板包 theme.css **未覆盖**的类，
   三者加载顺序：base.css → theme.css → components.css，
   因此这里不与主题层的视觉规则冲突，只把组件落地的细节补齐。

   覆盖内容：
     1. 头部信息条 / 导航内层 / LOGO / 汉堡 / 移动抽屉
     2. 页脚各列
     3. 轮播轨道与内容层
     4. 各内容卡片（产品 / 案例 / 招聘 / 下载 / 图集 / 视频）的细节与 meta 行
     5. 首页区块（关于我们 / 优势 / 新闻大图文 / 合作 / 联系）
     6. 侧栏小工具
     7. 文章与参数表细节
     8. 区块修饰类与响应式
   所有颜色/间距消费 CSS 变量并给出 fallback。
   ========================================================================== */

/* ==========================================================================
   01 头部补充
   --------------------------------------------------------------------------
   这一层只提供「完全没有主题样式时也能看」的最小兜底。
   头部已改成三行（信息条 / LOGO 行 / 导航条），版式在 theme.css 里；
   所以这里**不要**再给 .ry-site-topbar 写深色底，否则会盖掉主题的浅色信息条。
   ========================================================================== */

.ry-site-topbar {
    font-size: var(--ry-fs-13, 13px);
}

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

.ry-site-topbar__list {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.ry-site-topbar__list--right { justify-content: flex-end; margin-left: auto; }

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

.ry-site-topbar__welcome { white-space: nowrap; }

.ry-site-topbar__label { opacity: .72; }

/* 三行头部的 LOGO 行与深色导航条 */
.ry-site-brandbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: calc(var(--ry-header-h, 84px) - var(--ry-header-top-h, 38px));
}

.ry-site-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ry-hotline { display: inline-flex; align-items: center; gap: 10px; }
.ry-hotline__icon { display: inline-flex; align-items: center; }

.ry-site-nav__inner {
    display: flex;
    align-items: center;
    gap: var(--ry-space-5, 20px);
    height: calc(var(--ry-header-h, 84px) - var(--ry-header-top-h, 38px));
    min-height: 56px;
}

.ry-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    font-size: var(--ry-fs-20, 20px);
    font-weight: var(--ry-fw-700, 700);
    color: var(--ry-text-strong, #101828);
    letter-spacing: -.01em;
}

.ry-logo__img { max-height: 42px; width: auto; }
.ry-logo__text { white-space: nowrap; line-height: 1.2; }
.ry-logo__slogan { white-space: nowrap; }

.ry-site-nav__tools {
    display: flex;
    align-items: center;
    gap: var(--ry-space-4, 16px);
    flex: none;
}

.ry-site-nav__hotline {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: right;
}

.ry-site-nav__hotline-label {
    font-size: var(--ry-fs-12, 12px);
    color: var(--ry-text-muted, #667085);
}

.ry-site-nav__hotline-num {
    font-size: var(--ry-fs-18, 18px);
    font-weight: var(--ry-fw-700, 700);
    color: var(--ry-primary, #1a6dff);
    letter-spacing: -.01em;
}

.ry-site-search__input {
    width: 128px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text, #1f2937);
}

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

.ry-site-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--ry-primary, #1a6dff);
    border-radius: 50%;
    transition: background var(--ry-dur, .22s) var(--ry-ease, ease);
}

.ry-site-search__btn:hover { background: var(--ry-primary-600, #0b57d0); }
.ry-site-search__btn svg { width: 15px; height: 15px; }

/* 汉堡按钮（移动端显示） */
.ry-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-md, 8px);
    background: var(--ry-surface, #fff);
}

.ry-nav-burger__line {
    display: block;
    height: 2px;
    background: var(--ry-text, #1f2937);
    border-radius: 2px;
    transition: transform var(--ry-dur, .22s) var(--ry-ease, ease), opacity var(--ry-dur, .22s) var(--ry-ease, ease);
}

body.is-nav-open .ry-nav-burger__line:nth-child(1) { transform: translateY(7px) 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) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端抽屉容器（桌面端用 display:contents 让它不产生盒子） */
.ry-site-nav__panel { display: contents; }

/* ==========================================================================
   02 页脚补充
   ========================================================================== */

.ry-site-footer__main { padding: 64px 0 44px; }

.ry-site-footer__grid {
    display: grid;
    /* 列数跟着实际链接组走：官网有 4 组链接 + 联系方式 + 二维码，
       写死 4 列会把多出来的组挤到第二行、看起来像排版错乱。 */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--ry-space-8, 36px);
}

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

.ry-site-footer__title {
    margin: 0 0 20px;
    font-size: var(--ry-fs-16, 16px);
    font-weight: var(--ry-fw-600, 600);
    color: #fff;
}

.ry-site-footer__list { display: grid; gap: 11px; }
.ry-site-footer__list--contact { gap: 14px; }

.ry-site-footer__links-inner { display: grid; gap: 11px; }
.ry-site-footer__links-list { display: grid; gap: 10px; }
.ry-site-footer__links-title { color: rgba(255, 255, 255, .5); }

.ry-site-footer__contact-item { display: flex; gap: 8px; line-height: 1.65; }
.ry-site-footer__contact-label { flex: none; min-width: 56px; opacity: .62; }

.ry-site-footer__qr { text-align: center; }

.ry-site-footer__qr-img {
    width: 116px;
    height: 116px;
    object-fit: contain;
    padding: 6px;
    background: var(--ry-surface);
    border-radius: var(--ry-radius-md, 8px);
}

.ry-site-footer__qr-tip { margin-top: 10px; font-size: var(--ry-fs-12, 12px); opacity: .72; }

.ry-site-footer__links {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.ry-site-footer__links-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.ry-site-footer__bottom {
    padding: 18px 0;
    font-size: var(--ry-fs-13, 13px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    /* 比主体略深的一条压底：用主题深色（深蓝）的透明叠色，
       不要用纯黑叠色 —— 客户明确不要黑色，深蓝叠出来同样有"压深"的效果，
       但在红/绿/紫主题下也不会泛出灰黑。 */
    background: rgba(var(--ry-secondary-rgb, 11, 43, 91), .34);
}

.ry-site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ry-site-footer__copyright { opacity: .82; }
.ry-site-footer__icp, .ry-site-footer__police { opacity: .7; }
.ry-site-footer__icp:hover, .ry-site-footer__police:hover { opacity: 1; color: #fff; }

/* ==========================================================================
   03 轮播补充
   ========================================================================== */

.ry-banner__track { display: flex; position: relative; }

.ry-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ry-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* --------------------------------------------------------------------------
   轮播变体：卡片式（模板 _shared/components/banner-cards.php）

   设计取舍：文案收进白卡片而不是压在图上。白卡片与任何底图都能形成对比，
   所以运营换成什么样的图都不会出现"字看不清"——这正是运营最常踩的坑。
   卡片在窄屏下变成整幅通栏，避免小屏上卡片窄到读不下。
   -------------------------------------------------------------------------- */
.ry-banner--cards .ry-banner-cards__slide {
    display: flex;
    align-items: center;
}

.ry-banner--cards .ry-banner-cards__inner {
    display: flex;
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 56px;
}

.ry-banner--cards.has-thumbs .ry-banner-cards__inner {
    /* 底部要给缩略图轨道留位置，否则卡片会被压到轨道下面 */
    padding-bottom: 120px;
}

.ry-banner-cards__inner--center { justify-content: center; }

.ry-banner-cards__card {
    max-width: 560px;
    padding: 34px 36px;
    background: var(--ry-bg, #fff);
    border-radius: var(--ry-radius-lg, 18px);
    box-shadow: 0 24px 60px rgba(3, 17, 44, .26);
}

.ry-banner-cards__title {
    margin: 0;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.25;
    font-weight: 700;
    color: var(--ry-text, #1f2937);
}

.ry-banner-cards__sub {
    margin: 14px 0 0;
    font-size: var(--ry-fs-15, 15px);
    line-height: 1.75;
    color: var(--ry-text-muted, #667085);
}

.ry-banner-cards__btn { margin-top: 22px; }

.ry-banner-cards__arrow {
    top: auto;
    bottom: 132px;
}

/* 缩略图导航：一排小图，当前项加主色描边 */
.ry-banner-cards__thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 16px;
    flex-wrap: wrap;
}

/*
 * 缩略图的选择器**必须**多带一层 `.…__thumbs` 前缀（特异性 0,2,0）。
 *
 * 缩略图元素同时挂着 `ry-banner__dot`（引擎靠它认导航项，见 banner-cards.php），
 * 而主题样式里的 `.ry-banner__dot` 是 10px 的圆点；theme.css 排在 components.css
 * **之后**，同特异性下后加载的赢 —— 于是 104×62 的缩略图被压成一排小圆点。
 * 一排彩色圆点"看着也不是不能用"，所以这个 bug 一直没人发现（只有轮播2 中招，
 * 其余 17 个轮播用的是自己的前缀类名）。多带一层父级前缀就不受加载顺序影响。
 */
.ry-banner-cards__thumbs .ry-banner-cards__thumb {
    position: relative;
    width: 104px;
    height: 62px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    opacity: .72;
    transition: opacity var(--ry-dur-fast, .18s), border-color var(--ry-dur-fast, .18s), transform var(--ry-dur-fast, .18s);
}

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

.ry-banner-cards__thumbs .ry-banner-cards__thumb-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    color: #fff;
    padding: 0 6px;
}

.ry-banner-cards__thumbs .ry-banner-cards__thumb:hover { opacity: .95; transform: translateY(-2px); }

.ry-banner-cards__thumbs .ry-banner-cards__thumb.is-active {
    opacity: 1;
    border-color: var(--ry-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}

/* 当前项的进度条：让"还要多久切下一张"变成可见的 */
.ry-banner-cards__thumbs .ry-banner-cards__thumb-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--ry-primary);
    transform: scaleX(0);
    transform-origin: left center;
}

.ry-banner-cards__thumbs .ry-banner-cards__thumb.is-active .ry-banner-cards__thumb-bar {
    animation: ry-thumb-bar 6s linear forwards;
}

@keyframes ry-thumb-bar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 768px) {
    .ry-banner--cards .ry-banner-cards__inner { padding-top: 32px; padding-bottom: 32px; }
    .ry-banner--cards.has-thumbs .ry-banner-cards__inner { padding-bottom: 40px; }
    .ry-banner-cards__card { max-width: 100%; padding: 24px 22px; }
    .ry-banner-cards__arrow { display: none; }
    /* 移动端缩略图轨道改成横滑，窄屏也点得到 */
    .ry-banner-cards__thumbs {
        position: static;
        padding: 12px 16px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        background: rgba(3, 17, 44, .5);
    }
    .ry-banner-cards__thumbs .ry-banner-cards__thumb { flex: 0 0 auto; }
    .ry-banner--cards.has-thumbs .ry-banner-cards__inner { padding-bottom: 32px; }
}

/* --------------------------------------------------------------------------
   轮播变体：玻璃信息条（模板 _shared/components/banner-glass.php）

   图片不压暗，文字放进底部毛玻璃条。backdrop-filter 不支持时
   用足够不透明的底色兜底（不能让文字落在图上没有依托）。
   -------------------------------------------------------------------------- */
.ry-banner--glass .ry-banner-glass__slide { display: flex; align-items: flex-end; }

.ry-banner--glass .ry-banner-glass__inner {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    padding-bottom: 42px;
}

.ry-banner--glass .ry-banner-glass__inner--top { align-items: flex-start; padding-top: 42px; padding-bottom: 0; }

.ry-banner-glass__bar {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    padding: 22px 28px;
    border-radius: var(--ry-radius-lg, 16px);
    background: rgba(12, 18, 36, .62);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 18px 44px rgba(3, 17, 44, .3);
}

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

.ry-banner-glass__title {
    margin: 0;
    font-size: clamp(20px, 2.6vw, 32px);
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
}

.ry-banner-glass__sub {
    margin: 10px 0 0;
    font-size: var(--ry-fs-15, 15px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 描边按钮：图好看的时候实心按钮会抢视线 */
.ry-banner-glass__btn {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .72);
    color: #fff;
}

.ry-banner-glass__btn:hover {
    background: var(--ry-surface);
    border-color: #fff;
    color: var(--ry-heading, #0b2b5b);
}

.ry-banner-glass__arrow {
    background: rgba(12, 18, 36, .5);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

/* 细线导航：当前项拉长并着色 */
.ry-banner-glass__lines {
    bottom: 18px;
    gap: 8px;
}

.ry-banner-glass__line {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .42);
    transition: width var(--ry-dur-base, .28s), background var(--ry-dur-base, .28s);
}

.ry-banner-glass__line.is-active {
    width: 44px;
    background: var(--ry-primary);
}

@media (max-width: 768px) {
    .ry-banner-glass__bar { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
    .ry-banner--glass .ry-banner-glass__inner { padding-bottom: 30px; }
}

/* --------------------------------------------------------------------------
   列表变体：时间线（模板 _shared/components/list-timeline.php）

   轴线用伪元素画在容器上，而不是每一项各画一段 —— 后者在最后一项会多出
   一截尾巴，看着像断了。容器一条线到底，视觉上是连续的。
   -------------------------------------------------------------------------- */
.ry-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 152px;
}

.ry-timeline::before {
    content: "";
    position: absolute;
    left: 116px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--ry-primary) 0%, var(--ry-border, #e5e7eb) 18%, var(--ry-border, #e5e7eb) 100%);
}

.ry-timeline__year {
    position: relative;
    margin: 26px 0 14px;
    font-size: var(--ry-fs-15, 15px);
    font-weight: 700;
    color: var(--ry-primary);
    letter-spacing: .04em;
}

.ry-timeline__item {
    position: relative;
    margin-bottom: 18px;
}

.ry-timeline__date {
    position: absolute;
    left: -152px;
    top: 14px;
    width: 104px;
    text-align: right;
    font-size: var(--ry-fs-13, 13px);
    line-height: 1.5;
    color: var(--ry-text-muted, #667085);
}

.ry-timeline__dot {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ry-bg, #fff);
    border: 2px solid var(--ry-primary);
    box-shadow: 0 0 0 4px var(--ry-primary-soft, rgba(26, 109, 255, .12));
}

.ry-timeline__body {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    background: var(--ry-bg, #fff);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 12px);
    transition: border-color var(--ry-dur-fast, .18s), box-shadow var(--ry-dur-fast, .18s), transform var(--ry-dur-fast, .18s);
}

.ry-timeline__item:hover .ry-timeline__body {
    border-color: var(--ry-primary);
    box-shadow: 0 10px 28px rgba(3, 17, 44, .1);
    transform: translateX(3px);
}

.ry-timeline__thumb {
    flex: 0 0 132px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

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

.ry-timeline__item:hover .ry-timeline__thumb img { transform: scale(1.05); }

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

.ry-timeline__title {
    margin: 0;
    font-size: var(--ry-fs-16, 16px);
    line-height: 1.5;
    font-weight: 600;
}

.ry-timeline__title a { color: var(--ry-text, #1f2937); text-decoration: none; }
.ry-timeline__title a:hover { color: var(--ry-primary); }

.ry-timeline__desc {
    margin: 8px 0 0;
    font-size: var(--ry-fs-14, 14px);
    line-height: 1.7;
    color: var(--ry-text-muted, #667085);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    /* 窄屏放不下左侧日期列：轴线收到最左边，日期移到标题上方 */
    .ry-timeline { padding-left: 30px; }
    .ry-timeline::before { left: 6px; }
    .ry-timeline__date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 6px;
    }
    .ry-timeline__dot { left: -30px; top: 22px; }
    .ry-timeline__body { flex-direction: column; gap: 12px; padding: 16px; }
    .ry-timeline__thumb { flex: none; width: 100%; height: 160px; }
}

/* ==========================================================================
   03b 头部样式变体（桌面端限定）
   --------------------------------------------------------------------------
   三种样式共用 components/_shared/components/header.php 这一份实现，
   差异全在这里；变体文件（header-light.php 等）只声明 `$ryHeaderStyle`。

   三条硬约束：
   1. **全部限定在 ≥1025px**。窄屏（≤1024px）是抽屉布局，头部会收敛成两行、
      导航条高度压成 0 但保留在 DOM 里当抽屉容器 —— 那一段是踩过坑调出来的，
      变体一律不碰，这样三种头部在手机上表现完全一致、都经过验证。
   2. **每条规则都带 .ry-site-header--xxx 前缀**，靠"多一个类"赢过 theme.css
      （本文件在 theme.css 之前加载，同优先级会输）。
   3. **不用 backdrop-filter、不做滚动收缩**：sticky 元素上每帧重算模糊会掉帧，
      滚动时改头部高度会触发滚动锚定抖动（theme.css / theme.js 里都有记录）。
   ========================================================================== */

@media (min-width: 1025px) {

    /* ----------------------------------------------------------------------
       变体 light：白底导航 + 下划线指示条
       ---------------------------------------------------------------------- */
    .ry-site-header--light .ry-site-navbar {
        background: var(--ry-bg, #fff);
        box-shadow: none;
        border-top: 1px solid var(--ry-border-light);
        border-bottom: 1px solid var(--ry-border);
    }

    .ry-site-header--light .ry-site-navbar .ry-nav > li > a {
        color: var(--ry-text);
    }

    .ry-site-header--light .ry-site-navbar .ry-nav > li > a:hover {
        color: var(--ry-primary);
        background: var(--ry-primary-50, #eef4ff);
    }

    /* 当前项：主色文字 + 加粗，不用整块主色底（白底上那样太重） */
    .ry-site-header--light .ry-site-navbar .ry-nav > li.active > a {
        color: var(--ry-primary);
        background: transparent;
        font-weight: var(--ry-fw-600);
    }

    /* 基础样式在深色导航条里把底部指示条隐藏了，浅底导航要把它打开 */
    .ry-site-header--light .ry-site-navbar .ry-nav > li::after {
        display: block;
    }

    /* 品牌行与导航行都是白底，中间给一条细分隔线，避免两行糊成一块 */
    .ry-site-header--light .ry-site-brandbar {
        border-bottom: 0;
    }

    /* ----------------------------------------------------------------------
       变体 center：LOGO 居中 + 导航整体居中
       ---------------------------------------------------------------------- */
    /*
     * 居中怎么实现，这里换过一次做法，记录原因：
     *
     * 第一版用 grid `1fr auto 1fr`（左右等宽空列夹住 LOGO）。
     * 实测 LOGO 中心偏离容器中心 **61px** —— 因为 `1fr` 的最小值是 auto，
     * 右侧工具组（热线 + 语言）比左侧空列宽，把 1fr 撑得不等宽，
     * 中间的 LOGO 就被推向左。61px 在 1200px 容器上是肉眼可见的偏心，
     * 而"居中"这个变体的全部卖点就是这个居中，所以必须做对。
     *
     * 现在：品牌行用 flex 居中（它只有一个在流内的子元素 = LOGO），
     * 工具组**脱离文档流**绝对定位到右端 —— 它再宽也不会影响 LOGO 的位置。
     * 代价是工具组不能太宽（窄屏本来就走抽屉，桌面端够用）。
     */
    .ry-site-header--center .ry-site-brandbar__inner {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ry-site-header--center .ry-logo {
        justify-content: center;
        text-align: center;
    }

    .ry-site-header--center .ry-site-nav__tools {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        /* 基础样式是 margin-left:auto（flex 布局用的），定位后要清掉 */
        margin-left: 0;
    }

    .ry-site-header--center .ry-site-navbar .ry-nav {
        justify-content: center;
        gap: var(--ry-space-2, 8px);
    }

    /* ----------------------------------------------------------------------
       变体 primary：主色导航条 + 热线胶囊按钮
       ---------------------------------------------------------------------- */
    .ry-site-header--primary .ry-site-navbar {
        background: var(--ry-grad-primary);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    }

    .ry-site-header--primary .ry-site-navbar .ry-nav > li > a:hover {
        background: rgba(255, 255, 255, .16);
    }

    /* 主色底上再放主色实心块会"糊"，当前项改用半透明白 + 底部白线 */
    .ry-site-header--primary .ry-site-navbar .ry-nav > li.active > a {
        background: rgba(255, 255, 255, .18);
        color: #fff;
    }

    .ry-site-header--primary .ry-site-navbar .ry-nav > li::after {
        display: block;
        background: var(--ry-surface);
    }

    /* 服务热线做成描边胶囊：企业站最重要的转化入口，让它一眼像个按钮 */
    .ry-site-header--primary .ry-hotline {
        padding: 7px 18px 7px 12px;
        border: 1px solid var(--ry-primary);
        border-radius: var(--ry-radius-pill, 999px);
        transition: background-color var(--ry-dur, .2s) var(--ry-ease, ease), color var(--ry-dur, .2s) var(--ry-ease, ease);
    }

    .ry-site-header--primary .ry-hotline .ry-hotline__num {
        font-size: var(--ry-fs-16, 16px);
    }

    .ry-site-header--primary .ry-hotline:hover {
        background: var(--ry-primary);
    }

    /* 悬停时整块变主色，里面的文字/图标都要转白，否则深字压深底看不见 */
    .ry-site-header--primary .ry-hotline:hover .ry-hotline__num,
    .ry-site-header--primary .ry-hotline:hover .ry-hotline__label,
    .ry-site-header--primary .ry-hotline:hover .ry-hotline__icon {
        color: #fff;
    }

    .ry-site-header--primary .ry-hotline:hover .ry-hotline__icon {
        background: rgba(255, 255, 255, .18);
    }
}

/* ==========================================================================
   05b 首页区块交替底色（斑马纹）
   --------------------------------------------------------------------------
   规则本身在 theme.css 的「首页区块」一节（.ry-site--home .ry-main--alt > .ry-sec…），
   这里**不再重复实现**，只留这段说明，免得后来的人在两处找到同一件事的两份写法。

   两个必须知道的前提：
   1. 开关类 .ry-main--alt 由模板按「模板设置 → 首页区块交替底色」加上；
   2. 它挂在 <main> 上，所以**页面必须有 <main>**。组件库早期导出的页面文件
      没有输出 <main>，那张首页的斑马纹就整个失效了 —— 这是导出器的 bug，
      已修复（见 Components::buildTemplateSource 的骨架部分）。
   ========================================================================== */

/* ==========================================================================
   04 内页横幅补充
   ========================================================================== */

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

/* ==========================================================================
   05 首页：统计 / 关于 / 优势 / 新闻 / 合作 / 联系
   ========================================================================== */

.ry-stats__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: var(--ry-fs-38, 38px);
    font-weight: var(--ry-fw-700, 700);
    line-height: 1.1;
    color: #fff;
}

.ry-stats__suffix { font-size: var(--ry-fs-20, 20px); }

/* 关于我们 */
.ry-about__intro {
    margin-top: 22px;
    font-size: var(--ry-fs-15, 15px);
    line-height: 1.9;
    color: var(--ry-text-soft, #475467);
}

.ry-about__point-title { font-size: var(--ry-fs-16, 16px); }

.ry-about__point-desc {
    margin-top: 4px;
    font-size: var(--ry-fs-14, 14px);
    color: var(--ry-text-muted, #667085);
    line-height: 1.7;
}

.ry-about__dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    background: var(--ry-primary, #1a6dff);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(var(--ry-primary-rgb, 26, 109, 255), .14);
}

.ry-about__more { margin-top: 34px; }

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

.ry-about__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: linear-gradient(135deg, var(--ry-primary-100, #dde6ff) 0%, var(--ry-primary-400, #6483fb) 100%);
}

.ry-about__ph-text {
    padding: 0 26px;
    font-size: var(--ry-fs-24, 24px);
    font-weight: var(--ry-fw-700, 700);
    color: rgba(255, 255, 255, .95);
    text-align: center;
    line-height: 1.5;
}

/* 优势序号水印 */
.ry-advantages .ry-sec__head, .ry-cases .ry-sec__head, .ry-partners .ry-sec__head { margin-bottom: var(--ry-space-8, 36px); }

.ry-adv__index {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 46px;
    font-weight: var(--ry-fw-700, 700);
    line-height: 1;
    color: var(--ry-primary-50, #eef3ff);
    pointer-events: none;
}

/* 首页新闻：左大图文 + 右列表 */
.ry-news-block {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--ry-space-8, 36px);
    align-items: start;
}

.ry-nfeature {
    display: block;
    overflow: hidden;
    border-radius: var(--ry-radius-lg, 14px);
    background: var(--ry-surface, #fff);
    border: 1px solid var(--ry-border-light, #f0f2f5);
    transition: box-shadow var(--ry-dur, .22s) var(--ry-ease, ease), transform var(--ry-dur, .22s) var(--ry-ease, ease);
}

.ry-nfeature:hover {
    transform: translateY(-3px);
    box-shadow: var(--ry-shadow-hover, 0 16px 40px rgba(15, 23, 42, .1));
}

.ry-nfeature__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ry-bg-soft, #f6f8fc);
}

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

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

.ry-nfeature__body { padding: 24px 26px 28px; }

.ry-nfeature__meta {
    display: flex;
    gap: 16px;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-muted, #667085);
}

.ry-nfeature__date, .ry-nfeature__views { display: inline-flex; gap: 4px; }

.ry-nfeature__title {
    margin-top: 12px;
    font-size: var(--ry-fs-20, 20px);
    line-height: 1.45;
}

.ry-nfeature__desc {
    margin-top: 12px;
    font-size: var(--ry-fs-14, 14px);
    line-height: 1.8;
    color: var(--ry-text-soft, #475467);
}

.ry-nfeature__more {
    display: inline-block;
    margin-top: 16px;
    font-size: var(--ry-fs-14, 14px);
    font-weight: var(--ry-fw-500, 500);
    color: var(--ry-primary, #1a6dff);
}

.ry-nlist { display: grid; }

.ry-nlist__item {
    display: block;
    padding: 15px 0;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
    transition: padding var(--ry-dur, .22s) var(--ry-ease, ease);
}

.ry-nlist__item:first-child { padding-top: 0; }
.ry-nlist__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ry-nlist__item:hover { padding-left: 6px; }

.ry-nlist__date { display: block; font-size: var(--ry-fs-12, 12px); color: var(--ry-text-muted, #667085); }
.ry-nlist__text { margin-top: 5px; }
.ry-nlist__title { display: block; font-size: var(--ry-fs-15, 15px); font-weight: var(--ry-fw-600, 600); line-height: 1.5; }
.ry-nlist__desc { margin-top: 5px; font-size: var(--ry-fs-13, 13px); color: var(--ry-text-muted, #667085); line-height: 1.65; }

/* 合作伙伴 */
.ry-partners__grid, .ry-partner__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--ry-space-4, 16px);
}

.ry-partner__item--text {
    font-size: var(--ry-fs-14, 14px);
    font-weight: var(--ry-fw-600, 600);
    color: var(--ry-text-soft, #475467);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ry-partner__name { font-size: var(--ry-fs-14, 14px); font-weight: var(--ry-fw-600, 600); text-align: center; }

/* 联系区块 */
.ry-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--ry-space-8, 36px);
    align-items: start;
}

.ry-contact__info, .ry-contact__form { min-width: 0; }
.ry-contact__heading { font-size: var(--ry-fs-20, 20px); }
.ry-contact__list { display: grid; gap: 18px; margin-top: 24px; }
.ry-contact__item { display: flex; gap: 12px; }

.ry-contact__label {
    flex: none;
    min-width: 68px;
    font-size: var(--ry-fs-14, 14px);
    color: var(--ry-text-muted, #667085);
}

.ry-contact__value { font-size: var(--ry-fs-15, 15px); line-height: 1.75; word-break: break-word; }
.ry-contact__map { margin-top: 26px; border-radius: var(--ry-radius-lg, 14px); overflow: hidden; }
.ry-contact__map iframe { display: block; width: 100%; border: 0; }

.ry-map-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, .94);
    background: linear-gradient(135deg, var(--ry-secondary-600, #164a8a) 0%, var(--ry-primary-500, #5274ff) 100%);
    border-radius: var(--ry-radius-lg, 14px);
}

.ry-map-ph__label { font-size: var(--ry-fs-13, 13px); opacity: .8; }
.ry-map-ph__addr { max-width: 400px; font-size: var(--ry-fs-15, 15px); font-weight: var(--ry-fw-500, 500); line-height: 1.75; }

/* ==========================================================================
   06 内容卡片补充
   ========================================================================== */

/* 产品卡片 */
.ry-pcard__img { width: 100%; height: 100%; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); transition: transform .5s var(--ry-ease, ease); }
.ry-pcard:hover .ry-pcard__img { transform: scale(1.05); }

.ry-pcard__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.ry-pcard__sku-label { opacity: .82; }

.ry-pcard__sku-value {
    font-weight: var(--ry-fw-500, 500);
    color: var(--ry-text-soft, #475467);
}

.ry-pcard__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-pcard__brand-label { color: var(--ry-text-muted, #667085); }

.ry-pcard__brand-value {
    font-weight: var(--ry-fw-500, 500);
    color: var(--ry-text-soft, #475467);
}

.ry-pcard__foot, .ry-pcard__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-pcard__price-now {
    display: inline-flex;
    align-items: baseline;
    font-size: var(--ry-fs-20, 20px);
    font-weight: var(--ry-fw-700, 700);
    line-height: 1.2;
    color: var(--ry-accent, #ff7a18);
}

.ry-pcard__price-symbol { margin-right: 1px; font-size: var(--ry-fs-14, 14px); }
.ry-pcard__price-sep { margin: 0 1px; font-size: var(--ry-fs-13, 13px); opacity: .6; }
.ry-pcard__unit { font-size: var(--ry-fs-13, 13px); font-weight: var(--ry-fw-400, 400); opacity: .85; }

.ry-pcard__market {
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-muted, #667085);
    text-decoration: line-through;
}

.ry-pcard__price-consult, .ry-pcard__price--consult {
    font-size: var(--ry-fs-16, 16px);
    font-weight: var(--ry-fw-600, 600);
    color: var(--ry-primary, #1a6dff);
}

.ry-pcard__actions { display: flex; gap: 8px; margin-top: 15px; }
.ry-pcard__actions .ry-btn { flex: 1; min-width: 0; }
.ry-pcard__arrow { display: none; }

/* 案例卡片 */
.ry-ccard__img { width: 100%; height: 100%; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); transition: transform .5s var(--ry-ease, ease); }
.ry-ccard:hover .ry-ccard__img { transform: scale(1.06); }

.ry-ccard__overlay-text {
    padding: 9px 22px;
    font-size: var(--ry-fs-14, 14px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: var(--ry-radius-pill, 999px);
}

/* 右下角「查看详情」小胶囊。
   注意：这里**不能**写 inset: 0 —— 那会让它铺满整张图区，
   而模板包的 theme.css 只覆盖 right/bottom，不会重置 left/top，
   结果就是一个巨大的白色椭圆盖住卡片（实测过）。
   铺满整卡的遮罩请用 .ry-ccard__overlay。 */
.ry-ccard__hover { position: absolute; right: 14px; bottom: 14px; }
.ry-ccard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ry-ccard__excerpt { margin-top: 10px; font-size: var(--ry-fs-13, 13px); line-height: 1.7; color: var(--ry-text-muted, #667085); }

.ry-ccard__meta, .ry-ccard__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-ccard__date { display: inline-flex; gap: 5px; font-size: var(--ry-fs-13, 13px); }
.ry-ccard__date-label { color: var(--ry-text-muted, #667085); }
.ry-ccard__date-value { font-weight: var(--ry-fw-500, 500); }
.ry-ccard__meta-item { display: inline-flex; gap: 5px; font-size: var(--ry-fs-13, 13px); }
.ry-ccard__meta-label { color: var(--ry-text-muted, #667085); }
.ry-ccard__meta-value { font-weight: var(--ry-fw-500, 500); color: var(--ry-text, #1f2937); }

/* 招聘卡片 */
.ry-jcard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.ry-jcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-jcard__meta-label { color: var(--ry-text-muted, #667085); }
.ry-jcard__meta-value { font-weight: var(--ry-fw-500, 500); color: var(--ry-text, #1f2937); }
.ry-jcard__meta-item--deadline.is-expired .ry-jcard__meta-value { color: var(--ry-danger, #f04438); }

.ry-jcard__excerpt { margin-top: 12px; font-size: var(--ry-fs-13, 13px); line-height: 1.7; color: var(--ry-text-muted, #667085); }
.ry-jcard__actions { display: flex; gap: 10px; margin-top: 17px; }

/* 下载卡片 */
.ry-dcard__icon-text { font-size: var(--ry-fs-13, 13px); letter-spacing: .04em; }
.ry-dcard__icon--pdf { background: #e5484d; }
.ry-dcard__icon--doc { background: #2b6cb0; }
.ry-dcard__icon--xls { background: #12b76a; }
.ry-dcard__icon--zip { background: #f79009; }
.ry-dcard__icon--file { background: #667085; }
.ry-dcard__excerpt { margin-top: 8px; font-size: var(--ry-fs-13, 13px); line-height: 1.7; color: var(--ry-text-muted, #667085); }

.ry-dcard__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 11px; }
.ry-dcard__meta-item { display: inline-flex; gap: 5px; font-size: var(--ry-fs-12, 12px); }
.ry-dcard__meta-label { color: var(--ry-text-muted, #667085); }
.ry-dcard__meta-value { font-weight: var(--ry-fw-500, 500); color: var(--ry-text-soft, #475467); }
.ry-dcard__actions { display: flex; gap: 10px; margin-top: 13px; flex-wrap: wrap; }

/* 图集卡片 */
.ry-gcard__img { width: 100%; height: 100%; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); transition: transform .5s var(--ry-ease, ease); }
.ry-gcard:hover .ry-gcard__img { transform: scale(1.05); }

.ry-gcard__count-num { font-weight: var(--ry-fw-600, 600); }
.ry-gcard__count-icon { display: inline-flex; }
.ry-gcard__count-icon svg { width: 13px; height: 13px; }

.ry-gcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ry-gcard__excerpt { margin-top: 10px; font-size: var(--ry-fs-13, 13px); color: var(--ry-text-muted, #667085); line-height: 1.7; }

.ry-gcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-gcard__meta-item { display: inline-flex; gap: 5px; font-size: var(--ry-fs-13, 13px); }
.ry-gcard__meta-label { color: var(--ry-text-muted, #667085); }
.ry-gcard__meta-value { font-weight: var(--ry-fw-500, 500); color: var(--ry-text, #1f2937); }

/* 视频卡片 */
.ry-vcard__img { width: 100%; height: 100%; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); transition: transform .5s var(--ry-ease, ease); }
.ry-vcard:hover .ry-vcard__img { transform: scale(1.05); }
.ry-vcard__play-icon { display: inline-flex; }
.ry-vcard__play-icon svg { width: 22px; height: 22px; margin-left: 3px; }
.ry-vcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ry-vcard__excerpt { margin-top: 8px; font-size: var(--ry-fs-13, 13px); color: var(--ry-text-muted, #667085); line-height: 1.7; }

/* 通用 meta 行（搜索/列表可能用到） */
.ry-meta-item { display: inline-flex; gap: 5px; font-size: var(--ry-fs-13, 13px); }
.ry-meta-label { color: var(--ry-text-muted, #667085); }

/* ==========================================================================
   06b 产品详情：左媒体右参数（模板 _shared/components/detail-content-product.php）
   --------------------------------------------------------------------------
   企业站产品页是转化页，第一屏要回答四件事：长什么样、什么型号、多少钱、能不能定。
   默认详情版式把这几项拆散在标题 / 元信息 / 参数表三处，第一屏常常只有标题加一张图；
   这一版把它们收进「左媒体 + 右信息」两栏，一屏看完。

   栅格用 minmax(0, 1fr) 而不是 1fr：
   左侧图集里有长文件名与滚动容器，1fr 的最小值是 auto，会被撑破导致右栏被挤窄/溢出。
   （这个坑在居中 LOGO 那里踩过一次，这里直接写对。）
   ========================================================================== */

.ry-pdetail__top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--ry-space-8, 32px);
    align-items: start;
    margin-bottom: var(--ry-space-8, 32px);
}

/* 媒体列：图集容器不再是"通栏居中"，改成贴合卡片 */
.ry-pdetail__media { min-width: 0; }

.ry-pdetail__gallery {
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius-lg, 16px);
    overflow: hidden;
    background: var(--ry-bg, #fff);
}

/* 图集主体：图片按**自身比例整幅缩小显示**（客户明确要求"整图、不裁切"）。
   这里刻意不给 img 设 aspect-ratio —— 一旦设了，就等于给宽幅图（客户上传的多是
   1.9:1）套一个 4:3 的框，上下会空出一大片浅色，看着像图丢了。
   改成 height:auto + max-height 之后，容器贴着图片本身的高度走，没有大片空白，
   最宽的图也不会高过 560px。 */
.ry-pdetail__gallery .ry-gallery-slide {
    height: auto;
    min-height: 160px;
    padding: 0;
}

.ry-pdetail__gallery .ry-gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 560px;
    border-radius: 0;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    display: block;
}

/* 缩略图贴左排布（默认是居中一排），更像产品图册 */
.ry-pdetail__thumbs {
    justify-content: flex-start;
    padding: 10px;
    gap: 8px;
    background: var(--ry-surface-sunken, #f6f8fc);
    border-top: 1px solid var(--ry-border, #e5e7eb);
}

.ry-pdetail__thumbs .ry-gallery-thumb {
    width: 72px;
    height: 54px;
    border-radius: 6px;
}

/* 信息列 */
.ry-pdetail__info { min-width: 0; }

.ry-pdetail__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: var(--ry-radius-pill, 999px);
    background: var(--ry-primary-50, #eef4ff);
    color: var(--ry-primary-600, #1a6dff);
    font-size: var(--ry-fs-12, 12px);
    font-weight: var(--ry-fw-600, 600);
    letter-spacing: .02em;
}

.ry-pdetail__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.3;
    font-weight: var(--ry-fw-700, 700);
    color: var(--ry-text-strong, #101828);
}

.ry-pdetail__summary {
    margin: 0 0 18px;
    font-size: var(--ry-fs-15, 15px);
    line-height: 1.8;
    color: var(--ry-text-muted, #667085);
}

/* 关键参数：两列小卡，标签在上、值在下 —— 比"标签：值"一行行更好扫读 */
.ry-pdetail__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0 0 18px;
    padding: 16px 18px;
    background: var(--ry-surface-sunken, #f6f8fc);
    border-radius: var(--ry-radius-md, 12px);
}

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

.ry-pdetail__spec-label {
    margin: 0;
    font-size: var(--ry-fs-12, 12px);
    color: var(--ry-text-light, #98a2b3);
    line-height: 1.5;
}

.ry-pdetail__spec-value {
    margin: 2px 0 0;
    font-size: var(--ry-fs-15, 15px);
    font-weight: var(--ry-fw-600, 600);
    color: var(--ry-text, #1f2937);
    line-height: 1.5;
    overflow-wrap: break-word;
}

.ry-pdetail__unit {
    margin-left: 3px;
    font-style: normal;
    font-size: var(--ry-fs-12, 12px);
    font-weight: 400;
    color: var(--ry-text-muted, #667085);
}

/* 参考价：产品页最该被看见的一行，用主色放大 */
.ry-pdetail__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-pdetail__price-label {
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-muted, #667085);
}

.ry-pdetail__price-value {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: var(--ry-fw-800, 800);
    color: var(--ry-primary-600, #1a6dff);
    letter-spacing: -.01em;
}

.ry-pdetail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ry-pdetail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 12px;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-light, #98a2b3);
}

.ry-pdetail__tags { margin-top: 4px; }

/* 正文区：与上方主区之间留出小节标题，避免"正文接着参数就来了" */
.ry-pdetail__body { padding-top: var(--ry-space-6, 24px); }

.ry-pdetail__body-head {
    margin-bottom: var(--ry-space-4, 16px);
    border-left: 3px solid var(--ry-primary);
    padding-left: 12px;
}

.ry-pdetail__h2 {
    margin: 0;
    font-size: var(--ry-fs-20, 20px);
    font-weight: var(--ry-fw-700, 700);
    color: var(--ry-text-strong, #101828);
}

/* 窄屏：两栏变单栏（图在上、信息在下）。1024 而不是 768 —— 平板竖屏时
   两栏各只剩 300px 上下，标题与参数表会挤成一条条，反而不如单栏好读。 */
@media (max-width: 1024px) {
    .ry-pdetail__top {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ry-space-6, 24px);
    }

    /* 窄屏：图片占满整行，高度按比例走，只加一个上限防止超长图撑破首屏 */
    .ry-pdetail__gallery .ry-gallery-slide img { max-height: 62vw; }
}

@media (max-width: 480px) {
    .ry-pdetail__specs { grid-template-columns: minmax(0, 1fr); }
    .ry-pdetail__actions .ry-btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   07 侧栏小工具补充
   ========================================================================== */

.ry-widget-nav { display: grid; }

.ry-widget-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    font-size: var(--ry-fs-14, 14px);
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-widget-nav__item:last-child { border-bottom: 0; padding-bottom: 0; }
.ry-widget-nav__name { flex: 1; min-width: 0; }

.ry-widget-nav__count {
    flex: none;
    font-size: var(--ry-fs-12, 12px);
    color: var(--ry-text-muted, #667085);
}

/* ---- 可折叠栏目树 ----
 * 结构：
 *   nav.ry-widget-nav[data-nav-tree]
 *     ul.ry-widget-nav__list--depth0
 *       li.ry-widget-nav__node(.has-children)(.is-open)
 *         div.ry-widget-nav__row  > a.ry-widget-nav__item + button.ry-widget-nav__toggle
 *         ul.ry-widget-nav__list--depth1 …
 *
 * 默认展开状态由服务端写在 .is-open 上，所以禁用 JS 时层级依然可见；
 * JS 只负责点击 toggle 时切换 .is-open。 */
.ry-widget-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ry-widget-nav__row {
    display: flex;
    align-items: center;
    gap: 2px;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
}

.ry-widget-nav__node:last-child > .ry-widget-nav__row { border-bottom: 0; }
.ry-widget-nav__row > .ry-widget-nav__item { border-bottom: 0; flex: 1; min-width: 0; }

.ry-widget-nav__toggle {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ry-text-muted, #667085);
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

.ry-widget-nav__toggle:hover { background: var(--ry-surface-sunken, #f2f4f7); }
.ry-widget-nav__node.is-open > .ry-widget-nav__row > .ry-widget-nav__toggle { transform: rotate(180deg); }

/* 子级默认隐藏，只有 .is-open 的节点才展开 */
.ry-widget-nav__list--depth1,
.ry-widget-nav__list--depth2,
.ry-widget-nav__list--depth3 { display: none; }
.ry-widget-nav__node.is-open > .ry-widget-nav__list { display: block; }

/* 子级缩进与左侧引导线 */
.ry-widget-nav__list--depth1,
.ry-widget-nav__list--depth2,
.ry-widget-nav__list--depth3 {
    margin: 2px 0 6px;
    padding-left: 12px;
    border-left: 2px solid var(--ry-border, #e5e7eb);
}

.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 {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-muted, #667085);
}

.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 {
    color: var(--ry-primary, #1a6dff);
    font-weight: 600;
}

.ry-widget-contact { display: grid; gap: 2px; }

.ry-widget-contact__item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: var(--ry-fs-14, 14px);
    line-height: 1.7;
}

.ry-widget-contact__label { flex: none; min-width: 52px; color: var(--ry-text-muted, #667085); }
.ry-widget-contact__value { color: var(--ry-text, #1f2937); word-break: break-word; }

.ry-widget-hot { display: grid; }

.ry-widget-hot__item {
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ry-border, #e5e7eb);
}

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

.ry-widget-hot__link {
    display: -webkit-box;
    flex: 1;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--ry-fs-14, 14px);
    line-height: 1.6;
}

.ry-widget-hot__date { flex: none; font-size: var(--ry-fs-12, 12px); color: var(--ry-text-muted, #667085); }

.ry-widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.ry-widget-tags__item {
    padding: 5px 13px;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-soft, #475467);
    background: var(--ry-bg-soft, #f6f8fc);
    border: 1px solid var(--ry-border-light, #f0f2f5);
    border-radius: var(--ry-radius-pill, 999px);
    transition: all var(--ry-dur, .22s) var(--ry-ease, ease);
}

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

/* 图集详情（文章内） */
.ry-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }

.ry-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--ry-radius-md, 8px);
    background: var(--ry-bg-soft, #f6f8fc);
}

.ry-gallery__item img { width: 100%; height: 100%; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); transition: transform .5s var(--ry-ease, ease); }
.ry-gallery__item:hover img { transform: scale(1.05); }

/* ==========================================================================
   08 表单与询价补充
   ========================================================================== */

.ry-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.ry-form__submit {
    min-width: 150px;
    padding: 13px 34px;
    font-size: var(--ry-fs-15, 15px);
}

.ry-field__label {
    font-size: var(--ry-fs-14, 14px);
    font-weight: var(--ry-fw-500, 500);
    color: var(--ry-text, #1f2937);
}

.ry-captcha-row { display: flex; align-items: center; gap: 12px; }
.ry-captcha-row .ry-input { flex: 1; min-width: 0; }
.ry-field--captcha .ry-captcha-row { align-items: stretch; }

.ry-inquiry__head { margin-bottom: 22px; }
.ry-inquiry__title { font-size: var(--ry-fs-22, 22px); }

.ry-inquiry__desc {
    margin-top: 8px;
    font-size: var(--ry-fs-14, 14px);
    line-height: 1.75;
    color: var(--ry-text-muted, #667085);
}

/* 搜索列表项 */
.ry-list--search { grid-template-columns: 1fr; }
.ry-search-item__date { font-size: var(--ry-fs-13, 13px); color: var(--ry-text-muted, #667085); }

/* ==========================================================================
   09 区块修饰类（给不同区块留出微调入口，模板包可覆盖）
   ========================================================================== */

.ry-sec--about,
.ry-sec--products,
.ry-sec--advantages,
.ry-sec--cases,
.ry-sec--news,
.ry-sec--partners,
.ry-sec--contact,
.ry-sec--related,
.ry-sec--inquiry,
.ry-sec--download,
.ry-sec--gallery,
.ry-sec--apply { position: relative; }

.ry-sec--fields { padding: 0; }
.ry-sec--apply { padding: 0; }

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

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

/* 页面类型修饰（body 上，便于按页型微调；默认不改变任何东西） */
.ry-site--home, .ry-site--list, .ry-site--detail, .ry-site--page,
.ry-site--tag, .ry-site--search, .ry-site--404, .ry-site--maintenance { min-height: 100vh; }

.ry-site--404 .ry-site-header,
.ry-site--maintenance .ry-site-header,
.ry-site--maintenance .ry-site-footer { display: none; }

/* 缩略图占位里的字符（图集等无图时用） */
.ry-thumb__char {
    font-size: 38px;
    font-weight: var(--ry-fw-700, 700);
    color: rgba(255, 255, 255, .92);
}

.ry-thumb__ph { width: 44px; height: 44px; opacity: .9; }

/* 徽标补充 */
.ry-badge--new { background: var(--ry-success, #12b76a); }

/* ==========================================================================
   10 响应式
   ========================================================================== */

@media (max-width: 1024px) {
    .ry-site-topbar { display: none; }
    .ry-site-nav__inner { height: 66px; }
    .ry-nav-burger { display: flex; order: 3; margin-left: auto; }
    .ry-site-nav__hotline { display: none; }
    .ry-site-nav__tools { order: 2; }

    /* 移动抽屉 */
    .ry-site-nav__panel {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        z-index: var(--ry-z-drawer, 60);
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: 24px 22px 40px;
        overflow-y: auto;
        background: var(--ry-surface, #fff);
        box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
        transform: translateX(102%);
        transition: transform var(--ry-dur, .22s) var(--ry-ease, ease);
    }

    body.is-nav-open .ry-site-nav__panel { transform: translateX(0); }

    .ry-site-nav__panel::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(8, 20, 45, .48);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--ry-dur, .22s) var(--ry-ease, ease), visibility var(--ry-dur, .22s) var(--ry-ease, ease);
    }

    body.is-nav-open .ry-site-nav__panel::before { opacity: 1; visibility: visible; }

    .ry-about { grid-template-columns: 1fr; gap: 32px; }
    .ry-news-block { grid-template-columns: 1fr; }
    .ry-contact { grid-template-columns: 1fr; }
    .ry-news-block, .ry-about, .ry-contact { gap: 28px; }
    .ry-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .ry-stats__item:nth-child(2)::after { display: none; }
    .ry-partners__grid, .ry-partner__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ry-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 768px) {
    .ry-sec__head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ry-adv { grid-template-columns: 1fr; }
    .ry-partners__grid, .ry-partner__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-gallery { grid-template-columns: 1fr; }

    .ry-news-block { grid-template-columns: 1fr; }
    .ry-nfeature__body { padding: 20px 20px 24px; }
    .ry-nfeature__title { font-size: var(--ry-fs-18, 18px); }

    .ry-form__grid { grid-template-columns: 1fr; }
    .ry-site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .ry-site-footer__bottom-inner { flex-direction: column; text-align: center; }

    .ry-jcard__head { flex-direction: column; gap: 8px; }
    .ry-contact__item { flex-direction: column; gap: 2px; }
    .ry-contact__label { min-width: 0; }
    .ry-widget-contact__item { flex-direction: column; gap: 2px; }
    .ry-widget-contact__label { min-width: 0; }
}

@media (max-width: 480px) {
    .ry-stats__grid { grid-template-columns: 1fr; gap: 22px; }
    .ry-stats__item::after { display: none; }
    .ry-stats__value { font-size: var(--ry-fs-30, 30px); }
    .ry-pcard__actions { flex-direction: column; }
    .ry-pcard__actions .ry-btn { width: 100%; }
    .ry-banner__actions { flex-direction: column; }
    .ry-partners__grid, .ry-partner__grid { grid-template-columns: 1fr; }
    .ry-dcard { flex-direction: column; }
    .ry-site-nav__tools .ry-site-lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ry-nfeature:hover, .ry-nlist__item:hover { transform: none; }
    .ry-nfeature:hover .ry-nfeature__media img,
    .ry-pcard:hover .ry-pcard__img,
    .ry-ccard:hover .ry-ccard__img,
    .ry-gcard:hover .ry-gcard__img,
    .ry-vcard:hover .ry-vcard__img,
    .ry-gallery__item:hover img { transform: none; }
}

/* ==========================================================================
 * 15. 产品官网组件（Hero / 扩展库 / 版本 / 文档 / 问答 / 商店列表与详情）
 * --------------------------------------------------------------------------
 * 这一批是「产品官网、软件商店、文档站」场景用的组件，都遵循同一条规矩：
 *   · 只用主题变量上色（--ry-primary / --ry-secondary / …），换模板包自动跟着变；
 *   · 不用纯黑（#000）与近黑（#111 这类）：本站的模板一律避开黑色，
 *     深色块用 secondary（深蓝）而不是黑；
 *   · 卡片圆角 14px、描边 + 极浅阴影，跟既有卡片体系一致。
 * ========================================================================== */

/* ---- 15.1 产品 Hero ----
 * ⚠️ 类名是 ry-phero 而不是 ry-hero：`.ry-hero` 早就被「内页页头」用了
 *    （base.css 里是深蓝居中通栏 + 白色文字），复用这个名字会直接串味 ——
 *    实测首屏变成了深蓝居中横幅。新组件请先 grep 一下类名有没有被占用。 */
.ry-phero {
    position: relative;
    padding: 72px 0 64px;
    background:
        radial-gradient(900px 420px at 78% -10%, rgba(var(--ry-primary-rgb), .14), transparent 62%),
        linear-gradient(180deg, var(--ry-bg-soft) 0%, var(--ry-bg) 100%);
    overflow: hidden;
}
.ry-phero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
}
.ry-phero__badge {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ry-primary);
    background: rgba(var(--ry-primary-rgb), .10);
    border: 1px solid rgba(var(--ry-primary-rgb), .22);
    border-radius: 999px;
}
.ry-phero__title {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1.16;
    letter-spacing: -.5px;
    color: var(--ry-heading);
}
.ry-phero__sub {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--ry-primary);
    font-weight: 600;
}
.ry-phero__desc {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ry-muted);
    max-width: 620px;
}
.ry-phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.ry-phero__points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 卖点一条一行：标题在上、补充说明在下。并排写会挤成一团（实测 1200 宽下会断词） */
.ry-phero__point { display: block; font-size: 14px; line-height: 1.6; }
.ry-phero__point-title {
    position: relative;
    display: block;
    padding-left: 14px;
    color: var(--ry-text);
    font-weight: 600;
}
.ry-phero__point-title::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ry-primary);
}
.ry-phero__point-desc { display: block; padding-left: 14px; color: var(--ry-muted); font-size: 13px; }

/* 纯 CSS 的浏览器窗口示意图：不依赖截图，永远跟主题色一致 */
.ry-phero__shot { position: relative; }
/* 右侧换成客户自己的图时：整幅显示（不裁切）+ 与 mockup 同一套圆角/投影，
   这样"用示意图"和"用真图"两种状态在同一版式下观感一致。 */
.ry-phero__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    border: 1px solid var(--ry-border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(var(--ry-secondary-rgb), .16);
}
@media (max-width: 980px) {
    .ry-phero__img { max-height: none; }
}
.ry-mock {
    border: 1px solid var(--ry-border);
    border-radius: 16px;
    background: var(--ry-bg);
    box-shadow: 0 24px 60px rgba(var(--ry-secondary-rgb), .16);
    overflow: hidden;
}
.ry-mock__bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: var(--ry-bg-soft);
    border-bottom: 1px solid var(--ry-border);
}
.ry-mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ry-border); }
.ry-mock__dot:first-child { background: rgba(var(--ry-accent-rgb), .55); }
.ry-mock__dot:nth-child(2) { background: rgba(var(--ry-primary-rgb), .45); }
.ry-mock__url {
    margin-left: 10px; padding: 3px 12px;
    font-size: 11px; color: var(--ry-muted);
    background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 999px;
}
.ry-mock__nav { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ry-mock__logo { width: 54px; height: 14px; border-radius: 4px; background: var(--ry-secondary); opacity: .85; }
.ry-mock__link { width: 38px; height: 8px; border-radius: 4px; background: var(--ry-border); }
.ry-mock__link.is-on { background: rgba(var(--ry-primary-rgb), .55); }
.ry-mock__pill { margin-left: auto; width: 56px; height: 20px; border-radius: 999px; background: rgba(var(--ry-primary-rgb), .16); }
.ry-mock__hero { padding: 6px 16px 16px; }
.ry-mock__h1 { display: block; width: 62%; height: 16px; border-radius: 4px; background: var(--ry-secondary); opacity: .8; margin-bottom: 8px; }
.ry-mock__h2 { display: block; width: 78%; height: 9px; border-radius: 4px; background: var(--ry-border); margin-bottom: 6px; }
.ry-mock__h2--short { width: 46%; }
.ry-mock__btns { display: flex; gap: 8px; margin-top: 14px; }
.ry-mock__btn { width: 74px; height: 24px; border-radius: 6px; background: var(--ry-primary); opacity: .9; }
.ry-mock__btn--ghost { background: transparent; border: 1px solid var(--ry-border); }
.ry-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.ry-mock__card { height: 58px; border-radius: 8px; background: var(--ry-bg-soft); border: 1px solid var(--ry-border); }
.ry-mock__rows { padding: 14px 16px 18px; }
.ry-mock__row { display: block; height: 8px; border-radius: 4px; background: var(--ry-border); margin-bottom: 8px; }
.ry-mock__row:last-child { width: 64%; }

/* ---- 15.2 扩展库入口 ---- */
.ry-libs { display: grid; gap: var(--ry-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ry-libs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ry-libs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ry-lib {
    display: flex; flex-direction: column; gap: 8px;
    padding: 24px 22px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ry-lib:hover { transform: translateY(-3px); box-shadow: var(--ry-shadow); border-color: rgba(var(--ry-primary-rgb), .35); }
.ry-lib__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10);
}
.ry-lib__name { font-size: 17px; font-weight: 700; color: var(--ry-text); }
.ry-lib__desc { font-size: 13px; line-height: 1.7; color: var(--ry-muted); flex: 1; }
.ry-lib__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.ry-lib__count { color: var(--ry-primary); font-weight: 600; }
.ry-lib__go { color: var(--ry-muted); }

/* ---- 15.3 核心特性 ---- */
.ry-features { display: grid; gap: var(--ry-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ry-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ry-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ry-feature {
    padding: 26px 24px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 14px;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.ry-feature:hover { box-shadow: var(--ry-shadow); border-color: rgba(var(--ry-primary-rgb), .3); }
.ry-feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10);
}
.ry-feature__title { margin: 0 0 8px; font-size: 17px; color: var(--ry-text); }
.ry-feature__desc { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ry-muted); }

/* ---- 15.4 最新版本大卡片 ---- */
.ry-relcard {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px;
    padding: 28px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-left: 4px solid var(--ry-primary);
    border-radius: 14px;
    box-shadow: var(--ry-shadow);
}
.ry-relcard__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ry-relcard__ver { font-size: 26px; font-weight: 800; color: var(--ry-heading); letter-spacing: -.3px; }
.ry-relcard__channel, .ry-relrow__channel {
    padding: 2px 9px; font-size: 12px; border-radius: 999px;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10);
}
.ry-relrow__channel--beta { color: var(--ry-accent); background: rgba(var(--ry-accent-rgb), .12); }
.ry-relrow__channel--patch { color: var(--ry-muted); background: var(--ry-bg-soft); }
.ry-relcard__date { font-size: 13px; color: var(--ry-muted); }
.ry-relcard__title { margin: 0 0 8px; font-size: 19px; color: var(--ry-text); }
.ry-relcard__summary { margin: 0 0 14px; font-size: 14px; line-height: 1.8; color: var(--ry-muted); }
.ry-relcard__changes { margin: 0 0 16px; padding: 0; list-style: none; }
.ry-relcard__changes li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; font-size: 14px; color: var(--ry-text); border-bottom: 1px dashed var(--ry-border); }
.ry-relcard__changes li:last-child { border-bottom: 0; }
.ry-relcard__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ry-muted); }
.ry-relcard__meta strong { color: var(--ry-text); }
.ry-relcard__side { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.ry-relcard__side .ry-btn { width: 100%; }
.ry-relcard__tip { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--ry-muted); }
.ry-relcard__tip code { padding: 1px 5px; background: var(--ry-bg-soft); border-radius: 4px; }

/* 变更标签（时间线/列表/卡片共用）
 * 类名用 ry-ctag：`.ry-tag` 是标签云的小胶囊（base.css），复用会把版本标签
 * 渲染成"悬停变蓝的标签云"。 */
.ry-ctag {
    display: inline-block; flex: none;
    padding: 1px 8px; font-size: 12px; font-weight: 600;
    border-radius: 6px; background: var(--ry-bg-soft); color: var(--ry-muted);
}
.ry-ctag--add { color: #0f7b52; background: rgba(16, 185, 129, .12); }
.ry-ctag--opt { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10); }
.ry-ctag--fix { color: #a16207; background: rgba(234, 179, 8, .14); }
.ry-ctag--sec { color: #7c3aed; background: rgba(124, 58, 237, .12); }
.ry-ctag--hot { color: #b91c1c; background: rgba(239, 68, 68, .12); }

/* ---- 15.5 文档入口 ---- */
.ry-docsentry { display: grid; gap: var(--ry-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ry-docsentry__col {
    padding: 22px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 14px;
}
.ry-docsentry__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.ry-docsentry__title a { color: var(--ry-text); text-decoration: none; }
.ry-docsentry__title a:hover { color: var(--ry-primary); }
.ry-docsentry__icon { display: inline-flex; color: var(--ry-primary); }
.ry-docsentry__list { margin: 0 0 12px; padding: 0; list-style: none; }
.ry-docsentry__list li { padding: 6px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-docsentry__list li:last-child { border-bottom: 0; }
.ry-docsentry__list a { font-size: 14px; color: var(--ry-muted); text-decoration: none; }
.ry-docsentry__list a:hover { color: var(--ry-primary); }
.ry-docsentry__all { font-size: 13px; color: var(--ry-primary); text-decoration: none; }

/* ---- 15.6 问答折叠 ---- */
.ry-faq { max-width: 880px; margin: 0 auto; }
.ry-faq__item {
    margin-bottom: 10px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 12px;
    overflow: hidden;
}
.ry-faq__item[open] { border-color: rgba(var(--ry-primary-rgb), .35); box-shadow: var(--ry-shadow); }
.ry-faq__q {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    cursor: pointer; list-style: none;
    font-size: 15px; font-weight: 600; color: var(--ry-text);
}
.ry-faq__q::-webkit-details-marker { display: none; }
.ry-faq__mark {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px;
    font-size: 13px; font-weight: 700;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10);
}
.ry-faq__qtext { flex: 1; }
.ry-faq__tags { display: flex; gap: 6px; }
.ry-faq__tags em { font-style: normal; font-size: 12px; color: var(--ry-muted); background: var(--ry-bg-soft); padding: 1px 7px; border-radius: 5px; }
.ry-faq__arrow { flex: none; color: var(--ry-muted); transition: transform .18s ease; }
.ry-faq__item[open] .ry-faq__arrow { transform: rotate(90deg); color: var(--ry-primary); }
.ry-faq__a { padding: 0 18px 18px 54px; font-size: 14px; line-height: 1.9; color: var(--ry-muted); }
.ry-asklist__group { margin: 26px 0 12px; font-size: 15px; color: var(--ry-heading); }
.ry-asklist__group:first-child { margin-top: 0; }
.ry-asklist__foot {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding: 16px 18px;
    background: var(--ry-bg-soft); border-radius: 12px;
}
.ry-asklist__foot p { margin: 0; font-size: 14px; color: var(--ry-muted); }

/* ---- 15.7 行动区 CTA ---- */
.ry-cta {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--ry-secondary) 0%, rgba(var(--ry-primary-rgb), .92) 100%);
    color: #fff;
}
.ry-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.ry-cta__title { margin: 0 0 10px; font-size: 28px; color: #fff; }
.ry-cta__desc { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, .82); max-width: 640px; }
.ry-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ry-cta .ry-btn--primary { background: var(--ry-surface); color: var(--ry-heading); border-color: #fff; }
.ry-cta .ry-btn--primary:hover { background: rgba(255, 255, 255, .9); }
.ry-cta .ry-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.ry-cta .ry-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.ry-cta__tips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ry-cta__tips li { color: rgba(255, 255, 255, .78); }
.ry-cta__tips strong { color: #fff; margin-left: 6px; }

/* ---- 15.8 扩展包网格（商店列表） ---- */
.ry-pkgfilter {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 12px 16px;
    background: var(--ry-bg-soft); border-radius: 10px;
    font-size: 13px; color: var(--ry-muted);
}
.ry-pkgfilter__label { font-weight: 600; color: var(--ry-text); }
.ry-pkgfilter__item { padding: 3px 10px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 999px; }
.ry-pkgfilter__item em { font-style: normal; color: var(--ry-primary); font-weight: 600; }
.ry-pkgfilter__total { margin-left: auto; }
.ry-pkggrid { display: grid; gap: var(--ry-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ry-pkg {
    display: flex; flex-direction: column;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ry-pkg:hover { transform: translateY(-3px); box-shadow: var(--ry-shadow); border-color: rgba(var(--ry-primary-rgb), .3); }
.ry-pkg__cover {
    position: relative; display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(var(--ry-primary-rgb), .10), rgba(var(--ry-secondary-rgb), .06));
    overflow: hidden;
}
/**
 * 封面图用 contain 而不是 cover
 *
 * 组件封面是真实截图的**自然高度**：面包屑 120px、头部 217px、首页区块 680px。
 * 用 cover 会把扁的组件放大后左右裁掉一大半（头部导航只剩中间几项），
 * 等于给了一个"看不出是什么组件"的图。contain 让整个组件都在画面里，
 * 留白部分用浅色底衬托，卡片尺寸仍然由 aspect-ratio 统一。
 */
.ry-pkg__cover img {
    width: 100%; height: 100%; object-fit: contain; display: block;
    background: #f7f9fc;
}
.ry-pkg__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(var(--ry-primary-rgb), .55); }
.ry-pkg__badge {
    position: absolute; top: 10px; right: 10px;
    padding: 3px 10px; font-size: 12px; font-weight: 700; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--ry-primary);
}
.ry-pkg__badge--free { color: #0f7b52; }
.ry-pkg__badge--vip { color: #6d4bff; background: rgba(124, 92, 255, .14); }
/* 会员下载限制提示（版本列表/详情/更新日志共用） */
.ry-relaccess { color: #6d4bff; font-weight: 600; }
.ry-reldetail__access {
    margin: 12px 0 0; padding: 10px 14px; font-size: 13px; line-height: 1.7;
    background: rgba(124, 92, 255, .08); border-radius: 10px; color: var(--ry-text);
}
.ry-reldetail__access a { color: var(--ry-primary); }
.ry-pkg__body { flex: 1; padding: 16px 18px 6px; }
.ry-pkg__title { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.ry-pkg__title a { color: var(--ry-text); text-decoration: none; }
.ry-pkg__title a:hover { color: var(--ry-primary); }
.ry-pkg__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 12px; }
/* 卡片上的"单买 ¥99"：用和 VIP 徽标同一组紫色，客户一眼归到"要花钱的那类" */
.ry-pkg__price { padding: 1px 8px; font-weight: 700; color: #6d4bff; background: rgba(124, 92, 255, .12); border-radius: 999px; }
.ry-pkg__type { padding: 1px 8px; border-radius: 5px; color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10); }
.ry-pkg__ver { padding: 1px 8px; border-radius: 5px; color: var(--ry-muted); background: var(--ry-bg-soft); }
.ry-pkg__slot { padding: 1px 8px; border-radius: 5px; color: var(--ry-muted); background: var(--ry-bg-soft); font-family: ui-monospace, Menlo, Consolas, monospace; }
.ry-pkg__desc { margin: 0 0 12px; font-size: 13px; line-height: 1.75; color: var(--ry-muted); }
.ry-pkg__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--ry-border); font-size: 12px; color: var(--ry-muted); }
.ry-pkg__actions { display: flex; gap: 8px; padding: 12px 18px 16px; }
.ry-pkg__actions .ry-btn { flex: 1; justify-content: center; }

/* 空状态（列表组件共用） */
.ry-empty-state { padding: 56px 20px; text-align: center; color: var(--ry-muted); }
.ry-empty-state__icon { display: inline-flex; margin-bottom: 12px; color: var(--ry-border); }
.ry-empty-state__text { margin: 0; font-size: 14px; }

/* ---- 15.9 版本下载列表 ---- */
.ry-rellist { border: 1px solid var(--ry-border); border-radius: 14px; overflow: hidden; background: var(--ry-bg); }
.ry-relrow { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--ry-border); }
.ry-relrow:last-child { border-bottom: 0; }
.ry-relrow.is-latest { background: rgba(var(--ry-primary-rgb), .04); }
.ry-relrow__main { flex: 1; min-width: 0; }
.ry-relrow__line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.ry-relrow__ver { font-size: 18px; font-weight: 700; color: var(--ry-heading); text-decoration: none; }
.ry-relrow__ver:hover { color: var(--ry-primary); }
.ry-relrow__date { font-size: 13px; color: var(--ry-muted); }
.ry-relrow__title { margin: 0 0 4px; font-size: 15px; }
.ry-relrow__title a { color: var(--ry-text); text-decoration: none; }
.ry-relrow__title a:hover { color: var(--ry-primary); }
.ry-relrow__meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; font-size: 12px; color: var(--ry-muted); }
.ry-relrow__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- 15.10 版本历程时间线 ---- */
.ry-timeline { position: relative; padding-left: 26px; }
.ry-timeline::before {
    content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, rgba(var(--ry-primary-rgb), .45), var(--ry-border));
}
.ry-tl { position: relative; margin-bottom: 26px; padding: 20px 22px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 14px; }
.ry-tl.is-latest { border-color: rgba(var(--ry-primary-rgb), .35); box-shadow: var(--ry-shadow); }
.ry-tl__dot {
    position: absolute; left: -26px; top: 24px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--ry-bg); border: 3px solid var(--ry-border);
}
.ry-tl.is-latest .ry-tl__dot { border-color: var(--ry-primary); }
.ry-tl__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ry-tl__ver { font-size: 20px; font-weight: 700; color: var(--ry-heading); }
.ry-tl__date { font-size: 13px; color: var(--ry-muted); }
.ry-tl__title { margin: 0 0 12px; font-size: 16px; }
.ry-tl__title a { color: var(--ry-text); text-decoration: none; }
.ry-tl__title a:hover { color: var(--ry-primary); }
.ry-tl__changes { margin: 0; padding: 0; list-style: none; }
.ry-tl__changes li { display: flex; gap: 9px; align-items: baseline; padding: 5px 0; font-size: 14px; line-height: 1.75; color: var(--ry-text); }
.ry-tl__summary { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ry-muted); }
.ry-tl__more { margin: 8px 0 0; font-size: 13px; }
.ry-tl__more a { color: var(--ry-primary); text-decoration: none; }
.ry-tl__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ry-border); }
.ry-tl__req { margin-right: auto; font-size: 12px; color: var(--ry-muted); }

/* ---- 15.11 子栏目索引 ---- */
.ry-subcats__head { margin-bottom: 18px; }
.ry-subcats__title { margin: 0 0 6px; font-size: 20px; color: var(--ry-text); }
.ry-subcats__sub { margin: 0; font-size: 14px; color: var(--ry-muted); }
.ry-subcats__grid { display: grid; gap: var(--ry-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ry-subcat { padding: 20px 22px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 14px; }
.ry-subcat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ry-subcat__icon { display: inline-flex; color: var(--ry-primary); }
.ry-subcat__name { flex: 1; font-size: 16px; font-weight: 700; color: var(--ry-text); text-decoration: none; }
.ry-subcat__name:hover { color: var(--ry-primary); }
.ry-subcat__count { padding: 1px 9px; font-size: 12px; color: var(--ry-muted); background: var(--ry-bg-soft); border-radius: 999px; }
.ry-subcat__list { margin: 0 0 10px; padding: 0; list-style: none; }
.ry-subcat__list li { padding: 5px 0; font-size: 14px; }
.ry-subcat__list a { color: var(--ry-muted); text-decoration: none; }
.ry-subcat__list a:hover { color: var(--ry-primary); }
.ry-subcat__desc { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: var(--ry-muted); }
.ry-subcat__all { font-size: 13px; color: var(--ry-primary); text-decoration: none; }

/* ---- 15.12 扩展包详情（商品页） ---- */
.ry-pkgdetail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.ry-pkgdetail__head { margin-bottom: 20px; }
.ry-pkgdetail__title { margin: 0 0 10px; font-size: 30px; line-height: 1.3; color: var(--ry-heading); }
.ry-pkgdetail__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--ry-muted); }
.ry-pkgdetail__ver { font-weight: 700; color: var(--ry-primary); }
.ry-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ry-muted); }
.ry-pkgdetail__summary { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ry-muted); }
.ry-pkgdetail__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.ry-pkgdetail__shot { display: block; border: 1px solid var(--ry-border); border-radius: 12px; overflow: hidden; }
.ry-pkgdetail__shot.is-main { grid-column: 1 / -1; }
.ry-pkgdetail__shot img { width: 100%; display: block; }
.ry-pkgdetail__h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; color: var(--ry-text); }
.ry-pkgdetail__affects { margin-bottom: 24px; padding: 18px 20px; background: rgba(var(--ry-primary-rgb), .06); border-left: 3px solid var(--ry-primary); border-radius: 0 12px 12px 0; }
.ry-pkgdetail__affects p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ry-text); }
.ry-pkgdetail__body { margin-bottom: 24px; font-size: 15px; line-height: 1.9; color: var(--ry-text); }
.ry-pkgdetail__steps { margin-bottom: 24px; }
.ry-pkgdetail__loglist { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--ry-muted); }
.ry-pkgdetail__side { position: sticky; top: 90px; }
.ry-buycard { padding: 22px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 16px; box-shadow: var(--ry-shadow); }
.ry-buycard__price { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--ry-border); }
.ry-buycard__price strong { display: block; font-size: 24px; color: var(--ry-heading); }
.ry-buycard__price span { font-size: 13px; color: var(--ry-muted); }
.ry-buycard__btn { width: 100%; justify-content: center; margin-bottom: 16px; }
.ry-buycard__empty { margin: 0 0 16px; font-size: 13px; color: var(--ry-accent); }
.ry-buycard__specs { margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.ry-buycard__specs li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-buycard__specs li:last-child { border-bottom: 0; }
.ry-buycard__specs span { flex: none; width: 66px; color: var(--ry-muted); }
.ry-buycard__specs em { font-style: normal; color: var(--ry-text); word-break: break-all; }
.ry-buycard__links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ry-buycard__tip { margin: 0; font-size: 12px; line-height: 1.75; color: var(--ry-muted); }
.ry-buycard__tip code { padding: 1px 5px; background: var(--ry-bg-soft); border-radius: 4px; }
.ry-buycard__tip--tight { margin: -8px 0 16px; }

/* 单件购买按钮（素材详情页）
   用强调色实心，和"会员下载"的主色实心按钮并排时是两个清晰的选项，
   而不是同一件事的两种说法 —— 客户要能一眼看出"开会员"和"只买这一件"是二选一。 */
.ry-btn--buy {
    background: var(--ry-accent);
    border-color: var(--ry-accent);
    color: #fff;
}
.ry-btn--buy:hover {
    background: var(--ry-secondary);
    border-color: var(--ry-heading);
    color: #fff;
}

/* 三步说明（商品页、版本页共用） */
.ry-steps { margin: 0; padding: 0; list-style: none; }
.ry-steps__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-steps__item:last-child { border-bottom: 0; }
.ry-steps__num {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 13px; font-weight: 700; color: #fff; background: var(--ry-primary);
}
.ry-steps__body { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.ry-steps__body strong { color: var(--ry-text); }
.ry-steps__body span { color: var(--ry-muted); line-height: 1.75; }
.ry-steps--tight .ry-steps__item { padding: 8px 0; }

/* ---- 15.13 版本详情 ---- */
.ry-reldetail__head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ry-border); }
.ry-reldetail__verline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ry-reldetail__title { margin: 0; font-size: 32px; color: var(--ry-heading); letter-spacing: -.5px; }
.ry-reldetail__meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; font-size: 13px; color: var(--ry-muted); }
.ry-reldetail__summary { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ry-muted); }
.ry-reldetail__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ry-gap); margin-bottom: 26px; }
.ry-reldetail__dlbox, .ry-reldetail__upbox { padding: 20px 22px; background: var(--ry-bg-soft); border-radius: 14px; }
.ry-reldetail__h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; color: var(--ry-text); }
.ry-dllist { margin: 0; padding: 0; list-style: none; }
.ry-dllist__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-dllist__item:last-child { border-bottom: 0; }
.ry-dllist__ico {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 30px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .3px;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10);
}
.ry-dllist__ico--patch { color: var(--ry-accent); background: rgba(var(--ry-accent-rgb), .12); }
.ry-dllist__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ry-dllist__body strong { font-size: 14px; color: var(--ry-text); }
.ry-dllist__body em { font-style: normal; font-size: 12px; color: var(--ry-muted); word-break: break-all; }
.ry-dllist__empty { font-size: 13px; color: var(--ry-muted); }
.ry-reldetail__md5 { margin: 12px 0 0; font-size: 12px; color: var(--ry-muted); }
.ry-reldetail__md5 code { padding: 1px 6px; background: var(--ry-bg); border-radius: 4px; }
.ry-reldetail__upfrom { margin: 12px 0; font-size: 13px; color: var(--ry-muted); }
.ry-reldetail__changes { margin-bottom: 26px; }
.ry-changegroup { margin-bottom: 18px; }
.ry-changegroup__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--ry-text); }
.ry-changegroup__title em { font-style: normal; font-size: 12px; color: var(--ry-muted); }
.ry-changegroup__list { margin: 0; padding-left: 20px; }
.ry-changegroup__list li { padding: 4px 0; font-size: 14px; line-height: 1.8; color: var(--ry-text); }

/* ---- 15.14 文档目录（侧栏） ---- */
.ry-docnav { padding: 18px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 14px; }
.ry-docnav__head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--ry-border); }
.ry-docnav__icon { display: inline-flex; color: var(--ry-primary); }
.ry-docnav__cat { font-size: 15px; font-weight: 700; color: var(--ry-text); text-decoration: none; }
.ry-docnav__list { margin: 0; padding: 0; list-style: none; }
.ry-docnav__list li { border-radius: 8px; }
.ry-docnav__list a { display: block; padding: 7px 10px; font-size: 14px; color: var(--ry-muted); text-decoration: none; border-radius: 8px; }
.ry-docnav__list a:hover { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .06); }
.ry-docnav__list li.is-on a { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10); font-weight: 600; }
.ry-docnav__sections { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ry-border); }
.ry-docnav__sectitle { margin: 0 0 8px; font-size: 12px; color: var(--ry-muted); }
.ry-docnav__sections ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ry-docnav__sections a { font-size: 12px; color: var(--ry-muted); text-decoration: none; padding: 2px 8px; background: var(--ry-bg-soft); border-radius: 999px; }
.ry-docnav__sections a:hover { color: var(--ry-primary); }
.ry-docnav__foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ry-border); font-size: 12px; color: var(--ry-muted); }

/* 叶子栏目的文章列表（list-subcats 在没有子栏目时用它） */
.ry-doclist { display: grid; gap: 12px; }
.ry-doclist__item {
    padding: 18px 20px;
    background: var(--ry-bg);
    border: 1px solid var(--ry-border);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ry-doclist__item:hover { border-color: rgba(var(--ry-primary-rgb), .35); box-shadow: var(--ry-shadow); }
.ry-doclist__title { margin: 0 0 6px; font-size: 16px; }
.ry-doclist__title a { color: var(--ry-text); text-decoration: none; }
.ry-doclist__title a:hover { color: var(--ry-primary); }
.ry-doclist__desc { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: var(--ry-muted); }
.ry-doclist__meta { display: flex; gap: 14px; margin: 0; font-size: 12px; color: var(--ry-muted); }

/* ---- 15.15 响应式 ---- */
@media (max-width: 1100px) {
    .ry-phero__inner { grid-template-columns: 1fr; gap: 36px; }
    .ry-phero__shot { order: 2; }
    .ry-libs, .ry-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-pkggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-docsentry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ry-pkgdetail { grid-template-columns: 1fr; }
    .ry-pkgdetail__side { position: static; }
    .ry-cta__inner { grid-template-columns: 1fr; }
    .ry-relcard { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ry-phero { padding: 48px 0 40px; }
    .ry-phero__title { font-size: 30px; }
    .ry-phero__sub { font-size: 16px; }
    .ry-phero__points { grid-template-columns: 1fr; }
    .ry-libs, .ry-features, .ry-features--2, .ry-features--3, .ry-features--4,
    .ry-pkggrid, .ry-docsentry, .ry-subcats__grid, .ry-reldetail__dl { grid-template-columns: 1fr; }
    .ry-relrow { flex-direction: column; align-items: flex-start; }
    .ry-relrow__actions { width: 100%; justify-content: flex-start; }
    .ry-faq__a { padding-left: 18px; }
    .ry-cta__title { font-size: 22px; }
    .ry-pkgdetail__title { font-size: 24px; }
    .ry-reldetail__title { font-size: 26px; }
    .ry-pkgdetail__shots { grid-template-columns: 1fr; }
}
/* ==========================================================================
 * 16. 会员与收费（前台会员中心 / 等级价格 / 下单 / 订单）
 * --------------------------------------------------------------------------
 * 这些页面的 class 专门加前缀（ry-member- / ry-plan / ry-buy / ry-order / ry-mtag），
 * 因为前台其它地方已经有 ry-table、ry-btn 这类"看起来通用"的名字，
 * 直接复用会把后台表格样式与前台混在一起（前台本来没有 .ry-table 的样式）。
 * ========================================================================== */

/* ---- 16.1 登录 / 注册 ---- */
.ry-member-auth { padding: 56px 0 72px; background: var(--ry-bg-soft); }
.ry-member-auth__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.ry-member-auth__form { padding: 32px 34px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 16px; box-shadow: var(--ry-shadow); }
.ry-member-auth__title { margin: 0 0 8px; font-size: 26px; color: var(--ry-heading); }
.ry-member-auth__sub { margin: 0 0 22px; font-size: 14px; line-height: 1.8; color: var(--ry-muted); }
.ry-member-form { display: grid; gap: 16px; }
.ry-member-field { display: block; }
.ry-member-field__label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ry-text); font-weight: 600; }
.ry-member-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ry-member-form__submit { width: 100%; justify-content: center; }
.ry-member-auth__switch { margin: 16px 0 0; font-size: 13px; color: var(--ry-muted); }
.ry-member-auth__switch a { color: var(--ry-primary); text-decoration: none; }
.ry-member-auth__side { padding: 26px 28px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 16px; }
.ry-member-auth__sidetitle { margin: 0 0 14px; font-size: 17px; color: var(--ry-text); }
.ry-member-auth__benefits { margin: 0 0 18px; padding: 0; list-style: none; }
.ry-member-auth__benefits li { padding: 10px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-member-auth__benefits strong { display: block; font-size: 14px; color: var(--ry-text); }
.ry-member-auth__benefits span { font-size: 13px; color: var(--ry-muted); }
.ry-member-auth__levels { display: grid; gap: 8px; }
.ry-member-auth__level { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--ry-bg-soft); border-radius: 10px; font-size: 13px; }
.ry-member-auth__levelname { font-weight: 600; color: var(--ry-text); }
.ry-member-auth__levelprice { color: var(--ry-primary); font-weight: 600; }

/* ---- 16.2 通用提示条 ---- */
.ry-member-alert { margin-bottom: 16px; padding: 12px 16px; font-size: 14px; border-radius: 10px; line-height: 1.7; }
.ry-member-alert--ok { color: #0f7b52; background: rgba(16, 185, 129, .10); border: 1px solid rgba(16, 185, 129, .28); }
.ry-member-alert--err { color: #b91c1c; background: rgba(239, 68, 68, .10); border: 1px solid rgba(239, 68, 68, .26); }
.ry-member-alert--warn { color: #a16207; background: rgba(234, 179, 8, .12); border: 1px solid rgba(234, 179, 8, .30); }
.ry-member-alert a { color: inherit; text-decoration: underline; }

/* ---- 16.3 会员中心 ---- */
.ry-member { padding: 44px 0 72px; }
.ry-member__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ry-member__title { margin: 0 0 6px; font-size: 26px; color: var(--ry-heading); }
.ry-member__hello { margin: 0; font-size: 14px; color: var(--ry-muted); }
.ry-member__expired { color: #a16207; }
.ry-member__actions { display: flex; gap: 8px; }
.ry-member__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.ry-member__nav { display: grid; gap: 6px; padding: 12px; background: var(--ry-bg-soft); border-radius: 14px; }
.ry-member__navitem { display: block; padding: 10px 14px; font-size: 14px; color: var(--ry-muted); text-decoration: none; border-radius: 9px; }
.ry-member__navitem:hover { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .06); }
.ry-member__navitem.is-on { color: var(--ry-primary); background: var(--ry-bg); font-weight: 600; box-shadow: 0 1px 3px rgba(var(--ry-secondary-rgb), .08); }
.ry-member__pane { min-width: 0; padding: 24px 26px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 16px; }

.ry-mcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.ry-mcard__badge { display: inline-block; padding: 4px 14px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .10); border-radius: 999px; }
.ry-mcard__expire { margin: 0 0 6px; font-size: 14px; color: var(--ry-text); }
.ry-mcard__note { margin: 0; font-size: 13px; color: var(--ry-muted); line-height: 1.7; }
.ry-mcard__stats { display: flex; gap: 12px; }
.ry-mstat { display: block; min-width: 96px; padding: 14px 16px; text-align: center; background: var(--ry-bg-soft); border-radius: 12px; text-decoration: none; }
.ry-mstat strong { display: block; font-size: 20px; color: var(--ry-primary); }
.ry-mstat span { font-size: 12px; color: var(--ry-muted); }
.ry-mstat:hover { background: rgba(var(--ry-primary-rgb), .08); }

/* 前台的表格（后台那套 .ry-table 不在这里加载） */
.ry-mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ry-mtable th, .ry-mtable td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ry-border); }
.ry-mtable thead th { font-size: 13px; color: var(--ry-muted); font-weight: 600; background: var(--ry-bg-soft); }
.ry-mtable .ry-table__num { text-align: right; }
.ry-mtable tr:last-child td { border-bottom: 0; }

.ry-mtag { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
.ry-mtag--pending { color: #a16207; background: rgba(234, 179, 8, .14); }
.ry-mtag--done { color: #0f7b52; background: rgba(16, 185, 129, .12); }
.ry-mtag--cancel { color: var(--ry-muted); background: var(--ry-bg-soft); }

/* ---- 16.4 会员等级与价格 ---- */
.ry-member-hero { padding: 56px 0 44px; }
.ry-plans { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.ry-plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 16px; }
.ry-plan.is-featured { border-color: rgba(var(--ry-primary-rgb), .45); box-shadow: 0 16px 40px rgba(var(--ry-primary-rgb), .12); }
.ry-plan.is-mine { border-color: rgba(16, 185, 129, .45); }
.ry-plan__ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; font-size: 12px; font-weight: 700; color: #fff; background: var(--ry-primary); border-radius: 999px; }
.ry-plan__name { margin: 0 0 10px; font-size: 20px; color: var(--ry-heading); }
.ry-plan__price { margin: 0 0 10px; }
.ry-plan__price strong { font-size: 32px; color: var(--ry-primary); }
.ry-plan__price span { margin-left: 6px; font-size: 13px; color: var(--ry-muted); }
.ry-plan__desc { margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: var(--ry-muted); }
/* 价格卡上的"可下载件数"：额度是这个价位最关键的差别，必须和价格挨着看 */
.ry-plan__quota { margin: -4px 0 14px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #6d4bff; background: rgba(124, 92, 255, .1); border-radius: 999px; display: inline-block; }
.ry-plan__benefits { flex: 1; margin: 0 0 20px; padding: 0; list-style: none; }
.ry-plan__benefits li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ry-border); }
.ry-plan__benefits li:last-child { border-bottom: 0; }
.ry-plan__check { flex: none; display: inline-flex; color: #0f7b52; margin-top: 2px; }
.ry-plan__benefits strong { display: block; font-size: 14px; color: var(--ry-text); }
.ry-plan__benefits em { font-style: normal; font-size: 12px; color: var(--ry-muted); }
.ry-plan__action { margin-top: auto; }
.ry-plan__action .ry-btn { width: 100%; justify-content: center; }
.ry-member-faq { max-width: 820px; margin: 48px auto 0; }
.ry-member-faq > .ry-sec__title { margin-bottom: 18px; text-align: center; }

/* ---- 16.5 下单 / 订单 ---- */
.ry-buy { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.ry-buy__title { margin: 0 0 8px; font-size: 26px; color: var(--ry-heading); }
.ry-buy__sub { margin: 0 0 22px; font-size: 14px; line-height: 1.8; color: var(--ry-muted); }
.ry-buy__form { display: grid; gap: 18px; }
.ry-buy__fieldset { margin: 0; padding: 0; border: 0; }
.ry-buy__fieldset legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ry-text); }
.ry-buy__option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--ry-border); border-radius: 10px; cursor: pointer; }
.ry-buy__option:hover { border-color: rgba(var(--ry-primary-rgb), .4); }
.ry-buy__option input { flex: none; }
.ry-buy__optionlabel { flex: 1; font-size: 14px; color: var(--ry-text); }
.ry-buy__optionprice { font-size: 15px; font-weight: 700; color: var(--ry-primary); }
.ry-buy__submit { justify-self: start; }
.ry-buycard { padding: 24px; background: var(--ry-bg-soft); border-radius: 16px; }
.ry-buycard__cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8); margin-bottom: 14px; border-radius: 12px; background: var(--ry-bg); }
.ry-buycard__title { margin: 0 0 8px; font-size: 18px; color: var(--ry-heading); }
.ry-buycard__price { margin: 0 0 16px; }
.ry-buycard__price strong { font-size: 28px; color: var(--ry-primary); }
.ry-buycard__price span { margin-left: 6px; font-size: 13px; color: var(--ry-muted); }
.ry-buycard__benefits { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--ry-text); }
.ry-buycard__benefits li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.ry-buycard__benefits .ry-svg-icon { color: #0f7b52; }
.ry-buycard__steps { padding-top: 14px; margin-bottom: 16px; border-top: 1px dashed var(--ry-border); font-size: 13px; color: var(--ry-muted); }
.ry-buycard__steps ol { margin: 8px 0 0; padding-left: 18px; line-height: 1.9; }

.ry-order { max-width: 820px; }
.ry-order__head { margin-bottom: 20px; }
.ry-order__title { margin: 10px 0 6px; font-size: 24px; color: var(--ry-heading); }
.ry-order__sub { margin: 0; font-size: 13px; color: var(--ry-muted); }
.ry-order__card { padding: 8px 4px; background: var(--ry-bg); border: 1px solid var(--ry-border); border-radius: 14px; }
.ry-order__card .ry-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ry-order__card .ry-table th, .ry-order__card .ry-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ry-border); }
.ry-order__card .ry-table tr:last-child th, .ry-order__card .ry-table tr:last-child td { border-bottom: 0; }
.ry-order__card .ry-table th { font-weight: 600; color: var(--ry-muted); background: var(--ry-bg-soft); }
.ry-order__pay { margin-top: 20px; padding: 20px 22px; background: rgba(var(--ry-primary-rgb), .06); border-left: 3px solid var(--ry-primary); border-radius: 0 12px 12px 0; }
.ry-order__pay h2 { margin: 0 0 8px; font-size: 17px; color: var(--ry-text); }
.ry-order__pay p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--ry-text); }
.ry-order__contacts { margin: 8px 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.ry-order__contacts a { color: var(--ry-primary); }
.ry-order__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---- 16.6 文本小工具类 ----
   模板里一直在用 ry-text-muted / ry-text-sm（订单页、素材详情页的"以下是说明"段落），
   但这两个类一直没定义 —— 那些文字于是按正文大小和正黑色渲染，抢了主信息的注意力。
   补上定义，属于"补齐既有模板的预期"，不是新增视觉规范。 */
.ry-text-muted { color: var(--ry-muted); }
.ry-text-sm { font-size: 13px; }

@media (max-width: 1024px) {
    .ry-member-auth__inner, .ry-member__body, .ry-buy, .ry-mcard { grid-template-columns: 1fr; }
    .ry-plans { grid-template-columns: 1fr; }
    .ry-member__nav { grid-auto-flow: column; grid-auto-columns: 1fr; }
}
@media (max-width: 640px) {
    .ry-member-field-row { grid-template-columns: 1fr; }
    .ry-mcard__stats { flex-wrap: wrap; }
}
/* 会员入口（头部工具组） */
.ry-member-entry {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; font-size: 13px; color: var(--ry-text);
    background: rgba(var(--ry-primary-rgb), .08); border-radius: 999px;
    text-decoration: none; white-space: nowrap;
}
.ry-member-entry:hover { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .14); }
.ry-member-entry .ry-svg-icon { color: var(--ry-primary); }
@media (max-width: 640px) { .ry-member-entry span { display: none; } }

/* ------------------------------------------------------------------ */
/* 17. 列表筛选条（组件库 / 模板库 / 插件库共用）                        */
/* ------------------------------------------------------------------ */
.ry-filterbar {
    margin: 0 0 18px; padding: 14px 18px;
    background: var(--ry-surface); border: 1px solid var(--ry-border); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 33, 75, .04);
}
.ry-filterbar__row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 6px 0;
}
.ry-filterbar__row + .ry-filterbar__row { border-top: 1px dashed var(--ry-border); }
.ry-filterbar__label {
    flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ry-muted);
    min-width: 32px;
}
.ry-filterbar__opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.ry-filterbar__opt {
    padding: 5px 13px; font-size: 13px; line-height: 1.6; border-radius: 999px;
    color: var(--ry-text); text-decoration: none; background: rgba(16, 33, 75, .04);
    transition: background .18s, color .18s;
}
/* 分类/元素后面的条数小药丸：让"某一种组件有多少个"在筛选行里就能看见 */
.ry-filterbar__n {
    display: inline-block; margin-left: 6px; padding: 0 6px;
    font-size: 11px; line-height: 17px; font-weight: 700;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .12);
    border-radius: 999px; font-variant-numeric: tabular-nums;
    transition: background .18s, color .18s;
}
.ry-filterbar__opt:hover .ry-filterbar__n { background: rgba(var(--ry-primary-rgb), .2); }
.ry-filterbar__opt.is-on .ry-filterbar__n { color: #fff; background: rgba(255, 255, 255, .26); }

/* 醒目汇总行：现在看的是哪一类 + 这一类有多少个（用户要求"筛选时能看到某一种多少个"） */
.ry-filterbar__sum {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin: 0 0 12px; padding: 12px 16px;
    background: linear-gradient(180deg, rgba(var(--ry-primary-rgb), .08), rgba(var(--ry-primary-rgb), .035));
    border: 1px solid rgba(var(--ry-primary-rgb), .16);
    border-radius: 12px;
}
.ry-filterbar__sum-scope { font-size: 15px; font-weight: 700; color: var(--ry-text); }
.ry-filterbar__sum-num {
    font-size: 26px; font-weight: 800; line-height: 1;
    color: var(--ry-primary); font-variant-numeric: tabular-nums;
}
.ry-filterbar__sum-unit { font-size: 13px; color: var(--ry-muted); }
.ry-filterbar__sum-lib {
    font-size: 12px; color: var(--ry-muted);
    padding-left: 10px; border-left: 1px solid rgba(var(--ry-primary-rgb), .22);
}
.ry-filterbar__sum .ry-filterbar__reset { margin-left: auto; font-size: 13px; }
/* "0 条"时的出路：在这个版式里没搜到，就给一条"去整个库搜"的链接 */
.ry-filterbar__sum-tip { font-size: 13px; color: var(--ry-muted); }
.ry-filterbar__sum-tip a { color: var(--ry-primary); text-decoration: none; }
.ry-filterbar__sum-tip a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .ry-filterbar__sum { padding: 10px 12px; }
    .ry-filterbar__sum-num { font-size: 22px; }
    .ry-filterbar__sum-lib { padding-left: 0; border-left: 0; }
    .ry-filterbar__sum .ry-filterbar__reset { margin-left: 0; }
}
.ry-filterbar__opt:hover { color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .1); }
.ry-filterbar__opt.is-on {
    color: #fff; background: var(--ry-primary); font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--ry-primary-rgb), .26);
}
.ry-filterbar__search { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ry-filterbar__search input[type="search"] {
    width: 190px; padding: 8px 12px; font-size: 13px;
    border: 1px solid var(--ry-border); border-radius: 10px;
    background: var(--ry-surface-alt); color: var(--ry-text);
}
.ry-filterbar__search input[type="search"]:focus {
    outline: none; border-color: var(--ry-primary);
    box-shadow: 0 0 0 3px rgba(var(--ry-primary-rgb), .12);
}
.ry-filterbar__hint {
    margin: 10px 0 0; padding-top: 10px; font-size: 13px; color: var(--ry-muted);
    border-top: 1px dashed var(--ry-border);
}
.ry-filterbar__hint strong { color: var(--ry-text); }
.ry-filterbar__reset { margin-left: 10px; color: var(--ry-primary); text-decoration: none; }
.ry-filterbar__reset:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .ry-filterbar__search { width: 100%; }
    .ry-filterbar__search input[type="search"] { width: 100%; flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ */
/* 18. 标签工具（模板标签速查页）                                       */
/* ------------------------------------------------------------------ */
.ry-tt__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px;
    background: var(--ry-surface); border: 1px solid var(--ry-border); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 33, 75, .04);
    position: sticky; top: 8px; z-index: 20;
}
.ry-tt__count { font-size: 13px; color: var(--ry-muted); }
.ry-tt__count strong { color: var(--ry-text); font-size: 15px; }
.ry-tt__search {
    display: flex; align-items: center; gap: 8px; flex: 1 1 280px; max-width: 420px;
    padding: 8px 12px; background: var(--ry-surface-alt); border: 1px solid var(--ry-border); border-radius: 10px;
}
.ry-tt__search .ry-svg-icon { color: var(--ry-muted); flex: 0 0 auto; }
.ry-tt__search input {
    flex: 1 1 auto; border: 0; background: transparent; outline: none;
    font-size: 14px; color: var(--ry-text); min-width: 0;
}
.ry-tt__search:focus-within { border-color: var(--ry-primary); box-shadow: 0 0 0 3px rgba(var(--ry-primary-rgb), .12); }

.ry-tt__group { margin: 0 0 26px; }
.ry-tt__grouphead h2 {
    margin: 0 0 4px; font-size: 19px; color: var(--ry-text);
    padding-left: 12px; border-left: 3px solid var(--ry-primary); line-height: 1.3;
}
.ry-tt__grouphead p { margin: 0 0 14px 12px; font-size: 13px; color: var(--ry-muted); }

.ry-tag {
    margin: 0 0 14px; padding: 18px 20px;
    background: var(--ry-surface); border: 1px solid var(--ry-border); border-radius: 14px;
    transition: border-color .18s, box-shadow .18s;
}
.ry-tag:hover { border-color: rgba(var(--ry-primary-rgb), .32); box-shadow: 0 6px 20px rgba(16, 33, 75, .06); }
.ry-tag__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ry-tag__name { margin: 0; font-size: 16px; color: var(--ry-text); }
.ry-tag__fn {
    padding: 3px 10px; font-size: 13px; border-radius: 8px; color: var(--ry-primary);
    background: rgba(var(--ry-primary-rgb), .09); font-family: ui-monospace, Consolas, monospace;
}
.ry-tag__auto { font-size: 12px; color: var(--ry-muted); border: 1px dashed var(--ry-border); border-radius: 999px; padding: 2px 8px; }
.ry-tag__summary { margin: 0 0 10px; font-size: 14px; line-height: 1.75; color: var(--ry-text); }
.ry-tag__summary code, .ry-tag__notes code {
    padding: 1px 6px; background: rgba(16, 33, 75, .06); border-radius: 5px;
    font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}
.ry-tag__block { margin: 0 0 10px; }
.ry-tag__label {
    display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 600;
    color: var(--ry-muted); letter-spacing: .04em;
}
.ry-tag__params { width: 100%; border-collapse: collapse; font-size: 13px; }
.ry-tag__params th, .ry-tag__params td {
    padding: 7px 10px; text-align: left; vertical-align: top;
    border-bottom: 1px dashed var(--ry-border);
}
.ry-tag__params th { width: 168px; font-weight: 600; white-space: nowrap; }
.ry-tag__params th code {
    padding: 1px 6px; background: rgba(var(--ry-primary-rgb), .08); border-radius: 5px;
    color: var(--ry-primary); font-family: ui-monospace, Consolas, monospace;
}
.ry-tag__ptype { width: 120px; color: var(--ry-muted); }
.ry-tag__ptype em { font-style: normal; color: var(--ry-text); }
.ry-tag__pdesc { color: var(--ry-text); line-height: 1.7; }
.ry-tag__coded { position: relative; }
.ry-tag__code {
    margin: 0; padding: 14px 16px; overflow: auto;
    background: #0f1b3d; color: #dbe4ff; border-radius: 10px;
    font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.75;
    white-space: pre; tab-size: 4;
}
.ry-tag__copy {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255, 255, 255, .14) !important; color: #fff !important; border-color: transparent !important;
}
.ry-tag__copy:hover { background: rgba(255, 255, 255, .26) !important; }
.ry-tag__notes {
    margin: 0; padding: 10px 14px; font-size: 13px; line-height: 1.75;
    background: rgba(245, 159, 0, .09); border-left: 3px solid #f59f00; border-radius: 8px;
    color: var(--ry-text);
}
.ry-tag__notes strong { color: #b57400; margin-right: 4px; }
.ry-tag__related { margin: 10px 0 0; font-size: 12.5px; color: var(--ry-muted); }
.ry-tag__related a {
    display: inline-block; margin-right: 8px; padding: 2px 9px;
    color: var(--ry-primary); background: rgba(var(--ry-primary-rgb), .07); border-radius: 999px;
    text-decoration: none;
}
.ry-tag__related a:hover { background: rgba(var(--ry-primary-rgb), .16); }
.ry-tt__empty { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--ry-surface); border: 1px dashed var(--ry-border); color: var(--ry-muted); }
.ry-tt__navtitle { margin: 0 0 10px; font-size: 15px; color: var(--ry-text); }
.ry-tt__doclink { display: block; margin-top: 12px; text-align: center; }

@media (max-width: 760px) {
    .ry-tt__bar { position: static; }
    .ry-tag__params th { width: auto; }
    .ry-tag__params th, .ry-tag__params td { display: block; width: auto; border: 0; padding: 2px 0; }
    .ry-tag__params tr { display: block; padding: 8px 0; border-bottom: 1px dashed var(--ry-border); }
}

/* ------------------------------------------------------------------ */
/* 19. 组件详情页：实时预览 + 提取代码（会员墙在接口上）                  */
/* ------------------------------------------------------------------ */
.ry-pp { margin: 0 0 20px; border: 1px solid var(--ry-border); border-radius: 14px; overflow: hidden; background: var(--ry-surface); }
.ry-pp__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; background: #f7f9fd; border-bottom: 1px solid var(--ry-border);
}
.ry-pp__title { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ry-text); }
.ry-pp__title .ry-svg-icon { color: var(--ry-primary); }
.ry-pp__sub { font-size: 12.5px; color: var(--ry-muted); font-weight: 400; }
.ry-pp__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ry-pp__color {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
    font-size: 12px; color: var(--ry-muted); background: var(--ry-surface);
    border: 1px solid var(--ry-border); border-radius: 8px;
}
.ry-pp__color input[type="color"] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
/* 预览舞台
   · 曾经故意 `width:100vw; margin-inline:calc(50% - 50vw)` 出血到视口两端
     （理由是"真实站点里头部是通到两端的"）。但 100vw **包含纵向滚动条宽度**，
     比可用宽度宽约 15px，于是整块舞台被挤得偏左、右边被裁掉——
     用户 2026-09-28 截图里"内容挤在最外边、左右各被切一点"就是这个原因。
   · 现在：不做出血，舞台上自己留出左右留白（--ry-gutter），组件在 iframe 里
     再套一层与真页面同宽的外壳（见 core/Preview.php）。通栏组件照样通栏，
     因为通栏是组件自己的事，不该靠舞台出血来实现。 */
.ry-pp__stage {
    position: relative; padding: 34px var(--ry-gutter) 14px; background: #eef1f7;
    width: auto; margin-inline: 0;
    border-top: 1px solid var(--ry-border);
}
/* 通宽版式：预览区要出血到视口两端，卡片这一层的 overflow:hidden 会把它裁回来 */
.ry-pkgdetail--wide .ry-pp { overflow: visible; border-radius: 0; border-left: 0; border-right: 0; }
.ry-pp__badge {
    position: absolute; right: 12px; top: 5px; z-index: 3;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(120deg, var(--ry-primary), var(--ry-accent, #7c5cff));
    border-radius: 0 0 10px 0; letter-spacing: .02em;
}
/* 预览区居中大标题：深紫红 + 字距，一眼就知道下面这块是预览 */
.ry-pp__heading {
    margin: 0 0 4px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .06em;
    color: #8e1f4d; line-height: 1.3;
}
.ry-pp__subheading { margin: 0 0 14px; text-align: center; font-size: 13px; color: #7c6b78; }
.ry-pp__stage { padding-top: 78px; }

.ry-pp__browser {
    position: absolute; left: 0; right: 0; top: 0; z-index: 2;
    display: flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px; background: #dfe4ee; border-bottom: 1px solid #cfd6e4;
}
.ry-pp__browser i { width: 9px; height: 9px; border-radius: 50%; background: #b9c2d4; }
.ry-pp__browser i:nth-child(1) { background: #ff5f57; }
.ry-pp__browser i:nth-child(2) { background: #febc2e; }
.ry-pp__browser i:nth-child(3) { background: #28c840; }
.ry-pp__addr {
    flex: 0 1 auto; margin-left: 8px; max-width: 60%; padding: 2px 10px; font-size: 11.5px; color: #5b6a86;
    background: #f4f6fb; border-radius: 999px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
/* 不能 overflow:hidden：下拉菜单是绝对定位的，会被这条下边界裁掉（看起来像被一条线压住） */
.ry-pp__scaler { position: relative; overflow: visible; max-width: none; margin: 0 auto; }
.ry-pp__frame {
    display: block; border: 0; background: var(--ry-surface);
    position: absolute; left: 0; top: 0; width: 1280px; height: 120px;
    box-shadow: 0 1px 0 rgba(16, 33, 75, .06);
}
.ry-pp__foot { padding: 14px 16px; border-top: 1px solid var(--ry-border); background: var(--ry-surface); }
.ry-pp__codes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ry-pp__codeLabel { font-size: 13px; color: var(--ry-muted); }
.ry-pp__gate {
    margin: 10px 0 0; padding: 9px 13px; font-size: 12.5px; line-height: 1.7;
    background: rgba(124, 92, 255, .09); border-radius: 9px; color: var(--ry-text);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ry-pp__gate .ry-svg-icon { color: #6d4bff; }
.ry-pp__gate a { color: var(--ry-primary); }
.ry-pp__msg { margin: 10px 0 0; font-size: 13px; }
.ry-pp__msg.is-ok { color: #0f7b52; }
.ry-pp__msg.is-error { color: #c0392b; }

@media (max-width: 760px) {
    .ry-pp__bar { flex-direction: column; align-items: flex-start; }
    .ry-pp__inner { max-width: 100% !important; }
}
/* 素材详情页通宽版式（官网组件详情用）：预览占满宽度、购买卡落到正文下方
   公共 detail.php 是"正文 + 右侧栏"两栏，对内容页合理；但素材详情的主角是组件本身，
   右边挂一栏购买卡会把预览挤到 660px，组件按媒体查询直接走手机版 —— 预览就不像它了。 */
.ry-pkgdetail--wide { display: block; }
.ry-pkgdetail--wide .ry-pkgdetail__main { display: flex; flex-direction: column; }
/* 预览排到最前：先看效果，再看参数与价格 */
.ry-pkgdetail--wide .ry-pkgdetail__main > .ry-pp { order: -1; }
.ry-pkgdetail--wide .ry-pkgdetail__side { margin-top: 22px; }
.ry-pkgdetail--wide .ry-buycard { max-width: none; }
@media (min-width: 1025px) {
    .ry-pkgdetail--wide .ry-buycard { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
    .ry-pkgdetail--wide .ry-buycard .ry-buycard__price { grid-column: 1; }
    .ry-pkgdetail--wide .ry-buycard .ry-buycard__specs { grid-column: 2; grid-row: 1 / span 3; }
}