.knowledge-page {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 24px 0;
}

.knowledge-page .ny-content-loading {
    opacity: 0;
    transform: translateY(8px);
}

.knowledge-page .ny-content-loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .36s ease, transform .36s ease;
}

.knowledge-pagehead {
    display: block;
    margin-bottom: 14px;
}

.knowledge-pagehead .ny-dashboard-page-title {
    display: block;
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.knowledge-pagehead .ny-dashboard-page-subtitle {
    display: block;
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.knowledge-hero-search {
    margin-bottom: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.knowledge-search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.knowledge-search-prefix {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 19px;
    pointer-events: none;
}

.knowledge-search-input {
    width: 100%;
    height: 46px;
    padding: 0 136px 0 48px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.knowledge-search-input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.knowledge-search-btn {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

.knowledge-search-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.knowledge-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.knowledge-main,
.knowledge-sidebar {
    min-width: 0;
}

.knowledge-list {
    display: grid;
    gap: 12px;
}

.knowledge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.knowledge-item:hover {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.knowledge-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: #2563eb;
}

.knowledge-item-icon i {
    font-size: 22px;
}

.knowledge-item-body {
    flex: 1;
    min-width: 0;
}

.knowledge-item-title {
    margin: 0 0 9px;
    color: #111827;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
}

.knowledge-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.knowledge-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.knowledge-item-meta i {
    font-size: 15px;
}

.knowledge-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #94a3b8;
    background: #f8fafc;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.knowledge-item:hover .knowledge-item-arrow {
    background: #2563eb;
    color: #fff;
    transform: translateX(2px);
}

.knowledge-category-card {
    position: sticky;
    top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.knowledge-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.knowledge-card-title i {
    color: #2563eb;
    font-size: 20px;
}

.knowledge-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.knowledge-category-item + .knowledge-category-item {
    margin-top: 8px;
}

.knowledge-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.knowledge-category-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    text-decoration: none;
}

.knowledge-category-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.knowledge-category-name i {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 17px;
}

.knowledge-category-link:hover .knowledge-category-name i {
    color: #2563eb;
}

.knowledge-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.knowledge-pagination {
    margin-top: 20px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.knowledge-pagination .table-pagination {
    margin: 0;
}

.knowledge-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.knowledge-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: #f1f5f9;
    color: #94a3b8;
}

.knowledge-empty-icon i {
    font-size: 36px;
}

.knowledge-empty-text {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .knowledge-container {
        grid-template-columns: 1fr;
    }

    .knowledge-category-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .knowledge-page {
        padding: 16px 0;
    }

    .knowledge-pagehead .ny-dashboard-page-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .knowledge-search-input {
        padding-right: 48px;
    }

    .knowledge-search-btn span {
        display: none;
    }

    .knowledge-search-btn {
        width: 34px;
        padding: 0;
    }

    .knowledge-item {
        align-items: flex-start;
        padding: 16px;
    }
}
