/* AIVON Knowledge Hub */
.knowledge-hub {
    margin-top: 40px;
}

.knowledge-hub__tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 28px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--aiv-color-border, #e8e8e8);
}

.knowledge-hub__tabs li {
    display: flex;
}

.knowledge-hub__tab {
    position: relative;
    display: inline-block;
    width: fit-content;
    margin: 0;
    padding: 0 0 16px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 10px 10px ;
}

.knowledge-hub__tab:hover {
    color: var(--primary-color, #0060ff);
}

.knowledge-hub__tab--active {
    color: var(--primary-color, #0060ff);
    border-bottom: 3px solid var(--primary-color, #0060ff);
    margin-bottom: -1px;
    /* padding-bottom: 13px; */
}

.knowledge-hub__panels {
    --hub-fade-duration: 0.6s;
    --hub-fade-distance: 16px;
    margin-top: 40px;
}

.knowledge-hub__panel {
    display: none;
}

.knowledge-hub__panel.knowledge-hub__panel--active,
.knowledge-hub__panel.knowledge-hub__panel--entering {
    display: block;
}

/* Motion.Lab: fade-in-up */
.knowledge-hub__panel.knowledge-hub__panel--entering {
    animation: hubFadeInUp var(--hub-fade-duration, 0.6s) ease-out both;
}

.knowledge-hub__panels--init .knowledge-hub__panel.knowledge-hub__panel--entering {
    animation: none;
}

@keyframes hubFadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--hub-fade-distance, 16px));
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .knowledge-hub__panel.knowledge-hub__panel--entering {
        animation: none;
    }
}

.knowledge-hub__panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    min-height: 240px;
    padding: 0;
}

.knowledge-hub__panel-loading-item {
    list-style: none;
    padding: 0;
}

.knowledge-hub__panel-loading-item .knowledge-hub__panel-loading {
    min-height: 200px;
}

.knowledge-hub__empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #999;
    text-align: center;
}

.knowledge-hub__blog-list .knowledge-hub__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

/* Case — card grid */
.knowledge-hub__case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.knowledge-hub__case-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px;
    border: 1px solid var(--aiv-color-border, #e8e8e8);
    border-radius: var(--aiv-radius-lg, 10px);
    background: var(--aiv-color-surface, #fff);
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-hub__case-card:hover {
    background: #EFF5FF;
    /* box-shadow: var(--primary-shadow, 0 2px 27.7px rgba(89, 114, 179, 0.15)); */
}

.knowledge-hub__case-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
}

.knowledge-hub__case-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;

font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 130%;
/* or 21px */
letter-spacing: -0.03em;

color: #333333;


}

.knowledge-hub__case-card__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.knowledge-hub__case-card__title a:hover {
    color: var(--primary-color, #0060ff);
}

.knowledge-hub__case-card__date {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #999;

font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;

color: #74767B;


}

.knowledge-hub__case-card__desc {
    flex: 1;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 400;
font-size: 14px;
color: #37393F;
}

.knowledge-hub__case-card__link {
    align-self: flex-start;
    text-decoration: none;
}

.knowledge-hub__case-footer {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* Records — 2x2 card grid */
.knowledge-hub__records-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.knowledge-hub__records-card {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.knowledge-hub__records-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(89, 114, 179, 0.18);
}

.knowledge-hub__records-card__link {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.knowledge-hub__records-card__media {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7fa;
}

.knowledge-hub__records-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-hub__blog-card__badge {
    min-width: 40px;
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    max-width: calc(100% - 36px);
    padding: 4px 10px;
    border: 1px solid #0072c4;
    border-radius: 4px;
    background: rgba(0, 24, 65, 0.72);
    box-sizing: border-box;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
background: rgba(0, 24, 65, 0.42);
border: 1px solid #0072C4;
border-radius: 4px;

}

a.knowledge-hub__records-card__badge:hover,
a.knowledge-hub__blog-card__badge:hover {
    background: rgba(0, 96, 255, 0.88);
    color: #ffffff;
}



.knowledge-hub__records-card__body {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.knowledge-hub__records-card__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 8px;
}

.knowledge-hub__records-card__title-main,
.knowledge-hub__records-card__title-tag {
    display: block;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #26272a;
}

.knowledge-hub__records-card__desc {
    margin: 0;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #26272a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-hub__records-card:hover .knowledge-hub__records-card__title-main,
.knowledge-hub__records-card:hover .knowledge-hub__records-card__title-tag {
    color: var(--primary-color, #0060ff);
}

/* Insight — 5-column card grid */
.knowledge-hub__insight-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 40px;
}

.knowledge-hub__insight-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px;
    border: 1px solid var(--aiv-color-border, #e8e8e8);
    border-radius: var(--aiv-radius-lg, 10px);
    background: var(--aiv-color-surface, #fff);
    box-sizing: border-box;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-hub__insight-card:hover {
    background: #eff5ff;
}

.knowledge-hub__insight-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
}

.knowledge-hub__insight-card__title {
    margin: 0 0 12px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #333333;
font-family: 'HarmonyOS Sans';
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 130%;
letter-spacing: -0.03em;
color: #333333;
}

.knowledge-hub__insight-card__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.knowledge-hub__insight-card__title a:hover {
    color: var(--primary-color, #0060ff);
}

.knowledge-hub__insight-card__desc {
    flex: 1;
    margin: 0 0 20px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #37393f;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    min-height: 117px;
    overflow: hidden;
}

.knowledge-hub__insight-card__link {
    align-self: flex-start;
    text-decoration: none;
}

/* Blog — reuse listBlog layout */
.knowledge-hub__blog-list {
    margin-top: 0;
    min-height: 450px;
}

.knowledge-hub__blog-list .item .knowledge-hub__blog-card__pic {
    position: relative;
    overflow: hidden;
}

.knowledge-hub__blog-list .item .knowledge-hub__blog-card__pic-link {
    display: block;
    height: 100%;
}

.knowledge-hub__blog-list .item .knowledge-hub__blog-card__pic-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-hub__blog-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 0;
}

.knowledge-hub__blog-footer {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* News — banner + list */
.knowledge-hub__news {
    display: grid;
    grid-template-columns: minmax(552px, 552px) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
}

.knowledge-hub__news-banner {
    overflow: hidden;
    width: 552px;
    height: 300px;
    border-radius: 12px;
}

.knowledge-hub__news-banner img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.knowledge-hub__news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.knowledge-hub__news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.knowledge-hub__news-item {
    position: relative;
    padding: 16px 0 8px 14px;
}

.knowledge-hub__news-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c8ccd2;
}

.knowledge-hub__news-item__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 48px;
}

.knowledge-hub__news-item__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: #333333;
}

.knowledge-hub__news-item__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.knowledge-hub__news-item__title a:hover {
    color: var(--primary-color, #0060ff);
}

.knowledge-hub__news-item__date {
    flex-shrink: 0;
    width: 118px;
    font-family: "HarmonyOS Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #999999;
    text-align: right;
    white-space: nowrap;
}

.knowledge-hub__news-more {
    align-self: flex-start;
    margin-top: 8px;
    text-decoration: none;
    margin-bottom: 30px;
}

.knowledge-hub .aiv-card__link--primary:hover::after {
    transform: translateX(12px);
}

.knowledge-hub__blog-list .aiv-card__blog__link:hover::after {
    transform: translateX(12px) translateY(-52%);
}

@media (max-width: 1280px) {
    .knowledge-hub__case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .knowledge-hub__insight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .knowledge-hub__news {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .knowledge-hub__news-content {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .knowledge-hub__tabs {
        gap: 24px;
    }

    .knowledge-hub__tab {
        font-size: 16px;
    }

    .knowledge-hub__case-grid,
    .knowledge-hub__insight-grid,
    .knowledge-hub__records-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-hub__news-item__main {
        flex-direction: column;
        gap: 8px;
    }

    .knowledge-hub__news-item__date {
        width: auto;
        text-align: left;
    }
}
