/*
 * yuhai-accio WordPress 适配样式
 * accio.css 为 Accio 构建产物(勿改),WP 特有内容(正文排版/分页/搜索/登录条等)在此补充。
 */

/* ── 首页产品中心: WP 版将全部分类面板服务端渲染,JS 切换显示 ── */
.reference-products-preview .reference-products-detail {
    display: none;
}
.reference-products-preview .reference-products-detail.is-active {
    display: flex;
}

/* ── 产品分类页 tabs 用 <a> 实现(WP 分类为真实链接,样式对齐 .tabs button) ── */
.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--color-text-secondary, #5a6472);
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}
.tabs a:hover,
.tabs a.active {
    color: var(--color-primary, #1a3390);
    border-color: var(--color-primary, #1a3390);
    font-weight: 600;
}

/* ── 产品详情 tag-chip(Accio JSX 使用但构建 CSS 未含) ── */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef2fb;
    color: #1a3390;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

/* ── 关于页 研发/标准/质量:演示站该类无任何 CSS(原生文档流堆叠),故不加自定义样式 ── */

/* ── 首页荣誉资质:按客户确认的调整稿(调整荣誉资质.png)改为统一 5×2 等宽网格,
      取代设计 CSS 的马赛克变宽布局;卡片顺序/置顶逻辑不变 ── */
@media (min-width:1024px) {
    .honors-preview-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    .honors-preview-grid .honors-preview-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: initial !important;
    }
}
@media (min-width:768px) and (max-width:1023px) {
    .honors-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .honors-preview-grid .honors-preview-card {
        grid-column: auto !important;
        grid-row: auto !important;
        order: initial !important;
    }
}
.honors-preview-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

/* ── 新闻列表页手机端:设计 CSS 隐藏第4+张(演示站无分页所致),真实站点有分页需全部展示(横向滑动卡设计保留) —— 记录为对演示站的刻意优化 ── */
@media (max-width: 767px) {
    .news-list-page .news-grid .news-card:nth-child(n+4) {
        display: block !important;
    }
}

/* ── 正文排版(the_content 输出,用于新闻详情/产品详情/解决方案详情) ── */
.entry-content {
    color: #333;
    font-size: 16px;
    line-height: 1.9;
    word-break: break-word;
}
.entry-content > * + * {
    margin-top: 1em;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1a3390;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.6em;
}
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 19px; }
.entry-content h4 { font-size: 17px; }
.entry-content p { margin: 0; }
.entry-content a {
    color: #1a3390;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content ul,
.entry-content ol {
    padding-left: 1.6em;
    margin-top: 0.6em;
}
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.entry-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.entry-content img.alignleft {
    float: left;
    margin: 0 1.2em 0.8em 0;
}
.entry-content img.alignright {
    float: right;
    margin: 0 0 0.8em 1.2em;
}
.entry-content::after {
    content: "";
    display: block;
    clear: both;
}
.entry-content blockquote {
    border-left: 3px solid #1a3390;
    background: #f5f7fb;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    color: #555;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.entry-content table th,
.entry-content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}
.entry-content table th {
    background: #f4f7fb;
    color: #1a3390;
}
.entry-content figure { margin: 0; }
.entry-content figcaption {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}
.entry-content iframe,
.entry-content video {
    max-width: 100%;
}
.entry-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.entry-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}
.entry-content hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2em 0;
}

/* ── 新闻详情正文容器 ── */
.news-detail-article .entry-content {
    margin-top: 24px;
}

/* ── 产品详情 gallery 缩略图 ── */
.detail-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.detail-gallery-thumbs button {
    width: 72px;
    height: 72px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.detail-gallery-thumbs button.active,
.detail-gallery-thumbs button:hover {
    border-color: #1a3390;
}
.detail-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.detail-main-image img {
    transition: opacity 0.25s ease;
}
.detail-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 9px 18px;
    border: 1px solid #1a3390;
    border-radius: 999px;
    color: #1a3390;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}
.detail-pdf-link:hover {
    background: #1a3390;
    color: #fff;
}

/* ── 分页(Accio 无分页样式,WP 列表页需要) ── */
.yuhai-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}
.yuhai-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d9dce1;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.yuhai-pagination .page-numbers:hover {
    border-color: #1a3390;
    color: #1a3390;
}
.yuhai-pagination .page-numbers.current {
    background: #1a3390;
    border-color: #1a3390;
    color: #fff;
    cursor: default;
}
.yuhai-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}
.yuhai-pagination .prev,
.yuhai-pagination .next {
    padding: 0 20px;
}

/* ── 页头搜索面板(增强:Accio 原型搜索按钮无动作,此处接入 WP 搜索) ── */
.header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e4ebf2;
    box-shadow: 0 14px 28px rgba(15, 30, 70, 0.08);
    padding: 18px 0;
    display: none;
    z-index: 45;
}
.header-search-panel.is-open {
    display: block;
}
.header-search-panel form {
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    gap: 10px;
}
.header-search-panel input[type="search"] {
    flex: 1;
    height: 46px;
    border: 1px solid #d9dce1;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 15px;
    outline: none;
    background: #f5f6f8;
    color: #111;
}
.header-search-panel input[type="search"]:focus {
    border-color: #1a3390;
    background: #fff;
}
.header-search-panel button[type="submit"] {
    height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    background: #1a3390;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}
.header-search-panel button[type="submit"]:hover {
    background: #24428e;
}
.header-actions {
    position: relative;
}
.site-header .header-search.is-active {
    color: #1a3390;
}

/* ── 通用列表(搜索结果/归档回退) ── */
.generic-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1023px) {
    .generic-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .generic-list-grid { grid-template-columns: 1fr; }
}
.generic-card {
    display: block;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.generic-card:hover {
    box-shadow: 0 14px 30px rgba(15, 30, 70, 0.1);
    transform: translateY(-3px);
}
.generic-card-cover {
    aspect-ratio: 16 / 9;
    background: #f4f7fb;
    overflow: hidden;
}
.generic-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.generic-card-body {
    padding: 18px 20px 20px;
}
.generic-card-body small {
    color: #8a93a3;
    font-size: 13px;
}
.generic-card-body h3 {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
}
.no-results-note {
    text-align: center;
    color: #667;
    padding: 48px 0;
    font-size: 15px;
}

/* ── 产品详情规格表(Accio spec-table 扩展多行) ── */
.spec-table > div + div {
    border-top: 1px solid #eef1f5;
}

/* ── 相关产品区块 ── */
.related-products-section {
    padding: 64px 0 8px;
}
.related-products-section .section-heading {
    margin-bottom: 32px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1023px) {
    .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .related-products-grid { grid-template-columns: 1fr; }
}

/* ── 上下篇导航 ── */
.post-neighbor-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e8edf3;
}
.post-neighbor-nav a {
    max-width: 48%;
    color: #1a3390;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.6;
}
.post-neighbor-nav a:hover { text-decoration: underline; }
.post-neighbor-nav .nav-next { margin-left: auto; text-align: right; }

/* ── 页脚联系方式:设计 CSS 将 p 设为 flex(演示站 p 内为纯文本),此处 p 内是可点击 <a>,需恢复 block 使 <br> 换行生效 ── */
.reference-footer .footer-contact > div p {
    display: block !important;
}
.reference-footer .footer-contact > div p a {
    display: inline !important;
    color: inherit;
}

/* ── 移动端细节修正 ── */
@media (max-width: 767px) {
    .header-search-panel form {
        width: calc(100% - 32px);
    }
    .post-neighbor-nav {
        flex-direction: column;
    }
    .post-neighbor-nav a { max-width: 100%; }
    .post-neighbor-nav .nav-next { margin-left: 0; text-align: left; }
}

/* ════ 1023 整改 ════ */

/* 1. 产品图居中且不裁切(部分浏览器 object-fit:cover 表现为图左移右侧留白;产品照应完整展示) */
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}
.product-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.detail-image img {
    object-fit: contain;
}

/* 3/8. 手机端浮动快捷联系:设计 CSS 在 ≤1280 隐藏,客户要求手机显示 —— 紧凑胶囊版 */
@media (max-width: 1280px) {
    .floating-contact {
        display: block !important;
        position: fixed;
        right: 12px;
        bottom: 12px;
        top: auto;
        transform: none;
        width: 54px;
        height: auto;
        padding: 8px 2px 4px;
        background: #fff;
        border-radius: 28px;
        box-shadow: 0 4px 16px rgba(10, 40, 80, 0.18);
        z-index: 20;
    }
    .floating-contact li {
        margin: 0 0 6px;
    }
    .floating-contact li > a p {
        font-size: 11px;
        line-height: 20px;
    }
    .floating-contact-phone-icon {
        width: 40px;
        height: 40px;
    }
    .floating-contact-phone-icon:after {
        display: none;
    }
    .floating-contact-phone-icon svg {
        width: 20px;
        height: 20px;
    }
    .floating-contact li > a svg {
        width: 20px;
        height: 20px;
    }
    .floating-contact-hotline {
        display: none !important;
    }
}

/* 4. 页脚联系方式:三个独立外框 + 间隔;图标与右侧内容垂直居中,内容在框内居中 */
.reference-footer .footer-contact {
    display: grid;
    gap: 14px;
    grid-template-rows: none;
}
.reference-footer .footer-contact > div {
    height: auto;
    min-height: 0;
    border: 1px solid #dfe3ea;
    background: #fbfcfe;
    border-radius: 10px;
    padding: 10px 16px;
    align-items: center;
    gap: 14px;
}
.reference-footer .footer-contact > div svg {
    margin-top: -4px;
    flex: 0 0 auto;
}
/* 地址框:文字下移至红框位置(图标保持原位);固定框高避免上下留白过大 */
.reference-footer .footer-contact > div:nth-child(3) {
    height: 104px;
}
.reference-footer .footer-contact > div:nth-child(3) p {
    margin-top: 26px;
}
.reference-footer .footer-contact > div p {
    display: block;
    line-height: 1.7;
}

/* 5. 小屏手机首屏:缩小标题并把产品图下移,避免文字压图 */
@media (max-width: 430px) {
    .hero-carousel {
        height: calc(60px + 105vw) !important;
    }
    .reference-hero-content .reference-hero-copy h1 {
        font-size: 30px !important;
    }
    .reference-hero-visual {
        width: 92% !important;
        right: 0 !important;
        bottom: 0 !important;
    }
}

/* 6. 手机端产品中心:加大堆叠卡舞台高度(图片过小) */
@media (max-width: 767px) {
    .reference-products-stage {
        aspect-ratio: auto;
        height: 340px;
        padding: 10px 18px;
    }
    .reference-products-card {
        max-height: none;
        height: calc(100% - 20px);
    }
}

/* 7a. 首页新闻横滑:touch-action:pan-x 会吞掉纵向手势导致页面卡死,放开纵轴 */
.news-section .news-grid {
    touch-action: pan-x pan-y !important;
}

/* 7b. 手机端新闻列表页:改为两列网格(横滑容器在部分机型图片渲染异常/蓝底),并让封面图满格覆盖 */
@media (max-width: 767px) {
    .news-list-page .news-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        margin-right: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        scroll-snap-type: none !important;
        touch-action: auto !important;
    }
    .news-list-page .news-card {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        scroll-snap-align: auto !important;
    }
}
/* 新闻封面图:满格展示,渐变仅作加载底色(修复部分机型蓝底/图不显示) */
.news-cover {
    padding: 0 !important;
    display: block;
    overflow: hidden;
}
.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* (1024 banner 缩小调整已按客户要求取消还原,恢复 Accio 原设计布局) */

/* ════ 1026 二次改版 ════ */

/* 首屏整屏点击跳转联系表单(仅桌面;按钮与轮播点保持可点) */
@media (min-width: 1024px) {
    .hero-slide-link {
        position: absolute;
        inset: 0;
        z-index: 2;
    }
    .hero-carousel .hero-building-actions {
        position: relative;
        z-index: 3;
    }
}

/* 笔记本(1201-1440)首屏:产品图过大遮挡文字 → 缩小产品图与标题 */
@media (min-width: 1201px) and (max-width: 1440px) {
    .hero-carousel-slide.hero-reference-poster .reference-hero-visual {
        width: 46% !important;
        inset: auto 24px 4% auto !important;
    }
    .hero-carousel-slide.hero-reference-poster .reference-hero-copy {
        width: 44% !important;
    }
    .hero-carousel-slide.hero-reference-poster.poster-features .reference-hero-copy h1 {
        font-size: min(4vw, 54px) !important;
    }
    .hero-carousel-slide.hero-reference-poster.poster-device .reference-hero-copy h1 {
        font-size: min(4vw, 54px) !important;
    }
}

/* ════ 1026 版面对齐:以顶部导航 Logo 左侧(=Header 92% 容器)为全站统一左基准 ════
   各栏目 .container 由 1200px 居中(左113px@1440)统一改为与 Header 相同的 min(1600px,92%)(左57px@1440);
   应用领域板块按客户要求维持原样;分类图标轨左内边距归零使首个图标与 Logo 对齐 */
@media (min-width: 1201px) {
    .container {
        width: min(1600px, 92%);
    }
    .applications-fullbleed .container {
        width: min(var(--container, 1200px), calc(100% - 64px));
    }
    /* 第3屏(厂房)内部布局按 1200px 容器设计(stats 有 -170px 位移),宽容器会越界,恢复原宽 */
    .hero-carousel-building .container {
        width: min(var(--container, 1200px), calc(100% - 64px));
    }
    /* 中屏(1201-1599)该 -170px 位移会把 stats 推出屏外,归零;≥1600 恢复设计位移 */
    .hero-carousel-building .hero-building-stats {
        transform: none !important;
    }
    .reference-products-layout {
        width: 100%;
    }
    /* 与 accio.css 桌面 !important 规则同特异度对抗:图标首列与 Logo 左侧对齐 */
    .reference-products-rail {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .reference-products-rail button {
        justify-self: start !important;
        align-items: flex-start !important;
    }
    .reference-products-rail-line {
        left: 0 !important;
        right: 110px !important;
    }
}

@media (min-width: 1600px) {
    .hero-carousel-building .hero-building-stats {
        transform: translate(-170px) !important;
    }
}

/* ════ 1027 技术优势板块对齐(客户精修要求):标题与六大模块左侧 = Logo 左侧(±2px) ════
   根因:accio.css 将标题/眉标设为 width:100vw 居中(top:-84 悬浮),advantage-list 带 translate(-72px)。
   修正:解除全宽居中 hack,内容列内左对齐;面板内边距 = Header 容器左边距(同一基准,非固定 margin)。 */
@media (min-width: 1201px) {
    .technology-advantages-content {
        padding-left: calc((100% - min(1600px, 92%)) / 2) !important;
        text-align: left !important;
    }
    .technology-advantages-content > .eyebrow,
    .technology-advantages-content > .technology-title {
        left: 0 !important;
        width: auto !important;
        margin-left: 0 !important;
        top: auto !important;
        transform: none !important;
        text-align: left !important;
        align-self: flex-start !important;
    }
    .technology-advantages-content .eyebrow {
        justify-content: flex-start !important;
    }
    .technology-advantages-content .technology-title {
        text-align: left !important;
    }
    .technology-advantages-content .section-rule {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    .technology-advantages-content .advantage-list {
        left: 0 !important;
        margin-left: 0 !important;
        transform: none !important;
    }
}

/* (1027 曾误将悬浮联系组件按红框要求隐藏,经客户澄清红框实为后台"密码保护/私密"选项,已还原组件) */

/* 打印/无障碍:跳转链接 */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    background: #1a3390;
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
}
/* ════ 1028-3rd ════ */

/* ════ 1028 三轮:应用领域演示站风格 ════ */

/* 应用卡片 overlay:演示站样式(底部标题+箭头,无摘要) */
.applications-fullbleed .application-card .application-overlay,
.reference-products-preview ~ .applications .application-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 40px 18px 16px;
    background: linear-gradient(transparent, rgba(7, 26, 58, 0.82));
}
.applications-fullbleed .application-card .application-overlay span,
section.applications .application-overlay span {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
}
.applications-fullbleed .application-card .application-overlay svg,
section.applications .application-overlay svg {
    color: #fff;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .3s ease;
}
.applications-fullbleed .application-card:hover .application-overlay svg,
section.applications .application-card:hover .application-overlay svg {
    opacity: 1;
    transform: none;
}

/* 应用详情页:演示站结构 */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    color: #5b6b80;
    font-size: 13px;
}
.detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #147de1;
}
.detail-breadcrumb a svg {
    transform: rotate(180deg);
}
.application-story-hero {
    padding: 40px 0 32px;
}
.application-story-hero .eyebrow {
    color: #147de1;
}
.application-story-hero h1 {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    color: #071a3a;
    margin: 12px 0 20px;
    line-height: 1.2;
}
.application-story-hero .button {
    margin-top: 6px;
}
.application-story-cover {
    margin-top: 32px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(7, 26, 58, 0.12);
}
.application-story-cover img {
    width: 100%;
    display: block;
}
.application-story-body {
    padding-top: 24px;
    padding-bottom: 64px;
}
.application-story-article {
    max-width: 820px;
}
.application-story-lede {
    font-size: 19px;
    line-height: 1.8;
    color: #334;
    border-left: 3px solid #1a3390;
    padding-left: 18px;
    margin-bottom: 28px;
}
.application-story-cta {
    margin-top: 56px;
    padding: 32px;
    border-radius: 14px;
    background: #f0f5fb;
    text-align: center;
}
.application-story-cta .eyebrow {
    color: #147de1;
}
.application-story-cta h3 {
    font-size: 24px;
    color: #071a3a;
    margin: 8px 0 12px;
}
.application-story-cta p {
    color: #5b6b80;
    margin-bottom: 20px;
}
.application-detail-back {
    text-align: center;
    margin-top: 32px;
}

/* 底部备案号与版权同一行、字体一致 */
.reference-footer .footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.reference-footer .footer-bottom .container span,
.reference-footer .footer-bottom .container a {
    font-size: 13px;
    color: #dbe4ff;
}
.reference-footer .footer-bottom .container a {
    text-decoration: none;
}
.reference-footer .footer-bottom .container a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 首屏第2屏产品图放大(客户反馈整体尺寸太小) */
@media (min-width: 1201px) {
    .hero-carousel-slide.hero-reference-poster.poster-device .reference-hero-visual {
        width: min(68%, 1080px) !important;
        inset: auto 24px 2% auto !important;
    }
}

/* 爱番番聊天面板:手机端贴边适配(小窗,自动弹出) */
@media (max-width: 767px) {
    #yuhai-aff-chat-panel {
        right: 10px !important;
        bottom: 74px !important;
        width: min(320px, calc(100vw - 20px)) !important;
        max-width: min(320px, calc(100vw - 20px)) !important;
        height: 420px !important;
        max-height: 58vh !important;
    }
}

/* 产品中心列表页:一行 4 个(客户要求,对齐 yuhai-electronics 设计) */
@media (min-width: 1024px) {
    .catalog-page .product-grid.large,
    .catalog-page .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
    .catalog-page .product-card .product-image {
        aspect-ratio: 1 / 1;
    }
    .catalog-page .product-card-body {
        padding: 12px 14px 16px;
    }
    .catalog-page .product-card-body h3 {
        font-size: 15px;
    }
    .catalog-page .product-category-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* 发展历程:双图节点并排 */
.history-item-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 640px;
}
.history-item-images figure {
    margin: 0;
}
.history-item-images img {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e8edf3;
}
.history-item-images figcaption {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 6px;
}
@media (max-width: 600px) {
    .history-item-images { grid-template-columns: 1fr; }
}

/* 工艺工序:卡片序号/文字加大 */
.workshop-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}
.workshop-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #1a3390;
    background: #fff;
    color: #1a3390;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.workshop-controls button:hover {
    background: #1a3390;
    color: #fff;
}

/* 行业应用导航下拉(与关于宇海下拉同款样式) */
.nav-dropdown.nav-solutions {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
}
.nav-solutions .solutions-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 56px;
    padding: 26px 0 24px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px #0000000f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
    z-index: 40;
}
.site-header .nav-solutions:hover .solutions-menu,
.site-header .nav-solutions:focus-within .solutions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.solutions-menu a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
}
.solutions-menu a:hover {
    color: #1a3390;
}

/* 爱番番红色悬浮咨询图标隐藏(移出屏幕而非 display:none,保留 SDK 内部逻辑;蓝系统咨询按钮保留) */
#nb_nodeboard_container,
#nb_widget_wrap,
img[src*="nb_sprite"],
div[class*="nb-"][style*="fixed"] {
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 手机端顶栏公司名不显示(部分机型):保证完整可见。
   accio.css 手机端把 .brand-name 压缩为 0 宽导致 strong 被截空 —— 以明确尺寸覆盖 */
@media (max-width: 767px) {
    .site-header .brand {
        min-width: 0;
        overflow: visible;
        gap: 8px;
    }
    .site-header .brand-name {
        display: flex !important;
        flex: 0 1 auto;
        min-width: 0;
        overflow: visible;
        border-left: 1px solid #d6dbe8;
        padding-left: 8px;
        flex-direction: column;
        justify-content: center;
        max-width: calc(100vw - 128px);
        margin-left: 0 !important;
    }
    .site-header .brand-name strong {
        display: block;
        white-space: nowrap;
        font-size: 14px;
        letter-spacing: 0;
        width: auto;
    }
    .site-header .brand-name small {
        display: block;
        white-space: nowrap;
        font-size: 8px;
        letter-spacing: 0;
        opacity: .8;
    }
    /* 极窄屏(≤400px): 图标缩小,名称字号降到 13px,保证一行完整 */
    @media (max-width: 400px) {
        .site-header .brand-logo {
            flex: 0 0 72px;
            width: 72px;
            height: 42px;
        }
        .site-header .brand-name strong {
            font-size: 13px;
        }
        .site-header .brand-name small {
            font-size: 7px;
        }
    }
}

/* 常见问题页样式(cnshenna 风格:左侧栏+左对齐 FAQ 列表) */
.service-support-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}
.service-support-side {
    border: 1px solid #e4e9f0;
    border-radius: 10px;
    background: #fff;
    padding: 20px 0 24px;
}
.service-support-side h3 {
    margin: 0 0 14px;
    padding: 0 22px;
    font-size: 18px;
    color: #1a3390;
    font-weight: 700;
    border-bottom: 1px solid #e4e9f0;
    padding-bottom: 14px;
}
.service-support-side nav {
    display: flex;
    flex-direction: column;
}
.service-support-side nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    color: #444;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all .2s ease;
}
.service-support-side nav a:hover,
.service-support-side nav a.active {
    color: #1a3390;
    background: #f0f5fb;
    border-left-color: #1a3390;
    font-weight: 600;
}
.service-support-hotline {
    margin: 18px 22px 0;
    padding: 16px;
    background: #f0f5fb;
    border-radius: 8px;
    text-align: center;
}
.service-support-hotline small {
    display: block;
    color: #667;
    font-size: 12px;
    margin-bottom: 4px;
}
.service-support-hotline strong {
    font-size: 17px;
    color: #1a3390;
    font-family: Arial, sans-serif;
    white-space: nowrap;
}
.service-support-main {
    min-width: 0;
}
.service-support-heading {
    margin-bottom: 24px;
}
.service-support-heading h2 {
    font-size: 26px;
    color: #071a3a;
    font-weight: 700;
    margin: 0 0 8px;
}
.service-support-heading p {
    color: #5b6b80;
    font-size: 14px;
    margin: 0;
}
.faq-list {
    max-width: none;
    margin: 0;
}
.faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e4e9f0;
    margin-bottom: 0;
    overflow: visible;
}
.faq-item:first-child {
    border-top: 1px solid #e4e9f0;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 8px;
    font-size: 16px;
    font-weight: 600;
    color: #071a3a;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary:before {
    content: "Q";
    flex: 0 0 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a3390;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}
.faq-item summary:hover {
    color: #1a3390;
}
.faq-item summary:after {
    content: "+";
    margin-left: auto;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd5e3;
    border-radius: 50%;
    font-size: 16px;
    color: #1a3390;
    font-weight: 400;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}
.faq-item[open] summary:after {
    transform: rotate(45deg);
    background: #1a3390;
    border-color: #1a3390;
    color: #fff;
}
.faq-item .faq-answer {
    padding: 0 8px 22px 44px;
    color: #444;
    font-size: 15px;
    line-height: 1.85;
    text-align: left;
}
.faq-item .faq-answer:before {
    content: none;
}
@media (max-width: 900px) {
    .service-support-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-support-side nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        padding: 0 10px;
    }
    .service-support-side nav a {
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 10px 14px;
    }
    .service-support-side nav a.active {
        border-bottom-color: #1a3390;
        background: transparent;
    }
    .service-support-hotline {
        display: none;
    }
    .faq-item .faq-answer {
        padding-left: 8px;
    }
}

/* ════ 1028 五轮:发展历程(年份切换) + 工艺工序(转轮) ════ */

/* 发展历程:年份切换器 */
.history-switcher-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 36px;
}
.history-switcher-heading .eyebrow {
    color: #147de1;
}
.history-switcher-heading h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    color: #071a3a;
    font-weight: 700;
    margin: 8px 0 6px;
}
.history-switcher-heading p {
    color: #5b6b80;
    font-size: 14px;
    margin: 0;
}
.history-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #147de1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.history-back-link svg {
    transform: rotate(180deg);
}

.history-year-switcher {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    position: relative;
}
.history-year-switch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 6px 14px;
    background: #fff;
    border: 0;
    border-right: 1px solid #e4e9f0;
    cursor: pointer;
    transition: background .3s ease;
}
.history-year-switch:last-child { border-right: 0; }
.history-year-switch strong {
    font-size: 16px;
    font-weight: 700;
    color: #5b6b80;
    font-family: Arial, sans-serif;
}
.history-year-switch small {
    font-size: 10px;
    color: #9aa5b5;
    font-family: Arial, sans-serif;
}
.history-year-switch:hover,
.history-year-switch.is-active {
    background: #1a3390;
}
.history-year-switch:hover strong,
.history-year-switch.is-active strong {
    color: #fff;
}
.history-year-switch:hover small,
.history-year-switch.is-active small {
    color: #8fa8d8;
}

.history-switcher-content {
    position: relative;
}
.history-switcher-progress {
    position: relative;
    height: 2px;
    background: #e4e9f0;
    margin-bottom: 28px;
    border-radius: 1px;
}
.history-switcher-progress .progress-bar {
    display: block;
    height: 100%;
    background: #1a3390;
    width: 10%;
    border-radius: 1px;
    transition: width .4s ease;
}
.history-switcher-progress .progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a3390;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #1a3390;
    left: 10%;
    transition: left .4s ease;
}

.history-switcher-card {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
}
.history-switcher-card.is-active {
    display: grid;
}
.history-switcher-media {
    border-radius: 12px;
    overflow: hidden;
}
.history-switcher-media img {
    width: 100%;
    display: block;
}
.history-switcher-media-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.history-switcher-media-double figure {
    margin: 0;
}
.history-switcher-copy {
    padding: 0 12px;
}
.history-switcher-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a929d;
    font-size: 12px;
    font-family: Arial, sans-serif;
    margin-bottom: 14px;
}
.history-switcher-meta i {
    width: 1px;
    height: 14px;
    background: #d6dcea;
}
.history-switcher-copy h3 {
    font-size: 24px;
    color: #071a3a;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.35;
}
.history-switcher-copy p {
    color: #444;
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 8px;
}
.history-switcher-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e4e9f0;
    color: #147de1;
    font-size: 14px;
    font-weight: 700;
}

.history-switcher-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccd5e3;
    background: #fff;
    color: #1a3390;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.history-switcher-arrow:hover {
    background: #1a3390;
    border-color: #1a3390;
    color: #fff;
}
.history-switcher-prev { left: -14px; }
.history-switcher-next { right: -14px; }

.history-switcher-controls {
    text-align: center;
    color: #8a929d;
    font-size: 13px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .history-year-switcher {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .history-year-switch {
        padding: 14px 4px 10px;
    }
    .history-year-switch strong { font-size: 14px; }
    .history-switcher-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .history-switcher-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .history-switcher-prev { left: -6px; }
    .history-switcher-next { right: -6px; }
}

/* 工艺工序:转轮 */
.workshop-stage-section {
    padding-top: 48px;
}
.workshop-stage-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 36px;
}
.workshop-stage-heading .eyebrow {
    color: #147de1;
}
.workshop-stage-heading h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    color: #071a3a;
    font-weight: 700;
    margin: 8px 0 6px;
}
.workshop-stage-heading p {
    color: #5b6b80;
    font-size: 14px;
    margin: 0;
}
.workshop-stage-heading .workshop-controls {
    display: flex;
    gap: 8px;
}
.workshop-stage-heading .workshop-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ccd5e3;
    background: #fff;
    color: #1a3390;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.workshop-stage-heading .workshop-controls button:hover {
    background: #1a3390;
    border-color: #1a3390;
    color: #fff;
}

.workshop-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    height: 420px;
    position: relative;
    user-select: none;
    touch-action: pan-y;
    cursor: grab;
}
.workshop-wheel:active { cursor: grabbing; }

.workshop-wheel-card {
    position: relative;
    flex: 0 0 220px;
    height: 320px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e9f0;
    transition: transform .5s ease, opacity .5s ease, border-color .3s ease, box-shadow .3s ease;
    pointer-events: none;
}
.workshop-wheel-card.is-active {
    pointer-events: auto;
    border-color: #1a3390;
    box-shadow: 0 14px 34px rgba(7, 26, 58, 0.16);
}
.workshop-wheel-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.workshop-wheel-card figcaption {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.workshop-wheel-card figcaption span {
    font-size: 11px;
    color: #8a929d;
    font-family: Arial, sans-serif;
}
.workshop-wheel-card figcaption strong {
    font-size: 15px;
    color: #071a3a;
    font-weight: 700;
}
.workshop-wheel-card figcaption em {
    font-style: normal;
    font-size: 11px;
    color: #8a929d;
}

.workshop-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.workshop-progress > span:first-child {
    color: #071a3a;
    font-size: 14px;
    font-weight: 600;
}
.ws-dots {
    display: flex;
    gap: 8px;
}
.ws-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #1a3390;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: all .2s ease;
}
.ws-dot.active {
    background: #1a3390;
}
.ws-counter {
    color: #5b6b80;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.workshop-flow-note {
    padding: 48px 0;
    border-top: 1px solid #e4e9f0;
    margin-top: 48px;
}
.workshop-flow-note .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.workshop-flow-note .eyebrow {
    color: #147de1;
}
.workshop-flow-note h2 {
    font-size: 28px;
    color: #071a3a;
    font-weight: 700;
    margin: 6px 0 0;
}

@media (max-width: 768px) {
    .workshop-wheel {
        height: 380px;
        gap: 10px;
    }
    .workshop-wheel-card {
        flex: 0 0 170px;
        height: 260px;
    }
    .workshop-wheel-card img {
        height: 190px;
    }
    .workshop-stage-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .workshop-flow-note .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 发展历程时间轴(旧版,保留备用) */
.history-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 26px;
}
.history-timeline:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #1a3390;
    opacity: .18;
}
.history-item {
    position: relative;
    padding: 0 0 38px 24px;
}
.history-item:before {
    content: "";
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1a3390;
}
.history-item .history-year {
    font-size: 26px;
    font-weight: 800;
    color: #1a3390;
    font-family: Arial, sans-serif;
    line-height: 1.2;
}
.history-item .history-text {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    margin: 8px 0 14px;
    max-width: 640px;
}
.history-item img {
    max-width: 460px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e8edf3;
}

/* 生产车间工序网格 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr; }
}
.process-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.process-card:hover {
    box-shadow: 0 12px 26px rgba(15, 30, 70, .1);
    transform: translateY(-3px);
}
.process-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.process-card .process-body {
    padding: 14px 18px 16px;
}
.process-card .process-no {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a3390;
    background: #eef2fb;
    border-radius: 6px;
    padding: 2px 10px;
}
.process-card .process-body h3 {
    margin: 8px 0 4px;
    font-size: 17px;
    color: #111;
}
.process-card .process-body p {
    color: #666;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}
