/* 书生案例页面增强样式 - 与书生著作风格完全一致 */
/* v2.32 - 统一左侧导航和内容卡片样式 */

/* 整体容器背景 */
.content-pages-container {
    background: #ede7d9 !important;
    min-height: 800px;
    padding: 40px 0 60px !important;
}

/* 隐藏原有的顶部Tab */
.content-pages-container .k-tab {
    display: none !important;
}

/* ========== 左侧导航 - 与书生著作一致 ========== */
.content-pages-container .k-left {
    float: left;
    width: 200px;
    padding-top: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-right: 0;
}

.content-pages-container .k-left .h1 {
    font-size: 22px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-weight: 600;
    color: #603811;
    cursor: pointer;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dac8a8;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    height: auto;
    line-height: 1.4;
    text-align: center;
}

.content-pages-container .k-left .h1::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #b36d41;
}

.content-pages-container .k-left .kk-tab {
    border-right: none;
    padding-right: 0;
    text-align: center;
}

.content-pages-container .k-left .kk-tab li {
    font-size: 22px; /* sync with .k-left .h1 */
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    color: #4a2d0d; /* 使用更深的焦茶色，确保极度清晰 */
    margin-bottom: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0; /* 缩小上下间距，更紧凑 */
    height: auto;
    line-height: 1.4;
    border-bottom: none;
    display: block;
    background: transparent;
    text-align: center;
    letter-spacing: 1px;
}

.content-pages-container .k-left .kk-tab li span {
    display: block;
    font-size: 11px; /* 英文略微加大，提升辨识度 */
    font-family: Arial, sans-serif;
    color: #888; /* 调深英文颜色 */
    letter-spacing: 1.5px;
    margin-top: 3px;
    text-transform: uppercase;
    text-align: center;
}

.content-pages-container .k-left .kk-tab li:hover,
.content-pages-container .k-left .kk-tab li.active {
    color: #ffffff !important; /* 选中时文字变白，极度醒目 */
    font-weight: 700;
    background: linear-gradient(135deg, #b36d41 0%, #8b5a32 100%) !important; /* 品牌色渐变背景 */
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(179, 109, 65, 0.35); /* 强烈投影，增加立体感 */
    transform: translateY(-2px); /* 轻微上浮效果 */
}

.content-pages-container .k-left .kk-tab li:hover span,
.content-pages-container .k-left .kk-tab li.active span {
    color: rgba(255, 255, 255, 0.9) !important; /* 英文也变为清透白色 */
    font-weight: 500;
}

/* 移除原有的右侧装饰 */
.content-pages-container .k-left .kk-tab li::after {
    display: none !important;
}

.content-pages-container .k-left .kk-tab li:hover::after,
.content-pages-container .k-left .kk-tab li.active::after {
    display: none !important;
}

/* ========== 右侧内容区域 ========== */
.content-pages-container .k-right {
    float: right;
    width: 810px;
    padding-left: 40px;
}

/* 面包屑优化 */
.content-pages-container .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;
}

.content-pages-container .crumb a {
    color: #a07850 !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.content-pages-container .crumb a:hover {
    color: #603811 !important;
    text-decoration: underline !important;
}

/* 隐藏系列标题 */
.content-pages-container .k-content .k-list-box .k-titt {
    display: none !important;
}

/* 案例卡片容器 */
.content-pages-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;
}

/* ========== 案例卡片样式 - 与书生著作一致 ========== */
.content-pages-container .k-content .item {
    padding: 18px !important;
    background: #f6f3ec !important;
    margin: 0 0 12px 0 !important;
    border-radius: 6px;
    border: 1px solid #ebe6de;
    box-shadow: 0 1px 3px rgba(129, 96, 63, 0.03);
    transition: all 0.3s ease;
    /* Don't force !important here; pagination.js uses jQuery .hide()/.show() */
    display: flex;
    align-items: flex-start !important;
    gap: 18px;
    min-height: 120px;
}

.content-pages-container .k-content .item:hover {
    box-shadow: 0 2px 10px rgba(129, 96, 63, 0.06);
    border-color: #e0d8cc;
    transform: none;
}

/* 案例缩略图 */
.content-pages-container .k-content .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;
}

.content-pages-container .k-content .item:hover img {
    transform: scale(1.02);
}

/* 案例信息区域 */
.content-pages-container .k-content .k-info {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

/* 案例标题 */
.content-pages-container .k-content .k-info .name {
    font-size: 17px !important;
    font-weight: 600;
    color: #4a2d0d;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: "Noto Serif SC", serif;
    line-height: 1.4;
}

.content-pages-container .k-content .k-info .name a {
    color: #4a2d0d;
    transition: color 0.3s;
}

.content-pages-container .k-content .k-info .name a:hover {
    color: #b36d41;
}

/* 案例摘要 */
.content-pages-container .k-content .k-info .info {
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #777;
    margin: 0 !important;
    margin-top: 0 !important;
    text-indent: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
}

.content-pages-container .k-content .k-info .info a {
    color: #777 !important;
}

/* ========== 分页：全站统一样式 ========== */
.content-pages-container .k-page {
    text-align: center;
    margin-top: 24px !important;
    margin-bottom: 20px !important;
}

.content-pages-container .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;
}

.content-pages-container .k-page a:hover,
.content-pages-container .k-page a.active {
    background: #5c4a38 !important;
    color: #fff !important;
    border-color: #5c4a38 !important;
}

/* 显示/隐藏控制 */
.k-show { display: block !important; }
.k-hide { display: none !important; }

/* ========== 响应式调整 ========== */
@media screen and (max-width: 1100px) {
    .content-pages-container .w_1100,
    .content-pages-container .div_03_in { 
        width: 95%; 
    }
    
    .content-pages-container .k-left {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .content-pages-container .k-left .kk-tab {
        border-right: none;
        border-bottom: 2px solid #e8e2d8;
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }
    
    .content-pages-container .k-left .kk-tab li {
        margin-right: 25px;
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    .content-pages-container .k-left .kk-tab li::after {
        display: none;
    }
    
    .content-pages-container .k-right {
        float: none;
        width: 100%;
        padding-left: 0;
    }
}
