/* 学易之路 页面增强样式 - 对齐正式环境横向 .k-tab */
/* v2.34 */

/* 整体容器背景 */
.scholar-works-container {
    background: #ede7d9 !important;
    min-height: 800px;
}

/* ========== 顶部横向菜单（覆盖 common-theme 渐变） ========== */
.scholar-works-container .k-tab {
    display: flex !important;
    display: -webkit-flex !important;
    gap: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
}

.scholar-works-container .k-tab a {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 15px 6px !important;
    margin: 30px 5px !important;
    color: #ffffff !important;
    background: #be8853 !important;
    background-image: none !important;
    font-size: 18px !important; /* sync with .yi-nav li; fit-ktab may shrink */
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    letter-spacing: 0 !important;
    transition: background 0.25s ease !important;
}

.scholar-works-container .k-tab a:first-child {
    margin-left: 0 !important;
}

.scholar-works-container .k-tab a:last-child {
    margin-right: 0 !important;
}

.scholar-works-container .k-tab a:hover,
.scholar-works-container .k-tab a.active {
    color: #ffffff !important;
    background: #603811 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.scholar-works-container .k-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* ========== 左侧 yi-nav + 右侧内容 ========== */
.scholar-works-container .k-left {
    float: left !important;
    width: 200px !important;
    padding-top: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.scholar-works-container .yi-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scholar-works-container .yi-nav li {
    border-bottom: 1px solid #e4d4be;
    font-size: 18px;
    color: #be8853;
    cursor: pointer;
    margin-top: 20px;
    padding: 8px 28px 10px 0;
    text-indent: 12px;
    line-height: 1.35;
    position: relative;
}

.scholar-works-container .yi-nav li::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #d2bf92;
    opacity: 0;
}

.scholar-works-container .yi-nav li:hover,
.scholar-works-container .yi-nav li.active {
    color: #854608;
    border-color: #854608;
}

.scholar-works-container .yi-nav li:hover::after,
.scholar-works-container .yi-nav li.active::after {
    opacity: 1;
    border-color: transparent transparent transparent #854608;
}

.scholar-works-container .yi-nav li span {
    display: block;
    font-size: 10px;
    -webkit-transform: none;
    transform: none;
    margin-top: 2px;
    margin-left: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.75;
    overflow: visible;
    word-break: break-word;
}

/* ========== 右侧内容区域 ========== */
.scholar-works-container .k-right,
.k-right {
    float: right !important;
    width: 860px !important;
    padding-left: 30px !important;
    box-sizing: border-box;
}

/* 面包屑优化 */
.crumb {
    margin-bottom: 20px !important;
    font-size: 13px !important;
    color: #999 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(129, 96, 63, 0.1) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
}

.crumb a {
    color: #a07850 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.crumb a:hover {
    color: #603811 !important;
    text-decoration: underline !important;
}

/* 隐藏系列标题 */
.scholar-works-container .k-content .k-list-box .k-titt {
    display: none !important;
}

/* 书籍/文章卡片容器 */
.scholar-works-container .k-content .k-list-box {
    display: block !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========== 文章卡片样式 - 对齐人物实战列表卡 ========== */
.k-content .item {
    padding: 22px 24px !important;
    background: #f6f3ec !important;
    margin: 0 0 16px 0 !important;
    border-radius: 0;
    border: 1px solid #d4c4a8;
    box-shadow: none;
    transition: background 0.25s ease, border-color 0.25s ease;
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px;
    min-height: 160px;
}

.k-content .item:hover {
    box-shadow: none;
    background: #faf7f0 !important;
    border-color: #c4b090;
    transform: none;
}

/* 文章缩略图 */
.k-content .item img {
    width: 120px !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #e8e2d6;
    box-shadow: none;
    flex-shrink: 0;
    transition: none;
    background: #f8f5ed;
}

.k-content .item:hover img {
    transform: none;
}

/* 文章信息区域 */
.k-content .k-info {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

/* 文章标题 - 对齐人物实战 */
.k-content .k-info .name {
    font-size: 18px !important;
    font-weight: 700;
    color: #333333;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.k-content .k-info .name a {
    color: #333333;
    text-decoration: none;
    transition: color 0.25s ease;
}

.k-content .k-info .name a:hover {
    color: #a67c52;
}

/* 文章摘要 - 对齐人物实战 */
.k-content .k-info .info {
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: #555555;
    margin: 0 !important;
    margin-top: 0 !important;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    text-align: justify;
    text-indent: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
}

/* ========== 分页：全站统一样式 ========== */
.k-page {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 20px;
    padding: 8px 0;
    clear: both;
}

.k-page a {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0 11px;
    box-sizing: border-box;
    line-height: 30px;
    border: 1px solid #d7d1c5;
    color: #5c4a38;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    background: #f8f5ed;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.k-page a:hover,
.k-page a.active {
    background: #5c4a38 !important;
    border-color: #5c4a38 !important;
    color: #ffffff !important;
    box-shadow: none;
    transform: none;
}

.k-page a.disabled,
.k-page a.disabled:hover {
    color: #c4bbb0;
    border-color: #ebe6dc;
    cursor: default;
    background: #faf8f3;
    box-shadow: none;
}

/* 显示/隐藏控制 */
.k-show { display: block !important; }
.k-hide { display: none !important; }

/* ========== 响应式调整 ========== */
@media screen and (max-width: 1100px) {
    .w_1100 { width: 95%; }
    
    .k-left {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .k-left .kk-tab {
        border-right: none;
        border-bottom: 2px solid #e8e2d8;
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }
    
    .k-left .kk-tab li {
        margin-right: 25px;
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    .k-left .kk-tab li::after {
        display: none;
    }
    
    .k-right {
        float: none;
        width: 100%;
        padding-left: 0;
    }
}
