@charset "UTF-8";
/**
 * RyCMS 双语企业版 · 前台公共结构样式（templates/_shared/assets/css/base.css）
 *
 * 定位：只负责「结构与排版」，不负责配色主题。
 * 所有颜色一律读 CSS 变量，并带 fallback，例如 var(--ry-primary, #1a6dff)。
 * 变量由 Theme::cssVariables() 输出在 <head> 中，模板包用 theme.css 覆盖配色即可。
 *
 * 命名：.ry-site-* / .ry-sec-* / .ry-card / .ry-btn / .ry-list / .ry-grid ...
 */

/* ==================================================================
   1. CSS 变量兜底（模板包未提供时也能正常显示）
   ------------------------------------------------------------------
   注意：这里必须用 :where(html) 而不是 :root。
   :where() 的权重为 0，因此 <head> 里由 Theme::cssVariables() 注入的
   后台配色设置（:root 权重 0,1,0）不会被本文件覆盖。
   若写成 :root，由于 base.css 在注入样式之后加载，同权重后者胜出，
   会导致「后台改主色在前台不生效」。
   ================================================================== */
:where(html) {
    --ry-primary: #1a6dff;
    --ry-primary-rgb: 26, 109, 255;
    --ry-secondary: #0b2b5b;
    --ry-secondary-rgb: 11, 43, 91;
    --ry-accent: #ff7a18;
    --ry-accent-rgb: 255, 122, 24;
    --ry-text: #1f2937;
    --ry-muted: #6b7280;
    --ry-border: #e5e7eb;
    --ry-bg: #ffffff;
    --ry-bg-soft: #f6f8fc;
    --ry-container: 1200px;
    --ry-radius: 10px;
    --ry-gap: 24px;
    --ry-sec-pad: 64px;
    --ry-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

/* ==================================================================
   2. reset
   ================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    /**
     * 字体栈与 theme.css 的 `--ry-font` 同一套口径（见那边的长注释）：
     * 免费商用的开源黑体优先 → 系统字体兜底；**绝不内嵌、绝不分发字体文件**。
     * 微软雅黑（方正授权给微软）只在最后兜底，不作为设计字体。
     */
    font-family: "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Noto Sans SC",
        -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ry-text, #1f2937);
    background: var(--ry-bg, #ffffff);
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

/* ==================================================================
   禁止浏览器「滚动锚定」自动补偿滚动位置
   ------------------------------------------------------------------
   头部是 position: sticky，滚动后 .is-scrolled 会让它矮掉约 62px
   （顶栏折叠 + 导航栏变矮）。浏览器默认的滚动锚定会为了「保持视觉稳定」
   反向调整 scrollY，而这个调整又会改变「是否已经滚动」的判断结果，
   两者互相触发，表现为滚动到阈值附近时头部剧烈抖动。

   这里关掉文档滚动容器的锚定，让高度变化只产生一次性位移，
   不再反向推动滚动位置。配合 theme.js 里 initHeaderShrink() 的迟滞阈值，
   抖动彻底消除。
   ================================================================== */
:where(html) {
    overflow-anchor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

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

table {
    border-collapse: collapse;
    width: 100%;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

/* ==================================================================
   3. 容器与站点骨架
   ================================================================== */
.ry-wrap {
    width: 100%;
    max-width: var(--ry-container, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* 两栏布局：主内容 + 侧栏 */
.ry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 64px;
    align-items: start;
}

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

/* ==================================================================
   4. 栅格
   ================================================================== */
.ry-grid {
    display: grid;
    gap: var(--ry-gap, 24px);
}

.ry-cols-2 {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.ry-cols-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ry-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ==================================================================
   5. 区块
   ================================================================== */
.ry-sec {
    padding: var(--ry-sec-pad, 64px) 0;
}

.ry-sec--soft {
    background: var(--ry-bg-soft, #f6f8fc);
}

.ry-sec__head {
    margin-bottom: 32px;
    text-align: center;
}

.ry-sec__title {
    font-size: 30px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ry-text, #1f2937);
}

.ry-sec__sub {
    margin-top: 10px;
    font-size: 15px;
    color: var(--ry-muted, #6b7280);
}

.ry-sec__head--left {
    text-align: left;
}

/* 区块底部「查看更多」 */
.ry-sec__more {
    margin-top: 32px;
    text-align: center;
}

/* ==================================================================
   6. 按钮
   ================================================================== */
.ry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: 999px;
    background: var(--ry-surface);
    color: var(--ry-text, #1f2937);
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

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

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

.ry-btn--primary:hover {
    background: var(--ry-secondary, #0b2b5b);
    border-color: var(--ry-heading, #0b2b5b);
    color: #fff;
}

.ry-btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--ry-primary, #1a6dff);
}

.ry-btn--ghost:hover {
    background: rgba(var(--ry-primary-rgb, 26, 109, 255), .08);
    color: var(--ry-primary, #1a6dff);
}

.ry-btn--sm {
    padding: 7px 16px;
    font-size: 13px;
}

.ry-btn--lg {
    padding: 14px 36px;
    font-size: 17px;
}

.ry-btn--block {
    width: 100%;
}

/* ==================================================================
   7. 卡片
   ================================================================== */
.ry-card {
    position: relative;
    display: block;
    background: var(--ry-surface);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--ry-primary-rgb, 26, 109, 255), .35);
    box-shadow: var(--ry-shadow, 0 6px 24px rgba(15, 23, 42, .08));
}

.ry-card__body {
    padding: 18px 20px 20px;
}

.ry-card__title {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
}

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

.ry-card__desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ry-muted, #6b7280);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ry-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

/* 左图右文卡片（新闻 / 搜索 / 下载等列表） */
.ry-card--row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.ry-card--row .ry-card__media {
    display: block;
    overflow: hidden;
}

.ry-card--row .ry-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px 18px 0;
}

/* ==================================================================
   8. 图片与占位
   ================================================================== */
.ry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain; background: var(--ry-surface-sunken, #f2f4f8);
    background: var(--ry-bg-soft, #f6f8fc);
}

.ry-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    width: 100%;
    background-image: linear-gradient(135deg,
        rgba(var(--ry-primary-rgb, 26, 109, 255), .85) 0%,
        rgba(var(--ry-secondary-rgb, 11, 43, 91), .95) 100%);
    color: rgba(255, 255, 255, .85);
    font-size: 20px;
    letter-spacing: 2px;
}

.ry-thumb--empty::after {
    content: "RY";
    font-weight: 700;
    opacity: .7;
}

/* ==================================================================
   9. 图片列表 / 图集
   ================================================================== */
.ry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ry-gallery__item {
    display: block;
    border-radius: var(--ry-radius, 10px);
    overflow: hidden;
    border: 1px solid var(--ry-border, #e5e7eb);
}

.ry-field-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.ry-field-images img {
    border-radius: 8px;
}

/* ==================================================================
   10. 列表容器：不同内容模型的布局差异
   ================================================================== */
.ry-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
}

.ry-list-head__title {
    font-size: 22px;
    font-weight: 700;
}

.ry-list-head__count {
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

/* 左图右文列表（news） */
.ry-list--media {
    display: grid;
    gap: 20px;
}

/* 栅格（product / case / gallery / video） */
.ry-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 表格式列表（job）：表头 + 行 */
.ry-list--table {
    display: grid;
    gap: 0;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
    overflow: hidden;
}

.ry-list__head {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr 110px;
    gap: 16px;
    padding: 12px 20px;
    background: var(--ry-bg-soft, #f6f8fc);
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
    font-size: 13px;
    font-weight: 600;
    color: var(--ry-muted, #6b7280);
}

.ry-list--table > *:not(.ry-list__head) {
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
}

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

/* 整行条纹列表（download） */
.ry-list--rows {
    display: grid;
    gap: 12px;
}

/* ==================================================================
   11. 文章正文排版
   ================================================================== */
.ry-article {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ry-text, #1f2937);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ry-article > * + * {
    margin-top: 16px;
}

.ry-article h2 {
    margin-top: 34px;
    padding-left: 12px;
    border-left: 4px solid var(--ry-primary, #1a6dff);
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
}

.ry-article h3 {
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.ry-article h4 {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 700;
}

.ry-article p {
    line-height: 1.9;
}

.ry-article ul,
.ry-article ol {
    padding-left: 24px;
    list-style: revert;
}

.ry-article ul li,
.ry-article ol li {
    margin: 6px 0;
    list-style: inherit;
}

.ry-article a {
    color: var(--ry-primary, #1a6dff);
    text-decoration: underline;
}

.ry-article blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 4px solid var(--ry-primary, #1a6dff);
    background: var(--ry-bg-soft, #f6f8fc);
    color: var(--ry-muted, #6b7280);
}

.ry-article table {
    width: 100%;
    border: 1px solid var(--ry-border, #e5e7eb);
    margin: 20px 0;
}

.ry-article table th,
.ry-article table td {
    padding: 10px 14px;
    border: 1px solid var(--ry-border, #e5e7eb);
    text-align: left;
}

.ry-article table th {
    background: var(--ry-bg-soft, #f6f8fc);
    font-weight: 600;
}

.ry-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: var(--ry-radius, 10px);
}

.ry-article pre {
    margin: 20px 0;
    padding: 16px 18px;
    /* 与 assets/highlight/highlight.css 保持同一个深蓝底（不用纯黑，见模板开发指南「配色」）。
       两处必须一致，否则「没高亮的代码块」和「高亮过的代码块」颜色会差一点点。 */
    background: var(--ry-code-bg, #0e1a2e);
    color: #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.7;
}

.ry-article code {
    padding: 2px 6px;
    background: rgba(var(--ry-primary-rgb, 26, 109, 255), .08);
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .92em;
}

.ry-article pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.ry-article iframe {
    max-width: 100%;
    border: 0;
}

/* 正文头部信息 */
.ry-article-wrap {
    margin-bottom: 8px;
}

.ry-article-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
}

.ry-article-head__title {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
}

.ry-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

.ry-meta-label {
    margin-right: 6px;
    color: var(--ry-muted, #6b7280);
    opacity: .85;
}

.ry-article-tags {
    margin-top: 14px;
}

.ry-article-actions {
    margin-top: 18px;
}

/* 单页标题 */
.ry-single__title {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
}

/* ==================================================================
   12. 参数表 / 字段
   ================================================================== */
.ry-fields-wrap {
    overflow-x: auto;
}

.ry-fields-table {
    width: 100%;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
}

.ry-fields-table th,
.ry-fields-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
    text-align: left;
    vertical-align: top;
    font-size: 15px;
}

.ry-fields-table tr:last-child th,
.ry-fields-table tr:last-child td {
    border-bottom: 0;
}

.ry-fields-table th {
    width: 180px;
    background: var(--ry-bg-soft, #f6f8fc);
    font-weight: 600;
    color: var(--ry-text, #1f2937);
}

.ry-params {
    border: 1px solid var(--ry-border, #e5e7eb);
}

.ry-params td {
    padding: 8px 12px;
    border: 1px solid var(--ry-border, #e5e7eb);
}

/* ==================================================================
   13. 上下篇 / 相关 / 询价 / 下载 / 投递
   ================================================================== */
.ry-prevnext {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.ry-prevnext__item {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
    background: var(--ry-surface);
    transition: border-color .2s ease, color .2s ease;
}

.ry-prevnext__item:hover {
    border-color: var(--ry-primary, #1a6dff);
    color: var(--ry-primary, #1a6dff);
}

.ry-prevnext__label {
    display: block;
    font-size: 12px;
    color: var(--ry-muted, #6b7280);
}

.ry-prevnext__text {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ry-download-bar,
.ry-apply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: var(--ry-bg-soft, #f6f8fc);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
}

.ry-download-bar__tip,
.ry-apply__tip {
    flex: 1 1 260px;
    margin: 0;
    color: var(--ry-muted, #6b7280);
}

.ry-apply__email {
    font-size: 14px;
    color: var(--ry-muted, #6b7280);
}

.ry-sec--inquiry {
    padding-bottom: 0;
}

/* ==================================================================
   14. 侧栏
   ================================================================== */
.ry-sidebar {
    display: grid;
    gap: 24px;
}

.ry-sidebar__box {
    padding: 20px;
    background: var(--ry-surface);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
}

.ry-sidebar__title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
    font-size: 17px;
    font-weight: 700;
}

/* ==================================================================
   15. 表单
   ================================================================== */
.ry-form {
    display: block;
}

.ry-form__row {
    margin-bottom: 16px;
}

.ry-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ry-text, #1f2937);
}

.ry-required {
    margin-left: 4px;
    color: #e5484d;
}

.ry-input,
.ry-textarea,
.ry-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--ry-surface);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ry-input:focus,
.ry-textarea:focus,
.ry-select:focus {
    outline: none;
    border-color: var(--ry-primary, #1a6dff);
    box-shadow: 0 0 0 3px rgba(var(--ry-primary-rgb, 26, 109, 255), .15);
}

.ry-textarea {
    min-height: 130px;
    resize: vertical;
}

.ry-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ry-muted, #6b7280) 50%),
        linear-gradient(135deg, var(--ry-muted, #6b7280) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.ry-form__actions {
    margin-top: 20px;
}

.ry-form__hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

.ry-input--error,
.ry-textarea--error {
    border-color: #e5484d;
}

/* 搜索框 */
.ry-search {
    padding-top: 40px;
    padding-bottom: 64px;
}

.ry-search__form {
    max-width: 640px;
    margin: 0 auto 32px;
}

.ry-search__label {
    text-align: center;
}

.ry-search__box {
    display: flex;
    gap: 10px;
}

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

/**
 * 多关键词提示
 *
 * 「用空格分隔多个关键词」这条规则不写出来，绝大多数访客不会知道 ——
 * 而它恰好是把搜索结果从"一堆"变成"想要的几条"的关键。所以放在搜索框下面，
 * 常驻显示（不折叠成帮助图标：折叠了就等于没写）。
 */
.ry-search__hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: var(--ry-fs-13, 13px);
    color: var(--ry-text-muted, #667085);
}

/* 匹配说明条（严格/放宽、二次提示） */
.ry-search-note {
    max-width: 860px;
    margin: 0 auto 18px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--ry-bg-soft, #f6f8fc);
    border: 1px solid var(--ry-border, #e5e7eb);
    font-size: var(--ry-fs-13, 13px);
    line-height: 1.65;
    color: var(--ry-text-muted, #667085);
}

.ry-search-note--tip {
    margin-top: 14px;
    text-align: center;
}

/* 命中词高亮：只加重字重与底色，不换颜色 —— 换颜色会和主色撞车，
   在红色/橙色主题下变成"一片红字"，反而看不清正文。 */
.ry-hit {
    font-style: normal;
    font-weight: 600;
    background: rgba(255, 214, 0, .28);
    border-radius: 2px;
    padding: 0 1px;
    color: inherit;
}

/* ==================================================================
   16. 分页（必须匹配 Paginator::render() 输出的结构）
   ================================================================== */
.pagination {
    margin-top: 36px;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ry-text, #1f2937);
    background: var(--ry-surface);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: 8px;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.pagination .page-link:hover {
    border-color: var(--ry-primary, #1a6dff);
    color: var(--ry-primary, #1a6dff);
}

.pagination .page-item.active .page-link {
    background: var(--ry-primary, #1a6dff);
    border-color: var(--ry-primary, #1a6dff);
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: var(--ry-muted, #6b7280);
    background: var(--ry-bg-soft, #f6f8fc);
    border-color: var(--ry-border, #e5e7eb);
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================================================================
   17. 徽标 / 标签 / 面包屑 / 空状态
   ================================================================== */
.ry-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ry-primary, #1a6dff);
    background: rgba(var(--ry-primary-rgb, 26, 109, 255), .1);
    border-radius: 999px;
}

.ry-tags,
.ry-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ry-tags a,
.ry-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
    background: var(--ry-bg-soft, #f6f8fc);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: 999px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

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

.ry-tag-desc {
    margin: -8px 0 24px;
    color: var(--ry-muted, #6b7280);
}

.ry-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

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

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

.ry-breadcrumb-bar {
    padding: 14px 0;
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
    background: var(--ry-bg-soft, #f6f8fc);
}

.ry-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 72px 20px;
    text-align: center;
    color: var(--ry-muted, #6b7280);
    background: var(--ry-bg-soft, #f6f8fc);
    border: 1px dashed var(--ry-border, #e5e7eb);
    border-radius: var(--ry-radius, 10px);
}

.ry-empty__icon {
    font-size: 34px;
    opacity: .5;
}

.ry-empty__text {
    font-size: 15px;
}

/* ==================================================================
   18. 页头 hero
   ================================================================== */
.ry-hero {
    position: relative;
    padding: 72px 0;
    color: #fff;
    background-color: var(--ry-heading, #0b2b5b);
    background-image: linear-gradient(120deg,
        rgba(var(--ry-secondary-rgb, 11, 43, 91), .96) 0%,
        rgba(var(--ry-primary-rgb, 26, 109, 255), .88) 100%);
    text-align: center;
}

.ry-hero__title {
    font-size: 34px;
    line-height: 1.35;
    font-weight: 700;
}

.ry-hero__sub {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: 15px;
    opacity: .88;
}

.ry-hero .ry-breadcrumb {
    justify-content: center;
    margin-top: 16px;
    color: rgba(255, 255, 255, .85);
}

.ry-hero .ry-breadcrumb a:hover {
    color: #fff;
}

/* ==================================================================
   19. 页头 / 页脚骨架（具体样式由模板包 theme.css 决定）
   ================================================================== */
.ry-site-header {
    position: relative;
    z-index: 20;
    background: var(--ry-bg, #ffffff);
    border-bottom: 1px solid var(--ry-border, #e5e7eb);
}

.ry-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.ry-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
}

.ry-footer {
    padding: 56px 0 0;
    color: rgba(255, 255, 255, .78);
    background: var(--ry-secondary, #0b2b5b);
}

.ry-footer a:hover {
    color: #fff;
}

.ry-footer__main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}

.ry-footer__title {
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.ry-footer__bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}

/* ==================================================================
   20. 404 / 维护页
   ================================================================== */
.ry-error-page {
    padding: 96px 0 120px;
    text-align: center;
}

.ry-error-page__code {
    font-size: 120px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--ry-primary, #1a6dff);
    opacity: .9;
}

.ry-error-page__title {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 700;
}

.ry-error-page__desc {
    margin-top: 10px;
    color: var(--ry-muted, #6b7280);
}

.ry-error-page__actions {
    margin-top: 28px;
}

.ry-error-page__search {
    max-width: 520px;
    margin: 28px auto 0;
}

.ry-maintenance {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 0;
    background: var(--ry-bg-soft, #f6f8fc);
}

.ry-maintenance__card {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 40px;
    text-align: center;
    background: var(--ry-bg, #ffffff);
    border: 1px solid var(--ry-border, #e5e7eb);
    border-radius: 16px;
    box-shadow: var(--ry-shadow, 0 6px 24px rgba(15, 23, 42, .08));
}

.ry-maintenance__icon {
    font-size: 44px;
    line-height: 1;
    color: var(--ry-primary, #1a6dff);
}

.ry-maintenance__title {
    margin-top: 18px;
    font-size: 26px;
    font-weight: 700;
}

.ry-maintenance__tip {
    margin-top: 14px;
    color: var(--ry-muted, #6b7280);
    line-height: 1.9;
}

/* ==================================================================
   21. 搜索页条目
   ================================================================== */
.ry-search-item__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--ry-muted, #6b7280);
}

/* ==================================================================
   22. 响应式：≤1024 / ≤768 / ≤480
   ================================================================== */
@media (max-width: 1024px) {
    :root {
        --ry-sec-pad: 48px;
    }

    .ry-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-bottom: 48px;
    }

    .ry-card--row {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .ry-sec__title {
        font-size: 26px;
    }

    .ry-hero {
        padding: 56px 0;
    }

    .ry-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --ry-sec-pad: 40px;
        --ry-gap: 18px;
    }

    body {
        font-size: 14.5px;
    }

    .ry-cols-2,
    .ry-cols-3,
    .ry-cols-4,
    .ry-list--grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

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

    .ry-card--row .ry-card__body {
        padding: 16px 18px 18px;
    }

    .ry-list__head {
        display: none;
    }

    .ry-list--table {
        border: 0;
        border-radius: 0;
        gap: 12px;
    }

    .ry-list--table > * {
        border-bottom: 0;
    }

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

    .ry-article-head__title,
    .ry-single__title {
        font-size: 22px;
    }

    .ry-article {
        font-size: 15.5px;
    }

    .ry-error-page {
        padding: 64px 0 80px;
    }

    .ry-error-page__code {
        font-size: 84px;
    }

    .ry-maintenance__card {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .ry-wrap {
        padding: 0 14px;
    }

    .ry-sec__title {
        font-size: 21px;
    }

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

    .ry-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .ry-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .ry-btn--lg {
        width: 100%;
        padding: 13px 22px;
    }

    .ry-search__box {
        flex-direction: column;
    }

    .pagination .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 13px;
    }

    .ry-fields-table th,
    .ry-fields-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .ry-fields-table th {
        width: 120px;
    }

    .ry-error-page__code {
        font-size: 64px;
    }

    .ry-article-head__title,
    .ry-single__title {
        font-size: 19px;
    }
}

/* ==================================================================
   23. 无障碍 / 打印
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .ry-card:hover,
    .ry-btn:hover {
        transform: none;
    }
}

.ry-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media print {
    .ry-site-header,
    .ry-footer,
    .ry-sidebar,
    .pagination,
    .ry-article-actions,
    .ry-sec--inquiry {
        display: none !important;
    }
}
