/* 验签知识库页：全屏、自适应布局 */
html, body {
    height: 100%;
    background: rgba(245, 245, 245, 1);
}

.knowledge-page {
    min-height: 100%;
    background-color: rgba(245, 245, 245, 1);
    margin-top: 50px;
}

/* 顶部头图区域：100% 宽度铺满 */
.knowledge-hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.knowledge-hero-banner-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    max-width: 100%;
    padding: 0 16px;
    color: #FF7A00;
}

.knowledge-hero-title {
    font-size: 35px;
    margin-bottom: 10px;
    font-weight: bold;
    color: rgba(253, 104, 46, 1);
}

.knowledge-hero-desc {
    max-width: 520px;
    font-size: 16px;
    line-height: 24px;
    color: rgba(51, 51, 51, 1);
}

/* 中间主体内容 */
.knowledge-wrapper {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 16px 0;
}

.knowledge-tabs {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.knowledge-tab {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid rgba(253, 104, 46, 1);
    background-color: #FFFFFF;
    color: rgba(102, 102, 102, 1);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.knowledge-tab:hover {
    color: rgba(253, 104, 46, 1);
    box-shadow: 0 3px 8px rgba(253, 104, 46, 0.18);
    transform: translateY(-1px);
}

.knowledge-tab.active {
    background: rgba(253, 104, 46, 1);
    border-color: rgba(253, 104, 46, 1);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(253, 104, 46, 0.25);
    transform: translateY(-1px);
}

.knowledge-main {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.knowledge-main-left {
    flex: 1;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    min-height: 300px;
}

.knowledge-main-left-title {
    font-size: 23px;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(238, 238, 238, 1);
    font-weight: bold;
}

.knowledge-main-left-content {
    font-size: 16px;
    color: rgba(51, 51, 51, 1);
    line-height: 24px;
}

/* 详情正文内图片自适应，避免撑破容器 */
.knowledge-main-left-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

/* 资讯列表样式 */
.knowledge-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(220, 220, 220, 1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.2s ease;
    cursor: pointer;
}

.knowledge-item:last-child {
    margin-bottom: 0;
}

.knowledge-item-main {
    flex: 1;
    min-width: 0;
}

.knowledge-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.knowledge-item-desc {
    font-size: 13px;
    color: #777777;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.knowledge-item-arrow {
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 18px;
    color: #CCCCCC;
    transition: transform 0.2s ease, color 0.2s ease;
}

.knowledge-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.knowledge-item:hover .knowledge-item-arrow {
    transform: translateX(4px);
    color: rgba(253, 104, 46, 1);
}

.knowledge-pagination-wrapper {
    margin-top: 16px;
    text-align: center;
}

.knowledge-pagination {
    display: inline-block;
}

.knowledge-main-right {
    width: 260px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 18px 20px 10px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.knowledge-main-right-title {
    font-size: 23px;
    color: rgba(51, 51, 51, 1);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(238, 238, 238, 1);
}

.knowledge-recommend-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge-recommend-item {
    font-size: 16px;
    color: #666666;
    line-height: 25px;
    padding: 5px 0;
}


.knowledge-recommend-item:first-child {
}

.knowledge-recommend-item a {
    color:rgba(51, 51, 51, 1);
}

.knowledge-recommend-item a:hover {
    color: #FF7A00;
}

/* 移动端 / iPad 适配 */
@media screen and (max-width: 1024px) {
    .knowledge-hero-banner {
        height: 200px;
    }
    .knowledge-hero-content {
        padding: 0 12px;
    }
    .knowledge-hero-title {
        font-size: 24px;
    }
    .knowledge-hero-desc {
        max-width: 100%;
        font-size: 13px;
    }
    .knowledge-main {
        flex-direction: column;
    }
    .knowledge-main-right {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .knowledge-hero-banner {
        height: 180px;
    }
    .knowledge-hero-title {
        font-size: 20px;
    }
    .knowledge-wrapper {
        padding: 16px 12px 0;
    }
}

