/* insights.css */
jp-container {
    overflow: hidden;
}
a:hover{
    color: var(--primary-color__active, #0060FF);
    transition: all 0.3s ease;
}
a:hover svg{
    transition: all 0.3s ease;
    transform: translateX(12px);
}
.insights-hero {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 100px 0 80px;
    min-height: 420px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.insights-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.insights-hero__content {
    max-width: 760px;
}

.insights-hero__title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    margin-top: 0;
}

.insights-hero__desc {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

/* 主体布局 */
.insights-layout {
    display: flex;
    gap: 24px;
    width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

/* jp-container 默认 overflow:hidden 会让子元素 position:sticky 相对错误容器，无法吸顶 */
jp-container:has(.insights-layout) {
    overflow: visible;
}

/* 左侧栏 */
.insights-sidebar {
    flex: 0 0 180px;
    align-self: flex-start;
    position: sticky;
    top: 92px;
    background: #ffffff;
    border-radius: var(--aiv-size-4, 8px);
    padding: 24px 16px;
    height: fit-content;
}

.insights-sidebar__title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-10, 20px);
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 8px;
}

.insights-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-sidebar__item {
    margin-bottom: 4px;
}

.insights-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: var(--aiv-radio-m, 6px);
    color: #4a5568;
    font-size: var(--aiv-size-7, 14px);
    font-family: "HarmonyOS Sans", sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insights-sidebar__link:hover,
.insights-sidebar__item--open > .insights-sidebar__link {
    background-color: var(--primary-color-7, #eff5ff);
    color: var(--primary-color, #0060FF);
}

.insights-sidebar__item--active .insights-sidebar__link {
    color: var(--primary-color, #0060FF);
}

.insights-sidebar__arrow {
    transform: rotate(0deg);
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* 展开状态的箭头动画（指向上） */
.insights-sidebar__item--open .insights-sidebar__arrow {
    transform: rotate(180deg);
}

/* 二级菜单 */
.insights-sidebar__sublist {
    list-style: none;
    padding: 8px 0 8px 0;
    margin: 0;
    display: none;
}

.insights-sidebar__subitem {
    margin: 2px 0;
}

.insights-sidebar__sublink {
    display: block;
    padding: 10px 16px 10px 16px;
    color: #4a5568;
    font-size: var(--aiv-size-7, 14px);
    font-family: "HarmonyOS Sans", sans-serif;
    text-decoration: none;
    border-radius: var(--aiv-radio-m, 6px);
    transition: all 0.3s ease;
}

.insights-sidebar__sublink:hover,
.insights-sidebar__subitem--active .insights-sidebar__sublink {
    color: var(--primary-color, #0060FF);
}

/* 右侧内容 */
.insights-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: var(--aiv-size-4, 8px);
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.insights-section-title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-12, 28px);
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin: 0 0 30px 0;
}

.insights-section-title--mt {
    margin-top: 60px;
}

/* Specification 规格表 */
.insights-spec {
    display: flex;
    gap: 18px;
    height: 432px;
}

.insights-spec__img-wrapper {
    flex:8;
    border-radius: var(--aiv-size-4, 8px);
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

.insights-spec__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insights-spec__table-wrapper {
    flex: 10;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    border-radius: var(--aiv-size-4, 8px);
}

/* Scrollbar */
.insights-spec__table-wrapper::-webkit-scrollbar {
    width: 6px;
}
.insights-spec__table-wrapper::-webkit-scrollbar-track {
    background: #f7f9fc;
    border-radius: 4px;
}
.insights-spec__table-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.insights-spec__table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.insights-table {
    width: calc(100% - 2px);
    border-collapse: separate;
    border-spacing: 0;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    overflow: hidden;
    border-radius: var(--aiv-size-4, 8px);
}

.insights-table th,
.insights-table td {
    padding: 14px;
    text-align: left;
    border: 1px solid #ebebeb;
    border-left: none;
}

.insights-table th:first-child,
.insights-table td:first-child {
    border-left: 1px solid #ebebeb;
}

.insights-table tr + tr th,
.insights-table tr + tr td {
    border-top: none;
}

.insights-table th {
    background-color: #f7f9fc;
    font-weight: 400;
    color: #666;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Top-left corner */
.insights-table th:first-child {
    border-top-left-radius: var(--aiv-size-4, 8px);
}

/* Top-right corner */
.insights-table th:last-child {
    border-top-right-radius: var(--aiv-size-4, 8px);
}

/* Bottom-left corner */
.insights-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--aiv-size-4, 8px);
}

/* Bottom-right corner */
.insights-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--aiv-size-4, 8px);
}

/* Process 进程洞察 */
.insights-process {
background: linear-gradient(180deg, #FDFDFD 56.9%, #F0F5FB 118.53%);

    border-radius: var(--aiv-size-4, 8px);
    padding: 32px;
    border: 1px solid #E8E8E8;
    /* Rectangle 34625638 */
box-sizing: border-box;
}

.insights-process__item {
    margin-bottom: 32px;
}

.insights-process__item:last-child {
    margin-bottom: 0;
}

.insights-process__title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-8, 16px);
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.insights-process__desc {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 制造挑战与优化 */
.insights-optimization {
    background: #ffffff;
    border: 1px solid var(--primary-color-7, #e3f3ff);
    border-radius: var(--aiv-radio-xl, 8px);
    padding: 33px 118px;
    position: relative;
    margin-bottom: 60px;
    overflow: hidden;
}

.insights-opt__slides {
    position: relative;
    width: 100%;
}

.insights-opt__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
}

.insights-opt__slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
    animation: slideIn 0.35s ease-out forwards;
}

.insights-opt__slide.slide-exit {
    opacity: 0;
    z-index: 0;
    animation: slideOut 0.25s ease-in forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-15px);
    }
}

.insights-opt__nav {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    background-color: #D9E3FF;
    border-radius: var(--aiv-radio-circle, 50%);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    z-index: 2;
    transition: all 0.3s ease;
}
.insights-opt__nav:hover {
    background-color: var(--primary-color__active, #D9E3FF);
}
.insights-opt__nav--prev {
    
    left: 36px;
}
.insights-opt__nav--next {
    right: 36px;
}

.insights-opt__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #ebebeb;
    min-height: 95px;
}

/* slide 内最后是 .insights-opt__action，故不能用 :last-child / :last-of-type(div) 选中 item */
.insights-opt__slide > .insights-opt__item:nth-last-child(2) {
    margin-bottom: 0;
    border-bottom: none;
}

.insights-opt__icon {
    flex: 0 0 auto;
    color: var(--primary-color, #0060FF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.insights-opt__desc {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 24px;
}
.insights-opt__slide > .insights-opt__item:nth-last-child(2) .insights-opt__desc {
    border-bottom: none;
}
.insights-opt__action {
    text-align: center;
    margin-top: 24px;
}

.insights-opt__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--aiv-size-4, 8px);
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    font-weight: 500;
    color: var(--primary-color, #0060FF);
    padding: var(--aiv-size-5, 10px) var(--aiv-size-11, 24px);
    border: 1px solid var(--primary-color, #0060FF);
    border-radius: var(--aiv-radio-xl, 6px);
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insights-opt__btn:hover {
    background-color: var(--primary-color, #0060FF);
    color: #ffffff;
}

/* 设计考量：不 stretch 右侧；cross-axis 居中使右侧图相对左侧整块垂直居中 */
.insights-design {
    display: flex;
    gap: 30px;
    align-items: center;
}

.insights-design__accordion {
    flex: 1;
}

.insights-accordion__item {
    border: 1px solid #D9D9D9;
    border-radius: var(--aiv-radio-m, 4px);
    margin-bottom: 16px;
    background-color: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.insights-accordion__item--active {
    /* border-color: var(--primary-color-7, #e3f3ff); */
}

.insights-accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.insights-accordion__item--active .insights-accordion__header {
    background-color: #EFF5FF;
}

.insights-accordion__title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-8, 16px);
    font-weight: 700;
    color: #333333;
}

.insights-accordion__icon {
    transition: transform 0.3s ease;
}

.insights-accordion__item--active .insights-accordion__icon {
    transform: rotate(180deg);
}

.insights-accordion__content {
    display: none;
    padding: 16px 20px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #ebebeb;
}

/* 宽度固定，高度随图片比例变化；不与左侧手风琴 stretch，切换栏目时右侧高度不变 */
.insights-design__img-wrapper {
    flex: 0 0 360px;
    width: 360px;
    flex-shrink: 0;
    border-radius: var(--aiv-size-4, 8px);
    overflow: hidden;
}

.insights-design__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--aiv-size-4, 8px);
}

/* 扩展板块公共样式 */
.insights-section-title--center {
    text-align: center;
}

/* 相关产品 (Related Products) */
.insights-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.insights-related__item {
    border: 1px solid #E8E8E8;
    border-radius: var(--aiv-size-4, 8px);
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;

}

.insights-related__item:hover,
.insights-related__item--active {
    box-shadow:var(--aiv-shadow-hover,0px 2px 27.7px rgba(89, 114, 179, 0.25))
}

.insights-related__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.insights-related__info {
    padding: 16px;
}

.insights-related__title {
    margin: 0 0 16px 0;
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 130%;
/* or 21px */
min-height: 42px;
color: #26272A;
}

.insights-related__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    color: var(--primary-color, #0060FF);
    text-decoration: none;
    font-weight: 500;
}
.insights-related__link:hover{
    color:  #0060FF;
}
.insights-related__link:hover svg{
    transform: translateX(12px);
}
/* 常见应用 (Common Applications) */
.insights-apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.insights-apps__item {
    position: relative;
    background-color: #EFF5FF;
    border-radius: var(--aiv-size-4, 8px);
    padding: 12px 18px 22px 18px;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 37px) 0, 100% 37px, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
}

.insights-apps__item:hover {
    transform: translateY(-4px);
    /* drop-shadow is used instead of box-shadow because clip-path hides box-shadow */
}

.insights-apps__icon {
    color: var(--primary-color, #0060FF);
}

.insights-apps__title {
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 130%;
color: #26272A;
    margin: 0 0 12px 0;
}

.insights-apps__desc {
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 150%;
color: #535D6D;
}

/* 制造订单概况 (Manufacturing Order Profile) */
.insights-records {
    margin-bottom: 60px;
    width: 100%;
}

.insights-records__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    overflow: hidden;
    border-radius: var(--aiv-size-4, 8px);
}

.insights-records__table th,
.insights-records__table td {
    border: 1px solid #ebebeb;
    border-left: none;
}

.insights-records__table th:first-child,
.insights-records__table td:first-child {
    border-left: 1px solid #ebebeb;
}

.insights-records__table tr + tr th,
.insights-records__table tr + tr td {
    border-top: none;
}

.insights-records__table th {
    background-color: #F7F7F7;
    color: #333333;
    font-weight: 500;
    padding: 16px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.insights-records__table th:first-child {
    border-top-left-radius: var(--aiv-size-4, 8px);
}

.insights-records__table th:last-child {
    border-top-right-radius: var(--aiv-size-4, 8px);
}

.insights-records__table tr:last-child td:first-child {
    border-bottom-left-radius: var(--aiv-size-4, 8px);
}

.insights-records__table tr:last-child td:last-child {
    border-bottom-right-radius: var(--aiv-size-4, 8px);
}

.insights-records__table td {
    padding: 16px 6px;
    color: #26272A;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* 列宽调整：Layers 和 Quantity 较窄 */
/* .insights-records__table th:nth-child(3), */
.insights-records__table td:nth-child(1) {
    width: 10%;
    text-align: center;
}
.insights-records__table th:nth-child(3),
.insights-records__table td:nth-child(3){
    width: 5%;
    text-align: center;
}
.insights-records__table th:nth-child(7),
.insights-records__table td:nth-child(7){
    width: 6%;
    text-align: center;
}

.insights-records__link {
    color: var(--primary-color, #0060FF);
    text-decoration: none;
    font-weight: 500;
}
.insights-records__link:hover{
    color:  #0060FF !important;
    transition: all 0.3s ease !important;
    text-decoration: underline !important;
}
/* 工程资源 (Engineering Resources) */
.insights-resources {
    background: #F4F9FF;
    border-radius: var(--aiv-size-4, 8px);
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: stretch; /* 确保子元素占满高度 */
}

.insights-resources__info {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}

.insights-resources__title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-8, 16px);
    font-weight: 700;
    color: #26272A;
    margin: 0 0 16px 0;
}

.insights-resources__desc {
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 22px;
color: #26272A;
margin-top: 0;
margin-bottom: auto;
}

.insights-resources__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
}

.insights-resources__cards {
    flex: 1;
    display: flex;
    gap: 24px;
}

.insights-resources__card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: var(--aiv-size-4, 8px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.insights-resources__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.insights-resources__card-img-wrapper {
    height: 140px;
    overflow: hidden;
}

.insights-resources__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.insights-resources__card:hover .insights-resources__card-img {
    transform: scale(1.05);
}

.insights-resources__card-content {
    padding:10px 12px;
}

.insights-resources__card-title {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-7, 14px);
    font-weight: 700;
    color: #26272A;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

.insights-resources__card-desc {
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-6, 12px);
    color: #191919;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-resources__card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: var(--aiv-size-6, 12px);
    color: var(--primary-color, #0060FF);
    text-decoration: none;
    font-weight: 500;
}

/* Pagination */
.insights-pagination {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 16px 0 0 0;
    font-family: "HarmonyOS Sans", sans-serif;
    min-height: 40px;
    visibility: hidden;
}

.insights-pagination--visible {
    visibility: visible;
}

.insights-pagination__total {
    font-size: var(--aiv-size-7, 14px);
    color: #666666;
    white-space: nowrap;
}

.insights-pagination__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.insights-pagination__btn {
    width: 24px;
    height: 24px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333333;
    transition: all 0.2s ease;
    padding: 0;
}

.insights-pagination__btn:hover:not(:disabled) {
    border-color: var(--primary-color, #0060FF);
    color: var(--primary-color, #0060FF);
}

.insights-pagination__btn:disabled {
    cursor: not-allowed;
    color: #D9D9D9;
    border-color: #D9D9D9;
}

.insights-pagination__pages {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

/* 静态/动态页码容器：避免全局 button 样式把数字竖排成块级 */
#insightsPaginationStaticWrap,
#insightsPaginationDynamic {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.insights-pagination__page {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    min-width: 24px;
    height: 24px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--aiv-size-7, 14px);
    font-weight: 500;
    color: #333333;
    transition: all 0.2s ease;
    /* padding: 0 4px; */
    font-family: "HarmonyOS Sans", sans-serif;
}

.insights-pagination__page:hover {
    border-color: var(--primary-color, #0060FF);
    color: var(--primary-color, #0060FF);
}

.insights-pagination__page--active {
    background-color: var(--primary-color, #0060FF);
    color: #ffffff;
    border-color: var(--primary-color, #0060FF);
}

.insights-pagination__page--active:hover {
    background-color: var(--primary-color, #0060FF);
    color: #ffffff;
}

.insights-pagination__ellipsis {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--aiv-size-7, 14px);
    color: #999999;
    cursor: default;
}