/* 书生著作页面专用样式 - v2.30 简洁大气国学风格 */

/* 整体容器 - 对齐正式环境 xyzl / sszz */
.scholar-works-container {
    background: #ede7d9;
    padding: 0 0 60px;
    min-height: 600px;
}

/* ========== 顶部横向菜单 - 对齐正式环境 .k-tab ========== */
.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;
}

/* Fix: prevent .k-right from wrapping below .k-left (legacy layout) */
.scholar-works-container .k-right {
    box-sizing: border-box;
    float: right !important;
    width: 860px !important;
    padding-left: 30px !important;
}

.scholar-works-container .k-content {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* ========== 左侧 yi-nav（对齐正式环境） ========== */
.scholar-works-container .k-left {
    float: left;
    width: 200px;
    padding-top: 10px;
    background: transparent;
}

.scholar-works-container .yi-nav,
.scholar-works-container .k-left .yi-nav {
    float: none;
    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;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 96% center;
    transition: color 0.2s ease, border-color 0.2s ease;
    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;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.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;
}

/* 兼容公司介绍等仍用 kk-tab 的页面 */
.scholar-works-container .k-left .h1 {
    font-size: 20px;
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    font-weight: 700;
    color: #5c4a38;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d4c4a8;
    position: relative;
    background: transparent;
    height: auto;
    line-height: 1.4;
    text-align: center;
}

.scholar-works-container .k-left .h1::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: #a67c52;
}

.scholar-works-container .k-left .kk-tab {
    border-right: none;
    text-align: center;
}

.scholar-works-container .k-left .kk-tab li {
    display: block;
    margin: 0 0 12px;
    padding: 12px 10px;
    background: #bf9a6b;
    border: none;
    border-radius: 0;
    color: #ffffff;
    font-size: 20px; /* sync with .k-left .h1 */
    font-family: "Noto Sans SC", "Source Han Sans SC", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    box-shadow: none;
    cursor: pointer;
}

.scholar-works-container .k-left .kk-tab li span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.scholar-works-container .k-left .kk-tab li:hover {
    background: #a8885c;
    color: #ffffff;
}

.scholar-works-container .k-left .kk-tab li.active {
    background: #5c4a38;
    color: #ffffff;
}

.scholar-works-container .k-left .kk-tab li::after {
    display: none !important;
}

@media screen and (max-width: 992px) {
    .scholar-works-container .k-left,
    .scholar-works-container .k-right {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    .scholar-works-container .yi-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        margin-bottom: 16px;
    }

    .scholar-works-container .yi-nav li {
        margin-top: 0;
        text-indent: 0;
        padding: 8px 12px;
        border: 1px solid #e4d4be;
    }

    .scholar-works-container .yi-nav li::after {
        display: none;
    }
}

/* 顶部 Banner */
.scholar-banner {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scholar-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.scholar-banner-title {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.scholar-banner-title h1 {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "Noto Serif SC", serif;
}

.scholar-banner-title p {
    font-size: 16px;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* 面包屑导航 */
.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; /* 强制内容不换行 */
}

.crumb a {
    color: #a07850 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.crumb a:hover {
    color: #603811 !important;
    text-decoration: underline !important;
}

.crumb span {
    color: #666 !important;
    display: inline-block !important;
}

/* 隐藏系列标题（如"铁口奇门系列 QIMEN DUNJIA SERIES"） */
.scholar-works-container .k-content .k-list-box .k-titt {
    display: none !important;
}

/* 书籍卡片容器 - 移除多余间距 */
.scholar-works-container .k-content .k-list-box {
    /* Allow JS (pagination / tab switching) to control visibility */
    display: block;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 书籍卡片 - 对齐人物实战列表卡 */
.scholar-works-container .k-content .k-list-box .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;
    /* Don't force !important; pagination.js toggles items via inline display */
    display: flex;
    /* 右侧书籍信息与封面顶部对齐 */
    align-items: flex-start !important;
    gap: 20px;
    min-height: 160px;
}

.scholar-works-container .k-content .k-list-box .item:hover {
    box-shadow: none;
    background: #faf7f0 !important;
    border-color: #c4b090;
}

/* 书籍封面图片容器 */
.scholar-works-container .k-content .k-list-box .item .book-cover {
    width: 110px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* 无背景颜色，更清爽 */
    border: none;
    border-radius: 4px;
    padding: 0;
    box-sizing: border-box;
}

/* 书籍封面图片 */
.scholar-works-container .k-content .k-list-box .item img {
    width: 110px !important;
    height: 150px !important;
    object-fit: contain; /* 保持图片比例，不裁剪 */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background: transparent; /* 确保图片无背景 */
}

.scholar-works-container .k-content .k-list-box .item:hover img {
    transform: scale(1.02);
}

/* 书籍信息区域 - 顶部对齐 */
.scholar-works-container .k-content .k-list-box .k-info {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

/* 书名标题 - 对齐人物实战 */
.scholar-works-container .k-content .k-list-box .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;
}

.scholar-works-container .k-content .k-list-box .k-info .name a {
    color: inherit;
    text-decoration: none;
}

.scholar-works-container .k-content .k-list-box .k-info .name a:hover {
    color: #a67c52;
    text-decoration: none;
}

/* 价格标签 */
.scholar-works-container .k-content .k-list-box .k-info .price-tag {
    font-size: 11px;
    color: #9a7555;
    margin-bottom: 6px;
    padding: 2px 6px;
    background: rgba(190, 136, 83, 0.05);
    border-radius: 2px;
    display: inline-block;
    letter-spacing: 0.5px;
}

/* 书籍简介 - 对齐人物实战字号与颜色 */
.scholar-works-container .k-content .k-list-box .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;
    overflow: hidden !important;
}

/* 购书按钮 */
.buy-btn-wrap {
    margin-top: 10px;
}

.buy-btn {
    display: inline-block;
    padding: 5px 16px;
    background: #b36d41;
    color: #fff !important;
    font-size: 12px;
    border-radius: 3px;
    transition: background 0.3s;
    text-decoration: none;
}

.buy-btn:hover {
    background: #81603f;
}

/* 正文内容区域 (针对 公司介绍 等详情页) */
.k-zw {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

.k-zw p {
    margin-bottom: 15px !important;
    text-align: justify;
    text-indent: 2em;
}

/* 优化小标题显示方式：教学理念与特色、核心价值观等 */
.k-zw h3 {
    font-family: "Noto Serif SC", serif !important;
    font-size: 19px !important;
    color: #4a2d0d !important;
    margin: 35px 0 18px 0 !important;
    padding: 4px 0 8px 15px !important;
    border-bottom: 1px solid rgba(190, 136, 83, 0.2) !important;
    border-left: 4px solid #be8853 !important; /* 左侧金棕色边框作为锚点 */
    display: block !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    background: linear-gradient(to right, rgba(190, 136, 83, 0.05), transparent);
    position: relative;
}

.k-zw h3::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: #be8853; /* 标题下方加一个短的强调色块 */
}

.k-zw span {
    color: #b36d41 !important;
    font-weight: 700 !important;
}

/* 分页 - 全站统一样式 */
.k-page {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 20px;
    padding: 8px 0;
}

.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;
}

/* 著作详情正文（同步线上 del_info 图文） */
.scholar-works-container .item > .info {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-top: 18px;
}

.scholar-works-container .item > .info h1 {
    font-size: inherit;
    font-weight: normal;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.6;
}

.scholar-works-container .item > .info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

.scholar-works-container .item > .info p {
    margin-bottom: 12px;
}

/* 页脚样式由 css/core/layout.css 统一定义，避免在模块里覆盖导致各页面不一致 */
