/* ===== 前台官网样式 — 匹配 Vue 3 设计稿 ===== */

:root {
    --marquee: 0%;
    --text-progress: 0%;
    --shadow-opacity: 0;
    --nav-height: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--nav-height); height: 100%; }
body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--heading-color);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--heading-color); line-height: 1.4; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 48px; }
.muted { color: var(--muted-color); }

/* ===== 吸顶导航：沉浸式 ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(90deg, #fff 0%, #fff var(--marquee, 0%),
        transparent var(--marquee, 0%), transparent calc(100% - var(--marquee, 0%)),
        #fff calc(100% - var(--marquee, 0%)), #fff 100%);
}
.site-header::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 0;
    box-shadow: 0 3px 3px 0 #f2f2f2;
    opacity: var(--shadow-opacity, 0); pointer-events: none;
}
.header-inner {
    max-width: 1400px; height: var(--nav-height); margin: 0 auto; padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    color: var(--nav-text, color-mix(in srgb, var(--heading-color) var(--text-progress, 0%), #fff calc(100% - var(--text-progress, 0%))));
    background: color-mix(in srgb, rgba(29,33,41,0.06) var(--text-progress, 0%), rgba(255,255,255,0.22) calc(100% - var(--text-progress, 0%)));
}
.logo-text {
    font-size: 22px; font-weight: 700; letter-spacing: 2px;
    color: var(--nav-text, color-mix(in srgb, var(--heading-color) var(--text-progress, 0%), #fff calc(100% - var(--text-progress, 0%))));
}
/* 后台「设置 → 站点 LOGO」上传后替换默认图标占位 */
.logo-img { height: 40px; width: auto; display: block; }
.nav-list { display: flex; align-items: center; gap: 44px; }
.nav-link {
    position: relative; display: inline-block; padding: 8px 2px;
    font-size: 16px; letter-spacing: 1px;
    color: var(--nav-text, color-mix(in srgb, var(--heading-color) var(--text-progress, 0%), #fff calc(100% - var(--text-progress, 0%))));
    opacity: 0.95; transition: opacity 0.25s;
}
.nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: 0; height: 2px; border-radius: 2px; background: currentColor;
    transform: translateX(-50%); transition: width 0.25s;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* 当前页对应的菜单项：文字高亮 + 常驻下划线（后台装修的顶部导航按访问地址自动加上 .active） */
/* 深色导航底时顶部导航区块会把 --nav-accent 换成提亮后的主色，否则主色压深底几乎看不见 */
/* 高亮颜色可在后台「装修 → 导航标签 → 导航栏样式」指定（--nav-active-color），未指定时沿用主色 */
.nav-link.active { opacity: 1; color: var(--nav-active-color, var(--nav-accent, var(--primary-color))); }
/* 高亮样式：下划线 / 加粗 / 变色 / 下划线+加粗，由导航区块按全局设置挂 nav-hl-* 类 */
.nav-hl-bold .nav-link.active, .nav-hl-underline_bold .nav-link.active { font-weight: 700; }
.nav-hl-bold .nav-link.active::after, .nav-hl-color .nav-link.active::after { width: 0; }
/* ===== 白底状态（内页 solid / 沉浸式滚动渐变后 / 装修画布）的高亮：nav-hl-solid-* 独立一套 ===== */
.site-header--solid .nav-link.active, .site-header--scrolled .nav-link.active,
html.cd-frame .site-header .nav-link.active {
    color: var(--nav-active-color-solid, var(--nav-active-color, var(--primary-color)));
}
.site-header--solid.nav-hl-solid-bold .nav-link.active, .site-header--solid.nav-hl-solid-underline_bold .nav-link.active,
.site-header--scrolled.nav-hl-solid-bold .nav-link.active, .site-header--scrolled.nav-hl-solid-underline_bold .nav-link.active,
html.cd-frame .site-header.nav-hl-solid-bold .nav-link.active, html.cd-frame .site-header.nav-hl-solid-underline_bold .nav-link.active { font-weight: 700; }
.site-header--solid.nav-hl-solid-underline .nav-link.active::after, .site-header--solid.nav-hl-solid-underline_bold .nav-link.active::after,
.site-header--scrolled.nav-hl-solid-underline .nav-link.active::after, .site-header--scrolled.nav-hl-solid-underline_bold .nav-link.active::after,
html.cd-frame .site-header.nav-hl-solid-underline .nav-link.active::after, html.cd-frame .site-header.nav-hl-solid-underline_bold .nav-link.active::after { width: 100%; }
.site-header--solid.nav-hl-solid-bold .nav-link.active::after, .site-header--solid.nav-hl-solid-color .nav-link.active::after,
.site-header--scrolled.nav-hl-solid-bold .nav-link.active::after, .site-header--scrolled.nav-hl-solid-color .nav-link.active::after,
html.cd-frame .site-header.nav-hl-solid-bold .nav-link.active::after, html.cd-frame .site-header.nav-hl-solid-color .nav-link.active::after { width: 0; }
/* 白底状态未单独设色时，若透明态设了深色底专用色也不合适——留空即回落主题色（上面变量链已处理） */
.nav-cta {
    padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
    background: var(--primary-color); color: #fff !important; transition: background 0.25s;
}
.nav-cta:hover { background: var(--primary-hover); }
.nav-cta::after { display: none; }
.nav-toggle {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--nav-text, color-mix(in srgb, var(--heading-color) var(--text-progress, 0%), #fff calc(100% - var(--text-progress, 0%))));
    cursor: pointer;
}

/* ===== Banner 轮播 ===== */
.bn-wrap {
    position: relative; width: 100%; height: 749px; overflow: hidden;
    background: #0f1923;
}
.bn-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 0.8s ease;
}
.bn-slide.active { opacity: 1; }
.bn-slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.bn-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 100%);
}
.bn-caption {
    position: absolute; bottom: 120px; left: 0; right: 0;
    text-align: center; color: #fff;
}
.bn-caption h2 {
    font-size: 42px; font-weight: 700; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.bn-caption p {
    margin-top: 12px; font-size: 16px; opacity: 0.85;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.bn-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s;
    z-index: 2;
}
.bn-arrow:hover { background: rgba(255,255,255,0.3); }
.bn-arrow--prev { left: 32px; }
.bn-arrow--next { right: 32px; }
.bn-dots {
    position: absolute; bottom: 40px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px; z-index: 2;
}
.bn-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: none; cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.bn-dot.active {
    background: #fff; transform: scale(1.2);
}

/* ===== 通用按钮 ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 32px; border-radius: var(--radius);
    background: var(--primary-color); color: #fff;
    font-size: 15px; font-weight: 500; border: none; cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 32px; border-radius: var(--radius);
    background: transparent; color: var(--primary-color);
    font-size: 15px; font-weight: 500;
    border: 1px solid var(--primary-color); cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.btn-outline:hover {
    background: var(--primary-color); color: #fff;
}

/* ===== 区块通用 ===== */
/* 交替背景由后台「样式 → 组件背景」开关驱动，渲染时写成 background:var(--bg-soft) */
.block-section {
    padding: 80px 0;
}

/* ===== 区块标题 + 装饰线 ===== */
.st-head {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 12px;
}
.st-divider {
    width: 32px; height: 3px; border-radius: 2px;
    background: var(--primary-color);
}
.st-divider--left {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.st-divider--right {
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.st-title {
    font-size: 32px; font-weight: 700; color: var(--heading-color);
    text-align: center; letter-spacing: 1px;
}
.st-subtitle {
    font-size: 14px; color: var(--muted-color); text-align: center;
    margin-bottom: 48px; letter-spacing: 0.5px;
}

/* ===== 图文混排 ===== */
.it-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.it-grid--reverse { direction: rtl; }
.it-grid--reverse > * { direction: ltr; }
.it-image {
    border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3;
}
.it-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.it-content h3 {
    font-size: 26px; font-weight: 700; margin-bottom: 16px;
}
.it-content p {
    font-size: 15px; color: var(--body-color); line-height: 1.8;
    margin-bottom: 12px;
}

/* ===== 图标卡片 ===== */
.ic-cards {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px;
}
.ic-card {
    background: #fff; border-radius: var(--radius);
    padding: 36px 28px; text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ic-card__icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
    background: #eef4ff; color: var(--primary-color);
}
.ic-card__title {
    font-size: 18px; font-weight: 600; margin-bottom: 10px;
}
.ic-card__desc {
    font-size: 14px; color: var(--body-color); line-height: 1.7;
}

/* ===== 盒子模型（后台可自由拼装的通用容器） ===== */
.bx-list {
    align-items: stretch;
}
.bx-item {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px 24px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--border-color);
    color: var(--body-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
a.bx-item {
    text-decoration: none; cursor: pointer;
}
a.bx-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.bx-item__img {
    display: block; overflow: hidden; border-radius: inherit;
    aspect-ratio: 16 / 9;
}
.bx-item__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.bx-item__title {
    font-size: 18px; font-weight: 600; color: var(--heading-color);
}
.bx-item__text {
    font-size: 14px; color: var(--body-color); line-height: 1.7;
}

/* ===== 案例网格 ===== */
.cg-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px;
}
.cg-item {
    border-radius: var(--radius); overflow: hidden;
    position: relative; cursor: pointer;
    aspect-ratio: 4/3;
}
.cg-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.cg-item:hover img { transform: scale(1.05); }
.cg-item__mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; color: #fff;
}
.cg-item__title { font-size: 16px; font-weight: 600; }
.cg-item__tag {
    font-size: 12px; opacity: 0.8; margin-top: 4px;
}

/* ===== 网格列数（后台「列数」控件驱动，宽屏生效；平板 / 手机由响应式规则自动减列） ===== */
.cols-1 { --cols: 1; }
.cols-2 { --cols: 2; }
.cols-3 { --cols: 3; }
.cols-4 { --cols: 4; }

/* ===== 产品卡片 ===== */
.pd-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px;
}
.pd-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.pd-card__media {
    position: relative; display: block; aspect-ratio: 4/3;
    background: #f7f8fa; overflow: hidden;
}
.pd-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s;
}
.pd-card__media:hover img { transform: scale(1.05); }
.pd-card__ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 34px; color: #c9cdd4;
}
.pd-card__tag {
    position: absolute; left: 12px; top: 12px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--primary-color); color: #fff; font-size: 12px;
}
.pd-card__body { padding: 20px 22px 24px; }
.pd-card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pd-card__text {
    font-size: 14px; color: var(--body-color); line-height: 1.7;
    margin-bottom: 12px;
}
.pd-card__btn {
    display: inline-block; font-size: 14px; color: var(--primary-color);
}
.pd-card__btn:hover { text-decoration: underline; }

/* ===== 新闻动态 ===== */
.nw-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px;
}
.nw-item {
    display: block; color: inherit; text-decoration: none;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.nw-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    color: inherit;
}
.nw-item__media {
    display: block; aspect-ratio: 16/9; overflow: hidden; background: #f7f8fa;
}
.nw-item__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s;
}
.nw-item:hover .nw-item__media img { transform: scale(1.05); }
.nw-item__body { padding: 18px 20px 22px; }
.nw-item__meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    font-size: 12px; color: var(--muted-color);
}
.nw-item__tag {
    padding: 2px 8px; border-radius: 4px;
    background: #eef4ff; color: var(--primary-color);
}
.nw-item__title {
    font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-item__text {
    font-size: 14px; color: var(--body-color); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-more { display: flex; justify-content: center; margin-top: 32px; }
.nw-more a {
    padding: 10px 28px; border: 1px solid var(--border-color); border-radius: 999px;
    font-size: 14px; color: var(--heading-color); background: #fff;
    transition: border-color 0.2s, color 0.2s;
}
.nw-more a:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ===== 统计数字 ===== */
.stats-row {
    display: flex; justify-content: center; gap: 80px;
    padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 48px; font-weight: 700; color: var(--primary-color);
    line-height: 1;
}
.stat-value span { font-size: 20px; font-weight: 400; }
.stat-label {
    margin-top: 8px; font-size: 14px; color: var(--muted-color);
}

/* ===== Logo 墙 ===== */
.lw-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px;
}
.lw-item {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 28px 20px;
    border-radius: var(--radius); border: 1px solid var(--border-color);
    background: #fff;
    transition: box-shadow 0.3s;
    filter: grayscale(0.6); opacity: 0.7;
}
.lw-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    filter: grayscale(0); opacity: 1;
}
.lw-item img {
    width: 40px; height: 40px; object-fit: contain;
}
.lw-item__icon {
    font-size: 32px; color: var(--primary-color);
}
.lw-item__name {
    font-size: 15px; font-weight: 500; color: var(--heading-color);
}

/* ===== 客户评价 ===== */
.tm-cards {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px;
}
.tm-card {
    background: #fff; border-radius: var(--radius);
    padding: 32px; border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.tm-card__quote {
    font-size: 14px; color: var(--body-color); line-height: 1.8;
    margin-bottom: 20px; font-style: italic;
}
.tm-card__author {
    display: flex; align-items: center; gap: 12px;
}
.tm-card__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #eef4ff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--primary-color);
}
.tm-card__name { font-size: 14px; font-weight: 600; }
.tm-card__role { font-size: 12px; color: var(--muted-color); }

/* ===== CTA 条 ===== */
.cta-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius); padding: 48px;
    display: flex; align-items: center; justify-content: space-between;
    color: #fff;
}
.cta-bar__text h3 {
    font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.cta-bar__text p {
    font-size: 14px; opacity: 0.85;
}
.cta-bar__btn {
    padding: 14px 36px; border-radius: var(--radius);
    background: #fff; color: var(--primary-color);
    font-size: 15px; font-weight: 600; border: none; cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== 留资表单 ===== */
.lf-form {
    max-width: 560px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 20px;
}
.lf-field { display: flex; flex-direction: column; gap: 6px; }
.lf-field label {
    font-size: 14px; font-weight: 500; color: var(--heading-color);
}
.lf-field input,
.lf-field textarea,
.lf-field select {
    padding: 12px 16px; border-radius: var(--radius);
    border: 1px solid var(--border-color); font-size: 14px;
    font-family: inherit; color: var(--heading-color);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none; background: #fff;
}
.lf-field input:focus,
.lf-field textarea:focus,
.lf-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51,126,255,0.10);
}
.lf-field textarea { resize: vertical; min-height: 100px; }
.lf-hint {
    font-size: 12px; min-height: 18px; color: var(--muted-color);
}
.lf-submit {
    align-self: flex-start;
}

/* ===== 页脚 ===== */
/* 配色由后台「组件背景」决定：深色底走这套浅色文字，浅底/透明底换成 .site-footer--light 那套深色文字，
   否则白字压在浅底上直接看不见（判定见 BlockRenderer::bgTone） */
.site-footer {
    --ft-strong: #fff;
    --ft-muted: rgba(255,255,255,0.55);
    --ft-faint: rgba(255,255,255,0.35);
    --ft-line: rgba(255,255,255,0.08);
    --ft-chip-bg: rgba(255,255,255,0.08);
    --ft-chip-fg: rgba(255,255,255,0.6);
    background: #0f1923; color: rgba(255,255,255,0.75); padding: 64px 0 0;
}
.site-footer--light {
    --ft-strong: var(--heading-color);
    --ft-muted: var(--muted-color);
    --ft-faint: var(--muted-color);
    --ft-line: var(--border-color);
    --ft-chip-bg: color-mix(in srgb, var(--heading-color) 6%, transparent);
    --ft-chip-fg: var(--body-color);
    color: var(--body-color);
}
/* 面板另设了「文字颜色」就整套跟随，主次层级靠同色降不透明度维持 */
[data-blk-color].site-footer {
    --ft-strong: var(--blk-color);
    --ft-muted: color-mix(in srgb, var(--blk-color) 72%, transparent);
    --ft-faint: color-mix(in srgb, var(--blk-color) 55%, transparent);
    --ft-chip-fg: color-mix(in srgb, var(--blk-color) 72%, transparent);
}
/* 底部导航「透明」样式（后台「装修 → 导航标签 → 导航栏样式」）：
   不铺底色直接透出页面底色，文字自动换成深色那套；另配了文字颜色时以配置为准 */
.site-footer--transparent { background: transparent; }
.site-footer--transparent .ft-qr { border: 1px solid var(--border-color); }
.ft-main {
    max-width: 1400px; margin: 0 auto; padding: 0 48px;
    display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 48px;
}
.ft-brand__logo {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.ft-brand__icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--primary-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.ft-brand__name {
    font-size: 18px; font-weight: 700; color: var(--ft-strong); letter-spacing: 1px;
}
/* 后台「设置 → 站点 LOGO」上传后替换默认图标占位 */
.ft-brand__img { height: 32px; width: auto; display: block; }
.ft-brand__desc {
    font-size: 13px; line-height: 1.8; color: var(--ft-muted);
}
.ft-nav-groups {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ft-nav-title {
    font-size: 15px; font-weight: 600; color: var(--ft-strong); margin-bottom: 16px;
}
.ft-nav-list { display: flex; flex-direction: column; gap: 10px; }
.ft-nav-list a {
    font-size: 13px; color: var(--ft-muted);
    transition: color 0.25s;
}
.ft-nav-list a:hover { color: var(--ft-strong); }
.ft-right { display: flex; flex-direction: column; gap: 16px; }
.ft-contact-title {
    font-size: 15px; font-weight: 600; color: var(--ft-strong); margin-bottom: 4px;
}
.ft-hotline {
    font-size: 24px; font-weight: 700; color: var(--primary-color);
    letter-spacing: 1px;
}
.ft-channels { display: flex; gap: 12px; margin-top: 4px; }
.ft-channel {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--ft-chip-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--ft-chip-fg);
    transition: background 0.25s, color 0.25s; cursor: pointer;
}
.ft-channel:hover {
    background: var(--primary-color); color: #fff;
}
/* 关注我们：鼠标悬停或键盘聚焦时在图标上方弹出二维码 */
.ft-channel-wrap { position: relative; display: flex; }
.ft-qr {
    position: absolute; left: 50%; bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(6px);
    width: 148px; padding: 10px 10px 8px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 30;
}
.ft-qr::after {
    content: ''; position: absolute; left: 50%; top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: #fff; border-bottom-width: 0;
}
.ft-qr img { width: 116px; height: 116px; display: block; }
.ft-qr__text {
    font-size: 12px; line-height: 1.5; color: #1d2129; text-align: center;
    max-width: 100%; overflow-wrap: anywhere;
}
.ft-channel-wrap:hover .ft-qr,
.ft-channel-wrap:focus-within .ft-qr {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.ft-bottom {
    margin-top: 48px; padding: 20px 0;
    border-top: 1px solid var(--ft-line);
}
.ft-separator {
    max-width: 1400px; margin: 0 auto; padding: 0 48px;
}
.ft-bottom__inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--ft-faint);
}
/* 浅色页脚上白色二维码浮层会和背景糊在一起，补一圈边框分开 */
.site-footer--light .ft-qr { border: 1px solid var(--border-color); }

/* ===== 滚动淡入动画 ===== */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1; transform: translateY(0);
}
html[data-anim="off"] .fade-in {
    opacity: 1; transform: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
    .container, .header-inner, .ft-main, .ft-separator { padding-left: 32px; padding-right: 32px; }
    .ic-cards:not(.cols-1), .cg-grid:not(.cols-1), .tm-cards:not(.cols-1), .lw-grid:not(.cols-1),
    .pd-grid:not(.cols-1), .nw-grid:not(.cols-1), .dg-grid:not(.cols-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .it-grid { grid-template-columns: 1fr; gap: 32px; }
    .it-grid--reverse { direction: ltr; }
    .stats-row { gap: 48px; flex-wrap: wrap; }
    .cta-bar { flex-direction: column; text-align: center; gap: 24px; }
    .ft-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .bn-wrap { height: 480px; }
    .bn-caption h2 { font-size: 28px; }
    .st-title { font-size: 24px; }
    .stat-value { font-size: 36px; }
}
@media (max-width: 768px) {
    .nav-list { display: none; }
    .nav-toggle { display: block; }
    .nav-list.open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: #fff; padding: 24px 32px; gap: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-list.open .nav-link, .nav-list.open .nav-toggle { color: var(--heading-color); }
    .ic-cards:not(.cols-1), .cg-grid:not(.cols-1), .tm-cards:not(.cols-1), .lw-grid:not(.cols-1),
    .pd-grid:not(.cols-1), .nw-grid:not(.cols-1), .dg-grid:not(.cols-1) {
        grid-template-columns: 1fr;
    }
    .bn-wrap { height: 360px; }
    .bn-arrow { display: none; }
    .block-section { padding: 48px 0; }
    .stats-row { gap: 32px; }
    .stat-value { font-size: 28px; }
}

/* ===== 内页通用 ===== */
.site-header--solid {
    background: #fff;
    box-shadow: 0 3px 3px 0 #f2f2f2;
    --nav-text: var(--heading-color);
}
/* 后台装修的区块导航铺在正文之上，正文首屏需要让出导航高度 */
.main--blocks { padding-top: var(--nav-height); }
.inner-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.page-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 138px 48px 80px;
    box-sizing: border-box;
}
.page-head {
    display: flex;
    align-items: center;
    gap: 24px;
}
.divider {
    width: 50px;
    height: 10px;
    background: #1d2129;
    clip-path: polygon(0 0, 100% 45%, 100% 55%, 0 100%);
}
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 4px;
    line-height: 1.4;
}

/* ===== 产品页 ===== */
.product-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    padding: 40px 32px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: #c9cdd4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--heading-color);
    background: #f4f0f0;
    margin-bottom: 20px;
}
.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 12px;
}
.product-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--body-color);
    margin: 0;
}
.product-more {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    font-size: 15px;
    color: var(--heading-color);
    position: relative;
}
.more-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s;
}
.more-btn i { transition: transform 0.25s; }
.more-btn:hover::after { width: 100%; }
.more-btn:hover i { transform: translateX(4px); }

/* ===== 新闻页 ===== */
.news-hero {
    position: relative;
    height: 550px;
    background: linear-gradient(135deg, #0f1923 0%, #1a2d42 50%, #0f1923 100%);
}
.news-search {
    width: 560px;
    height: 48px;
    padding: 0 6px 0 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--heading-color);
}
.search-input::placeholder { color: #909399; }
.search-divider {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: var(--border-color);
}
.search-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--heading-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}
.search-btn:hover { background: #f4f0f0; }
.news-body {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 48px 80px;
    box-sizing: border-box;
}
.news-columns {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr 1fr;
    gap: 40px;
    align-items: start;
}
.col { min-width: 0; }
.text-link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--body-color);
    transition: color 0.25s;
}
.text-link:hover { color: var(--heading-color); }
.feature-image {
    display: block;
    width: 100%;
    height: 190px;
    border-radius: 10px;
    object-fit: cover;
}
.feature-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.col-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 2px;
}
.col-title--center {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-list .text-link {
    padding-left: 12px;
    position: relative;
    font-size: 15px;
    color: var(--heading-color);
}
.news-list .text-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c0c4cc;
}
.col-title--muted {
    font-size: 16px;
    font-weight: 400;
    color: #909399;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.hot-rank {
    flex: 0 0 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #909399;
    background: #f4f4f5;
}
.hot-rank--top {
    color: #fff;
    background: #1d2129;
}
.hot-list .text-link { flex: 1; }

/* ===== 下载页 ===== */
.download-list {
    margin-top: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}
.download-item:last-child { border-bottom: none; }
.download-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.download-note { font-size: 12px; color: var(--muted-color); }
.download-info { flex: 1; min-width: 0; }
.download-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 4px;
}
.download-desc {
    font-size: 13px;
    color: var(--body-color);
    margin: 0 0 4px;
}
.download-meta {
    font-size: 12px;
    color: var(--muted-color);
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--primary-color, #337eff);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.25s;
}
.download-btn:hover {
    background: var(--primary-hover, #1f6bff);
}

/* ===== 联系页 ===== */
.contact-body {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 136px 48px 96px;
    box-sizing: border-box;
}
.contact-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    letter-spacing: 2px;
    margin: 0 0 56px;
}
.contact-form {
    display: flex;
    flex-direction: column;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}
.form-label {
    flex: 0 0 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color);
    text-align: left;
}
.label-text { line-height: 1.4; }
.label-sub {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    color: #909399;
    white-space: nowrap;
}
.form-input,
.form-textarea {
    flex: 1;
    min-width: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--heading-color);
    padding: 10px 2px;
    transition: border-color 0.25s;
    font-family: inherit;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #c0c4cc; }
.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--primary-color); }
.form-row--textarea { align-items: flex-start; }
.field-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.form-textarea {
    width: 100%;
    resize: none;
    height: 110px;
    line-height: 1.7;
    padding-right: 48px;
    box-sizing: border-box;
}
.char-count {
    position: absolute;
    right: 4px;
    bottom: 10px;
    font-size: 12px;
    color: #c0c4cc;
    pointer-events: none;
    user-select: none;
}
.submit-btn {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}
.submit-btn:hover { background: var(--primary-hover); }
.submit-btn:active { transform: scale(0.99); }
.text-btn {
    display: block;
    margin: 20px auto 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #909399;
    cursor: pointer;
    transition: color 0.25s;
}
.text-btn:hover { color: var(--primary-color); }

/* ===== 内页响应式 ===== */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-columns { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
    .page-main { padding: 114px 20px 48px; }
    .product-grid { grid-template-columns: 1fr; }
    .news-search { width: calc(100% - 40px); height: 44px; }
    .news-body { padding: 40px 20px 48px; }
    .contact-body { padding: 96px 20px 64px; }
    .form-row { gap: 16px; }
    .form-label { flex-basis: 64px; }
    .download-item { flex-direction: column; align-items: flex-start; gap: 16px; }
    .download-btn { align-self: flex-start; }
}

/* ===== 装修样式覆盖 =====
   后台「内容装修」设置的对齐 / 文字效果。区块根节点会带上 data-blk-xxx 标记
   与 --blk-xxx 变量（见 BlockRenderer::splitStyle），没设置时这些规则整体不命中，
   模板原有的居中与字号保持不变。 */

/* 对齐：模板里写死居中的容器 */
[data-blk-align] .bn-caption,
[data-blk-align] .st-title,
[data-blk-align] .st-subtitle,
[data-blk-align] .ic-card,
[data-blk-align] .ic-card__title,
[data-blk-align] .ic-card__desc,
[data-blk-align] .bx-item__title,
[data-blk-align] .bx-item__text,
[data-blk-align] .stat-item,
[data-blk-align] .stat-value,
[data-blk-align] .stat-label,
[data-blk-align] .tm-card__quote,
[data-blk-align] .pd-card__title,
[data-blk-align] .pd-card__text,
[data-blk-align] .nw-item__title,
[data-blk-align] .nw-item__text,
[data-blk-align] .cg-item__title { text-align: var(--blk-align); }
/* flex 容器用 justify-content 才能实现左右对齐 */
[data-blk-align] .st-head,
[data-blk-align] .stats-row,
[data-blk-align] .lw-item,
[data-blk-align] .ic-card__icon,
[data-blk-align] .tm-card__author { justify-content: var(--blk-justify); }

/* 文字颜色：覆盖模板写死的颜色 */
[data-blk-color] .bn-caption,
[data-blk-color] .bn-caption h2,
[data-blk-color] .bn-caption p,
[data-blk-color] .st-title,
[data-blk-color] .st-subtitle,
[data-blk-color] .it-content h3,
[data-blk-color] .it-content p,
[data-blk-color] .ic-card__title,
[data-blk-color] .ic-card__desc,
[data-blk-color] .bx-item__title,
[data-blk-color] .bx-item__text,
[data-blk-color] .cg-item__title,
[data-blk-color] .pd-card__title,
[data-blk-color] .pd-card__text,
[data-blk-color] .pd-card__btn,
[data-blk-color] .nw-item__title,
[data-blk-color] .nw-item__text,
[data-blk-color] .nw-item__date,
[data-blk-color] .stat-label,
[data-blk-color] .lw-item__name,
[data-blk-color] .tm-card__quote,
[data-blk-color] .cta-bar__text h3,
[data-blk-color] .cta-bar__text p,
[data-blk-color] .lf-form h3,
/* 页脚的文字由 --ft-strong/--ft-muted 整套接管，见上面 .site-footer 区块 */
[data-blk-color] .muted { color: var(--blk-color); }

/* 字号：根节点已带 font-size，这里覆盖模板写死的字号，标题按原比例缩放 */
[data-blk-fs] .bn-caption h2 { font-size: var(--blk-fs); }
[data-blk-fs] .bn-caption p { font-size: calc(var(--blk-fs) * 0.38); }
[data-blk-fs] .st-title { font-size: var(--blk-fs); }
[data-blk-fs] .st-subtitle { font-size: calc(var(--blk-fs) * 0.44); }
[data-blk-fs] .it-content h3 { font-size: var(--blk-fs); }
[data-blk-fs] .it-content p { font-size: calc(var(--blk-fs) * 0.58); }
[data-blk-fs] .ic-card__title { font-size: var(--blk-fs); }
[data-blk-fs] .ic-card__desc {
    font-size: calc(var(--blk-fs) * 0.78);
}
[data-blk-fs] .bx-item__title { font-size: calc(var(--blk-fs) * 0.94); }
[data-blk-fs] .bx-item__text { font-size: calc(var(--blk-fs) * 0.78); }
[data-blk-fs] .pd-card__title { font-size: var(--blk-fs); }
[data-blk-fs] .pd-card__text { font-size: calc(var(--blk-fs) * 0.78); }
[data-blk-fs] .nw-item__title { font-size: calc(var(--blk-fs) * 0.94); }
[data-blk-fs] .nw-item__text { font-size: calc(var(--blk-fs) * 0.78); }
[data-blk-fs] .ic-card__icon { font-size: calc(var(--blk-fs) * 1.5); }
[data-blk-fs] .cg-item__title { font-size: var(--blk-fs); }
[data-blk-fs] .stat-value { font-size: var(--blk-fs); }
[data-blk-fs] .stat-label { font-size: calc(var(--blk-fs) * 0.29); }
[data-blk-fs] .lw-item__name { font-size: var(--blk-fs); }
[data-blk-fs] .tm-card__quote { font-size: var(--blk-fs); }
[data-blk-fs] .cta-bar__text h3 { font-size: var(--blk-fs); }
[data-blk-fs] .cta-bar__text p { font-size: calc(var(--blk-fs) * 0.58); }
[data-blk-fs] .ft-brand__desc { font-size: var(--blk-fs); }

/* 字重 / 行高 / 字距 */
[data-blk-fw] .bn-caption h2,
[data-blk-fw] .st-title,
[data-blk-fw] .it-content h3,
[data-blk-fw] .ic-card__title,
[data-blk-fw] .cg-item__title,
[data-blk-fw] .stat-value,
[data-blk-fw] .lw-item__name,
[data-blk-fw] .cta-bar__text h3,
[data-blk-fw] .pd-card__title,
[data-blk-fw] .nw-item__title,
[data-blk-fw] .lf-form h3 { font-weight: var(--blk-fw); }
[data-blk-fw] .bn-caption p,
[data-blk-fw] .st-subtitle,
[data-blk-fw] .it-content p,
[data-blk-fw] .ic-card__desc,
[data-blk-fw] .bx-item__title,
[data-blk-fw] .bx-item__text,
[data-blk-fw] .stat-label,
[data-blk-fw] .tm-card__quote,
[data-blk-fw] .cta-bar__text p,
[data-blk-fw] .pd-card__text,
[data-blk-fw] .nw-item__text,
[data-blk-fw] .ft-brand__desc { font-weight: var(--blk-fw); }

[data-blk-lh] h1,
[data-blk-lh] h2,
[data-blk-lh] h3,
[data-blk-lh] h4,
[data-blk-lh] .st-subtitle,
[data-blk-lh] .bn-caption p,
[data-blk-lh] .it-content p,
[data-blk-lh] .ic-card__title,
[data-blk-lh] .ic-card__desc,
[data-blk-lh] .bx-item__text,
[data-blk-lh] .cg-item__title,
[data-blk-lh] .stat-value,
[data-blk-lh] .tm-card__quote,
[data-blk-lh] .cta-bar__text p,
[data-blk-lh] .ft-brand__desc,
[data-blk-lh] .container p { line-height: var(--blk-lh); }

[data-blk-lsp] .st-title,
[data-blk-lsp] .st-subtitle,
[data-blk-lsp] .bn-caption h2,
[data-blk-lsp] .bn-caption p,
[data-blk-lsp] .it-content h3,
[data-blk-lsp] .it-content p,
[data-blk-lsp] .ic-card__title,
[data-blk-lsp] .ic-card__desc,
[data-blk-lsp] .bx-item__title,
[data-blk-lsp] .bx-item__text,
[data-blk-lsp] .pd-card__title,
[data-blk-lsp] .pd-card__text,
[data-blk-lsp] .nw-item__title,
[data-blk-lsp] .nw-item__text,
[data-blk-lsp] .cg-item__title,
[data-blk-lsp] .stat-value,
[data-blk-lsp] .stat-label,
[data-blk-lsp] .lw-item__name,
[data-blk-lsp] .tm-card__quote,
[data-blk-lsp] .cta-bar__text h3,
[data-blk-lsp] .cta-bar__text p,
[data-blk-lsp] .ft-brand__desc { letter-spacing: var(--blk-lsp); }

/* ===== 装修「外观」：圆角 / 边框 / 投影 =====
   区块根节点是全宽容器，只写在根上看不出效果，
   因此渲染器额外给出 --blk-* 变量与 data-blk-* 标记，这里落到区块内的卡片上。 */
[data-blk-radius] .bn-slide,
[data-blk-radius] .it-image,
[data-blk-radius] .ic-card,
[data-blk-radius] .cg-item,
[data-blk-radius] .lw-item,
[data-blk-radius] .tm-card,
[data-blk-radius] .bx-item,
[data-blk-radius] .pd-card,
[data-blk-radius] .nw-item,
[data-blk-radius] .lf-form { border-radius: var(--blk-radius); overflow: hidden; }

[data-blk-border] .bn-slide,
[data-blk-border] .it-image,
[data-blk-border] .ic-card,
[data-blk-border] .cg-item,
[data-blk-border] .lw-item,
[data-blk-border] .tm-card,
[data-blk-border] .bx-item,
[data-blk-border] .pd-card,
[data-blk-border] .nw-item,
[data-blk-border] .lf-form { border: var(--blk-border); }

[data-blk-shadow] .bn-slide,
[data-blk-shadow] .it-image,
[data-blk-shadow] .ic-card,
[data-blk-shadow] .cg-item,
[data-blk-shadow] .lw-item,
[data-blk-shadow] .tm-card,
[data-blk-shadow] .bx-item,
[data-blk-shadow] .pd-card,
[data-blk-shadow] .nw-item,
[data-blk-shadow] .lf-form { box-shadow: var(--blk-shadow); }

/* 功能页签「手机端显示」关闭后：区块在手机上真正不渲染 */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

/* ===== 搜索框组件（对齐设计稿：半透明圆角条 + 右侧图标按钮，无原生清除叉） ===== */
.sb-box {
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(29, 33, 41, 0.12);
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}
.sb-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(29, 33, 41, 0.16);
}
.sb-input {
    flex: 1; min-width: 0; padding: 15px 20px;
    border: 0; outline: 0; background: transparent;
    font-size: 14px; font-family: inherit; color: var(--heading-color);
}
.sb-input::placeholder { color: #909399; }
/* 输入与按钮之间的细分隔线 */
.sb-divider { flex-shrink: 0; width: 1px; height: 20px; margin: 0 6px; background: var(--border-color); }
.sb-btn {
    flex-shrink: 0; width: 40px; height: 40px; margin-right: 4px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; cursor: pointer;
    background: transparent; color: var(--heading-color);
    font-size: 18px; transition: background 0.25s;
}
.sb-btn:hover { background: rgba(29, 33, 41, 0.06); }
.sb-tip { margin: 14px 4px 0; font-size: 13px; color: var(--muted-color); }
.sb--center .sb-box { margin-left: auto; margin-right: auto; }
.sb--center .sb-tip { text-align: center; }
.sb--right .sb-box { margin-left: auto; }
.sb--right .sb-tip { text-align: right; }
/* 组件叠加：宿主区块外面包一层定位容器，叠加层绝对定位在它的顶部 / 垂直居中 / 底部。
   水平位置仍由叠加区块自身的对齐方式决定；空白区域放行点击，免得挡住轮播图的箭头与链接。 */
.blk-over { position: relative; }
.blk-over-slot { position: absolute; left: 0; right: 0; z-index: 6; pointer-events: none; }
.blk-over-slot--top { top: 0; }
.blk-over-slot--center { top: 50%; transform: translateY(-50%); }
.blk-over-slot--bottom { bottom: 0; }
.blk-over-slot .block-section { padding-top: 0; padding-bottom: 0; }
.blk-over-slot .sb-box, .blk-over-slot .sb-tip, .blk-over-slot .st-head,
.blk-over-slot a, .blk-over-slot button, .blk-over-slot input { pointer-events: auto; }

/* ===== 下载专区组件（对齐设计稿：分列平铺、无卡片边框，条目点击展开下载信息） ===== */
.dg-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 48px; align-items: start;
}
.dg-col { min-width: 0; }
.dg-col__title {
    font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--heading-color);
    padding-bottom: 14px; margin: 0 0 8px;
    border-bottom: 2px solid #f0f0f0;
}
.dg-list { list-style: none; margin: 0; padding: 0; }
.dg-item { border-bottom: 1px solid #f0f0f0; }
.dg-item__head {
    position: relative; width: 100%;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    padding: 18px 8px; border: none; background: transparent;
    font-size: 16px; font-family: inherit; color: var(--heading-color);
    text-align: left; cursor: pointer; transition: color 0.25s;
}
.dg-item__top { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 30px; }
.dg-item__icon {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #f4f6f8; color: var(--primary-color); font-size: 20px;
}
.dg-item__name {
    font-size: 16px; font-weight: 600; color: var(--heading-color);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color 0.25s;
}
.dg-item__head:hover .dg-item__name,
.dg-item__head[aria-expanded="true"] .dg-item__name { color: var(--primary-color); }
.dg-item__desc {
    font-size: 14px; line-height: 1.7; color: #909399; padding-left: 52px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dg-item__chev {
    position: absolute; right: 8px; top: 22px;
    font-size: 18px; color: #909399; transition: transform 0.25s, color 0.25s;
}
.dg-item__head[aria-expanded="true"] .dg-item__chev { transform: rotate(180deg); color: var(--primary-color); }
.dg-item__detail {
    padding: 4px 8px 18px;
    animation: dg-detail-in 0.25s ease;
}
@keyframes dg-detail-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.dg-item__detail > * {
    background: #f7f8fa; border-radius: 8px;
}
.dg-item__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 0; padding: 12px 16px;
    font-size: 13px; color: var(--body-color);
}
.dg-tag { padding: 1px 7px; border-radius: 4px; background: #fff; color: var(--muted-color); }
.dg-item__link {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 6px 0 0; padding: 10px 16px;
    background: #f7f8fa; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--primary-color); text-decoration: none;
    transition: color 0.25s, background 0.25s;
}
.dg-item__link:hover { color: var(--primary-hover); background: #eef4ff; }
.dg-item__link--off { color: #c9cdd4; cursor: default; }
/* 网盘提取码等备注：点一下复制，旁边的复制按钮做同一件事 */
.dg-item__note {
    display: inline-flex; align-items: center; margin: 6px 0 0 10px; padding: 10px 14px;
    font-size: 13px; color: var(--body-color); cursor: pointer;
}
.dg-item__copy {
    display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0 8px; padding: 8px 12px;
    border: none; background: #f7f8fa; border-radius: 8px;
    font-size: 13px; color: var(--primary-color); cursor: pointer;
    transition: color 0.25s, background 0.25s;
}
.dg-item__copy:hover { background: #eef4ff; }
.dg-item__copy.is-done { color: #1B7A3D; }
.dg-empty { padding: 40px 0; text-align: center; color: var(--muted-color); font-size: 14px; }

/* 组件样式面板里的圆角 / 边框 / 阴影同样作用于新组件的展开面板 */
[data-blk-radius] .sb-box, [data-blk-radius] .dg-item__detail > *, [data-blk-radius] .np-grid { border-radius: var(--blk-radius); }
[data-blk-border] .np-grid { border: var(--blk-border); }
[data-blk-shadow] .sb-box, [data-blk-shadow] .np-grid { box-shadow: var(--blk-shadow); }

/* ===== 资讯聚合组件（左焦点 / 中要闻 / 右排行） =====
   版式对齐设计稿：三列无边框卡片，列间留白分隔；中列居中大标题 + 圆点列表；右列编号排行 */
.np-grid {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px; background: none; border: none; border-radius: 0; overflow: visible;
}
.np-col { min-width: 0; padding: 0; }
.np-col + .np-col { border-left: 0; }
.np-head { display: flex; align-items: center; margin: 0 0 24px; }
.np-head--center { justify-content: center; }
.np-title { position: relative; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--heading-color); }
.np-cover { display: block; border-radius: 10px; overflow: hidden; }
.np-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.np-cover:hover img { transform: scale(1.04); }
.np-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.np-links li { position: relative; }
.np-links a {
    display: block; font-size: 14px; line-height: 1.6; color: var(--body-color); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-links a:hover { color: var(--primary-color); }
/* 中列「公司要闻」：深色标题字 + 小圆点，行距更松 */
.np-links--dot { gap: 14px; }
.np-links--dot li { padding-left: 12px; }
.np-links--dot li::before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -2px;
    width: 4px; height: 4px; border-radius: 50%; background: #c0c4cc;
}
.np-links--dot a { font-size: 15px; color: var(--heading-color); }
.np-links--dot a:hover { color: var(--primary-color); }
/* 右列「大家都在看」：小号弱化标题 + 编号徽标，前三名深色徽标 */
.np-col--rank .np-head { margin-bottom: 20px; }
.np-col--rank .np-title { font-size: 16px; font-weight: 400; letter-spacing: 1px; color: #909399; }
.np-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.np-rank__row { display: flex; align-items: center; gap: 10px; }
.np-rank__no {
    flex-shrink: 0; width: 20px; height: 20px; line-height: 20px; text-align: center;
    border-radius: 4px; background: #f4f4f5; font-size: 12px; color: #909399;
}
.np-rank__title {
    flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; color: var(--body-color); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-rank__title:hover { color: var(--heading-color); }
.np-rank__row.is-hot .np-rank__no { background: #1d2129; color: #fff; }
.np-rank__row.is-hot .np-rank__title { color: var(--heading-color); }
.np-empty { padding: 36px 20px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted-color); font-size: 14px; }

@media (max-width: 1080px) {
    .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .np-col--rank { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .np-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== 文章详情页（对齐设计稿：居中大标题 + 居中元信息 + 分隔线 + 正文） ===== */
.ad-page { padding: calc(var(--nav-height) + 48px) 0 96px; }
.ad-wrap { max-width: 900px; margin: 0 auto; padding: 0 48px; }
.ad-title { font-size: 30px; font-weight: 700; line-height: 1.5; color: var(--heading-color); text-align: center; margin: 0 0 20px; }
.ad-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
    padding-bottom: 28px; border-bottom: 1px solid #f0f0f0;
    font-size: 14px; color: #909399;
}
.ad-meta__sep { color: #dcdfe6; }
.ad-cover { margin: 28px 0 0; text-align: center; }
.ad-cover img { display: inline-block; width: 100%; border-radius: 10px; }
.ad-summary {
    margin: 24px 0 0; padding: 14px 18px;
    background: var(--bg-soft); border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-size: 15px; line-height: 1.8; color: var(--body-color);
}
.ad-body { padding-top: 32px; font-size: 16px; line-height: 1.9; color: #4e5969; overflow-wrap: break-word; }
.ad-body > :first-child { margin-top: 0; }
.ad-body p { margin: 0 0 24px; text-align: justify; }
.ad-body h1, .ad-body h2, .ad-body h3 { margin: 30px 0 14px; color: var(--heading-color); line-height: 1.5; }
.ad-body h1 { font-size: 24px; }
.ad-body h2 { font-size: 21px; }
.ad-body h3 { font-size: 18px; }
.ad-body ul, .ad-body ol { margin: 0 0 24px; padding-left: 26px; }
.ad-body li { margin-bottom: 8px; }
.ad-body img { display: block; max-width: 100%; height: auto; margin: 18px 0; border-radius: 8px; }
.ad-body a { color: var(--primary-color); }
.ad-body blockquote {
    margin: 18px 0; padding: 14px 18px;
    background: var(--bg-soft); border-left: 3px solid var(--border-color);
    color: var(--body-color);
}
.ad-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.ad-body th, .ad-body td { padding: 8px 10px; border: 1px solid var(--border-color); font-size: 14px; }
.ad-body pre { margin: 18px 0; padding: 14px 16px; background: #f7f8fa; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.ad-empty { padding-top: 32px; font-size: 14px; color: var(--muted-color); text-align: center; }
.ad-foot {
    display: flex; justify-content: flex-start;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid #f0f0f0;
}
.ad-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--body-color); text-decoration: none;
    transition: color 0.25s;
}
.ad-back:hover { color: #337eff; }
@media (max-width: 768px) {
    .ad-page { padding: calc(var(--nav-height) + 24px) 0 64px; }
    .ad-wrap { padding: 0 20px; }
    .ad-title { font-size: 24px; }
    .ad-body, .ad-body p { font-size: 15px; }
}

/* ===== 站内搜索结果页（对齐设计稿：无边框卡片，细分隔线 + 关键词高亮） ===== */
.sc-page { padding: calc(var(--nav-height) + 40px) 0 72px; }
.sc-wrap { max-width: 900px; }
.sc-bar {
    width: 560px; max-width: 100%; height: 48px; margin: 0 auto 48px;
    padding: 0 6px 0 0;
    display: flex; align-items: center; box-sizing: border-box;
    background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
    box-shadow: 0 8px 24px rgba(29, 33, 41, 0.08);
}
.sc-bar__input {
    flex: 1; min-width: 0; padding: 0 20px;
    border: 0; outline: 0; background: transparent;
    font-size: 14px; font-family: inherit; color: var(--heading-color);
}
.sc-bar__input::placeholder { color: #909399; }
.sc-bar__divider { flex-shrink: 0; width: 1px; height: 20px; margin: 0 6px; background: var(--border-color); }
.sc-bar__btn {
    flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; cursor: pointer;
    background: transparent; color: var(--heading-color);
    font-size: 18px; transition: background 0.25s;
}
.sc-bar__btn:hover { background: #f4f0f0; }
.sc-tip { padding: 64px 0; text-align: center; color: #909399; font-size: 16px; }
.sc-count { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--heading-color); }
.sc-group { margin-bottom: 28px; }
.sc-group__title {
    display: flex; align-items: center; gap: 8px;
    margin: 24px 0 0; font-size: 16px; color: var(--heading-color);
}
.sc-group__num { padding: 1px 8px; border-radius: 999px; background: #f2f3f5; font-size: 12px; color: var(--muted-color); }
.sc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #f0f0f0; }
.sc-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.sc-item__title { display: block; font-size: 16px; font-weight: 600; color: var(--heading-color); text-decoration: none; margin-bottom: 8px; transition: color 0.25s; }
.sc-item__title:hover { color: #337eff; }
.sc-item__title--plain { font-weight: 600; color: var(--body-color); }
.sc-item__text {
    margin: 0; font-size: 15px; line-height: 1.8; color: #4e5969;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-item__text .hl, .sc-item__title .hl { color: #337eff; }
.sc-item__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted-color); }
.sc-item__tag { padding: 1px 7px; border-radius: 4px; background: #f2f3f5; }

@media (max-width: 768px) {
    .ad-page, .sc-page { padding: calc(var(--nav-height) + 20px) 0 48px; }
    .ad-card { padding: 24px 20px 18px; }
    .ad-title { font-size: 22px; }
    .ad-body { font-size: 15px; }
    .sb-btn { padding: 10px 18px; }
}